I believe what you're looking for is an innerJoin:

https://solr.apache.org/guide/8_4/stream-decorator-reference.html#innerjoin



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


On Wed, Aug 17, 2022 at 12:47 PM Susheel Kumar <susheel2...@gmail.com>
wrote:

> Hello,
>
> How can we substitute an output from a streaming expr as a  filter query
> inside another  streaming expression. For example below expr
>
> select(
> search(filters,
>        q="*:*",
>        fq="key:84396",
>        qt="/export",
>        fl="id,filter1_s,key",
>        sort="key asc"
>        ),
>        filter1_s as filter)
>
> outputs
>
> { "result-set": { "docs": [ { "filter": "division_s:(A B C)" }, { "EOF":
> true, "RESPONSE_TIME": 4 } ] } }
>
> and then how can apply the above filter value to below expr at runtime ? OR
> How can we combine both below and above expressions and run as a single
> streaming expression.
> search(emp,
>         q="*:*",
>         fq=*"division_s:(A B C)"*,
>         qt="/export",
>         fl="id,name",
>         df="_text_",
>         sort="id asc")
> Thanks,
> Susheel
>

Reply via email to