Is there something like a highlight payload?

In my mapping I have an array with objects of comments.

"comments": {
"properties": {
"text": {
"type": "string"
},
"autor": {
"type": "string"
}
}
}

When I now search for comment texts I would like to also get the matching
autor. Is there a way to include the autor in the highlight array?

...
"highlight": {
"comments.text": [
"this is a test"
]
}
...

--
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.

Not really, you'd need to index every comment as a separate document
yourself. Then each hit would be a comment, and for each comment you get
the highlighted snippet as well.

On Tuesday, November 5, 2013 12:48:59 PM UTC+1, joa wrote:

In my mapping I have an array with objects of comments.

"comments": {
"properties": {
"text": {
"type": "string"
},
"autor": {
"type": "string"
}
}
}

When I now search for comment texts I would like to also get the matching
autor. Is there a way to include the autor in the highlight array?

...
"highlight": {
"comments.text": [
"this is a test"
]
}
...

--
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.

Thanks Luca. Considering I am using a parent/child mapping with the
comments as child. Is it possible to get both - parent with embeded
comments and highlighting - with one search request?

--
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.

I don't think so. At this time with parent-child it's only possible to get
back one of the two, either parent or children. I guess you need two
requests here....

On Tue, Nov 5, 2013 at 2:41 PM, joa joafeldmann@gmail.com wrote:

Thanks Luca. Considering I am using a parent/child mapping with the
comments as child. Is it possible to get both - parent with embeded
comments and highlighting - with one search request?

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/teElBO1Ri0s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.

Is a highlight payload technical possible at all? I mean, could it be a
feature request? Or will there be other solutions for problems like this
anytime?
Thanks

--
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.