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

Searching: PostFilter plugins ignored by solr cloud for queries with grouping

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-BETA
    • Fix Version/s: 4.1, 6.0
    • Component/s: search, SolrCloud
    • Labels:
    • Environment:

      Linux / jre 1.6

      Description

      When specifying the cloud options (-DzkRun -DnumShards=n) in solr startup parameters, solr search does not consider any PostFilters.
      For example, I have implemented a PostFilter and wrapped that in my QParserPlugin sub class. Then in the solr query I am using fq to apply post filtering by specifying fq=

      {!pf1}

      where pf1 is the name of my QParserPlugin. This all works well in solr and not in solr cloud.
      I debugged and figured out that org.apache.solr.search.Grouping.execute() method is called by the non cloud instance. This considers pf.PostFilter which is the collection of all PostFilters whereas org.apache.solr.search.grouping.CommandHandler.execute() which is called by the solr cloud instance ignores the pf.PostFilter.

        Attachments

        1. SOLR-3960.patch
          6 kB
          Hoss Man
        2. SOLR-3960.patch
          6 kB
          Hoss Man

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              vnathan Nathan Visagan
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: