public boolean equals(Object other) {return sameClassAs(other) &&term.equals(((TermQuery) other).term);}
public override bool Equals(object o){if (!(o is TermQuery)){return false;}TermQuery other = (TermQuery)o;return (this.Boost == other.Boost) && this.term.Equals(other.term);}