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
Add Multi-Field Support for Semantic Text Fields (#120128)
Semantic text fields now support multi-fields, either as part of a multi-field structure or containing multi-fields internally.
This enhancement aligns with the semantic text field's current behavior as a standard text field.
Note: Multi-field support is only available for the new index format. Attempting to set a multi-field on an index created with the older format will still result in a failure.
Copy file name to clipboardExpand all lines: docs/reference/mapping/types/semantic-text.asciidoc
+26-22Lines changed: 26 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,16 +182,11 @@ Even if the script targets non-`semantic_text` fields, the update will fail when
182
182
183
183
[discrete]
184
184
[[copy-to-support]]
185
-
==== `copy_to` support
185
+
==== `copy_to` and multi-fields support
186
186
187
-
The `semantic_text` field type can be the target of
188
-
<<copy-to,`copy_to` fields>>. This means you can use a single `semantic_text`
189
-
field to collect the values of other fields for semantic search. Each value has
190
-
its embeddings calculated separately; each field value is a separate set of chunk(s) in
191
-
the resulting embeddings.
192
-
193
-
This imposes a restriction on bulk requests and ingestion pipelines that update documents with `semantic_text` fields.
194
-
In these cases, all fields that are copied to a `semantic_text` field, including the `semantic_text` field value, must have a value to ensure every embedding is calculated correctly.
187
+
The semantic_text field type can serve as the target of <<copy-to,copy_to fields>>,
188
+
be part of a <<multi-fields,multi-field>> structure, or contain <<multi-fields,multi-fields>> internally.
189
+
This means you can use a single field to collect the values of other fields for semantic search.
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticInferenceMetadataFieldsMapper.java
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapper.java
0 commit comments