随笔分类 - Elasticsearch
摘要:{ "query": { "bool": { "must": [{ "match_phrase": { "type_id": 123 } }], "should": [{ "match_phrase": { "title": "常德" } }, { "match_phrase": { "conten
阅读全文
摘要:http://127.0.0.1:9200/aaaaaa/_search{ "from": 0, "size": 0, "aggs": { "my":{ "terms":{ "field": "id" } } } }
阅读全文
摘要:其中的条件类似于mysql的where cate_id=keyword or content=keyword = '常德学院'; url = 'http://127.0.0.1/aaaaaaa/_sea
阅读全文
摘要:bool query 一种复合查询,把其余类型的查询包裹进来。支持以下三种逻辑关系。 must: AND must_not:NOT should:OR
阅读全文