@@ -1389,9 +1389,9 @@ TS_phrase_execute(QueryItem *curitem,
13891389 return false;
13901390
13911391 /*
1392- * if at least one of the operands has no position information,
1393- * then return false. But if TS_EXEC_PHRASE_AS_AND flag is set then
1394- * we return true as it is a AND operation
1392+ * if at least one of the operands has no position information, then
1393+ * return false. But if TS_EXEC_PHRASE_AS_AND flag is set then we
1394+ * return true as it is a AND operation
13951395 */
13961396 if (Ldata .npos == 0 || Rdata .npos == 0 )
13971397 return (flags & TS_EXEC_PHRASE_AS_AND ) ? true : false;
@@ -1428,8 +1428,8 @@ TS_phrase_execute(QueryItem *curitem,
14281428 while (Rpos < Rdata .pos + Rdata .npos )
14291429 {
14301430 /*
1431- * We need to check all possible distances, so reset Lpos
1432- * to guranteed not yet satisfied position.
1431+ * We need to check all possible distances, so reset Lpos to
1432+ * guaranteed not yet satisfied position.
14331433 */
14341434 Lpos = LposStart ;
14351435 while (Lpos < Ldata .pos + Ldata .npos )
@@ -1445,8 +1445,8 @@ TS_phrase_execute(QueryItem *curitem,
14451445 pos_iter ++ ;
14461446
14471447 /*
1448- * Set left start position to next, because current one
1449- * could not satisfy distance for any other right
1448+ * Set left start position to next, because current
1449+ * one could not satisfy distance for any other right
14501450 * position
14511451 */
14521452 LposStart = Lpos + 1 ;
@@ -1455,16 +1455,16 @@ TS_phrase_execute(QueryItem *curitem,
14551455 else
14561456 {
14571457 /*
1458- * We are in the root of the phrase tree and hence
1459- * we don't have to store the resulting positions
1458+ * We are in the root of the phrase tree and hence we
1459+ * don't have to store the resulting positions
14601460 */
14611461 return true;
14621462 }
14631463
14641464 }
14651465 else if (WEP_GETPOS (* Rpos ) <= WEP_GETPOS (* Lpos ) ||
14661466 WEP_GETPOS (* Rpos ) - WEP_GETPOS (* Lpos ) <
1467- curitem -> qoperator .distance )
1467+ curitem -> qoperator .distance )
14681468 {
14691469 /*
14701470 * Go to the next Rpos, because Lpos is ahead or on less
@@ -1534,9 +1534,10 @@ TS_execute(QueryItem *curitem, void *checkval, uint32 flags,
15341534 return TS_execute (curitem + 1 , checkval , flags , chkcond );
15351535
15361536 case OP_PHRASE :
1537+
15371538 /*
1538- * do not check TS_EXEC_PHRASE_AS_AND here because chkcond()
1539- * could do something more if it's called from TS_phrase_execute()
1539+ * do not check TS_EXEC_PHRASE_AS_AND here because chkcond() could
1540+ * do something more if it's called from TS_phrase_execute()
15401541 */
15411542 return TS_phrase_execute (curitem , checkval , flags , NULL , chkcond );
15421543
0 commit comments