문제

When using stemming, a search keyword containing plural words, like "cats", is converted to "cat" in Solr parsedquery.

Solr result now contains documents that matched "cat" as well as "cats".

I want to give a higher boost to documents that contain "cats", while other results (that matched "cat", and not "cats") follow these documents with a lower score.

Is this possible?

도움이 되었습니까?

해결책

use a second field that you dont stemm (you can use copyField to link both fields), then match either of both fields, giving more boost to the unstemmed one

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top