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

Support facet.matches to cull facets returned with a regex

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4.1
    • Fix Version/s: 7.2, 8.0
    • Component/s: faceting
    • Labels:
      None

      Description

      I recently ran into a case where I really wanted to only return the next level of a hierarchical facet, and while I was able to do that with a coordinated set of dynamic fields, it occurred to me that this would have been much much easier if I could have simply used PathHierarchyTokenizer and written

      &facet.matches="/my/current/prefix/[^/]+$"

      thereby limiting the returned facets to the next level down and not return the additional N levels I didn't (yet) want to display (numbering in the thousands near the top of the tree). I suspect there are other good use cases, and the patch seemed relatively tractable.

        Attachments

        1. SOLR-10132.patch
          10 kB
          Christine Poerschke
        2. SOLR-10132.patch
          12 kB
          Gus Heck
        3. SOLR-10132.patch
          9 kB
          Christine Poerschke
        4. SOLR-10132.patch
          10 kB
          Gus Heck
        5. SOLR-10132.patch
          10 kB
          Gus Heck

        Issue Links

          Activity

            People

            • Assignee:
              cpoerschke Christine Poerschke
              Reporter:
              gus Gus Heck

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment