Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented May 29, 2020

This merges the global-ordinals-based implementation for
significant_terms into the global-ordinals-based implementation of
terms, removing a bunch of copy and pasted code that is subtly
different across the two implementations and replacing it with an
explicit ResultStrategy with nice stuff like Javadoc.

The actual behavior is mostly unchanged, though I was able to remove a
redundant copy of bytes representing the string from the result
construction phase of significant_terms.

This merges the global-ordinals-based implementation for
`significant_terms` into the global-ordinals-based implementation of
`terms`, removing a bunch of copy and pasted code that is subtly
different across the two implementations and replacing it with an
explicit `ResultStrategy` with nice stuff like Javadoc.

The actual behavior is mostly unchanged, though I was able to remove a
redundant copy of bytes representing the string from the result
construction phase of `significant_terms`.
@nik9000 nik9000 changed the title Fold some of sig_terms into terms (#57361) Fold some of sig_terms into terms (backport of #57361) May 29, 2020
@nik9000
Copy link
Member Author

nik9000 commented May 29, 2020

@elasticmachine update branch

@nik9000 nik9000 merged commit d6a3704 into elastic:7.x May 30, 2020
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.

2 participants