Oleksandr Chornyi created SOLR-13524:
----------------------------------------
Summary: Or Stream Evaluator produces incorrect results with more
than 2 arguments
Key: SOLR-13524
URL: https://issues.apache.org/jira/browse/SOLR-13524
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Components: streaming expressions
Affects Versions: 7.7.1
Reporter: Oleksandr Chornyi
h3. Background
[Documentation for the
OR|https://lucene.apache.org/solr/guide/7_7/stream-evaluator-reference.html#or]
evaluator says that it "will return the logical OR of at least 2 boolean
parameters." The evaluator indeed accepts more than two parameters:
{code:java}
or(true, true, true){code}
returns {{true}}. However, it stops evaluating other parameters when the first
two parameters evaluate to false.
h3. Steps to Reproduce
Evaluate the following expression:
{code:java}
or(false, false, true)
{code}
*Expected Result*: {{"return-value": true}}
*Actual Result*: {{"return-value": false}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]