lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: search for empty field?
Date Thu, 04 Sep 2008 01:20:05 GMT



I don't think << category:* >> does what you think it does.

category:[* TO *] will find all docs that have any indexed tokens in the 
category field, so combining that as a prohibited clause with a 
mandatory MatchAllDocsQuery will give you all docs that don't have 
anything indexed in the category field....

                *:* -category:[* TO *]

(although i can't remember if *:* is a Solr extension of part of hte core 
QueryParser)



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message