ElasticSearch match multiple fields with different values ElasticSearch match multiple fields with different values elasticsearch elasticsearch

ElasticSearch match multiple fields with different values


As you may know elasticsearch match query returns result based on a relevance score. You can try to use term query instead of match for an exact term match. Also I guess your bool query structure must be like :

bool: {      must: [          { match: {                country_id: "1"              }},          {match: {            region_id: "2"          }},          {match: {            appellation_id: "34"          }},          {match: {            searchable: search          }}      ]    }