I am using Solr 5.0.0, I have one question in relevance boost:
If I search for laptop table
like words, is there any way to boost results search word before the words like by with
or without
etc.
I used this query:
? defType = dismax
& q = foo bar
& bq = (*:* -by)^999
But, this will boost negatively those documents having the word by
or with
etc. How can i avoid this problem?
For example, if I search for laptop table
then by the above query the result DGB Cooling Laptop Table by GDB
won't boost.
I just need to give a boost to the search words before certain words like by
, with
, etc.
Is it possible?