Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
New, Patch Available
Description
currently Field/Fieldable interface supports only compact, zero based byte arrays. This forces end users to create and copy content of new objects before passing them to Lucene as such fields are often of variable size. Depending on use case, this can bring far from negligible performance improvement.
this approach extends Fieldable interface with 3 new methods
getOffset(); gettLenght(); and getBinaryValue() (this only returns reference to the array)
Attachments
Attachments
Issue Links
- is blocked by
-
LUCENE-1349 Mark Fieldable as allowing some changes in 2.x future releases
- Resolved
-
LUCENE-1217 use isBinary cached variable instead of instanceof in Field
- Resolved