摘要:
GET /my_store/_search { "query" : { "constant_score" : { "filter" : { "term" : { "price" : 30 } } } } } GET /my_store/_search { "query": { "bool": { " 阅读全文
摘要:
# -*- coding: utf-8 -*- from elasticsearch import Elasticsearch # 默认host为localhost,port为9200.但也可以指定host与port es = Elasticsearch() # 插入数据,index,doc_typ 阅读全文