MatchQueryBuilder: Don't use deprecated "match" query
Before this fix, warnings such as [1] used to be present in the
Elasticsearch V5 logs. Elasticsearch V2 did/does not show them.
Properly factor the match phrase queries (both plain and prefix ones),
fitting the way to prepare them as per Elasticsearch V5 documentation.
Doing this way happens to also be supported by Elasticsearch V2, so no
version-based api usage switching required here (in this specific case).
[1] "Deprecated field [type] used, replaced by [match_phrase and
match_phrase_prefix query]".
Bug: Issue 6094
Change-Id: I2b970c426b425957634981c9f4de0cc5cd474d03
2 files changed