Filter on wildcard nested filed

Hi,

I was trying to combine multi_search query with filter on a document

{
   tilte: test
  description: test
  cities : [
      "fr": "Alger"
      "en": "Algiers"
  ]
} 

my query as :

bool: {
                must: {
                    multi_match: {
                        fields: [
                            'title^2',
                            'description^1',
                        ],
                        type: "cross_fields",
                        query: "test"
                    },
                },
                filter : {
                    "term": {
                        "cities.*": "Alger"
                    }
                }
            },

how can i filter on all fields inside cities with wildcard

thx

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