/// <summary>Compute a hash code for hashing us</summary>
 /// <returns> the hash code
 /// </returns>
 public override int GetHashCode()
 {
     return(BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) + BitConverter.ToInt32(BitConverter.GetBytes(tieBreakerMultiplier), 0) + disjuncts.GetHashCode());
 }
Example #2
0
 /// <summary>Returns a hash code value for this object.</summary>
 public override int GetHashCode()
 {
     return(BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) ^ clauses.GetHashCode() + GetMinimumNumberShouldMatch());
 }
Example #3
0
        /// <summary>Returns a hash code value for this object.</summary>
        public override int GetHashCode()
        {
            int boostInt = BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0);

            return(boostInt ^ clauses.GetHashCode());
        }
Example #4
0
 /// <summary>Returns a hash code value for this object.</summary>
 public override int GetHashCode()
 {
     return(BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) ^ slop ^ terms.GetHashCode() ^ positions.GetHashCode());
 }