I register 2 queries in the percolator:
{
"query": {
"query_string": {
"query": "en",
"fields": ["language"]
}
}
}
and
{
"query": {
"query_string": {
"query": "foo",
"fields": ["body.*"]
}
}
}
where "body" contains 2 inner fields "en" and "fr".
however when i try to match below document to the registered percolator queries, only first query is returned, second one not.
{
"query" : {
"percolate" : {
"field" : "query",
"document_type" : "doctype",
"document" : {
"body" : {"en" : "foo"},
"language" : "en",
}
}
}
}
What could be the reason? (i tried index this document and query with both queries, both of them return the doc.)
Thansk for the help,
Toan.