[ 
https://issues.apache.org/jira/browse/SOLR-13524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SOLR-13524:
----------------------------------
    Labels: pull-request-available  (was: )

> 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
>          Components: streaming expressions
>    Affects Versions: 7.7.1
>            Reporter: Oleksandr Chornyi
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to