Implements the wildcard search query. Supported wildcards are
CopyC#
*
, which matches any character sequence (including the empty one), and
CopyC#
?
, which matches any single character. Note this query can be slow, as it needs to iterate over many terms. In order to prevent extremely slow WildcardQueries, a Wildcard term should not start with one of the wildcards
CopyC#
*
or
CopyC#
?
.

This query uses the {@link MultiTermQuery#CONSTANT_SCORE_AUTO_REWRITE_DEFAULT} rewrite method.

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

Syntax

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

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..Query
    Lucene.Net.Search..::..MultiTermQuery
      Lucene.Net.Search..::..WildcardQuery

See Also