Documentation of 'org.apache.lucene.search.WildcardQuery' Java class
WildcardQuery
org.apache.lucene.search

Class WildcardQuery

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    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, Serialized Form
    • Constructor Detail

      • WildcardQuery

        public WildcardQuery(Term term)
    • Method Detail

      • rewrite

        public Query rewrite(IndexReader reader)
                      throws java.io.IOException
        Description copied from class: Query
        Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
        Overrides:
        rewrite in class MultiTermQuery
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.