ID
编辑ID
编辑根据文档 ID 返回文档。此查询使用存储在 _id
字段中的文档 ID。
示例请求
编辑resp = client.search( query={ "ids": { "values": [ "1", "4", "100" ] } }, ) print(resp)
response = client.search( body: { query: { ids: { values: [ '1', '4', '100' ] } } } ) puts response
const response = await client.search({ query: { ids: { values: ["1", "4", "100"], }, }, }); console.log(response);
GET /_search { "query": { "ids" : { "values" : ["1", "4", "100"] } } }