You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Susmit Shukla <sh...@gmail.com> on 2021/12/23 11:14:26 UTC

Streaming evaluators - exists

Hi,

I need to annotate the documents matching a simple boolean "OR" query
with actual terms found in each document. It is possible in single pass
using exists() function in fl param with /select handler.
e.g
q=text:(val1 OR val2 OR val3)
&fl=foo1:exists(query({!v='text:(val1)'})),foo2:exists(query({!v='text:(val2)'})),foo3:termfreq(content,'val3')

Can the same thing be achieved using /stream and /export handlers? Any
pointers to create custom term frequency or term exist stream evaluator
would be useful.