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

Add a Boolean Post Filter QParserPlugin

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 6.0
    • None
    • None

    Description

      This plugin enables existing post filter implementations to be combined using Boolean logic. It works by building a "parse tree" of referenced Post Filters. When a document is sent to the collect( ) method of the BooleanPostFilter, it is sent to all of the delegates that point to a local Collector that sets a flag if the DelegatingCollector calls its collect method. After all of the delegates have been polled, the parse tree output determines if the document should be ultimately collected.

      The syntax for the post filter is like this:

      fq={!bool expr="(($foo OR $bar) NOT $baz)"}&foo={!foo ...}&bar={!bar ... }&baz={!baz ...}
      

      Where "foo", "bar" and "baz" are all post filters.

      Attachments

        1. SOLR-7276.patch
          27 kB
          Erik Hatcher
        2. SOLR-7276.patch
          47 kB
          Ted Sullivan

        Activity

          People

            ehatcher Erik Hatcher
            tedsullivan Ted Sullivan
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: