You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In <<prioritising-clauses,Prioritizing Clauses>>, we explained ((("relevance", "controlling", "query time boosting")))((("boosting", "query-time")))how you could use the`boost`
5
-
parameter at search time to give one query clause more importance than
6
-
another. For instance:
4
+
在 <<prioritising-clauses,Prioritizing Clauses>>中, 我们解释了 ((("relevance", "controlling", "query time boosting")))((("boosting", "query-time")))你可以怎样在查询时使用`boost`
5
+
来使得一个查询项比其它的更重要.
6
+
例如:
7
7
8
8
[source,json]
9
9
------------------------------
@@ -30,32 +30,23 @@ GET /_search
30
30
}
31
31
}
32
32
------------------------------
33
-
<1> The `title` query clause is twice as important as the `content` query
34
-
clause, because it has been boosted by a factor of `2`.
35
-
<2> A query clause without a `boost` value has a neutral boost of `1`.
When searching across multiple indices, you((("boosting", "query-time", "boosting an index")))((("indices", "boosting an index"))) can boost an entire index over
57
-
the others with the `indices_boost` parameter.((("indices_boost parameter"))) This could be used, as in the
58
-
next example, to give more weight to documents from a more recent index:
48
+
当在多个索引间搜索时, ((("boosting", "query-time", "boosting an index")))((("indices", "boosting an index"))) 你可以通过 `indices_boost` 参数提升这些索引中的某一个索引.
These boost values are represented in the <<practical-scoring-function>> by
84
-
the `t.getBoost()` element.((("practical scoring function", "t.getBoost() method")))((("boosting", "query-time", "t.getBoost()")))((("t.getBoost() method"))) Boosts are not applied at the level that they
85
-
appear in the query DSL. Instead, any boost values are combined and passsed
86
-
down to the individual terms. The `t.getBoost()` method returns any `boost`
87
-
value applied to the term itself or to any of the queries higher up the chain.
0 commit comments