Apache Lucene.Net 2.4.0 Class Library API

Query.ExtractTerms Method 

Expert: adds all terms occuring in this query to the terms set. Only works if this query is in its {@link #rewrite rewritten} form.

public virtual void ExtractTerms(
   Hashtable terms
);

See Also

Query Class | Lucene.Net.Search Namespace