Constructor FilteredQuery
FilteredQuery(Query, Filter)
Constructs a new query which applies a filter to the results of the original query. GetDocIdSet(AtomicReaderContext, IBits) will be called every time this query is used in a search.
Declaration
public FilteredQuery(Query query, Filter filter)
Parameters
Type | Name | Description |
---|---|---|
Query | query | Query to be filtered, cannot be |
Filter | filter | Filter to apply to query results, cannot be |
FilteredQuery(Query, Filter, FilteredQuery.FilterStrategy)
Expert: Constructs a new query which applies a filter to the results of the original query. GetDocIdSet(AtomicReaderContext, IBits) will be called every time this query is used in a search.
Declaration
public FilteredQuery(Query query, Filter filter, FilteredQuery.FilterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Query | query | Query to be filtered, cannot be |
Filter | filter | Filter to apply to query results, cannot be |
FilteredQuery.FilterStrategy | strategy | A filter strategy used to create a filtered scorer. |