> From: [EMAIL PROTECTED]
>
> To search multiple indexes I had to make a very small change to
> Query.java and PrefixQuery.java in order to get the correct hit
> results.
>
> [ ... ]
>
> My attempt to resolve this problem was to edit the method
> PrefixQuery.prepare(IndexReader reader) to reset the query back
> to null, when starting with a new reader :
>
> final void prepare(IndexReader reader) {
> //JSproston - Bug Fix test
> this.query = null;
> //JSproston addition end
> this.reader = reader;
> }
That looks like a good fix for this problem.
> This problem is resolved by commenting out the test :
> " if (!query.normalized) { "
> within Query.scorer(Query , Searcher , IndexReader )
> so that the query is normalized for each reader.
I think that is also a good fix.
I will check these fixes in.
Thanks for finding these problems. I had not tested PrefixQuery with
MultiSearcher.
Doug
_______________________________________________
Lucene-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lucene-dev