You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Albert Vila Puig <av...@imente.com> on 2004/02/02 10:03:05 UTC

MultiOrderSearcher Implementation

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.

-- 
Albert Vila Puig
http://www.imente.com
[iMente, El mayor agregador de titulares en espaƱol]
Le invitamos a visitar nuestra nueva web y probar nuestros servicios



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


Re: MultiOrderSearcher Implementation

Posted by Doug Cutting <cu...@apache.org>.
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