How can i request document with nested field ?
My mapping :
{ "pi_idxtickets": { "mappings": { "ticket": { "properties": { "providers": { "type": "nested", "properties": { "name": { "type": "string" }, "uid": { "type": "string", "index": "not_analyzed" } } } } } } } }
My request :
{ "from" : 0, "size" : 100, "query" : { "filtered" : { "query" : { "bool" : { "must" : { "terms" : { "providers.uid" : [ "24e2e58c-109f-857f-aaa6-378b7eb26092" ] } } } }, "filter" : { "bool" : { "must" : { "match_all" : { } } } } } }
But that don't works. Any idea ? Thx.