Skip to content

Commit

Permalink
Allow decoding IP ranges from doc values (#107376)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkts committed Apr 12, 2024
1 parent 6f17d03 commit 2bc4966
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ public BytesRef encodeRanges(Set<RangeFieldMapper.Range> ranges) throws IOExcept
}

@Override
public List<RangeFieldMapper.Range> decodeRanges(BytesRef bytes) {
// TODO: Implement this.
throw new UnsupportedOperationException();
public List<RangeFieldMapper.Range> decodeRanges(BytesRef bytes) throws IOException {
return BinaryRangeUtil.decodeIPRanges(bytes);
}

@Override
Expand Down

0 comments on commit 2bc4966

Please sign in to comment.