[英]ElasticSearch funtion_score like query in Solr
I am migrating from ES to Solr. 我正在从ES迁移到Solr。 I had used
function_score
query in ES searching for the same in Solr now but couldn't find any. 我已经在ES中使用过
function_score
查询,现在在Solr中搜索了相同的查询,但是找不到任何内容。 Does Solr support anything like function_score
query-dsl-function-score-query Solr是否支持诸如
function_score
query-dsl-function-score-query之类的任何内容
Function queries enable you to generate a relevancy score using the actual value of one or more numeric fields.
函数查询使您可以使用一个或多个数字字段的实际值来生成相关性得分。 Function queries are supported by the
DisMax
,Extended DisMax
, andstandard
query parsers.DisMax
,Extended DisMax
和standard
查询解析器支持函数查询。Function queries use
functions
.函数查询使用
functions
。 The functions can be aconstant
(numeric or string literal), afield
,another function
or aparameter substitution
argument.这些函数可以是
constant
(数字或字符串文字),field
,another function
或parameter substitution
参数。 You can use these functions to modify the ranking of results for users .您可以使用这些功能来修改用户的结果排名 。 These could be used to change the ranking of results based on a user's location, or some other calculation.
这些可用于根据用户的位置或其他某种计算来更改结果的排名。
Yes. 是。 Solr supports function queries.
Solr支持函数查询。 You can find the solr official documentation Function Queries for more detailed information.
您可以找到solr官方文档“ 函数查询”以获取更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.