productindex.yml 1.84 KB
index:
  analysis:
    tokenizer:
      simple_pinyin:
        type: pinyin
        first_letter: none
        padding_char: ''
      ngram_1_to_3:
        type: nGram
        min_gram: 1
        max_gram: 3
    char_filter:
      no_whitespace_filter:
        type: pattern_replace
        pattern: "\\s"
        replacement: ""
    filter:
      min2_length:
        min: 2
        max: 4
        type: length
      dynamic_synonym:
        type: dynamic-synonym
        synonym_expand: true
        synonym_ignore_case: true
        synonym_analyzer: ik_smart
      dynamic_synonym_rewrite:
        type: dynamic-synonym-rewrite
        synonym_expand: true
        synonym_ignore_case: true
        synonym_analyzer: ik_smart
    analyzer:
      comma_spliter:
        type: pattern
        pattern: "[,|\\s]+"
      lowercase_keyword:
        type: custom
        tokenizer: keyword
        filter:
        - lowercase
        - trim
        - unique
      lowercase_keyword_ngram:
        type: custom
        tokenizer: ngram_1_to_3
        filter:
        - lowercase
        - trim
        - unique
      pinyin_analyzer:
        type: custom
        tokenizer: simple_pinyin
        filter:
        - standard
        - word_delimiter
        - lowercase
        - trim
        - unique
      ik_complex:
        type: custom
        tokenizer: ik_smart
        filter:
        - lowercase
        - dynamic_synonym
        - trim
        - unique
      ik_complex_search:
        type: custom
        tokenizer: ik_smart
        filter:
        - lowercase
        - dynamic_synonym_rewrite
        - trim
        - unique
      no_whitespace_analyzer:
        type: custom
        tokenizer: keyword
        filter:
        - lowercase
        - trim
        - unique
        char_filter:
        - no_whitespace_filter


index.analysis.analyzer.default.type: keyword