/// <summary>Return true iff we represent the same query as o</summary> /// <param name="o">another object /// </param> /// <returns> true iff o is a DisjunctionMaxQuery with the same boost and the same subqueries, in the same order, as us /// </returns> public override bool Equals(System.Object o) { if (!(o is DisjunctionMaxQuery)) { return(false); } DisjunctionMaxQuery other = (DisjunctionMaxQuery)o; return(this.GetBoost() == other.GetBoost() && this.tieBreakerMultiplier == other.tieBreakerMultiplier && this.disjuncts.Equals(other.disjuncts)); }