Skip to content

Conversation

@jimczi
Copy link
Contributor

@jimczi jimczi commented Dec 21, 2017

This change fixes a bug when a keyword term in the after key is not present in the shard.
In this case the global ord of the document values are compared with the insertion point of the
after keyword and values that are equal to the insertion point should be considered "after" the top value.

This change fixes a bug when a keyword term in the `after` key is not present in the shard.
In this case the global ord of the document values are compared with the insertion point of the
`after` keyword and values that are equal to the insertion point should be considered "after" the top value.
@jimczi jimczi changed the title Bug/composite term missing Fix composite aggregation when after term is missing in the shard Dec 21, 2017
Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Alternatively, I'm wondering whether we should multiply all ords by 2 in order to be actually able to insert ords all the time.

@jimczi jimczi added v6.1.2 and removed review labels Dec 26, 2017
@jimczi jimczi merged commit 0b2c8c8 into elastic:master Dec 26, 2017
@jimczi
Copy link
Contributor Author

jimczi commented Dec 26, 2017

Thanks @jpountz

I'm wondering whether we should multiply all ords by 2 in order to be actually able to insert ords all the time

That's also an alternative. I am in the middle of a refactoring so I'll change the logic in the mean time.

@jimczi jimczi deleted the bug/composite_term_missing branch December 26, 2017 09:00
jimczi added a commit that referenced this pull request Dec 26, 2017
…7936)

This change fixes a bug when a keyword term in the `after` key is not present in the shard.
In this case the global ord of the document values are compared with the insertion point of the
`after` keyword and values that are equal to the insertion point should be considered "after" the top value.
jimczi added a commit that referenced this pull request Dec 26, 2017
jimczi added a commit that referenced this pull request Dec 26, 2017
…7936)

This change fixes a bug when a keyword term in the `after` key is not present in the shard.
In this case the global ord of the document values are compared with the insertion point of the
`after` keyword and values that are equal to the insertion point should be considered "after" the top value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants