org.apache.lucene.search
Class WildcardTermEnum
public class WildcardTermEnum
Subclass of FilteredTermEnum for enumerating all terms that match the
specified wildcard filter term.
Term enumerations are always ordered by Term.compareTo(). Each term in
the enumeration is greater than all that precede it.
Version:
WILDCARD_CHAR
public static final char WILDCARD_CHAR
WILDCARD_STRING
public static final char WILDCARD_STRING
String equality with support for wildcards
WildcardTermEnum
public WildcardTermEnum(IndexReader reader,
Term term)
throws IOException
Creates a new
WildcardTermEnum
. Passing in a
Term
that does not contain a
WILDCARD_CHAR
will cause an exception to be thrown.
difference
public final float difference()
- difference in interface FilteredTermEnum
wildcardEquals
public static final boolean wildcardEquals(String pattern,
int patternIdx,
String string,
int stringIdx)
Determines if a word matches a wildcard pattern.
Work released by Granta Design Ltd after originally being done on
company time.
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.