|
1
其实我是想匹配短语,用 match_phrase 即可。
但是还是不明白为什么当我在使用 regexp 的时候 想匹配 2.c 使用正则*2\.c*却匹配不到呢 |
|
dikTAug 10, 2017
2
对,‘.’很麻烦
|
|
3
|
|
fihtAug 10, 2017
4
楼主搞定了麻烦贴一下解决方案...
我也有这个需求然而没有搞定..... 多谢多谢 |
|
w0000Aug 10, 2017
5
"Elasticsearch will apply the regexp to the terms produced by the tokenizer for that field, and not to the original text of the field", es 的正则匹配的是被分词器分词后的 term,不知道你用的啥分词器,反正我用默认分词器把 360.cn 分词之后变成了 360 和 cn,所以是匹配不到的
|
|
zjxzhqqAug 11, 2017 via Android
6
索引的时候不分词
|