Exemplo n.º 1
0
 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
                }
            }
Exemplo n.º 3
0
 public AndNode(SectionSearchQueryPlan[] subqueries)
 {
     _subqueries = subqueries;
     _curDoc = (subqueries.Length > 0 ? -1 : DocIdSetIterator.NO_MORE_DOCS);
 }
Exemplo n.º 4
0
 public AndNotNode(SectionSearchQueryPlan positiveNode, SectionSearchQueryPlan negativeNode)
 {
     _positiveNode = positiveNode;
     _negativeNode = negativeNode;
 }
Exemplo n.º 5
0
 public UnaryNotNode(SectionSearchQueryPlan subquery)
 {
     _subquery = subquery;
 }