DotLucene 1.4 API Documentation |

# PhraseQuery.Add Method

Adds a term to the end of the query phrase. The relative position of the term is the one immediately after the last term added.

#### Overload List

Adds a term to the end of the query phrase. The relative position of the term is the one immediately after the last term added.

> public virtual void Add(Term);

Adds a term to the end of the query phrase. The relative position of the term within the phrase is specified explicitly. This allows e.g. phrases with more than one term at the same position or phrases with gaps (e.g. in connection with stopwords).

> public virtual void Add(Term,int);

#### See Also

PhraseQuery Class | Lucene.Net.Search Namespace