public override System.Object Clone() { int sz = clauses.Count; SpanQuery[] newClauses = new SpanQuery[sz]; for (int i = 0; i < sz; i++) { SpanQuery clause = (SpanQuery) clauses[i]; newClauses[i] = (SpanQuery) clause.Clone(); } PayloadNearQuery boostingNearQuery = new PayloadNearQuery(newClauses, slop, inOrder); boostingNearQuery.SetBoost(GetBoost()); return boostingNearQuery; }
public override System.Object Clone() { int sz = clauses.Count; SpanQuery[] newClauses = new SpanQuery[sz]; for (int i = 0; i < sz; i++) { SpanQuery clause = (SpanQuery)clauses[i]; newClauses[i] = (SpanQuery)clause.Clone(); } PayloadNearQuery boostingNearQuery = new PayloadNearQuery(newClauses, slop, inOrder); boostingNearQuery.SetBoost(GetBoost()); return(boostingNearQuery); }
// @Override public override bool Equals(System.Object obj) { if (this == obj) { return(true); } if (!base.Equals(obj)) { return(false); } if (GetType() != obj.GetType()) { return(false); } PayloadNearQuery other = (PayloadNearQuery)obj; if (fieldName == null) { if (other.fieldName != null) { return(false); } } else if (!fieldName.Equals(other.fieldName)) { return(false); } if (function == null) { if (other.function != null) { return(false); } } else if (!function.Equals(other.function)) { return(false); } return(true); }
protected internal PayloadNearSpanScorer(PayloadNearQuery enclosingInstance, Mono.Lucene.Net.Search.Spans.Spans spans, Weight weight, Similarity similarity, byte[] norms) : base(spans, weight, similarity, norms) { InitBlock(enclosingInstance); this.spans = spans; }
private void InitBlock(PayloadNearQuery enclosingInstance) { this.enclosingInstance = enclosingInstance; similarity = GetSimilarity(); }
public PayloadNearSpanWeight(PayloadNearQuery enclosingInstance, SpanQuery query, Searcher searcher) : base(query, searcher) { InitBlock(enclosingInstance); }
private void InitBlock(PayloadNearQuery enclosingInstance) { this.enclosingInstance = enclosingInstance; }
protected internal PayloadNearSpanScorer(PayloadNearQuery enclosingInstance, Mono.Lucene.Net.Search.Spans.Spans spans, Weight weight, Similarity similarity, byte[] norms):base(spans, weight, similarity, norms) { InitBlock(enclosingInstance); this.spans = spans; }
private void InitBlock(PayloadNearQuery enclosingInstance) { this.enclosingInstance = enclosingInstance; similarity = GetSimilarity(); }
public PayloadNearSpanWeight(PayloadNearQuery enclosingInstance, SpanQuery query, Searcher searcher):base(query, searcher) { InitBlock(enclosingInstance); }
private void InitBlock(PayloadNearQuery enclosingInstance) { this.enclosingInstance = enclosingInstance; }