lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Preetham Kajekar <preet...@cisco.com>
Subject Re: MultiSearcher query with Sort option
Date Fri, 10 Apr 2009 09:26:53 GMT
Hi,
 I just realized it was a bug in my code.
 On a related note, is it possible to Sort based on reverse index order ?

Thanks,
 ~preetham

Uwe Schindler wrote:
> 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
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>   
>> -----Original Message-----
>> From: Preetham Kajekar [mailto:preetham@cisco.com]
>> Sent: Friday, April 10, 2009 9:43 AM
>> To: java-user@lucene.apache.org
>> 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: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>     
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message