简体   繁体   English

ElasticSearch funtion_score类似于Solr中的查询

[英]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 , and standard query parsers. DisMaxExtended DisMaxstandard查询解析器支持函数查询。

Function queries use functions . 函数查询使用functions The functions can be a constant (numeric or string literal), a field , another function or a parameter substitution argument. 这些函数可以是constant (数字或字符串文字), fieldanother functionparameter 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM