Beispiel #1
0
 /// <summary>Returns true iff <code>o</code> is equal to this. </summary>
 public override bool Equals(System.Object o)
 {
     if (o is FilteredQuery)
     {
         FilteredQuery fq = (FilteredQuery)o;
         return(query.Equals(fq.query) && filter.Equals(fq.filter) && GetBoost() == fq.GetBoost());
     }
     return(false);
 }
Beispiel #2
0
 /// <summary>Returns true iff <c>o</c> is equal to this. </summary>
 public override bool Equals(object o)
 {
     if (o is FilteredQuery)
     {
         FilteredQuery fq = (FilteredQuery)o;
         return(query.Equals(fq.query) && filter.Equals(fq.filter) && Boost == fq.Boost);
     }
     return(false);
 }
Beispiel #3
0
        public override bool Equals(object o)
        {
            var other = o as CachingWrapperFilter;

            if (other == null)
            {
                return(false);
            }
            return(_filter.Equals(other._filter));
        }
Beispiel #4
0
 public override bool Equals(object o)
 {
     if (o is null)
     {
         return(false);
     }
     if (!(o is CachingWrapperFilter other))
     {
         return(false);
     }
     return(_filter.Equals(other._filter));
 }
        /// <summary>Returns true if <code>o</code> is equal to this. </summary>
        public override bool Equals(System.Object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (!(o is ConstantScoreQuery))
            {
                return(false);
            }
            ConstantScoreQuery other = (ConstantScoreQuery)o;

            return(this.GetBoost() == other.GetBoost() && filter.Equals(other.filter));
        }
        /// <summary>Returns true if <c>o</c> is equal to this. </summary>
        public override bool Equals(System.Object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (!(o is ConstantScoreQuery))
            {
                return(false);
            }
            ConstantScoreQuery other = (ConstantScoreQuery)o;

            return(this.Boost == other.Boost && internalFilter.Equals(other.internalFilter));
        }