Is this a bug in Lucene Java as of tr...@915399?
int numDocs = reader.numDocs(); // = 0 (empty index)
TopDocsCollector collector = TopScoreDocCollector.create(numDocs,
true);
searcher.search(new MatchAllDocsQuery(), collector); // never
returns
// Searcher
public void searc
I turned this into a unit test... but I don't see it never
returning... the test passes.
How did you create your empty reader?
Patch:
Index: src/test/org/apache/lucene/search/TestMatchAllDocsQuery.java
===
--- src/test/org/apache/lu
Saturday, February 27, 2010 11:52 AM
> To: java-user@lucene.apache.org
> Subject: Re: Infinite loop when searching empty index
>
> I turned this into a unit test... but I don't see it never
> returning... the test passes.
>
> How did you create your empty reader?
>
&g
cene.apache.org
Sent: Sat, February 27, 2010 4:55:55 AM
Subject: RE: Infinite loop when searching empty index
I was doing the same, MatchAllDocsScorer is fine and also AbstractAllTermDocs.
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
>
> around is to check isCurrent(), close, then open. I wonder if the changes to
> support near real-time search inadvertently broke this.
>
>
>
>
> - Original Message
> From: Uwe Schindler
> To: java-user@lucene.apache.org
> Sent: Sat, February 27, 2010 4:55:5