- Notifications
You must be signed in to change notification settings - Fork5
Commit3dbbd0f
committed
Do not fallback to AND for FTS phrase operator.
If there is no positional information of lexemes then phrase operator will notfallback to AND operator. This change makes needing to modify TS_execute()interface, because somewhere (in indexes, for example) positional informationis unaccesible and in this cases we need to force fallback to AND.Per discussion c19fcfec308e6ccd952cdde9e648b505@mail.gmail.com1 parent028350f commit3dbbd0f
File tree
7 files changed
+53
-27
lines changed- src
- backend/utils/adt
- include/tsearch
- test/regress
- expected
- sql
7 files changed
+53
-27
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
311 |
| - | |
| 311 | + | |
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
364 |
| - | |
| 364 | + | |
| 365 | + | |
365 | 366 |
| |
366 | 367 |
| |
367 | 368 |
| |
| |||
373 | 374 |
| |
374 | 375 |
| |
375 | 376 |
| |
376 |
| - | |
| 377 | + | |
| 378 | + | |
377 | 379 |
| |
378 | 380 |
| |
379 | 381 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
662 | 662 |
| |
663 | 663 |
| |
664 | 664 |
| |
665 |
| - | |
| 665 | + | |
| 666 | + | |
666 | 667 |
| |
667 | 668 |
| |
668 | 669 |
| |
| |||
691 | 692 |
| |
692 | 693 |
| |
693 | 694 |
| |
694 |
| - | |
| 695 | + | |
| 696 | + | |
695 | 697 |
| |
696 | 698 |
| |
697 | 699 |
| |
|
Lines changed: 19 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1360 | 1360 |
| |
1361 | 1361 |
| |
1362 | 1362 |
| |
1363 |
| - | |
| 1363 | + | |
1364 | 1364 |
| |
1365 | 1365 |
| |
1366 | 1366 |
| |
| |||
1382 | 1382 |
| |
1383 | 1383 |
| |
1384 | 1384 |
| |
1385 |
| - | |
| 1385 | + | |
1386 | 1386 |
| |
1387 | 1387 |
| |
1388 |
| - | |
| 1388 | + | |
1389 | 1389 |
| |
1390 | 1390 |
| |
1391 | 1391 |
| |
1392 | 1392 |
| |
1393 |
| - | |
| 1393 | + | |
| 1394 | + | |
1394 | 1395 |
| |
1395 | 1396 |
| |
1396 |
| - | |
| 1397 | + | |
1397 | 1398 |
| |
1398 | 1399 |
| |
1399 | 1400 |
| |
| |||
1498 | 1499 |
| |
1499 | 1500 |
| |
1500 | 1501 |
| |
1501 |
| - | |
1502 |
| - | |
1503 | 1502 |
| |
1504 | 1503 |
| |
1505 | 1504 |
| |
1506 | 1505 |
| |
1507 |
| - | |
| 1506 | + | |
1508 | 1507 |
| |
1509 | 1508 |
| |
1510 | 1509 |
| |
| |||
1517 | 1516 |
| |
1518 | 1517 |
| |
1519 | 1518 |
| |
1520 |
| - | |
1521 |
| - | |
| 1519 | + | |
| 1520 | + | |
1522 | 1521 |
| |
1523 | 1522 |
| |
1524 | 1523 |
| |
1525 | 1524 |
| |
1526 |
| - | |
1527 |
| - | |
| 1525 | + | |
| 1526 | + | |
1528 | 1527 |
| |
1529 | 1528 |
| |
1530 | 1529 |
| |
1531 | 1530 |
| |
1532 |
| - | |
| 1531 | + | |
1533 | 1532 |
| |
1534 | 1533 |
| |
1535 |
| - | |
| 1534 | + | |
1536 | 1535 |
| |
1537 | 1536 |
| |
1538 |
| - | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
1539 | 1542 |
| |
1540 | 1543 |
| |
1541 | 1544 |
| |
| |||
1633 | 1636 |
| |
1634 | 1637 |
| |
1635 | 1638 |
| |
1636 |
| - | |
| 1639 | + | |
1637 | 1640 |
| |
1638 | 1641 |
| |
1639 | 1642 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 |
| - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
116 | 133 |
| |
117 | 134 |
| |
118 | 135 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1459 | 1459 |
| |
1460 | 1460 |
| |
1461 | 1461 |
| |
1462 |
| - | |
| 1462 | + | |
| 1463 | + | |
1463 | 1464 |
| |
1464 | 1465 |
| |
1465 | 1466 |
| |
1466 |
| - | |
1467 |
| - | |
1468 |
| - | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
1469 | 1470 |
| |
1470 | 1471 |
| |
1471 | 1472 |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
482 | 482 |
| |
483 | 483 |
| |
484 | 484 |
| |
485 |
| - | |
| 485 | + | |
| 486 | + | |
486 | 487 |
| |
487 | 488 |
| |
488 | 489 |
| |
|
0 commit comments
Comments
(0)