Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5302 Analytics Component
  3. SOLR-5335

Add support for "default" operator

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sbower Steven Bower
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: