org.apache.lucene.search

Class WildcardQuery

public class WildcardQuery extends MultiTermQuery

Implements the wildcard search query. Supported wildcards are *, which matches any character sequence (including the empty one), and ?, 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 * or ?.

See Also: WildcardTermEnum

Constructor Summary
WildcardQuery(Term term)
Method Summary
booleanequals(Object o)
protected FilteredTermEnumgetEnum(IndexReader reader)

Constructor Detail

WildcardQuery

public WildcardQuery(Term term)

Method Detail

equals

public boolean equals(Object o)

getEnum

protected FilteredTermEnum getEnum(IndexReader reader)
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.