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

Allow tagging and exclusion of main query for faceting

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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
        gsingers Grant Ingersoll added a comment -

        Bulk close for 3.1.0 release

        Show
        gsingers Grant Ingersoll added a comment - Bulk close for 3.1.0 release
        Hide
        yseeley@gmail.com 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
        yseeley@gmail.com 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.

          People

          • Assignee:
            yseeley@gmail.com Yonik Seeley
            Reporter:
            yseeley@gmail.com Yonik Seeley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development