public override System.Object Clone() { SpanFirstQuery spanFirstQuery = new SpanFirstQuery((SpanQuery)match.Clone(), end); spanFirstQuery.Boost = Boost; return(spanFirstQuery); }
public override System.Object Clone() { SpanNotQuery spanNotQuery = new SpanNotQuery((SpanQuery)include.Clone(), (SpanQuery)exclude.Clone()); spanNotQuery.Boost = Boost; return(spanNotQuery); }
public override System.Object Clone() { int sz = clauses.Count; SpanQuery[] newClauses = new SpanQuery[sz]; for (int i = 0; i < sz; i++) { SpanQuery clause = clauses[i]; newClauses[i] = (SpanQuery)clause.Clone(); } SpanNearQuery spanNearQuery = new SpanNearQuery(newClauses, internalSlop, inOrder); spanNearQuery.Boost = Boost; return(spanNearQuery); }