You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alexandre Rafalovitch (Jira)" <ji...@apache.org> on 2020/09/06 02:26:00 UTC

[jira] [Resolved] (SOLR-5335) Add support for "default" operator

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

Alexandre Rafalovitch resolved SOLR-5335.
-----------------------------------------
    Resolution: Information Provided

> Add support for "default" operator
> ----------------------------------
>
>                 Key: SOLR-5335
>                 URL: https://issues.apache.org/jira/browse/SOLR-5335
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Steven Bower
>            Priority: Major
>
> In cases where a value is missing it expressions just simply don't return a value and are considered "missing".. eg add( fieldA, fieldB) if fieldB doesn't exist in a doc the "add" is considered missing. Would be nice to have a "default" operator to handle edge cases.. eg add( fieldA, default( fieldB, 0 )) such that the value 0 will be used instead of a "missing" value..
> This could also handle the div by zero case too



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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