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/01/29 12:39:31 UTC
Merging fields of two streaming expressions
Hi,
Is it possible to merge fields of two stream sources in a specific way?
Take for example two search result sets:
search_1(... fl="score")
search_2(... fl="score")
I would like to merge these two into one result set. Its score would be
computed using a custom function f(x,y) that takes take scores of search_1
and search_2 as its parameters.
The function can be, for example, the average of the two inputs e.g.
f=(x+y)/2
Using Solr 6.5.1
Thanks,
Gintas