您可以尝试使用映射字符过滤器删除连字符:
http://www.elasticsearch.org/guide/zh-
CN/elasticsearch/reference/current/analysis-mapping-
charfilter.html
像这样会删除连字符:
{ "index" : { "analysis" : { "char_filter" : { "my_mapping" : { "type" : "mapping", "mappings" : ["-=>"] } }, "analyzer" : { "custom_with_char_filter" : { "tokenizer" : "standard", "char_filter" : ["my_mapping"] } } } }}这是一种钝器,因为它会去除所有的连字符,但应使“ T恤”和“ T恤”匹配



