Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12880

Show the FacetProcessor class name instead of the FacetRequest in the JSON Facets debug-trace output

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.5
    • 7.6
    • Facet Module
    • None

    Description

      In the "facet-trace" debug output for the JSON facets the "processor" field current shows the class name of the FacetRequest implementation (e.g. FacetField, FacetQuery, FacetRange, etc.). It seems like this would be more useful if it showed the FacetProcessor class being used instead (e.g. FacetFieldProcessorByArrayDV, FacetFieldProcessorByHashDV, FacetQueryProcessor, FacetRangeProcessor, etc.)

      Example of how it works today:

      "debug": {
        "facet-trace": {
          "processor": FacetQuery "elapse": 50 "query": null "domainSize": 3296 "sub-facet": [{
            processor = FacetField,
            elapse = 18,
            field = partTypeId,
            limit = -1,
            domainSize = 3296,
            numBuckets = 392
          }, {
            processor = FacetField,
            elapse = 25,
            field = browseNodeId,
            limit = -1,
            domainSize = 3296,
            numBuckets = 535
          }]
        }
      }
      

      This is what showing the FacetProcessor class name would show:

      "debug": {
        "facet-trace": {
          "processor": FacetQueryProcessor "elapse": 77 "query": null "domainSize": 3442 "sub-facet": [{
            processor = FacetFieldProcessorByHashDV,
            elapse = 3,
            field = partTypeId,
            limit = -1,
            domainSize = 3442,
            numBuckets = 407
          }, {
            processor = FacetFieldProcessorByHashDV,
            elapse = 4,
            field = browseNodeId,
            limit = -1,
            domainSize = 3442,
            numBuckets = 553
          }]
        }
      }
      

      Alternatively an additional debug field could be added with this information.

      Attachments

        Activity

          People

            dsmiley David Smiley
            tpunder Tim Underwood
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h