Elasticsearch 中的搜索中的两种查询
queries
aggregations
queries-常用查询
1.match query(包含关键字)(在Elasticsearch中,text字段通常适合使用Match查询,而keyword字段适合使用Term查询)
2.Ids query(id查询)
3.multi_match (多字段包含查询)
4.Prefix query(前缀查询)
5.Term query(精确的字词匹配)
6.Terms query(多个 terms 进行查询两个是或)
7.compound query(must, must_not, should 及 filter 符合查询)
8.match_phrase_prefix(后一个词被视为前缀,匹配以该词开头的任何单词)
9.wildcard (通配符查询)