Ejemplo n.º 1
0
        public override bool Equals(System.Object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (!base.Equals(obj))
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            PayloadTermQuery other = (PayloadTermQuery)obj;

            if (function == null)
            {
                if (other.function != null)
                {
                    return(false);
                }
            }
            else if (!function.Equals(other.function))
            {
                return(false);
            }
            if (includeSpanScore != other.includeSpanScore)
            {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 2
0
 public PayloadTermWeight(PayloadTermQuery enclosingInstance, PayloadTermQuery query, Searcher searcher) : base(query, searcher)
 {
     InitBlock(enclosingInstance);
 }
Ejemplo n.º 3
0
 private void  InitBlock(PayloadTermQuery enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Ejemplo n.º 4
0
			public PayloadTermWeight(PayloadTermQuery enclosingInstance, PayloadTermQuery query, Searcher searcher):base(query, searcher)
			{
				InitBlock(enclosingInstance);
			}
Ejemplo n.º 5
0
			private void  InitBlock(PayloadTermQuery enclosingInstance)
			{
				this.enclosingInstance = enclosingInstance;
			}