org.apache.lucene.search
Class PrefixFilter
java.lang.Object
org.apache.lucene.search.Filter
org.apache.lucene.search.MultiTermQueryWrapperFilter<PrefixQuery>
org.apache.lucene.search.PrefixFilter
- All Implemented Interfaces:
- Serializable
public class PrefixFilter
- extends MultiTermQueryWrapperFilter<PrefixQuery>
A Filter that restricts search results to values that have a matching prefix in a given
field.
- See Also:
- Serialized Form
PrefixFilter
public PrefixFilter(Term prefix)
getPrefix
public Term getPrefix()
toString
public String toString()
- Prints a user-readable version of this query.
- Overrides:
toString
in class MultiTermQueryWrapperFilter<PrefixQuery>
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.