when I use below query, no result return:
{
"query" : {
"term" : {
"id" : {
"value" : "abcdef",
"boost" : 1.0
}
}
},
"ext" : { }
}
but when I use ids query, the return result is fine:
{
"query": {
"ids" : {
"type" : "trip",
"values" : ["abcdef"]
}
}
}
My questions are: term query can't not apply to "id" field? Must I use ids query? Is there a better way to search an id in multiple indices?