public interface PostFilter extends ExtendedQuery
The filtering mechanism used is a
that allows the filter to not call the delegate for certain documents,
thus effectively filtering them out. This also avoids the normal
filter advancing mechanism which asks for the first acceptable document on
or after the target (which is undesirable for expensive filters).
This collector interface also enables better performance when an external system
must be consulted, since document ids may be buffered and batched into
a single request to the external system.
Implementations of this interface must also be a Query. If an implementation can only support the collector method of filtering through getFilterCollector, then ExtendedQuery.getCached() should always return false, and ExtendedQuery.getCost() should return no less than 100.
|Modifier and Type||Method and Description|
Returns a DelegatingCollector to be run after the main query and all of its filters, but before any sorting or grouping collectors
getCache, getCacheSep, getCost, setCache, setCacheSep, setCost
DelegatingCollector getFilterCollector(IndexSearcher searcher)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.