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