开发者

Solr: List results by distance

开发者 https://www.devze.com 2023-03-05 22:21 出处:网络
I\'d like to pass some parameters to Solr that should afflict the weighting of the results (I do not want to filter away results that do not match these criterias).

I'd like to pass some parameters to Solr that should afflict the weighting of the results (I do not want to filter away results that do not match these criterias).

E.g. I'd like to have a language attribute, and if i pass the user's language to the search engine I'd like to have the results matching the language listed first. As a newb开发者_StackOverflow社区ie to Solr I'd like to know if and how this is possible!


Yes, that's possible by using boost functions. See this FAQ entry or the description of boost functions for the DisMaxQueryPlugin (the dismax query parser is the default parser).

0

精彩评论

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