Mykhailo Kozik created SOLR-10913:
-------------------------------------
Summary: Incosistent function query results inside conditional
Key: SOLR-10913
URL: https://issues.apache.org/jira/browse/SOLR-10913
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Affects Versions: 6.4.1
Reporter: Mykhailo Kozik
Hey, I was trying to simulate gt function on old version of solr (5.5.0) using
sub and max
(afaik, gt is not available on 5.5.0)
I found strange inconsistency for function queries (reproducible on 6.4.1 as
well)
For simplest usecase, have at least 1 doc in solr collection and provide
addition fl parameter:
fl=*,max(0, 0.9), if(0, 1, 0), if(0.9, 1, 0), if(max(0, 0.9), 1, 0), if(max(0,
1.1), 1, 0)
The output is following:
"max(0, 0.9)":0.9,
"if(0, 1, 0)":0,
"if(0.9, 1, 0)":1,
"if(max(0, 0.9), 1, 0)":0,
"if(max(0, 1.1), 1, 0)":1
4th usecase seems strange to me and inconsistent to previous expressions as
well.
Could you clarify if it's a bug or I am doing something wrong.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]