The term query looks for the exact term in the field’s inverted index — it doesn’t know anything about the field’s analyzer.
term查询没有Analyze过程,所以不管filed是不是text类型,没有什么区别。
Surprisingly, this approach also indexed numbers as if they were textual tokens (the inverted index), but it did so at multiple precision levels for each indexed number, so that entire ranges of numbers were indexed as a single token.
2 个回复
bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127
赞同来自:
hapjin
赞同来自:
term查询没有Analyze过程,所以不管filed是不是text类型,没有什么区别。
数字貌似在Lucene底层也是 textual tokens。