08, 2013 4:14 PM
To: solr-user@lucene.apache.org
Subject: solr way to exclude terms
Is there a solr way to remove any result from the list search results that
contain a term in a excluding list?
For example, suppose I search for apple and get 5 documents contains it,
and my excluding list is
One of the approaches is to index create a new field based on the stopwords
(ie accept only stopwords :)) - ie. if the documents contains them, you
index 1 - and use a q=apple&fq=bad_apple:0
This has many limitations (in terms of flexibility), but it will be
superfast
roman
On Mon, Jul 8, 2013 a
Is there a solr way to remove any result from the list search results that
contain a term in a excluding list?
For example, suppose I search for apple and get 5 documents contains it,
and my excluding list is something like ['bad', 'wrong', 'staled'].
Out of the 5 documents, 3 has a word in this l