lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: exclude words?
Date Thu, 01 Apr 2010 01:16:11 GMT

: I think you can use something like "q=hello world -books". Should do.

or just "q=-books" ... finds all docs that do not have books (in the 
default search field)

: > so solr returns all documents, that don't have "books" somewhere in them?

"somewhere" is kinda vague ... if you mean "don't have the word 'books' in 
any field" then not unless you use copyField to create a "catchall" field 
you can query against containing all the text.




-Hoss


Mime
View raw message