Class SrndPrefixQuery
Query that matches string prefixes
Inherited Members
Namespace: Lucene.Net.QueryParsers.Surround.Query
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class SrndPrefixQuery : SimpleTerm, IDistanceSubQuery, IComparable<SimpleTerm>
Constructors
SrndPrefixQuery(string, bool, char)
Query that matches string prefixes
Declaration
public SrndPrefixQuery(string prefix, bool quoted, char truncator)
Parameters
| Type | Name | Description |
|---|---|---|
| string | prefix | |
| bool | quoted | |
| char | truncator |
Properties
Prefix
Query that matches string prefixes
Declaration
public virtual string Prefix { get; }
Property Value
| Type | Description |
|---|---|
| string |
SuffixOperator
Query that matches string prefixes
Declaration
public virtual char SuffixOperator { get; }
Property Value
| Type | Description |
|---|---|
| char |
Methods
GetLucenePrefixTerm(string)
Query that matches string prefixes
Declaration
public virtual Term GetLucenePrefixTerm(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName |
Returns
| Type | Description |
|---|---|
| Term |
SuffixToString(StringBuilder)
Query that matches string prefixes
Declaration
protected override void SuffixToString(StringBuilder r)
Parameters
| Type | Name | Description |
|---|---|---|
| StringBuilder | r |
Overrides
ToStringUnquoted()
Query that matches string prefixes
Declaration
public override string ToStringUnquoted()
Returns
| Type | Description |
|---|---|
| string |
Overrides
VisitMatchingTerms(IndexReader, string, IMatchingTermVisitor)
Query that matches string prefixes
Declaration
public override void VisitMatchingTerms(IndexReader reader, string fieldName, SimpleTerm.IMatchingTermVisitor mtv)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexReader | reader | |
| string | fieldName | |
| SimpleTerm.IMatchingTermVisitor | mtv |