我的输入是<index\u name>,<doc\u id>,<field\u name>,我想要字段的值我正在寻找python客户端的等效
GET <index_name>/_doc/<doc_id>/?_source_includes=<field_name>
jk9hmnmh1#
我想出来了
from elasticsearch import Elasticsearch es = Elasticsearch() result = es.get( index=<index_name>, id=<doc_id>, _source_includes=<field_name> )
1条答案
按热度按时间jk9hmnmh1#
我想出来了