Class PrefixFilter
A Filter that restricts search results to values that have a matching prefix in a given field.
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class PrefixFilter : MultiTermQueryWrapperFilter<PrefixQuery>
Constructors
PrefixFilter(Term)
A Filter that restricts search results to values that have a matching prefix in a given field.
Declaration
public PrefixFilter(Term prefix)
Parameters
Type | Name | Description |
---|---|---|
Term | prefix |
Properties
Prefix
A Filter that restricts search results to values that have a matching prefix in a given field.
Declaration
public virtual Term Prefix { get; }
Property Value
Type | Description |
---|---|
Term |
Methods
ToString()
Prints a user-readable version of this query.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |