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

Add support for "default" operator

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: