Skip to content

Commit

Permalink
Add Stringified marker to Tokenizer and TokenFilter properties (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd authored Aug 15, 2023
1 parent 760a4fc commit ab9b196
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion specification/_types/analysis/token_filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class ElisionTokenFilter extends TokenFilterBase {
type: 'elision'
articles?: string[]
articles_path?: string
articles_case?: boolean
articles_case?: Stringified<boolean>
}

export class FingerprintTokenFilter extends TokenFilterBase {
Expand Down
7 changes: 4 additions & 3 deletions specification/_types/analysis/tokenizers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { integer } from '@_types/Numeric'
import { IcuTokenizer } from './icu-plugin'
import { KuromojiTokenizer } from './kuromoji-plugin'
import { TokenFilterDefinition } from '@_types/analysis/token_filters'
import { Stringified } from '@spec_utils/Stringified'

export class TokenizerBase {
version?: VersionString
Expand Down Expand Up @@ -87,11 +88,11 @@ export class NoriTokenizer extends TokenizerBase {

export class PathHierarchyTokenizer extends TokenizerBase {
type: 'path_hierarchy'
buffer_size: integer
buffer_size: Stringified<integer>
delimiter: string
replacement: string
reverse: boolean
skip: integer
reverse: Stringified<boolean>
skip: Stringified<integer>
}

export class PatternTokenizer extends TokenizerBase {
Expand Down

0 comments on commit ab9b196

Please sign in to comment.