I have index1 and index2. Running below query against Index1 where i point to index2. In indexs those fields created with stored option. Please help on this query.
POST /Index1/_search
{
"query": {
"bool": {
"filter": [
{
"terms" : {
"PID" : {
"index" : "Index2",
"type" : "_doc",
"id" : "1123",
"path" : "field1",
"stored": true
}
}
}
]
}
}
}
ERROR: :{"type":"x_content_parse_exception","reason":"[12:17] [terms_lookup] unknown field [stored]"}