Home | History | Annotate | Download | only in fts2

Lines Matching refs:pRight

1374 static int posListCmp(PLReader *pLeft, PLReader *pRight){
1375 assert( pLeft->iType==pRight->iType );
1378 if( plrAtEnd(pLeft) ) return plrAtEnd(pRight) ? 0 : 1;
1379 if( plrAtEnd(pRight) ) return -1;
1381 if( plrColumn(pLeft)<plrColumn(pRight) ) return -1;
1382 if( plrColumn(pLeft)>plrColumn(pRight) ) return 1;
1384 if( plrPosition(pLeft)<plrPosition(pRight) ) return -1;
1385 if( plrPosition(pLeft)>plrPosition(pRight) ) return 1;
1388 if( plrStartOffset(pLeft)<plrStartOffset(pRight) ) return -1;
1389 if( plrStartOffset(pLeft)>plrStartOffset(pRight) ) return 1;
1391 if( plrEndOffset(pLeft)<plrEndOffset(pRight) ) return -1;
1392 if( plrEndOffset(pLeft)>plrEndOffset(pRight) ) return 1;
1397 /* Write the union of position lists in pLeft and pRight to pOut.
1402 static int posListUnion(DLReader *pLeft, DLReader *pRight, DLWriter *pOut){
1407 assert( dlrDocid(pLeft)==dlrDocid(pRight) );
1408 assert( pLeft->iType==pRight->iType );
1413 rc = plrInit(&right, pRight);
1446 /* Write the union of doclists in pLeft and pRight to pOut. For
1452 const char *pRight, int nRight,
1460 if( nRight!=0) dataBufferAppend(pOut, pRight, nRight);
1470 rc = dlrInit(&right, DL_DEFAULT, pRight, nRight);
1514 /* pLeft and pRight are DLReaders positioned to the same docid.
1516 ** If there are no instances in pLeft or pRight where the position
1517 ** of pLeft is one less than the position of pRight, then this
1521 ** are exactly one less than positions from pRight, then add a new
1523 ** include the positions from pRight that are one more than a
1524 ** position in pLeft. In other words: pRight.iPos==pLeft.iPos+1.
1526 static int posListPhraseMerge(DLReader *pLeft, DLReader *pRight,
1533 assert( dlrDocid(pLeft)==dlrDocid(pRight) );
1538 rc = plrInit(&right, pRight);
1580 /* We have two doclists with positions: pLeft and pRight.
1584 ** if pLeft.iPos+1==pRight.iPos.
1587 ** DL_POSITIONS, the positions are those from pRight.
1591 const char *pRight, int nRight,
1605 rc = dlrInit(&right, DL_POSITIONS, pRight, nRight);
1635 /* We have two DL_DOCIDS doclists: pLeft and pRight.
1641 const char *pRight, int nRight,
1652 rc = dlrInit(&right, DL_DOCIDS, pRight, nRight);
1681 /* We have two DL_DOCIDS doclists: pLeft and pRight.
1687 const char *pRight, int nRight,
1695 if( nRight!=0 ) dataBufferAppend(pOut, pRight, nRight);
1705 rc = dlrInit(&right, DL_DOCIDS, pRight, nRight);
1744 /* We have two DL_DOCIDS doclists: pLeft and pRight.
1746 ** occur in pLeft but not in pRight.
1750 const char *pRight, int nRight,
1765 rc = dlrInit(&right, DL_DOCIDS, pRight, nRight);