@@ -33,6 +33,7 @@ export type AnalyzerFeature = "frequency" | "norm" | "position" | "offset";
3333export type CreateAnalyzerOptions =
3434 | CreateIdentityAnalyzerOptions
3535 | CreateDelimiterAnalyzerOptions
36+ | CreateMultiDelimiterAnalyzerOptions
3637 | CreateStemAnalyzerOptions
3738 | CreateNormAnalyzerOptions
3839 | CreateNgramAnalyzerOptions
@@ -90,6 +91,27 @@ export type CreateDelimiterAnalyzerOptions = {
9091 properties : string | { delimiter : string } ;
9192} ;
9293
94+ /**
95+ * Options for creating a Multi-Delimiter Analyzer.
96+ */
97+ export type CreateMultiDelimiterAnalyzerOptions = {
98+ /**
99+ * Type of the Analyzer.
100+ */
101+ type : "multi_delimiter" ;
102+ /**
103+ * Features to enable for this Analyzer.
104+ */
105+ features ?: AnalyzerFeature [ ] ;
106+ /**
107+ * Additional properties for the Analyzer.
108+ *
109+ * The value will be used as delimiter to split text into tokens as specified
110+ * in RFC 4180, without starting new records on newlines.
111+ */
112+ properties : { delimiters : string [ ] } ;
113+ } ;
114+
93115/**
94116 * Options for creating a Stem Analyzer.
95117 */
@@ -632,6 +654,7 @@ export type GenericAnalyzerDescription = {
632654export type AnalyzerDescription =
633655 | IdentityAnalyzerDescription
634656 | DelimiterAnalyzerDescription
657+ | MultiDelimiterAnalyzerDescription
635658 | StemAnalyzerDescription
636659 | NormAnalyzerDescription
637660 | NgramAnalyzerDescription
@@ -664,6 +687,14 @@ export type DelimiterAnalyzerDescription = GenericAnalyzerDescription & {
664687 properties : { delimiter : string } ;
665688} ;
666689
690+ /**
691+ * An object describing a Multi Delimiter Analyzer.
692+ */
693+ export type MultiDelimiterAnalyzerDescription = GenericAnalyzerDescription & {
694+ type : "multi_delimiter" ;
695+ properties : { delimiters : string [ ] } ;
696+ } ;
697+
667698/**
668699 * An object describing a Stem Analyzer.
669700 */
0 commit comments