IDs
IDs
Returns documents based on their IDs. This query uses document IDs stored in the _id field.
Example request
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"]
}
}
}
Top-level parameters for ids
values
(Required, array of strings) An array of document IDs.
当前内容版权归 elasticsearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 elasticsearch .