Solr
  1. Solr
  2. SOLR-2325

Allow tagging and exclusion of main query for faceting

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      Example of a faceting request that produces a NPE because tagging/excluding main query is not supported.
      http://localhost:8983/solr/select?q=

      {!tag=zzz}

      foo&facet=true&facet.field=

      {!ex=zzz}

      popularity

      1. SOLR-2325.patch
        2 kB
        Yonik Seeley

        Activity

        Hide
        Yonik Seeley added a comment -

        Here's a patch that fixes things up.
        Reviewing the documentation, it looks like this wasn't actually a bug - in the past, only filters could be excluded. Still, it makes sense to be able to exclude the main query too, and this is what this patch implements.

        Show
        Yonik Seeley added a comment - Here's a patch that fixes things up. Reviewing the documentation, it looks like this wasn't actually a bug - in the past, only filters could be excluded. Still, it makes sense to be able to exclude the main query too, and this is what this patch implements.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for 3.1.0 release

        Show
        Grant Ingersoll added a comment - Bulk close for 3.1.0 release

          People

          • Assignee:
            Yonik Seeley
            Reporter:
            Yonik Seeley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development