Search is not working while migrating Lucene 3.6.2 to 8.7.0 [LUCENE-9903]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
We are upgrading the Lucene version from 3.6.2 to 8.7.0 version, we are facing the search issue, once request is reach to search method then response is not coming out the execution flow is blocked by search method
public void collect(IndexSearcher is) throws CorruptIndexException,public void collect(IndexSearcher is) throws CorruptIndexException, IOException {
TopFieldCollector collector = TopFieldCollector.create(TopFieldCollector collector = TopFieldCollector.create( reverse ? reverseSort : sort, numr, val);
is.setSimilarity(new ClassicSimilarity());
is.search(query, numr);
}
---
Migrated from [LUCENE-9903](https://issues.apache.org/jira/browse/LUCENE-9903) by lakshman, updated Apr 05 2021
Contributor guide
Research direction
Start with the collect method shown in the issue, especially the TopFieldCollector setup and the blocking is.search(query, numr) call. Reproduce the migration from Lucene 3.6.2 to 8.7.0 and inspect whether the search call completes; done means identifying the cause of the blocked execution and confirming that the request returns normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100