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
Copy file name to clipboardExpand all lines: docs/reference/mapping/types/semantic-text.asciidoc
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ If you don’t specify an inference endpoint, the `inference_id` field defaults
18
18
19
19
Using `semantic_text`, you won't need to specify how to generate embeddings for your data, or how to index it.
20
20
The {infer} endpoint automatically determines the embedding generation, indexing, and query to use.
21
+
Newly created indices with `semantic_text` fields using dense embeddings will be <<dense-vector-quantization,quantized>> to `bbq_hnsw` automatically.
21
22
22
23
If you use the preconfigured `.elser-2-elasticsearch` endpoint, you can set up `semantic_text` with the following API request:
23
24
@@ -225,7 +226,8 @@ In these cases - when you use `sparse_vector` or `dense_vector` field types inst
225
226
For indices containing `semantic_text` fields, updates that use scripts have the following behavior:
226
227
227
228
* Are supported through the https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update[Update API].
228
-
* Are not supported through the https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk-1[Bulk API] and will fail. Even if the script targets non-`semantic_text` fields, the update will fail when the index contains a `semantic_text` field.
229
+
* Are not supported through the https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk-1[Bulk API] and will fail.
230
+
Even if the script targets non-`semantic_text` fields, the update will fail when the index contains a `semantic_text` field.
Copy file name to clipboardExpand all lines: docs/reference/query-dsl/match-query.asciidoc
+61-64Lines changed: 61 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,18 @@
1
1
[[query-dsl-match-query]]
2
2
=== Match query
3
+
3
4
++++
4
5
<titleabbrev>Match</titleabbrev>
5
6
++++
6
7
7
-
Returns documents that match a provided text, number, date or boolean value. The
8
-
provided text is analyzed before matching.
9
-
10
-
The `match` query is the standard query for performing a full-text search,
11
-
including options for fuzzy matching.
8
+
Returns documents that match a provided text, number, date or boolean value.
9
+
The provided text is analyzed before matching.
12
10
13
-
`Match` will also work against <<semantic-text, semantic_text>> fields,
14
-
however when performing `match` queries against `semantic_text` fields options
15
-
that specifically target lexical search such as `fuzziness` or `analyzer` will be ignored.
11
+
The `match` query is the standard query for performing a full-text search, including options for fuzzy matching.
16
12
13
+
`Match` will also work against <<semantic-text, semantic_text>> fields.
14
+
As `semantic_text` does not support lexical text search, `match` queries against `semantic_text` fields will automatically perform the correct semantic search.
15
+
Because of this, options that specifically target lexical search such as `fuzziness` or `analyzer` will be ignored.
The `analyzer` can be set to control which analyzer will perform the
205
-
analysis process on the text. It defaults to the field explicit mapping
206
-
definition, or the default search analyzer.
208
+
The `analyzer` can be set to control which analyzer will perform the analysis process on the text.
209
+
It defaults to the field explicit mapping definition, or the default search analyzer.
207
210
208
-
The `lenient` parameter can be set to `true` to ignore exceptions caused by
209
-
data-type mismatches, such as trying to query a numeric field with a text
210
-
query string. Defaults to `false`.
211
+
The `lenient` parameter can be set to `true` to ignore exceptions caused by data-type mismatches, such as trying to query a numeric field with a text query string.
212
+
Defaults to `false`.
211
213
212
214
[[query-dsl-match-query-fuzziness]]
213
215
===== Fuzziness in the match query
@@ -218,17 +220,12 @@ See <<fuzziness>> for allowed settings.
218
220
The `prefix_length` and
219
221
`max_expansions` can be set in this case to control the fuzzy process.
220
222
If the fuzzy option is set the query will use `top_terms_blended_freqs_${max_expansions}`
221
-
as its <<query-dsl-multi-term-rewrite,rewrite
222
-
method>> the `fuzzy_rewrite` parameter allows to control how the query will get
223
-
rewritten.
223
+
as its <<query-dsl-multi-term-rewrite,rewrite method>> the `fuzzy_rewrite` parameter allows to control how the query will get rewritten.
224
224
225
-
Fuzzy transpositions (`ab` -> `ba`) are allowed by default but can be disabled
226
-
by setting `fuzzy_transpositions` to `false`.
225
+
Fuzzy transpositions (`ab` -> `ba`) are allowed by default but can be disabled by setting `fuzzy_transpositions` to `false`.
227
226
228
-
NOTE: Fuzzy matching is not applied to terms with synonyms or in cases where the
229
-
analysis process produces multiple tokens at the same position. Under the hood
230
-
these terms are expanded to a special synonym query that blends term frequencies,
231
-
which does not support fuzzy expansion.
227
+
NOTE: Fuzzy matching is not applied to terms with synonyms or in cases where the analysis process produces multiple tokens at the same position.
228
+
Under the hood these terms are expanded to a special synonym query that blends term frequencies, which does not support fuzzy expansion.
0 commit comments