[MDEV-12976] '+test +10' doesn't match 'test 10' Created: 2017-06-02 Updated: 2017-06-03 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Full-text Search |
| Affects Version/s: | 10.1.23 |
| Fix Version/s: | 10.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Olaf van der Spek | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian |
||
| Description |
|
Yes, 10 is shorter then min-token-size, but test is not. IMO it should use the index to find all rows matching test, fetch them and then check for 10.
|
| Comments |
| Comment by Sergei Golubchik [ 2017-06-03 ] | |||||||||||||||
|
It works with MyISAM, but not quite:
It looks like InnoDB takes your «"10" must be present» wish literally, but cannot find any row with it, because "10" is not present in the index (too short words are not indexed). While MyISAM seems to consistently ignore short words both when indexing and in queries. |