Filter is not working with multi _match


(Rajamanickam Ramasamy) #1

Filter is not working for me :frowning: even though i'm having matching record with this search term, The search result shows empty hit. Can anyone please help me out.

 `GET my_index/my_type2/_search
{
"query": {
        "bool": {
            "must": {
                "multi_match": {
                    "query": "sample",
                    "fields": ["Tags"]
                }
            },
            "filter": {
                "term": {
                    "Collection":"collectionTwo"
                }
            }
        }
    }
}`

(David Pilato) #2

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

Here may be try to filter with collectiontwo instead of collectionTwo


(Rajamanickam Ramasamy) #3

Thanks @dadoonet, You already solved my issue. Its case sensitive problem only. You saved my time thanks a lot and here after i'll post my query with full recreation.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.