Apache Lucene.Net 2.4.0 Class Library API

Term.CompareTo Method (Term)

Compares two terms, returning a negative integer if this term belongs before the argument, zero if this term is equal to the argument, and a positive integer if this term belongs after the argument. The ordering of terms is first by field, then by text.

public int CompareTo(
   Term other
);

See Also

Term Class | Lucene.Net.Index Namespace | Term.CompareTo Overload List