2
votes

I'm still a relative newbie with Solr Lucene, and I have noticed an interesting "problem" with a search I performed.

If I do a basic search for "responsive", I also get results that contains the word "responsible".

I suppose this is OK, but the problem is the result with the keyword I was looking for (responsive) appears BELOW the result that contain the keyword I was NOT looking for! (responsible).

Granted, the result with "responsible" has more keyword matches, but the fact remains I did not search for this.

I like this alternative word/synonym feature, but is there a setting I should look for to make sure results with the actual search keyword are ranked higher than the alternatives?

Many thanks in advance, much appreciated. Seb

2
Had to mention this: the stemmer finds the same root for organism and organization.Jesvin Jose

2 Answers

3
votes

The stemmer you have in the fields seems to be stemming responsive & responsible to the same root.
Solr does not out of box rank the actual matches more than the alternatives.

If you want the actual search words to be ranked higher than the alternatives, you would need to maintain both stemmed and unstemmed versions of the field, and add more weight to the unstemmed version than the stemmed versions.

0
votes

which ranking algorithm is it using? you must modify the ranking algorithm function.