开发者

Solr lucene and "similar" keywords

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 wor开发者_如何学God/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


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜