/// <summary> /// Returns a term that corresponds to a given word. /// A new term is created if such term doesn't exist. /// </summary> public Term getTerm(String value) { Term term = null; if (terms.TryGetValue(value, out term)) { return term; } term = new Term(value); terms.Add(value, term); return term; }
public QueryTerm(Term term, int frequency) { this.term = term; this.frequency = frequency; }