Searcher Manger with support for Multi-Reader

Open Beginner friendly
#13,975 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
java
Domain
search

Research direction

Start in lucene/core/src/java/org/apache/lucene/search/SearcherManager.java at the referenced line, where support is limited to DirectoryReader. Read the surrounding SearcherManager logic and the context in LUCENE-6087, then make the smallest change needed for MultiReader support. Done means SearcherManager accepts MultiReader as well as DirectoryReader.

Written by the indexing model from the issue text.

Description

type:enhancement
Description

I'd like to use MultiReader inside my searcher manager, but currently there is only support for DirectoryReader. Not sure about the context for. why this was the case initially, seems specific to some desired use-case https://issues.apache.org/jira/browse/LUCENE-6087.

Anyway should be a 1-line change here: https://github.com/apache/lucene/blob/9e90fb5bf1807f1d9ccf2cabf74b3235f2431ed4/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java#L125

I found a relevant stack overflow question here:
https://stackoverflow.com/questions/49817453/searchermanager-and-multireader-in-lucene

Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 4h
Merged PRs (30d)
79

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/lucene

All issues in apache/lucene

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.