Skip to content

Commit b1d3671

Browse files
committed
index create fixes
1 parent 09ebf27 commit b1d3671

File tree

8 files changed

+73
-40
lines changed

8 files changed

+73
-40
lines changed

specification/_types/analysis/icu-plugin.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ export class IcuFoldingTokenFilter extends TokenFilterBase {
5252
export class IcuCollationTokenFilter extends TokenFilterBase {
5353
type: 'icu_collation'
5454
alternate?: IcuCollationAlternate
55-
case_first?: IcuCollationCaseFirst
56-
case_level?: boolean
55+
caseFirst?: IcuCollationCaseFirst
56+
caseLevel?: boolean
5757
country?: string
5858
decomposition?: IcuCollationDecomposition
59-
hiragana_quaternary_mode?: boolean
59+
hiraganaQuaternaryMode?: boolean
6060
language?: string
6161
numeric?: boolean
6262
rules?: string
6363
strength?: IcuCollationStrength
64-
variable_top?: string
64+
variableTop?: string
6565
variant?: string
6666
}
6767

specification/_types/analysis/token_filters.ts

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export class HunspellTokenFilter extends TokenFilterBase {
274274
dictionary?: string
275275
/** Locale directory used to specify the `.aff` and `.dic` files for a Hunspell dictionary.
276276
* @aliases lang, language */
277-
locale: string
277+
locale?: string
278278
/** If `true`, only the longest stemmed version of each token is included in the output. If `false`, all stemmed versions of the token are included. Defaults to `false`. */
279279
longest_only?: boolean
280280
}
@@ -383,6 +383,7 @@ export class PatternReplaceTokenFilter extends TokenFilterBase {
383383
type: 'pattern_replace'
384384
/** If `true`, all substrings matching the pattern parameter’s regular expression are replaced. If `false`, the filter replaces only the first matching substring in each token. Defaults to `true`. */
385385
all?: boolean
386+
flags?: string
386387
/** Regular expression, written in Java’s regular expression syntax. The filter replaces token substrings matching this pattern with the substring in the `replacement` parameter. */
387388
pattern: string
388389
/** Replacement substring. Defaults to an empty substring (`""`). */
@@ -486,6 +487,14 @@ export class FlattenGraphTokenFilter extends TokenFilterBase {
486487
type: 'flatten_graph'
487488
}
488489

490+
export class BengaliNormalizationTokenFilter extends TokenFilterBase {
491+
type: 'bengali_normalization'
492+
}
493+
494+
export class BrazilianNormalizationTokenFilter extends TokenFilterBase {
495+
type: 'brazilian_stem'
496+
}
497+
489498
export class GermanNormalizationTokenFilter extends TokenFilterBase {
490499
type: 'german_normalization'
491500
}
@@ -535,6 +544,30 @@ export class SoraniNormalizationTokenFilter extends TokenFilterBase {
535544
type: 'sorani_normalization'
536545
}
537546

547+
export class ArabicStemTokenFilter extends TokenFilterBase {
548+
type: 'arabic_stem'
549+
}
550+
551+
export class CzechStemTokenFilter extends TokenFilterBase {
552+
type: 'czech_stem'
553+
}
554+
555+
export class FrenchStemTokenFilter extends TokenFilterBase {
556+
type: 'french_stem'
557+
}
558+
559+
export class DutchStemTokenFilter extends TokenFilterBase {
560+
type: 'dutch_stem'
561+
}
562+
563+
export class GermanStemTokenFilter extends TokenFilterBase {
564+
type: 'german_stem'
565+
}
566+
567+
export class RussianStemTokenFilter extends TokenFilterBase {
568+
type: 'russian_stem'
569+
}
570+
538571
/**
539572
* @codegen_names name, definition
540573
* @ext_doc_id analysis-tokenfilters
@@ -548,20 +581,27 @@ export type TokenFilter = string | TokenFilterDefinition
548581
*/
549582
export type TokenFilterDefinition =
550583
| ApostropheTokenFilter
584+
| ArabicStemTokenFilter
551585
| ArabicNormalizationTokenFilter
552586
| AsciiFoldingTokenFilter
587+
| BengaliNormalizationTokenFilter
588+
| BrazilianNormalizationTokenFilter
553589
| CjkBigramTokenFilter
554590
| CjkWidthTokenFilter
555591
| ClassicTokenFilter
556592
| CommonGramsTokenFilter
557593
| ConditionTokenFilter
594+
| CzechStemTokenFilter
558595
| DecimalDigitTokenFilter
559596
| DelimitedPayloadTokenFilter
597+
| DutchStemTokenFilter
560598
| EdgeNGramTokenFilter
561599
| ElisionTokenFilter
562600
| FingerprintTokenFilter
563601
| FlattenGraphTokenFilter
602+
| FrenchStemTokenFilter
564603
| GermanNormalizationTokenFilter
604+
| GermanStemTokenFilter
565605
| HindiNormalizationTokenFilter
566606
| HunspellTokenFilter
567607
| HyphenationDecompounderTokenFilter
@@ -585,6 +625,7 @@ export type TokenFilterDefinition =
585625
| PredicateTokenFilter
586626
| RemoveDuplicatesTokenFilter
587627
| ReverseTokenFilter
628+
| RussianStemTokenFilter
588629
| ScandinavianFoldingTokenFilter
589630
| ScandinavianNormalizationTokenFilter
590631
| SerbianNormalizationTokenFilter

specification/_types/analysis/tokenizers.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ export class EdgeNGramTokenizer extends TokenizerBase {
5050
custom_token_chars?: string
5151
max_gram?: integer
5252
min_gram?: integer
53-
/**
54-
* @server_default []
55-
*/
56-
token_chars?: TokenChar[]
53+
token_chars?: string | TokenChar[]
5754
}
5855

5956
export enum TokenChar {

specification/_types/mapping/Property.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import {
5959
PercolatorProperty,
6060
RankFeatureProperty,
6161
RankFeaturesProperty,
62+
RankVectorProperty,
6263
ScaledFloatNumberProperty,
6364
SearchAsYouTypeProperty,
6465
SemanticTextProperty,
@@ -147,6 +148,7 @@ export type Property =
147148
| NestedProperty
148149
| ObjectProperty
149150
| PassthroughObjectProperty
151+
| RankVectorProperty
150152
| SemanticTextProperty
151153
| SparseVectorProperty
152154

specification/_types/mapping/complex.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export class FlattenedProperty extends PropertyBase {
3333
null_value?: string
3434
similarity?: string
3535
split_queries_on_whitespace?: boolean
36+
time_series_dimensions?: string[]
3637
type: 'flattened'
3738
}
3839

@@ -59,6 +60,7 @@ export class PassthroughObjectProperty extends CorePropertyBase {
5960
export class AggregateMetricDoubleProperty extends PropertyBase {
6061
type: 'aggregate_metric_double'
6162
default_metric: string
63+
ignore_malformed?: boolean
6264
metrics: string[]
6365
time_series_metric?: TimeSeriesMetricType
6466
}

specification/_types/mapping/core.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,14 @@ export class RankFeaturesProperty extends PropertyBase {
213213
type: 'rank_features'
214214
}
215215

216+
export class RankVectorProperty extends PropertyBase {
217+
type: 'rank_vectors'
218+
element_type?: RankVectorElementType
219+
dims?: integer
220+
}
221+
216222
export class SparseVectorProperty extends PropertyBase {
223+
store?: boolean
217224
type: 'sparse_vector'
218225
}
219226

@@ -364,3 +371,9 @@ export class DynamicProperty extends DocValuesPropertyBase {
364371
precision_step?: integer
365372
locale?: string
366373
}
374+
375+
export enum RankVectorElementType {
376+
byte,
377+
float,
378+
bit
379+
}

specification/_types/mapping/geo.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ export class GeoPointProperty extends DocValuesPropertyBase {
2929
on_script_error?: OnScriptError
3030
script?: Script
3131
type: 'geo_point'
32+
time_series_metric?: GeoPointMetricType
33+
}
34+
35+
export enum GeoPointMetricType {
36+
gauge,
37+
counter,
38+
position
3239
}
3340

3441
export enum GeoOrientation {

specification/indices/_types/IndexSettings.ts

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -534,44 +534,15 @@ export class SlowlogTresholdLevels {
534534
}
535535

536536
export class Storage {
537-
type: StorageType
538537
/**
539538
* You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap.
540539
* This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This
541540
* setting is useful, for example, if you are in an environment where you can not control the ability to create a lot
542541
* of memory maps so you need disable the ability to use memory-mapping.
543542
*/
544543
allow_mmap?: boolean
545-
}
546-
547-
/**
548-
* @non_exhaustive
549-
*/
550-
export enum StorageType {
551-
/**
552-
* Default file system implementation. This will pick the best implementation depending on the operating environment, which
553-
* is currently hybridfs on all supported systems but is subject to change.
554-
*/
555-
fs,
556-
/**
557-
* The NIO FS type stores the shard index on the file system (maps to Lucene NIOFSDirectory) using NIO. It allows multiple
558-
* threads to read from the same file concurrently. It is not recommended on Windows because of a bug in the SUN Java
559-
* implementation and disables some optimizations for heap memory usage.
560-
*/
561-
niofs,
562-
/**
563-
* The MMap FS type stores the shard index on the file system (maps to Lucene MMapDirectory) by mapping a file into
564-
* memory (mmap). Memory mapping uses up a portion of the virtual memory address space in your process equal to the size
565-
* of the file being mapped. Before using this class, be sure you have allowed plenty of virtual address space.
566-
*/
567-
mmapfs,
568-
/**
569-
* The hybridfs type is a hybrid of niofs and mmapfs, which chooses the best file system type for each type of file
570-
* based on the read access pattern. Currently only the Lucene term dictionary, norms and doc values files are memory
571-
* mapped. All other files are opened using Lucene NIOFSDirectory. Similarly to mmapfs be sure you have allowed
572-
* plenty of virtual address space.
573-
*/
574-
hybridfs
544+
/** How often store statistics are refreshed */
545+
stats_refresh_interval?: Duration
575546
}
576547

577548
export class IndexingPressure {

0 commit comments

Comments
 (0)