public SpanNearQuery(SpanQuery[] spanQuery, int slop, bool inOrder) { this.clauses = new System.Collections.ArrayList(spanQuery.Length); for (int i = 0; i < spanQuery.Length; i++) { SpanQuery clause = spanQuery[i]; if (i == 0) { // check field field = clause.GetField(); } else if (!clause.GetField().Equals(field)) { throw new System.ArgumentException("Clauses must have same field."); } this.clauses.Add(clause); } this.Slop = slop; this.InOrder = inOrder; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)