Multi_match query spanning multiple analyzer fields

Hello,

I'm trying to come up with a query that will search multiple fields, using
the 'and' operator and the cross_fieds type. My goal is that a search for
"quick brown fox" will match documents where all 3 of those words are found
but not necessarily in the same field. This works fine if the field list i
give the multi_match query are all the same analyzer, although does NOT
work when some of the fields are different analyzers. I've read in the
documentation that this is because ES will group by analyzer and then do a
bool query.

Is there some other query/parameter that would allow me to do what I want
here? I'm currently not worried about the scoring and just the matching if
that makes any difference.

-Mike

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALdNed%2BXtfHSKX8QqRuA8FB8vrajW-ECxk1cGOX24nTZF%3D5%2BBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

You could use a "text_query" query type, and enable dis-max, or use the
dis_max query type; that will return the "best" documents for multiple
fields and multiple words, as you seem to describe

Anne

On Wed, Sep 24, 2014 at 10:22 PM, Mike Topper topper@gmail.com wrote:

Hello,

I'm trying to come up with a query that will search multiple fields, using
the 'and' operator and the cross_fieds type. My goal is that a search for
"quick brown fox" will match documents where all 3 of those words are found
but not necessarily in the same field. This works fine if the field list i
give the multi_match query are all the same analyzer, although does NOT
work when some of the fields are different analyzers. I've read in the
documentation that this is because ES will group by analyzer and then do a
bool query.

Is there some other query/parameter that would allow me to do what I want
here? I'm currently not worried about the scoring and just the matching if
that makes any difference.

-Mike

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CALdNed%2BXtfHSKX8QqRuA8FB8vrajW-ECxk1cGOX24nTZF%3D5%2BBg%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CALdNed%2BXtfHSKX8QqRuA8FB8vrajW-ECxk1cGOX24nTZF%3D5%2BBg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Anne Veling
BeyondTrees.com
+31 6 50 969 170
@anneveling

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAwWRiK5KWmt%2B-Wb6N8vwtZuFGAT-%2BiW_4QEWXpJPUCi4BzLLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.