TermQuery

constructor(t: Term)

Constructs a query for the term t.


constructor(t: Term, states: TermStates)

Expert: constructs a TermQuery that will use the provided docFreq instead of looking up the docFreq against the searcher.