lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: MultiSearcher query with Sort option
Date Fri, 10 Apr 2009 08:23:57 GMT
Hallo Preetham,

never heard of this. What Lucene version do you use?
To check out, try the search in andifferent way:
Combine the two indexes not into a MultiSearcher, instead open an
IndexReader for both indexes and combine both readers to a MultiReader. This
MultiReader can be used like a conventional single index and searched with
IndexSearcher. If the error then disappears, there may be a bug. If not,
something with your indexes is wrong.

I always recommend to only use MultiSearcher in distributed or parallel
search scenarios, never for just combining two indexes.


Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen

> -----Original Message-----
> From: Preetham Kajekar []
> Sent: Friday, April 10, 2009 9:43 AM
> To:
> Subject: MultiSearcher query with Sort option
> Hi,
>  I am using a MultiSearcher to search 2 indexes. As part of my query, I
> am sorting the results based on a field (which in NOT_ANALYSED).
> However, i seem to be getting hits only from one of the indexes. If I
> change to Sort.INDEX_ORDER, I seem to be getting results from both. Is
> this a know problem ?
> Thanks,
>  ~preetham
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message