FileDocCategorySizeDatePackage
WildcardQuery.javaAPI DocApache Lucene 1.91597Mon Feb 20 09:20:04 GMT 2006org.apache.lucene.search

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
WildcardTermEnum

Fields Summary
Constructors Summary
public WildcardQuery(Term term)

    super(term);
  
Methods Summary
public booleanequals(java.lang.Object o)

    if (o instanceof WildcardQuery)
      return super.equals(o);

    return false;
  
protected org.apache.lucene.search.FilteredTermEnumgetEnum(org.apache.lucene.index.IndexReader reader)

    return new WildcardTermEnum(reader, getTerm());