You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Munendra S N (JIRA)" <ji...@apache.org> on 2019/07/30 12:04:00 UTC

[jira] [Resolved] (SOLR-10913) Incosistent function query results inside conditional

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

Munendra S N resolved SOLR-10913.
---------------------------------
    Resolution: Fixed

This is fixed in SOLR-11758

> Incosistent function query results inside conditional
> -----------------------------------------------------
>
>                 Key: SOLR-10913
>                 URL: https://issues.apache.org/jira/browse/SOLR-10913
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 6.4.1
>            Reporter: Mykhailo Kozik
>            Priority: Major
>
> 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
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org