1
Dik1s OP 其实我是想匹配短语,用 match_phrase 即可。
但是还是不明白为什么当我在使用 regexp 的时候 想匹配 2.c 使用正则*2\.c*却匹配不到呢 |
2
dikT 2017 年 8 月 10 日
对,‘.’很麻烦
|
3
Dik1s OP |
4
fiht 2017 年 8 月 10 日
楼主搞定了麻烦贴一下解决方案...
我也有这个需求然而没有搞定..... 多谢多谢 |
5
w0000 2017 年 8 月 10 日
"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,所以是匹配不到的
|
6
zjxzhqq 2017 年 8 月 11 日 via Android
索引的时候不分词
|
7
Dik1s OP |