Method Add
Add(Term)
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.
Declaration
public virtual void Add(Term term)
Parameters
Type | Name | Description |
---|---|---|
Term | term |
Add(Term, Int32)
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).
Declaration
public virtual void Add(Term term, int position)
Parameters
Type | Name | Description |
---|---|---|
Term | term | |
System.Int32 | position |