lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Items disappearing from Solr index
Date Wed, 26 Sep 2012 19:00:07 GMT

On Sep 26, 2012, at 04:47 , Kissue Kissue wrote:
> getSolrServer().deleteByQuery(catalogueId + ":" + Emory Labs)  [Notice that
> there are no quotes surrounding the catalogueId value - Emory Labs]

The best way to do this type of query (where the field type is a string with arbitrary characters
that might mess with the lucene query parser) is to use the "term" query parser.   In this
case, use [[[ {!term f=catalogueId}Emory Labs ]]], of course without the brackets.  That'll
be the fail-safe way to this; consider the case where your catalogueId field had double-quotes
in it, so simply surround by double-quotes can be problematic.


View raw message