forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use the original from/to values when creating the bucket (e…
…lastic#83262) The range bucket values should always be set to the original `from` and `to` values. These values are the ones used by the serialisation logic and are the values the client expects in the response. Also, the key for a Range is made optional, avoiding unnecessary serialisation and deserialisation and the actual key generation happens only if required (calling 'getKey' or 'getKeyAsString' directly or at key serialisation time). A Range does not actually need a key to accomplish its purpose ('from' and 'to' are the only required parameters), other than propagating a user-specified key for the bucket collecting documents for that range.
- Loading branch information
1 parent
035fdd8
commit a03cd92
Showing
13 changed files
with
102 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.