Lines Matching refs:pLeft

673 ** pLeft and pRight are two DocListReaders that are pointing to
676 ** If there are no instances in pLeft or pRight where the position
677 ** of pLeft is one less than the position of pRight, then this
680 ** If there are one or more instances where positions from pLeft
684 ** position in pLeft. In other words: pRight.iPos==pLeft.iPos+1.
686 ** pLeft and pRight are left pointing at the next document record.
689 DocListReader *pLeft, /* Left position list */
691 sqlite_int64 iDocid, /* The docid from pLeft and pRight */
694 int iLeftCol, iLeftPos = readPosition(pLeft, &iLeftCol);
708 iLeftPos = readPosition(pLeft, &iLeftCol);
714 iLeftPos = readPosition(pLeft, &iLeftCol);
717 if( iLeftPos>=0 ) skipPositionList(pLeft);
721 /* We have two doclists: pLeft and pRight.
725 ** if pLeft.iPos+1==pRight.iPos.
731 DocList *pLeft, /* Doclist resulting from the words on the left */
738 readerInit(&left, pLeft);
756 /* We have two doclists: pLeft and pRight.
763 DocList *pLeft, /* Doclist resulting from the words on the left */
772 readerInit(&left, pLeft);
790 /* We have two doclists: pLeft and pRight.
797 DocList *pLeft, /* Doclist resulting from the words on the left */
804 readerInit(&left, pLeft);
833 /* We have two doclists: pLeft and pRight.
834 ** Write into pOut all documents that occur in pLeft but not
842 DocList *pLeft, /* Doclist resulting from the words on the left */
849 readerInit(&left, pLeft);
2593 DocList *pLeft, *pRight, *pNew;
2596 pLeft = docListNew(DL_POSITIONS);
2597 rc = term_select_all(v, iColumn, pQTerm->pTerm, pQTerm->nTerm, pLeft);
2599 docListDelete(pLeft);
2606 docListDelete(pLeft);
2610 docListPhraseMerge(pLeft, pRight, pNew);
2611 docListDelete(pLeft);
2613 pLeft = pNew;
2615 *ppResult = pLeft;
2784 DocList *pLeft = NULL;
2820 if( pLeft==0 ){
2821 pLeft = pRight;
2824 docListAndMerge(pLeft, pRight, pNew);
2826 docListDelete(pLeft);
2827 pLeft = pNew;
2831 if( nNot && pLeft==0 ){
2842 docListDelete(pLeft);
2846 docListExceptMerge(pLeft, pRight, pNew);
2848 docListDelete(pLeft);
2849 pLeft = pNew;
2852 *pResult = pLeft;