You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Jeff Rodenburg <je...@gmail.com> on 2005/10/06 00:41:28 UTC

RemoteSearchable and sorting

Are there known limitations or issues with sorting and RemoteSearchable? I'm
encountering problems attempting to sort through a MultiSearcher
(ParallelMultiSearcher, actually). I'm using an array of RemoteSearchable
objects as the Searchable[] source. If I change the source indexes to be
local IndexSearchers, sorting works just fine.

I've searched the threads of this mailing list as well as the outstanding
issues on the Apache issue tracker, but haven't found anything related to
this problem.

Thanks,
j

Re: RemoteSearchable and sorting

Posted by Jeff Rodenburg <je...@gmail.com>.
Thanks Rasik.

If this is the case, why is this exposed in the API? Should the overloaded
search method on ParallelMultiSearcher that takes a Sort object be removed?
I'm using the 1.4.3 codebase.

-j


On 10/5/05, Rasik Pandey <rb...@gmail.com> wrote:
>
> Hi Jeff,
>
> Sorting needs access to an IndexReader so it can do Term lookups, and
> I don't think there is a remote impl of IndexReader probably because,
> among other reasons, not all objects related to Terms are
> Serializable. IMHO, it would be NICE to have a RemoteReader and a
> ParallelMultiReader to round out the API like:
>
> ParallelMultiReader, RemoteReader, MultiReader, Reader
>
> AND
>
> ParallelMultiSearcher,RemoteSearcher, MultiSearcher, Searcher
>
> Regards,
> Rus
>
>
>
>
> On 10/5/05, Jeff Rodenburg <je...@gmail.com> wrote:
> > Are there known limitations or issues with sorting and RemoteSearchable?
> I'm
> > encountering problems attempting to sort through a MultiSearcher
> > (ParallelMultiSearcher, actually). I'm using an array of
> RemoteSearchable
> > objects as the Searchable[] source. If I change the source indexes to be
> > local IndexSearchers, sorting works just fine.
> >
> > I've searched the threads of this mailing list as well as the
> outstanding
> > issues on the Apache issue tracker, but haven't found anything related
> to
> > this problem.
> >
> > Thanks,
> > j
> >
> >
>

Re: RemoteSearchable and sorting

Posted by Jeff Rodenburg <je...@gmail.com>.
As a follow-on to this, the problem appears to have been PBKAC (problem
between keyboard and chair).

Sorting works fine as long as all indexes being referenced contain the field
being sorted. When executing a remote search, the container application
(that's me) needs to be sure to bubble up the exceptions appropriately.

-- j

On 10/5/05, Rasik Pandey <rb...@gmail.com> wrote:
>
> Hi Jeff,
>
> Sorting needs access to an IndexReader so it can do Term lookups, and
> I don't think there is a remote impl of IndexReader probably because,
> among other reasons, not all objects related to Terms are
> Serializable. IMHO, it would be NICE to have a RemoteReader and a
> ParallelMultiReader to round out the API like:
>
> ParallelMultiReader, RemoteReader, MultiReader, Reader
>
> AND
>
> ParallelMultiSearcher,RemoteSearcher, MultiSearcher, Searcher
>
> Regards,
> Rus
>
>
>
>
> On 10/5/05, Jeff Rodenburg <je...@gmail.com> wrote:
> > Are there known limitations or issues with sorting and RemoteSearchable?
> I'm
> > encountering problems attempting to sort through a MultiSearcher
> > (ParallelMultiSearcher, actually). I'm using an array of
> RemoteSearchable
> > objects as the Searchable[] source. If I change the source indexes to be
> > local IndexSearchers, sorting works just fine.
> >
> > I've searched the threads of this mailing list as well as the
> outstanding
> > issues on the Apache issue tracker, but haven't found anything related
> to
> > this problem.
> >
> > Thanks,
> > j
> >
> >
>

Re: RemoteSearchable and sorting

Posted by Rasik Pandey <rb...@gmail.com>.
Hi Jeff,

Sorting needs access to an IndexReader so it can do Term lookups, and
I don't think there is a remote impl of IndexReader probably because,
among other reasons, not all objects related to Terms are
Serializable. IMHO, it would be NICE to have a RemoteReader and a
ParallelMultiReader to round out the API like:

ParallelMultiReader, RemoteReader, MultiReader, Reader

AND

ParallelMultiSearcher,RemoteSearcher, MultiSearcher, Searcher

Regards,
Rus




On 10/5/05, Jeff Rodenburg <je...@gmail.com> wrote:
> Are there known limitations or issues with sorting and RemoteSearchable? I'm
> encountering problems attempting to sort through a MultiSearcher
> (ParallelMultiSearcher, actually). I'm using an array of RemoteSearchable
> objects as the Searchable[] source. If I change the source indexes to be
> local IndexSearchers, sorting works just fine.
>
> I've searched the threads of this mailing list as well as the outstanding
> issues on the Apache issue tracker, but haven't found anything related to
> this problem.
>
> Thanks,
> j
>
>

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