DotLucene 1.4 API Documentation |

# Term.CompareTo Method

Compares two terms, returning an integer which is less than zero iff this term belongs after the argument, equal zero iff this term is equal to the argument, and greater than zero iff this term belongs after the argument. The ordering of terms is first by Field, then by text.

#### Overload List

Compares two terms, returning an integer which is less than zero iff this term belongs after the argument, equal zero iff this term is equal to the argument, and greater than zero iff 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