Skip to content

Commit 4c45c64

Browse files
committed
Allow multi-fields in semantic_text property (#5375)
(cherry picked from commit e5a0cb8) # Conflicts: # output/schema/schema.json
1 parent 8865440 commit 4c45c64

File tree

5 files changed

+56
-10
lines changed

5 files changed

+56
-10
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 35 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/mapping/core.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ export class SemanticTextProperty {
258258
* they will not be applied to existing documents until they are reindexed.
259259
*/
260260
chunking_settings?: ChunkingSettings
261+
/**
262+
* Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one
263+
* field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.
264+
* @doc_id multi-fields
265+
*/
266+
fields?: Dictionary<PropertyName, Property>
261267
}
262268

263269
export class SearchAsYouTypeProperty extends CorePropertyBase {

0 commit comments

Comments
 (0)