apache / apache/lucene

SortedVIntList should be Serializable [LUCENE-2697]

Open
#3,771 2 comments 0 reactions 0 assignees View on GitHub
affects-version:3.0.3 legacy-jira-priority:Major module:core/search type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

For some memory intensive searchers we have, it is important to temporarily store the created bitsets to disk
SortedVIntList does not implement Serializable: since it could be easily serialized due to the raw data it contains, it should implement it

We are currently working with a custom SerializableSortedVIntList: we've just copied the code and added Serializable but we would definitely like to stick on lucene official code rather than such customizations

Hope you will accept the proposal

---
Migrated from [LUCENE-2697](https://issues.apache.org/jira/browse/LUCENE-2697) by Federico Fissore, 1 vote, updated Aug 10 2011

Contributor guide

Open the contributing guide

Research direction

Start by locating the SortedVIntList class and reading how its raw data is stored and exposed. Check nearby tests or serialization patterns in the project, then make the class serializable so instances can be stored and restored for disk-backed use; done means the official class supports that round trip.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.