Skip to content

Commit 85adbb7

Browse files
committed
Applies suggestions
1 parent 5d86338 commit 85adbb7

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

docs/reference/query-languages/query-dsl/query-dsl-knn-query.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,17 @@ The filter is a pre-filter, meaning that it is applied **during** the approximat
9696
`similarity`
9797
: (Optional, float) The minimum similarity required for a document to be considered a match. The similarity value calculated relates to the raw [`similarity`](/reference/elasticsearch/mapping-reference/dense-vector.md#dense-vector-similarity) used. Not the document score. The matched documents are then scored according to [`similarity`](/reference/elasticsearch/mapping-reference/dense-vector.md#dense-vector-similarity) and the provided `boost` is applied.
9898

99+
`boost`
100+
: (Optional, float) Floating point number used to multiply the scores of matched documents. This value cannot be negative. Defaults to `1.0`.
101+
102+
103+
`_name`
104+
: (Optional, string) Name field to identify the query
105+
99106

100107
`rescore_vector` {applies_to}`stack: preview 9.0, ga 9.1`
101108
: (Optional, object) Apply oversampling and rescoring to quantized vectors.
102109

103-
::::{note}
104-
Rescoring only makes sense for quantized vectors; when [quantization](/reference/elasticsearch/mapping-reference/dense-vector.md#dense-vector-quantization) is not used, the original vectors are used for scoring. Rescore option will be ignored for non-quantized `dense_vector` fields.
105-
::::
106-
107110
**Parameters for `rescore_vector`**:
108111
109112
`oversample`
@@ -117,18 +120,11 @@ The filter is a pre-filter, meaning that it is applied **during** the approximat
117120
* \>= 1f to indicate the oversample factor
118121
* Exactly `0` to indicate that no oversampling and rescoring should occur. {applies_to}`stack: ga 9.1`
119122

120-
121123
See [oversampling and rescoring quantized vectors](docs-content://solutions/search/vector/knn.md#dense-vector-knn-search-rescoring) for details.
122124

123-
124-
`boost`
125-
: (Optional, float) Floating point number used to multiply the scores of matched documents. This value cannot be negative. Defaults to `1.0`.
126-
127-
128-
`_name`
129-
: (Optional, string) Name field to identify the query
130-
131-
125+
::::{note}
126+
Rescoring only makes sense for [quantized](/reference/elasticsearch/mapping-reference/dense-vector.md#dense-vector-quantization) vectors. The `rescore_vector` option will be ignored for non-quantized `dense_vector` fields, because the original vectors are used for scoring.
127+
::::
132128

133129
## Pre-filters and post-filters in knn query [knn-query-filtering]
134130

0 commit comments

Comments
 (0)