ES(elasticsearch) query DSL 查询语法
"query_string": { "default_field": "name", "query": "被检索的字符串" } "term": { "name": "被检索的字符串" } "terms": { "name": [ "被检索的字符串1", "被检索的字符串2" ] } "multi_match": { "query": "被检索的字符串", "fields": [ "name", "city" ] } "match": { "name": "name 是字段名,这段话是要检索的文本" } "match_phrase": { "name": "完整匹配" } "range": { "age": { "gte": 10, "lte": 20 } } "bool": { "must_not": { "term": { "name": { "value": "被检索的字符串" } } }, "filter": { "exists": { "field": "被检查的字段名" } } }
相关推荐
newbornzhao 2020-09-14
做对一件事很重要 2020-09-07
renjinlong 2020-09-03
明瞳 2020-08-19
李玉志 2020-08-19
mengyue 2020-08-07
molong0 2020-08-06
AFei00 2020-08-03
molong0 2020-08-03
wenwentana 2020-08-03
YYDU 2020-08-03
另外一部分,则需要先做聚类、分类处理,将聚合出的分类结果存入ES集群的聚类索引中。数据处理层的聚合结果存入ES中的指定索引,同时将每个聚合主题相关的数据存入每个document下面的某个field下。
sifeimeng 2020-08-03
心丨悦 2020-08-03
liangwenrong 2020-07-31
sifeimeng 2020-08-01
mengyue 2020-07-30
tigercn 2020-07-29
IceStreamLab 2020-07-29