Constrains search results to only match those which also match a provided query.

This could be used, for example, with a {@link TermRangeQuery} on a suitably formatted date field to implement date filtering. One could re-use a single QueryFilter that matches, e.g., only documents modified within the last week. The QueryFilter and TermRangeQuery would only need to be reconstructed once per day.

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

Syntax

C#
[SerializableAttribute]
public class QueryWrapperFilter : Filter
Visual Basic
<SerializableAttribute> _
Public Class QueryWrapperFilter _
	Inherits Filter
Visual C++
[SerializableAttribute]
public ref class QueryWrapperFilter : public Filter

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..Filter
    Lucene.Net.Search..::..QueryWrapperFilter

See Also