Lucene.Net 1.9.1 Class Library

Term.CompareTo Method

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.

Overload List

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);

 

public int CompareTo(object);

See Also

Term Class | Lucene.Net.Index Namespace