Hi Goutham,

Thank you for this proposal and welcome to the Apache Geode community.

A design discussion on the list, a stacked PR series with a suggested
review order, and clear open questions for the community make it easy
for others to engage with your work. We appreciate the time and care
you have put into this.

To the dev community: I would like to encourage everyone to take part
in this discussion. Goutham has asked three specific questions about
API shape, upgrade and compatibility constraints, and JIRA tracking,
and the draft PRs are open for early feedback. If you have experience
with geode-lucene, serialization, gfsh, or cluster configuration, your
review and perspective would be especially valuable. Even a short
reply on one of the open questions helps move this forward.

Contributions like this are how the project grows, and how we respond
to a new contributor matters. Let's give this proposal the attention
it deserves and work through it together on the list.

Goutham, thank you again. We look forward to collaborating with you.

Best regards,
Jinwoo Hwang (he/him/his)

Research and Development, SAS® Institute Inc.
https://JinwooHwang.com<https://jinwoohwang.com/>

________________________________
From: Goutham Reddy Aenugu <[email protected]>
Date: Wednesday, November 25, 2026 at 4:07 AM
To: [email protected] <[email protected]>
Subject: [DISCUSS] Native HNSW Vector Indexing and Distributed Hybrid Search in 
geode-lucene for Geode 2.1

Hi Apache Geode community,

I'm Goutham Reddy Aenugu (GitHub: gouthamaenugu). With develop on
2.1.0 and bundling Apache Lucene 9.12.3, I'd like to open a design
discussion on adding native HNSW vector indexing and distributed
hybrid k-NN search to geode-lucene (with zero new external
dependencies).

Today geode-lucene indexes lexical text and scalar fields per
partitioned bucket via LuceneService and gfsh search lucene, so
workloads needing semantic retrieval or low-latency embedding search
alongside partitioned regions have to maintain a separate vector
store. Exposing Lucene 9.12.3's KnnFloatVectorField and HNSW graph
indexing inside geode-lucene lets embeddings live directly alongside
operational region entries under Geode's existing partitioning,
redundancy, and persistence model.

1. Proposed Public API Shape
----------------------------
- VectorIndexMetadata (org.apache.geode.cache.lucene): immutable
descriptor capturing fieldName, dimension, VectorSimilarityFunction
(COSINE, DOT_PRODUCT, EUCLIDEAN), HNSW parameters (maxConnections M,
beamWidth efConstruction), and optional 8-bit scalar quantization
(quantizeSQ8).
- LuceneIndexFactory & LuceneIndex: default fluent methods
addVectorField(...) on LuceneIndexFactory and default
getVectorFields() on LuceneIndex, plus zero-copy vector extraction
from PdxInstance (via PdxInstance.getField without calling
getObject()) and POJOs across the built-in Lucene serializers.
- gfsh & Cluster Configuration: extend existing create/describe/search
lucene commands and cluster configuration XML persistence with
optional vector parameters, keeping lexical-only commands and XML
backward-compatible.

2. Serialization & Wire Compatibility Impact
--------------------------------------------
- Existing lexical-only indexes remain completely unchanged: all new
interface methods are declared default, legacy LuceneRegionListener
delegation is preserved, and non-vector indexes keep the default
Lucene IndexWriterConfig and merge policy untouched.
- Rolling-upgrade wire compatibility: LuceneIndexCreationProfile adds
versioned toDataPre_GEODE_2_1_0_0 / fromDataPre_GEODE_2_1_0_0
serialization hooks and updates sanctionedDataSerializables.txt.
- ObjectInputFilter safety: VectorIndexMetadata serializes
similarityFunctionName as a String (rather than the third-party Lucene
enum) and is registered in sanctioned-geode-lucene-serializables.txt.

3. Stacked Draft PR Series & Review Order
-----------------------------------------
To keep reviews modular, I opened four draft PRs for early feedback
and CI signal (recommended review order):

1. PR #8154 (PR 1 - base layer, start here):
   
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fgeode%2Fpull%2F8154&data=05%7C02%7CJinwoo.Hwang%40sas.com%7C57f3d5ecc1e545735fe308df4ad3899b%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C639311944588439540%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=y%2Fswt9pnrqFaop%2FqU3FPGm6aGbAkzDX8p%2BlvVSzZpJI%3D&reserved=0<https://github.com/apache/geode/pull/8154>
   KnnFloatVectorField indexing, optional SQ8 codec
(Lucene99HnswScalarQuantizedVectorsFormat), zero-copy PDX/POJO vector
mapping, cluster profile validation, and vector-only bounded segment
compaction.
2. PR #8156 (PR 2 - independent draft, composes with PR 1):
   
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fgeode%2Fpull%2F8156&data=05%7C02%7CJinwoo.Hwang%40sas.com%7C57f3d5ecc1e545735fe308df4ad3899b%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C639311944588457193%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=312x39%2BR%2FCgSDXCIwxmGbqyPZIEUIhIWVEYtSCEExAM%3D&reserved=0<https://github.com/apache/geode/pull/8156>
   Dual-epoch Tier-0 vector delta buffer for read-after-write
visibility before AEQ commit, plus distributed per-bucket hybrid k-NN
function with filter pushdown.
3. PR #8155 (PR 3 - stacked directly on #8154; merge after #8154):
   
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fgeode%2Fpull%2F8155&data=05%7C02%7CJinwoo.Hwang%40sas.com%7C57f3d5ecc1e545735fe308df4ad3899b%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C639311944588467562%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=0FMzyk%2B4IIKLfgTgXK7HR9%2B9FSg2mGY4Ii7N9upXkpI%3D&reserved=0<https://github.com/apache/geode/pull/8155>
   gfsh vector index CLI commands, cluster configuration XML
persistence, and vector memory/segment metrics.
4. PR #8157 (PR 4 - independent draft, optional continuous listener layer):
   
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fgeode%2Fpull%2F8157&data=05%7C02%7CJinwoo.Hwang%40sas.com%7C57f3d5ecc1e545735fe308df4ad3899b%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C639311944588477155%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=k3BVYAYQFkiGwjZ%2B51O1nHi4mnj339hi9Ifink3NtBY%3D&reserved=0<https://github.com/apache/geode/pull/8157>
   Adaptive SIMD / chordal Voronoi continuous vector similarity
listener with Region Version Vector (RVV) monotonicity across
primary-to-secondary failover.

4. Open Questions for the Community
-----------------------------------
- Does extending LuceneIndexFactory and existing gfsh lucene commands
feel like the right API shape, or would you prefer a separate vector
index type/command set?
- Are there specific rolling-upgrade, wire-compatibility, or
serialization constraints beyond LuceneIndexCreationProfile versioning
and sanctioned serializables that we should enforce up front?
- For JIRA tracking, would you prefer one umbrella GEODE ticket with
subtasks per PR, or four separate linked GEODE tickets? (I now have my
ASF Jira account `gouthamaenugu` ready and am also preparing my ASF
ICLA.)

Thanks for your time and feedback!

Best regards,
Goutham Reddy Aenugu
GitHub: gouthamaenugu

Reply via email to