I have a field item_name
, indexed in Solr 5.0.0. How do I give a negative boost to the query result that contains some specific words?
For example, let's suppose I have item_name
like:
Feggi Brown Laptop Bags
Dell Laptop (Black) without Laptop Bag by Dell
HP Laptop with Laptop Bag
Sony laptop without bag
Goldendays Laptop Bag
If I search for laptop bags
then it returns the results like below:
Dell Laptop (Black) without Laptop Bag by Dell
HP Laptop with Laptop Bag
Feggi Brown Laptop Bags
Sony laptop without bag
Goldendays Laptop Bag
How can I give a negative or low boost to the item_name
that contains the word like:
with, without, ...
With the goal that the item_name
containing these words will not be on the top of the result?
NB: is there any relation with stopwords
in this context?.