We're updating the issue view to help you get more done. 

TermQuery should be translated to term query not match query

Description

At the moment, Lucene TermQuery is translated to a match query in Elasticsearch. This is wrong and we should use a term query instead.

Note that it has its importance in filtering as the term query is also a filter but not the match query. You can't use the _cache parameter with a match query.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Minor