OpenSearch/core
Jim Ferenczi 69f35aa07f Fix cross_fields type on multi_match query with synonyms (#21638)
* Fix cross_fields type on multi_match query with synonyms

This change fixes the cross_fields type of the multi_match query when synonyms are involved.
Since 2.x the Lucene query parser creates SynonymQuery for words that appear at the same position.
For simple term query the CrossFieldsQueryBuilder expands the term to all requested fields and creates a BlendedTermQuery.
This change adds the same mechanism for SynonymQuery which otherwise are not expanded to all requested fields.
As a side note I wonder if we should not replace the BlendedTermQuery with the SynonymQuery. They have the same purpose and behave similarly.

Fixes #21633

* Fallback to SynonymQuery for blended terms on a single field
2016-11-28 14:14:01 +01:00
..
licenses Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
src Fix cross_fields type on multi_match query with synonyms (#21638) 2016-11-28 14:14:01 +01:00
build.gradle Update Joda Time to version 2.9.5 (#21468) 2016-11-10 17:32:46 +01:00