
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恤”匹配
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)