From Nicolas.Steenlant at UGent.be Tue May 21 10:37:32 2019 From: Nicolas.Steenlant at UGent.be (Nicolas Steenlant) Date: Tue, 21 May 2019 08:37:32 +0000 Subject: [librecat-dev] Catmandu 1.20 Message-ID: <3dc17faaa4bee98a5483f840d7f684733d561cab.camel@ugent.be> Hi all, Catmandu 1.20 has been released. 1.2 introduces Catmandu::Fix::Builder which greatly simplifies writing fixes that operate on data paths by presenting a friendly declarative interface that hides the complexities of code generation. Almost all builtin fixes have been rewritten to use this new package and are now much easier to understand and use as an example for your own fixes. This release also adds a new eval fix and the cp, mv and rm shortcuts for copy_field, move_field and remove_field. Regards, Nicolas -- Nicolas Steenlant software developer at University Library Ghent From jnorris at ist.ac.at Mon May 27 13:47:01 2019 From: jnorris at ist.ac.at (Jonathan NORRIS) Date: Mon, 27 May 2019 13:47:01 +0200 Subject: [librecat-dev] cql query for record with no projects Message-ID: <33a40391-6540-a3f5-0545-d884429bf44a@ist.ac.at> Hey, I am trying to retrieve all records with a project field but can't figure out the CQL for it. Does anybody know how to write CQL to get a result like "project != null"? Thanks, Jonathan IST Austria From Patrick.Hochstenbach at UGent.be Tue May 28 10:51:21 2019 From: Patrick.Hochstenbach at UGent.be (Patrick Hochstenbach) Date: Tue, 28 May 2019 08:51:21 +0000 Subject: [librecat-dev] cql query for record with no projects In-Reply-To: <33a40391-6540-a3f5-0545-d884429bf44a@ist.ac.at> References: <33a40391-6540-a3f5-0545-d884429bf44a@ist.ac.at> Message-ID: Hi I don?t think CQL supports these type of ?null? values or ?exists? queries. What you can do is do a raw query. E.g. the elastic search store can do this: my $hits = $store->bag->search( query => { # All records that have a project field exists => { field => ?project' } } , limit => 1000); BR Patrick > On 27 May 2019, at 13:47, Jonathan NORRIS wrote: > > Hey, > > I am trying to retrieve all records with a project field but can't figure out the CQL for it. Does anybody know how to write CQL to get a result like "project != null"? > > Thanks, > Jonathan > IST Austria > _______________________________________________ > librecat-dev mailing list > - send list mails to librecat-dev at lists.uni-bielefeld.de > - to unsubscribe or change options, visit https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev > - project website: http://librecat.org/ From Nicolas.Steenlant at UGent.be Tue May 28 13:09:17 2019 From: Nicolas.Steenlant at UGent.be (Nicolas Steenlant) Date: Tue, 28 May 2019 11:09:17 +0000 Subject: [librecat-dev] cql query for record with no projects In-Reply-To: References: <33a40391-6540-a3f5-0545-d884429bf44a@ist.ac.at> Message-ID: <27fb25d885ed930b016f5cdee3a34665eb733e99.camel@ugent.be> There's no support for existential queries in cql, we work around it by adding boolean fields like 'has_project exact 1'. Regards, Nicolas On Tue, 2019-05-28 at 08:51 +0000, Patrick Hochstenbach wrote: > Hi > > I don?t think CQL supports these type of ?null? values or ?exists? > queries. What you can do is do a raw query. E.g. the elastic search > store can do this: > > > my $hits = $store->bag->search( > query => { > # All records that have a project field > exists => { > field => ?project' > } > } , > limit => 1000); > > BR > Patrick > > > On 27 May 2019, at 13:47, Jonathan NORRIS > > wrote: > > > > Hey, > > > > I am trying to retrieve all records with a project field but can't > > figure out the CQL for it. Does anybody know how to write CQL to > > get a result like "project != null"? > > > > Thanks, > > Jonathan > > IST Austria > > _______________________________________________ > > librecat-dev mailing list > > - send list mails to librecat-dev at lists.uni-bielefeld.de > > - to unsubscribe or change options, visit > > https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev > > - project website: http://librecat.org/ > > _______________________________________________ > librecat-dev mailing list > - send list mails to librecat-dev at lists.uni-bielefeld.de > - to unsubscribe or change options, visit > https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev > - project website: http://librecat.org/