org.apache.lucene.search
Class WildcardQuery
- Cloneable, Serializable
public class WildcardQuery
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
?.
clone, combine, createWeight, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, rewrite, setBoost, toString, toString, weight |
WildcardQuery
public WildcardQuery(Term term)
Constructs a query for terms matching term.
rewrite
public Query rewrite(IndexReader reader)
throws IOExceptionExpert: called to re-write queries into primitive queries. For example,
a PrefixQuery will be rewritten into a BooleanQuery that consists
of TermQuerys.
- rewrite in interface MultiTermQuery
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.