Skip to content

Commit a201f54

Browse files
authored
[8.16] [DOCS] Documents that deployment_id can be used as inference_id in certain cases. (elastic#121055) (elastic#121072)
* [DOCS] Resolves conflict. * Apply suggestions from code review
1 parent de8664c commit a201f54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/reference/query-dsl/sparse-vector-query.asciidoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,14 @@ GET _search
6161
(Required, string) The name of the field that contains the token-weight pairs to be searched against.
6262

6363
`inference_id`::
64-
(Optional, string) The <<inference-apis,inference ID>> to use to convert the query text into token-weight pairs.
64+
(Optional, string)
65+
The <<inference-apis,inference ID>> to use to convert the query text into token-weight pairs.
6566
It must be the same inference ID that was used to create the tokens from the input text.
6667
Only one of `inference_id` and `query_vector` is allowed.
6768
If `inference_id` is specified, `query` must also be specified.
69+
If all queried fields are of type <<semantic-text, semantic_text>>, the inference ID associated with the `semantic_text` field will be inferred.
70+
You can reference a `deployment_id` of a {ml} trained model deployment as an `inference_id`.
71+
For example, if you download and deploy the ELSER model in the {ml-cap} trained models UI in {kib}, you can use the `deployment_id` of that deployment as the `inference_id`.
6872

6973
`query`::
7074
(Optional, string) The query text you want to use for search.

0 commit comments

Comments
 (0)