apache / apache/lucene

Add ability to pass DataAccess hit with Lucene104ScalarQuantizedVectorsReader

Open
#15,890 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

## Description
Similar to [Lucene99FlatVectorsReader](https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99FlatVectorsReader.java#L69-L72), we should add the ability to pass DataAccess hint for [Lucene104ScalarQuantizedVectorsReader](https://github.com/apache/lucene/blob/5af15dc4be5b3a5089f1c02e6f11122165d82939/lucene/core/src/java/org/apache/lucene/codecs/lucene104/Lucene104ScalarQuantizedVectorsReader.java#L77-L121). Because a ScalerQuantized VectorReader can be used for both sequential based search and for HNSW too.

Contributor guide

Open the contributing guide

Research direction

Start by comparing Lucene104ScalarQuantizedVectorsReader.java with the DataAccess handling in Lucene99FlatVectorsReader.java, using the linked sections as entry points. Trace how the scalar-quantized reader supports sequential search and HNSW, then add the requested DataAccess hint support and verify both usage paths preserve the intended access behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.