[ 
https://issues.apache.org/jira/browse/SOLR-7276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Sullivan updated SOLR-7276:
-------------------------------
    Description: 
This plugin enables existing post filter implementations to be combined in 
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:
{noformat}
fq={!bool expr="(($foo OR $bar) NOT $baz)"}&foo={!foo ...}&bar={!bar 
... }&baz={!baz ...}
{noformat}
Where "foo", "bar" and "baz" are all post filters.

  was:
This plugin enables existing post filter implementations to be combined in 
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.


> Add a Boolean Post Filter QParserPlugin
> ---------------------------------------
>
>                 Key: SOLR-7276
>                 URL: https://issues.apache.org/jira/browse/SOLR-7276
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Ted Sullivan
>
> This plugin enables existing post filter implementations to be combined in 
> 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:
> {noformat}
> fq={!bool expr="(($foo OR $bar) NOT $baz)"}&foo={!foo ...}&bar={!bar 
> ... }&baz={!baz ...}
> {noformat}
> Where "foo", "bar" and "baz" are all post filters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to