From 23c67e266c7f77211439daad4e772c1daa7566f9 Mon Sep 17 00:00:00 2001 From: philkra Date: Fri, 18 Mar 2022 14:16:40 +0100 Subject: [PATCH 1/6] boy scouting --- specification/_types/mapping/Property.ts | 82 ++++++++++++------------ 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/specification/_types/mapping/Property.ts b/specification/_types/mapping/Property.ts index edb808d5ed..e3272811e1 100644 --- a/specification/_types/mapping/Property.ts +++ b/specification/_types/mapping/Property.ts @@ -65,47 +65,47 @@ export type Property = | CoreProperty export enum FieldType { - none = 0, - geo_point = 1, - geo_shape = 2, - ip = 3, - binary = 4, - keyword = 5, - text = 6, - search_as_you_type = 7, - date = 8, - date_nanos = 9, - boolean = 10, - completion = 11, - nested = 12, - object = 13, - murmur3 = 14, - token_count = 15, - percolator = 16, - integer = 17, - long = 18, - short = 19, - byte = 20, - float = 21, - half_float = 22, - scaled_float = 23, - double = 24, - integer_range = 25, - float_range = 26, - long_range = 27, - double_range = 28, - date_range = 29, - ip_range = 30, - alias = 31, - join = 32, - rank_feature = 33, - rank_features = 34, - flattened = 35, - shape = 36, - histogram = 37, - constant_keyword = 38, - aggregate_metric_double = 39, - dense_vector = 40 + none, + geo_point, + geo_shape, + ip , + binary , + keyword, + text, + search_as_you_type, + date, + date_nanos, + boolean, + completion, + nested, + object, + murmur3, + token_count, + percolator, + integer, + long, + short, + byte, + float, + half_float, + scaled_float, + double, + integer_range, + float_range, + long_range, + double_range, + date_range, + ip_range, + alias, + join, + rank_feature, + rank_features, + flattened, + shape, + histogram, + constant_keyword, + aggregate_metric_double, + dense_vector } export class PropertyWithClrOrigin {} From 1beb4b5d2c3bb18088cd7a3fb669f85051ffd9b2 Mon Sep 17 00:00:00 2001 From: philkra Date: Fri, 18 Mar 2022 14:17:48 +0100 Subject: [PATCH 2/6] boy scouting #2 --- specification/_types/mapping/core.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index f5503c58f5..8726c75bd8 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -242,10 +242,10 @@ export class SearchAsYouTypeProperty extends CorePropertyBase { } export enum IndexOptions { - docs = 0, - freqs = 1, - positions = 2, - offsets = 3 + docs, + freqs, + positions, + offsets } export class TextIndexPrefixes { From b3d2562dc095fb9d2e66c986da0cbde0506485fa Mon Sep 17 00:00:00 2001 From: philkra Date: Fri, 18 Mar 2022 14:33:03 +0100 Subject: [PATCH 3/6] Add type match_only_text --- output/schema/schema.json | 137 ++++++++++++++++++----- output/typescript/types.ts | 8 +- specification/_types/mapping/Property.ts | 4 +- specification/_types/mapping/core.ts | 27 ++++- 4 files changed, 140 insertions(+), 36 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 3c684c905c..5c1b41035a 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -55655,7 +55655,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L91-L93" + "specLocation": "_types/mapping/core.ts#L92-L94" }, { "inherits": { @@ -55723,7 +55723,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L95-L101" + "specLocation": "_types/mapping/core.ts#L96-L102" }, { "inherits": { @@ -55758,7 +55758,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L191-L194" + "specLocation": "_types/mapping/core.ts#L192-L195" }, { "inherits": { @@ -55890,7 +55890,7 @@ "name": "CoreProperty", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L60-L65", + "specLocation": "_types/mapping/core.ts#L60-L66", "type": { "items": [ { @@ -55927,6 +55927,13 @@ "name": "DocValuesProperty", "namespace": "_types.mapping" } + }, + { + "kind": "instance_of", + "type": { + "name": "MatchOnlyTextProperty", + "namespace": "_types.mapping" + } } ], "kind": "union_of" @@ -56090,7 +56097,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L115-L123" + "specLocation": "_types/mapping/core.ts#L116-L124" }, { "inherits": { @@ -56202,7 +56209,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L103-L113" + "specLocation": "_types/mapping/core.ts#L104-L114" }, { "inherits": { @@ -56356,7 +56363,7 @@ "name": "DocValuesProperty", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L71-L89", + "specLocation": "_types/mapping/core.ts#L72-L90", "type": { "items": [ { @@ -56514,7 +56521,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L67-L69" + "specLocation": "_types/mapping/core.ts#L68-L70" }, { "inherits": { @@ -56549,7 +56556,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L171-L174" + "specLocation": "_types/mapping/core.ts#L172-L175" }, { "inherits": { @@ -57072,7 +57079,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L161-L164" + "specLocation": "_types/mapping/core.ts#L162-L165" }, { "inherits": { @@ -57460,7 +57467,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L166-L169" + "specLocation": "_types/mapping/core.ts#L167-L170" }, { "inherits": { @@ -57538,7 +57545,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L244-L249" + "specLocation": "_types/mapping/core.ts#L267-L272" }, { "inherits": { @@ -57573,7 +57580,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L176-L179" + "specLocation": "_types/mapping/core.ts#L177-L180" }, { "inherits": { @@ -57750,7 +57757,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L125-L128" + "specLocation": "_types/mapping/core.ts#L126-L129" }, { "inherits": { @@ -57874,7 +57881,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L130-L142" + "specLocation": "_types/mapping/core.ts#L131-L143" }, { "inherits": { @@ -57909,7 +57916,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L181-L184" + "specLocation": "_types/mapping/core.ts#L182-L185" }, { "inherits": { @@ -57935,6 +57942,74 @@ ], "specLocation": "_types/mapping/range.ts#L58-L60" }, + { + "description": "A variant of text that trades scoring and efficiency of positional queries for space efficiency. This field\neffectively stores data the same way as a text field that only indexes documents (index_options: docs) and\ndisables norms (norms: false). Term queries perform as fast if not faster as on text fields, however queries\nthat need positions such as the match_phrase query perform slower as they need to look at the _source document\nto verify whether a phrase matches. All queries return constant scores that are equal to 1.0.", + "kind": "interface", + "name": { + "name": "MatchOnlyTextProperty", + "namespace": "_types.mapping" + }, + "properties": [ + { + "name": "type", + "required": true, + "type": { + "kind": "literal_value", + "value": "match_only_text" + } + }, + { + "description": "Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one\nfield for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html", + "name": "fields", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "PropertyName", + "namespace": "_types" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "instance_of", + "type": { + "name": "Property", + "namespace": "_types.mapping" + } + } + } + }, + { + "description": "Metadata about the field.", + "docId": "mapping-meta-field", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/mapping-meta-field.html", + "name": "meta", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + } + ], + "specLocation": "_types/mapping/core.ts#L245-L265" + }, { "kind": "enum", "members": [ @@ -58038,7 +58113,7 @@ "name": "NumberProperty", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L208-L217", + "specLocation": "_types/mapping/core.ts#L209-L218", "type": { "items": [ { @@ -58155,7 +58230,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L144-L148" + "specLocation": "_types/mapping/core.ts#L145-L149" }, { "inherits": { @@ -58206,7 +58281,7 @@ "name": "OnScriptError", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L150-L153" + "specLocation": "_types/mapping/core.ts#L151-L154" }, { "inherits": { @@ -58230,7 +58305,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L219-L221" + "specLocation": "_types/mapping/core.ts#L220-L222" }, { "inherits": { @@ -58642,7 +58717,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L223-L226" + "specLocation": "_types/mapping/core.ts#L224-L227" }, { "inherits": { @@ -58666,7 +58741,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L228-L230" + "specLocation": "_types/mapping/core.ts#L229-L231" }, { "kind": "interface", @@ -58859,7 +58934,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L201-L206" + "specLocation": "_types/mapping/core.ts#L202-L207" }, { "inherits": { @@ -58971,7 +59046,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L232-L242" + "specLocation": "_types/mapping/core.ts#L233-L243" }, { "description": "The `shape` data type facilitates the indexing of and searching with arbitrary `x, y` cartesian shapes such as\nrectangles and polygons.", @@ -59077,7 +59152,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L186-L189" + "specLocation": "_types/mapping/core.ts#L187-L190" }, { "kind": "interface", @@ -59218,7 +59293,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L155-L159" + "specLocation": "_types/mapping/core.ts#L156-L160" }, { "kind": "interface", @@ -59347,7 +59422,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L251-L254" + "specLocation": "_types/mapping/core.ts#L274-L277" }, { "inherits": { @@ -59525,7 +59600,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L256-L272" + "specLocation": "_types/mapping/core.ts#L279-L295" }, { "kind": "enum", @@ -59912,7 +59987,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L196-L199" + "specLocation": "_types/mapping/core.ts#L197-L200" }, { "inherits": { @@ -59936,7 +60011,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L274-L276" + "specLocation": "_types/mapping/core.ts#L297-L299" }, { "inherits": { @@ -59972,7 +60047,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L278-L282" + "specLocation": "_types/mapping/core.ts#L301-L305" }, { "inherits": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 144c3403f9..5eb53873a3 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -4488,7 +4488,7 @@ export interface MappingConstantKeywordProperty extends MappingPropertyBase { type: 'constant_keyword' } -export type MappingCoreProperty = MappingObjectProperty | MappingNestedProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingDocValuesProperty +export type MappingCoreProperty = MappingObjectProperty | MappingNestedProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingDocValuesProperty | MappingMatchOnlyTextProperty export interface MappingCorePropertyBase extends MappingPropertyBase { copy_to?: Fields @@ -4705,6 +4705,12 @@ export interface MappingLongRangeProperty extends MappingRangePropertyBase { type: 'long_range' } +export interface MappingMatchOnlyTextProperty { + type: 'match_only_text' + fields?: Record + meta?: Record +} + export type MappingMatchType = 'simple' | 'regex' export interface MappingMurmur3HashProperty extends MappingDocValuesPropertyBase { diff --git a/specification/_types/mapping/Property.ts b/specification/_types/mapping/Property.ts index e3272811e1..8e277f2edd 100644 --- a/specification/_types/mapping/Property.ts +++ b/specification/_types/mapping/Property.ts @@ -68,8 +68,8 @@ export enum FieldType { none, geo_point, geo_shape, - ip , - binary , + ip, + binary, keyword, text, search_as_you_type, diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index 8726c75bd8..7f4754572c 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -20,7 +20,7 @@ import { FielddataFrequencyFilter } from '@indices/_types/FielddataFrequencyFilter' import { NumericFielddata } from '@indices/_types/NumericFielddata' import { Dictionary } from '@spec_utils/Dictionary' -import { Fields, RelationName } from '@_types/common' +import { Fields, PropertyName, RelationName } from '@_types/common' import { byte, double, @@ -38,7 +38,7 @@ import { PointProperty, ShapeProperty } from './geo' -import { PropertyBase } from './Property' +import { Property, PropertyBase } from './Property' import { RangeProperty } from './range' import { CompletionProperty, @@ -63,6 +63,7 @@ export type CoreProperty = | SearchAsYouTypeProperty | TextProperty | DocValuesProperty + | MatchOnlyTextProperty export class DocValuesPropertyBase extends CorePropertyBase { doc_values?: boolean @@ -241,6 +242,28 @@ export class SearchAsYouTypeProperty extends CorePropertyBase { type: 'search_as_you_type' } +/** + * A variant of text that trades scoring and efficiency of positional queries for space efficiency. This field + * effectively stores data the same way as a text field that only indexes documents (index_options: docs) and + * disables norms (norms: false). Term queries perform as fast if not faster as on text fields, however queries + * that need positions such as the match_phrase query perform slower as they need to look at the _source document + * to verify whether a phrase matches. All queries return constant scores that are equal to 1.0. + */ +export class MatchOnlyTextProperty { + type: 'match_only_text' + /** + * Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one + * field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers. + * @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html + */ + fields?: Dictionary + /** + * Metadata about the field. + * @doc_id mapping-meta-field + */ + meta?: Dictionary +} + export enum IndexOptions { docs, freqs, From a9edb214eee975a55013894e173d5a65325ad03a Mon Sep 17 00:00:00 2001 From: Philip Krauss <35487337+philkra@users.noreply.github.com> Date: Fri, 18 Mar 2022 19:12:28 +0100 Subject: [PATCH 4/6] Update specification/_types/mapping/core.ts Co-authored-by: Sylvain Wallez --- specification/_types/mapping/core.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index 7f4754572c..a90a6e00ab 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -262,6 +262,11 @@ export class MatchOnlyTextProperty { * @doc_id mapping-meta-field */ meta?: Dictionary + /** + * Allows you to copy the values of multiple fields into a group + * field, which can then be queried as a single field. + */ + copy_to?: Fields } export enum IndexOptions { From c9cf776d00abaf78dac6b87e39d9321c5c828e35 Mon Sep 17 00:00:00 2001 From: Philip Krauss <35487337+philkra@users.noreply.github.com> Date: Fri, 18 Mar 2022 19:12:34 +0100 Subject: [PATCH 5/6] Update specification/_types/mapping/core.ts Co-authored-by: Sylvain Wallez --- specification/_types/mapping/core.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index a90a6e00ab..f33e2341e5 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -267,6 +267,7 @@ export class MatchOnlyTextProperty { * field, which can then be queried as a single field. */ copy_to?: Fields + copy_to?: Fields } export enum IndexOptions { From 16215d6c446ac5726a4a23876b4bfdecf018d4cf Mon Sep 17 00:00:00 2001 From: philkra Date: Fri, 18 Mar 2022 19:16:51 +0100 Subject: [PATCH 6/6] add match_text_only to known types --- output/schema/schema.json | 31 ++++++++++++++++++------ output/typescript/types.ts | 3 ++- specification/_doc_ids/table.csv | 3 ++- specification/_types/mapping/Property.ts | 3 ++- specification/_types/mapping/core.ts | 3 +-- 5 files changed, 30 insertions(+), 13 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 5c1b41035a..86c394b979 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -56915,13 +56915,16 @@ }, { "name": "dense_vector" + }, + { + "name": "match_only_text" } ], "name": { "name": "FieldType", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/Property.ts#L67-L109" + "specLocation": "_types/mapping/Property.ts#L67-L110" }, { "inherits": { @@ -57545,7 +57548,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L267-L272" + "specLocation": "_types/mapping/core.ts#L272-L277" }, { "inherits": { @@ -57960,7 +57963,7 @@ }, { "description": "Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one\nfield for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html", + "docId": "multi-fields", "name": "fields", "required": false, "type": { @@ -58006,9 +58009,21 @@ } } } + }, + { + "description": "Allows you to copy the values of multiple fields into a group\nfield, which can then be queried as a single field.", + "name": "copy_to", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Fields", + "namespace": "_types" + } + } } ], - "specLocation": "_types/mapping/core.ts#L245-L265" + "specLocation": "_types/mapping/core.ts#L245-L270" }, { "kind": "enum", @@ -59422,7 +59437,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L274-L277" + "specLocation": "_types/mapping/core.ts#L279-L282" }, { "inherits": { @@ -59600,7 +59615,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L279-L295" + "specLocation": "_types/mapping/core.ts#L284-L300" }, { "kind": "enum", @@ -60011,7 +60026,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L297-L299" + "specLocation": "_types/mapping/core.ts#L302-L304" }, { "inherits": { @@ -60047,7 +60062,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L301-L305" + "specLocation": "_types/mapping/core.ts#L306-L310" }, { "inherits": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 5eb53873a3..5f41f63844 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -4582,7 +4582,7 @@ export interface MappingFieldNamesField { enabled: boolean } -export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' +export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'match_only_text' export interface MappingFlattenedProperty extends MappingPropertyBase { boost?: double @@ -4709,6 +4709,7 @@ export interface MappingMatchOnlyTextProperty { type: 'match_only_text' fields?: Record meta?: Record + copy_to?: Fields } export type MappingMatchType = 'simple' | 'regex' diff --git a/specification/_doc_ids/table.csv b/specification/_doc_ids/table.csv index 39ffb55404..7759ab742b 100644 --- a/specification/_doc_ids/table.csv +++ b/specification/_doc_ids/table.csv @@ -400,4 +400,5 @@ eql-sequences,https://www.elastic.co/guide/en/elasticsearch/reference/master/eql index-modules-settings,https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules.html#index-modules-settings templating-role-query,https://www.elastic.co/guide/en/elasticsearch/reference/master/field-and-document-access-control.html#templating-role-query mapping-settings-limit,https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-settings-limit.html -index-modules-slowlog-slowlog,https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html#index-slow-log \ No newline at end of file +index-modules-slowlog-slowlog,https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html#index-slow-log + multi-fields,https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html \ No newline at end of file diff --git a/specification/_types/mapping/Property.ts b/specification/_types/mapping/Property.ts index 8e277f2edd..332fdf8614 100644 --- a/specification/_types/mapping/Property.ts +++ b/specification/_types/mapping/Property.ts @@ -105,7 +105,8 @@ export enum FieldType { histogram, constant_keyword, aggregate_metric_double, - dense_vector + dense_vector, + match_only_text } export class PropertyWithClrOrigin {} diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index f33e2341e5..b4dedbac29 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -254,7 +254,7 @@ export class MatchOnlyTextProperty { /** * Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one * field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers. - * @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html + * @doc_id multi-fields */ fields?: Dictionary /** @@ -267,7 +267,6 @@ export class MatchOnlyTextProperty { * field, which can then be queried as a single field. */ copy_to?: Fields - copy_to?: Fields } export enum IndexOptions {