5 | | 1) searching for "'core feature'" returns 1 result (not highlighted) |
6 | | 2) " 'core feature'" returns 0 results; the problem is the query_to_sql() function only matches quotes at the beginning or end of the query. If someone wants to do a moderately complex search (ie, "foo 'bar baz'"), they will not get the results they expect. |
7 | | 3) ""core feature"" returns 1 result, and replaces the " with " in the text input field. |
8 | | 4) ""core feature"" (which is what the text input window contains after searching for ""core feature"") returns 0 results |
9 | | 5) "a" fails the 'too short' test. |
10 | | 6) "%a%" happily returns every result in the database. |
11 | | 7) "_a_" also will return every result in the database. |
12 | | 8) ditto for "'a'" |
13 | | 9) "\%a" doesn't actually tell me how many results it finds (i assume the sql query it's running is invalid, but I'm not sure how to turn on query logging in sqlite). It returns 4 wiki pages, however. |
| 5 | 1. searching for "'core feature'" returns 1 result (not highlighted) |
| 6 | 2. " 'core feature'" returns 0 results; the problem is the query_to_sql() function only matches quotes at the beginning or end of the query. If someone wants to do a moderately complex search (ie, "foo 'bar baz'"), they will not get the results they expect. |
| 7 | 3. ""core feature"" returns 1 result, and replaces the " with " in the text input field. |
| 8 | 4. ""core feature"" (which is what the text input window contains after searching for ""core feature"") returns 0 results |
| 9 | 5. "a" fails the 'too short' test. |
| 10 | 6. "%a%" happily returns every result in the database. |
| 11 | 7. "_a_" also will return every result in the database. |
| 12 | 8. ditto for "'a'" |
| 13 | 9. "\%a" doesn't actually tell me how many results it finds (i assume the sql query it's running is invalid, but I'm not sure how to turn on query logging in sqlite). It returns 4 wiki pages, however. |