DocValues getInt() returns long, getFloat() returns double [LUCENE-3862]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
I think this is a bit confusing: especially for the case of something like norms
where its really an 8 bit byte, a long is confusing.
i think we should have the usual getFloat/getDouble/getInt/getShort/getByte instead?
---
Migrated from [LUCENE-3862](https://issues.apache.org/jira/browse/LUCENE-3862) by Robert Muir (@rmuir), updated May 05 2012
Linked issues:
- #4265
- #5106
Contributor guide
Research direction
Start by locating the DocValues API declarations and the callers for getInt() and getFloat(), then inspect how norms use them. Review linked issues #4265 and #5106 before deciding the compatible scope; done should mean the requested typed accessors and their affected callers are consistently handled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100