Highlighting on nested documents if include_in_parent is set to true?

Hi,

If I understand it correctly highlighting on nested documents is not
possible if nested query is used. Even if include_in_parent/root is
enabled. Would it be possible to implement on the ES side such feature that
if include_in_parent/root is enabled and nested query is used then
highlighting on nested document fields would work out of the box? Can not
ES just use nested query to highlight on nested fields that are present in
parent?

My naive understanding is that this should be possible (ES has all the
information during execution of the query), no?

Shall I open a ticket?

Regards,
Lukas

--

+1 for this.

On Wednesday, August 15, 2012 2:23:45 PM UTC+3, Lukáš Vlček wrote:

Hi,

If I understand it correctly highlighting on nested documents is not
possible if nested query is used. Even if include_in_parent/root is
enabled. Would it be possible to implement on the ES side such feature that
if include_in_parent/root is enabled and nested query is used then
highlighting on nested document fields would work out of the box? Can not
ES just use nested query to highlight on nested fields that are present in
parent?

My naive understanding is that this should be possible (ES has all the
information during execution of the query), no?

Shall I open a ticket?

Regards,
Lukas

--

I have also talked this the same to Shay on several occasions.

His explanation was that this would take a good amount of memory as there
can be a large number of children.
And it looks genuine to me as adding this feature will violate the basic
concept of processing only N number of feeds at a time.
Instead say a parent have 10,000 children , though we are dealing with 10
parent (assuming size is 10) at a time , in reality we would be dealing
with processing one lakh document at a time.

Searching wont be a problem as it only deals with the index and not the
actual stored feed.

Thanks
Vineeth

On Sun, Nov 18, 2012 at 3:38 AM, Zaar Hai haizaar@gmail.com wrote:

+1 for this.

On Wednesday, August 15, 2012 2:23:45 PM UTC+3, Lukáš Vlček wrote:

Hi,

If I understand it correctly highlighting on nested documents is not
possible if nested query is used. Even if include_in_parent/root is
enabled. Would it be possible to implement on the ES side such feature that
if include_in_parent/root is enabled and nested query is used then
highlighting on nested document fields would work out of the box? Can not
ES just use nested query to highlight on nested fields that are present in
parent?

My naive understanding is that this should be possible (ES has all the
information during execution of the query), no?

Shall I open a ticket?

Regards,
Lukas

--

--