Exemple #1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (!base.Equals(obj))
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            PayloadTermQuery other = (PayloadTermQuery)obj;

            if (m_function == null)
            {
                if (other.m_function != null)
                {
                    return(false);
                }
            }
            else if (!m_function.Equals(other.m_function))
            {
                return(false);
            }
            if (includeSpanScore != other.includeSpanScore)
            {
                return(false);
            }
            return(true);
        }
Exemple #2
0
 public PayloadTermWeight(PayloadTermQuery outerInstance, PayloadTermQuery query, IndexSearcher searcher)
     : base(query, searcher)
 {
     this.outerInstance = outerInstance;
 }