Elasticsearch停止单词2个字母

时间:2013-07-29 14:28:57

标签: elasticsearch stop-words

您好!

它不起作用“停止Word”

我有这样的映射:

fos_elastica:
     clients:
         default: {host: localhost, port: 9200}
     indexes:
         website:
             settings:
                 index:
                     analysis:
                         analyzer:
                             my_analyzer:
                                 language: english
                                 tokenizer: nonutf8letter
                                 filter: [standard, lowercase, asciifolding, stop, custom_stop]
                         tokenizer:
                             nonutf8letter:
                                 type: pattern
                                 pattern: '[^ \ pL \ pM \ p {Nd} \ p {Nl} \ p {Pc} [\ p {InEnclosedAlphanumerics} && \ p {So}]]'
                         filter:
                             custom_stop:
                                 type: length
                                 min: 2
                                 max: 2000
             types:
                  deals:
                      mappings:
                          id: boost {3}
                          nombreoa {analyzer: my_analyzer}
                          idareaestudio:
                             type: "nested"
                             properties:
                                 name: {type: String, index: not_analyzed}

当我搜索“a”时会给我带来一切,并希望将1或2个字母的单词排除在外。

知道我做错了吗?

0 个答案:

没有答案