Skip to content

Commit

Permalink
add bucket adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
willronchetti committed Jul 6, 2021
1 parent 3e96e57 commit eb88fc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/encoded/search/lucene_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,8 @@ def _build_range_aggregation(cls, query_field, ranges):
if 'from' in r and 'to' in r:
if r['from'] == 0 and r['to'] == 0:
r['to'] = cls.SMALLEST_NONZERO_IEEE_32
if 'to' in r and r['to'] != cls.SMALLEST_NONZERO_IEEE_32:
r['to'] += cls.SMALLEST_NONZERO_IEEE_32
return {
RANGE: {
FIELD: query_field,
Expand Down

0 comments on commit eb88fc0

Please sign in to comment.