Constructs a new query which applies a filter to the results of the original query. Filter.getDocIdSet() will be called every time this query is used in a search.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public FilteredQuery(
	Query query,
	Filter filter
)
Visual Basic
Public Sub New ( _
	query As Query, _
	filter As Filter _
)
Visual C++
public:
FilteredQuery(
	Query^ query, 
	Filter^ filter
)

Parameters

query
Type: Lucene.Net.Search..::..Query
Query to be filtered, cannot be
CopyC#
null
.
filter
Type: Lucene.Net.Search..::..Filter
Filter to apply to query results, cannot be
CopyC#
null
.

See Also