apache / apache/lucene

No hook provided in IndexWriter.java before merge after setup, for auxiliary indexes [LUCENE-3704]

Open
#4,778 1 comment 0 reactions 0 assignees View on GitHub
affects-version:3.5 legacy-jira-label:patch legacy-jira-priority:Major module:core/other type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

When trying to manage an auxiliary index to lucene, IndexWriter.java 3.5.0 does not provide a proper hook. Such a hook (see attached proposed patch) permits us to manage an outside index where we get 1 of our segments in parallel to the lucene segments, and we can keep the same docid offsets within the segment.

We are attaching a suggested patch that provides an override-able method. We would like this accepted for 3.5+ if possible. Thanks.

---
Migrated from [LUCENE-3704](https://issues.apache.org/jira/browse/LUCENE-3704) by Ken McCracken, 3 votes
Attachments: [bobo-contrib-geosearch.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-3704/bobo-contrib-geosearch.patch)

Contributor guide

Open the contributing guide

Research direction

Start with IndexWriter.java and the attached bobo-contrib-geosearch.patch to understand the requested hook after setup and before merge. Done means an override-able hook exists at the required point so an auxiliary index can preserve matching segment document-ID offsets.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.