public OrNode(SectionSearchQueryPlan[] subqueries) { if (subqueries.Length == 0) { _curDoc = DocIdSetIterator.NO_MORE_DOCS; } else { _pq = new NodeQueue(subqueries.Length); foreach (SectionSearchQueryPlan q in subqueries) { if (q != null) _pq.Add(q); } _curDoc = -1; } }
public SectionSearchScorer(Query query, Similarity similarity, float score, IndexReader reader) : base(similarity) { _curScr = score; SectionSearchQueryPlanBuilder builer = new SectionSearchQueryPlanBuilder(reader); _plan = builer.GetPlan(query); if (_plan != null) { _curDoc = -1; //_more = true; // NOT USED } else { _curDoc = DocIdSetIterator.NO_MORE_DOCS; //_more = false; // NOT USED } }
public AndNode(SectionSearchQueryPlan[] subqueries) { _subqueries = subqueries; _curDoc = (subqueries.Length > 0 ? -1 : DocIdSetIterator.NO_MORE_DOCS); }
public AndNotNode(SectionSearchQueryPlan positiveNode, SectionSearchQueryPlan negativeNode) { _positiveNode = positiveNode; _negativeNode = negativeNode; }
public UnaryNotNode(SectionSearchQueryPlan subquery) { _subquery = subquery; }