Class SimpleTerm
Base class for queries that expand to sets of simple terms.
Assembly: Lucene.Net.QueryParser.dll
Syntax
public abstract class SimpleTerm : SrndQuery, IDistanceSubQuery, IComparable<SimpleTerm>
Constructors
SimpleTerm(bool)
Base class for queries that expand to sets of simple terms.
Declaration
protected SimpleTerm(bool quoted)
Parameters
Type |
Name |
Description |
bool |
quoted |
|
Properties
FieldOperator
Base class for queries that expand to sets of simple terms.
Declaration
public virtual string FieldOperator { get; }
Property Value
Quote
Base class for queries that expand to sets of simple terms.
Declaration
public virtual string Quote { get; }
Property Value
Methods
AddSpanQueries(SpanNearClauseFactory)
Base class for queries that expand to sets of simple terms.
Declaration
public virtual void AddSpanQueries(SpanNearClauseFactory sncf)
Parameters
CompareTo(SimpleTerm)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
[Obsolete("deprecated (March 2011) Not normally used, to be removed from Lucene 4.0. This class implementing Comparable is to be removed at the same time.")]
public int CompareTo(SimpleTerm ost)
Parameters
Returns
Type |
Description |
int |
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value | Meaning |
---|
Less than zero | This instance precedes other in the sort order. | Zero | This instance occurs in the same position in the sort order as other . | Greater than zero | This instance follows other in the sort order. |
|
DistanceSubQueryNotAllowed()
Declaration
public virtual string DistanceSubQueryNotAllowed()
Returns
MakeLuceneQueryFieldNoBoost(string, BasicQueryFactory)
Base class for queries that expand to sets of simple terms.
Declaration
public override Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf)
Parameters
Returns
Overrides
SuffixToString(StringBuilder)
Base class for queries that expand to sets of simple terms.
Declaration
protected virtual void SuffixToString(StringBuilder r)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
ToStringUnquoted()
Base class for queries that expand to sets of simple terms.
Declaration
public abstract string ToStringUnquoted()
Returns
VisitMatchingTerms(IndexReader, string, IMatchingTermVisitor)
Base class for queries that expand to sets of simple terms.
Declaration
public abstract void VisitMatchingTerms(IndexReader reader, string fieldName, SimpleTerm.IMatchingTermVisitor mtv)
Parameters
Implements