WRONG QUESTION Filtered query with not indexed field


#1

Hi guys,

I'd like to create a multi_match query with filter but my filter is not working. I'm trying to apply the filter on a field which is not indexed/analyzed:

POST http://localhost:9200/myindex/_search
{ "query" :
{
"filtered": {
"query": {
"multi_match": {
"query": "MYTERM",
"type": "most_fields",
"fields": [ "field1", "field2", "field3" ]
}
},
"filter" : {
"range" : {
"notindexedfield" : {
"gte" : 1
}
}
}
}
}
}

why this not working? It returns with 0 hits but I know that there must be match.


(system) #2