How to boost solr results based on rawquerystring when using stemming
문제
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
제휴하지 않습니다 StackOverflow