lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: MultiOrderSearcher Implementation
Date Fri, 06 Feb 2004 21:33:10 GMT
Please see

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26702

With luck, this sort of functionality (sorted hits from multiple 
indexes) should soon be available in the 1.4 java codebase.

Doug

Albert Vila Puig wrote:
> Hi all,
> 
>    I'm looking for a MultiOrderSearcher Implementation. I'am using the 
> IndexOrderSearcher in order to obtain the results sorted per index, but 
> I need to search over a multiple indexes. So, I need another 
> MultiSearcher implementation in order to deal with the sort problem.
> 
>    Has anyone such a feature implemented in a MultiOrderSearcher class?
> 
>    I did an implementation in C++ (because I'm using the CLucene core in 
> order to search the index), but I'm having problems with the sorting. 
> The sort is fine for all indexes, but when I retrieve the results back 
> to the client, the hits object contains something like:
>          100 first hits from index 1
>          100 first hits from index 2
>          100 first hits from index 3
>             ...
>          100 second hits from index 1
>             ...
>    This is due to the getMoreDocs(50);    // retrieve 100 initially
>       line from hits.cpp or hits.java.
> 
>    When I want something like
>          All hits from index 1
>          All hits from index 2
>          All hits from index 3
>             ....
> 
> Maybe I need another hits abstraction object to deal with this problem 
> because if I want to retrieve all sorted hits from all indexes I 'll 
> have performance problems (I 'am dealing with big indexes).
> 
> Thanks in advance.
> 

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


Mime
View raw message