Multi_match query on different fields. How to find which field matched?

Hi,

I have a multi_match query on different fields and is working fine.
Included sample query used..

"multi_match": {
"query": "name for channel",
"type": "phrase",
"fields": [
"title",
"description",
"channel"
]
}

  • This query is working fine for me.

Question - In the result set, is it possible to find out which field(s)
matched the query?

Any pointers are greatly appreciated.

regards,
Yogesh

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Take a look at Highlighting APIhttp://www.elasticsearch.org/guide/reference/api/search/highlighting/. This
is not exactly what you are looking for, but it might work for you.

On Tuesday, April 9, 2013 11:19:53 AM UTC-4, yog...@vubeology.com wrote:

Hi,

I have a multi_match query on different fields and is working fine.
Included sample query used..

"multi_match": {
"query": "name for channel",
"type": "phrase",
"fields": [
"title",
"description",
"channel"
]
}

  • This query is working fine for me.

Question - In the result set, is it possible to find out which field(s)
matched the query?

Any pointers are greatly appreciated.

regards,
Yogesh

--
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.
For more options, visit https://groups.google.com/groups/opt_out.