Constrains search results to only match those which also match a provided query. Also provides position information about where each document matches at the cost of extra space compared with the QueryWrapperFilter. There is an added cost to this above what is stored in a {@link QueryWrapperFilter}. Namely, the position information for each matching document is stored.

This filter does not cache. See the {@link Lucene.Net.Search.CachingSpanFilter} for a wrapper that caches.

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

Syntax

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

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..Filter
    Lucene.Net.Search..::..SpanFilter
      Lucene.Net.Search..::..SpanQueryFilter

See Also