You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Gintautas Sulskus <gi...@gmail.com> on 2018/02/23 10:54:49 UTC

LTR and 'searching' a streaming expression result

Hi,

Is it possible to apply another search to a streaming expression result?
E.g. to use leftOuterJoin as a source for search:

search(
    leftOuterJoin(
        leftOuterJoin(search(), search())
        leftOuterJoin(......)
    ),
    q=... )

Is it possible to apply LTR to the streaming expression result?


Thanks,
Gintas

Re: LTR and 'searching' a streaming expression result

Posted by Gintautas Sulskus <gi...@gmail.com>.
Thanks very much, Joel.

On Fri, Feb 23, 2018 at 4:36 PM, Joel Bernstein <jo...@gmail.com> wrote:

> In the scenario you describe above the answer is no. That's because the
> joins rely on the sort order of the result set and require exporting of the
> entire result set. Both those requirements will not work with ltr.
>
> The search expression though could be used with ltr and the fetch
> expression, which doesn't require full export or a specific sort order.
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
> On Fri, Feb 23, 2018 at 5:54 AM, Gintautas Sulskus <
> gintautas.sulskus@gmail.com> wrote:
>
> > Hi,
> >
> > Is it possible to apply another search to a streaming expression result?
> > E.g. to use leftOuterJoin as a source for search:
> >
> > search(
> >     leftOuterJoin(
> >         leftOuterJoin(search(), search())
> >         leftOuterJoin(......)
> >     ),
> >     q=... )
> >
> > Is it possible to apply LTR to the streaming expression result?
> >
> >
> > Thanks,
> > Gintas
> >
>

Re: LTR and 'searching' a streaming expression result

Posted by Joel Bernstein <jo...@gmail.com>.
In the scenario you describe above the answer is no. That's because the
joins rely on the sort order of the result set and require exporting of the
entire result set. Both those requirements will not work with ltr.

The search expression though could be used with ltr and the fetch
expression, which doesn't require full export or a specific sort order.

Joel Bernstein
http://joelsolr.blogspot.com/

On Fri, Feb 23, 2018 at 5:54 AM, Gintautas Sulskus <
gintautas.sulskus@gmail.com> wrote:

> Hi,
>
> Is it possible to apply another search to a streaming expression result?
> E.g. to use leftOuterJoin as a source for search:
>
> search(
>     leftOuterJoin(
>         leftOuterJoin(search(), search())
>         leftOuterJoin(......)
>     ),
>     q=... )
>
> Is it possible to apply LTR to the streaming expression result?
>
>
> Thanks,
> Gintas
>