apache / apache/lucene

DirectDocValueFormat: use RandomAccessSlice instead of loading giant byte[] arrays [LUCENE-10336]

Open
#11,372 2 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Minor type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Use RandomAccessSlice instead of loading giant byte[] arrays and make DirectDocValueFormat more reasonable.

---
Migrated from [LUCENE-10336](https://issues.apache.org/jira/browse/LUCENE-10336) by spike liu, updated Jan 21 2022
Attachments: [LUCENE-10336-20220121.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-10336/LUCENE-10336-20220121.patch)
Linked issues:
- #11287

Contributor guide

Open the contributing guide

Research direction

Start by locating DirectDocValueFormat and reviewing the attached LUCENE-10336-20220121.patch, then inspect how it currently loads byte[] arrays. The work is done when it uses RandomAccessSlice instead of loading giant byte arrays and DirectDocValueFormat has been made more reasonable; the issue names no tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.