Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6348 Collection of improvements to StatsComponent & FacetComponent for loose coupling
  3. SOLR-6663

decide rules & syntax for computing stats/ranges/queries only at certain levels of a pivot

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      smolloy asked a great question in SOLR-6351...

      One more question around this, which applies for SOLR-6353 and SOLR-4212 as well. Should we have a syntax to apply stats/queries/ranges only at specific levels in the pivot hierarchy? It would reduce amount of computation and size of response for cases where you only need it at a specific level (usually last level I guess).

      I'm splitting this off into it's own Sub-task for further discussion.


      For now, the "stats" localparam must be a single tag, and the "work around" is to add a common tag to all stats you want to use.

      ie, this will cause an error...

      stats.field={!tag=tagA}price
      stats.field={!tag=tagB}popularity
      stats.field={!tag=tagB}clicks
      facet.pivot={!stats=tagA,tagB}xxx,yyy,zz
      

      but this will work...

      stats.field={!tag=tagA,tagPivot}price
      stats.field={!tag=tagB,tagPivot}popularity
      stats.field={!tag=tagB,tagPivot}clicks
      facet.pivot={!stats=tagPivot}xxx,yyy,zz
      

      Attachments

        1. SOLR-6663.patch
          5 kB
          Chris M. Hostetter

        Activity

          People

            Unassigned Unassigned
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: