Say we got a large id set, then which query would be the best choice?
# ids query
{
"query": {
"bool": {
"filter": [
{
"ids" : {
"values" : ["1", "2", ....,"100000"]
}
}
]
}
}
}
# terms query
{
"query": {
"bool": {
"filter": [
{
"terms" : {
"_id" : ["1", "2", ....,"100000"]
}
}
]
}
}
}
# terms lookup query
{
"query": {
"bool": {
"filter": [
{
"terms" : {
"_id" : {
"index": "user",
"type": "user",
"id": "12345",
"path": "followers"
}
}
}
]
}
}
}