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
Copy file name to clipboardExpand all lines: specification/_types/analysis/token_filters.ts
+42-1Lines changed: 42 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -274,7 +274,7 @@ export class HunspellTokenFilter extends TokenFilterBase {
274
274
dictionary?: string
275
275
/** Locale directory used to specify the `.aff` and `.dic` files for a Hunspell dictionary.
276
276
* @aliases lang, language */
277
-
locale: string
277
+
locale?: string
278
278
/** 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`. */
279
279
longest_only?: boolean
280
280
}
@@ -383,6 +383,7 @@ export class PatternReplaceTokenFilter extends TokenFilterBase {
383
383
type: 'pattern_replace'
384
384
/** 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`. */
385
385
all?: boolean
386
+
flags?: string
386
387
/** Regular expression, written in Java’s regular expression syntax. The filter replaces token substrings matching this pattern with the substring in the `replacement` parameter. */
387
388
pattern: string
388
389
/** Replacement substring. Defaults to an empty substring (`""`). */
@@ -486,6 +487,14 @@ export class FlattenGraphTokenFilter extends TokenFilterBase {
0 commit comments