赞
踩
curl -XGET http://4***7:8710/**索引表**st/_doc/15***_id值**sr?pretty
from elasticsearch import Elasticsearch
import requests
es = Elasticsearch([{"host": "*****27", "port": 8710}])
query_json ={
"query":{"match":{
"_id": "15***1zk5gwsr"
}
}}
query = es.search(index='****um_test', body=query_json, size=10)
query
参考:https://blog.csdn.net/lengchanguo/article/details/78727910
https://blog.csdn.net/andy_only/article/details/118548197
POST test_match/_update/1
{
"script": {
"source": "ctx._source.tags.add(params.tag)",
"lang": "painless",
"params": {
"tag":"blue"
}
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。