美文网首页
ElasticSearch term query vs quer

ElasticSearch term query vs quer

作者: siyongshuai | 来源:发表于2018-02-08 09:35 被阅读0次

Why doesn’t the term query match my document?

String fields can be analyzed (treated as full text, like the body of an email), or not_analyzed (treated as exact values, like an email address or a zip code). Exact values (like numbers, dates, and not_analyzed strings) have the exact value specified in the field added to the inverted index in order to make them searchable.

By default, however, string fields are analyzed. This means that their values are first passed through an analyzer to produce a list of terms, which are then added to the inverted index.

There are many ways to analyze text: the default standard analyzer drops most punctuation, breaks up text into individual words, and lower cases them. For instance, the standard analyzer would turn the string “Quick Brown Fox!” into the terms [quick, brown, fox].

Term Query

相关文章

网友评论

      本文标题:ElasticSearch term query vs quer

      本文链接:https://www.haomeiwen.com/subject/geizzxtx.html