Archive for the 'solr' Category

Solr pure negatvie queries

« 20 December 2007 | 13:51 | solr | No Comments »

Over at SolrQuerySyntax on the Solr wiki they claim that you can do pure negative searches ( i.e. searches for all records that don’t have a value for a given field ) by using the syntax:
-field:[* TO *]
However, using this was throwing errors for me until I switched to:
-field:[* TO ]
Now you know.