0

我正在使用 3 个自定义提升因子查询。我想找到所有这些分数的总和并按降序排序......

我是跟踪包含这样的东西......如何找到这三个提升因子查询的总和?

QueryBuilders.customBoostFactorQuery(QueryBuilders.matchAllQuery()) // Your query
                .boostFactor(5);

QueryBuilders.customBoostFactorQuery(QueryBuilders.matchAllQuery()) // Your query
                .boostFactor(3);

QueryBuilders.customBoostFactorQuery(QueryBuilders.matchAllQuery()) // Your query
                .boostFactor(1);
4

1 回答 1

0

你应该看看function_score: http ://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html

于 2013-10-05T18:08:33.443 回答