You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2010/04/01 03:16:11 UTC
Re: exclude words?
: 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