The Solr FunctionQuery function has a DIV (x, y) function. I have such a need, if y = 0, then y should be equal to x.
In other words, I need to present the following logic using FunctionQuery:
if y == 0, return 1
else, return DIV(x,y)
Be that as it may, from the Solr document I cannot find any comparison function, for example. EQ (x, value), etc. For me.
Can anyone give me a hint for building my desired logic using FunctionQuery?
Thank!
source
share