OLD | NEW |
1 # 2006 October 1 | 1 # 2006 October 1 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #************************************************************************* | 10 #************************************************************************* |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 VALUES(3, 'The value is 123456789'); | 54 VALUES(3, 'The value is 123456789'); |
55 SELECT rowid, snippet(t1) FROM t1 WHERE t1 MATCH '123789' | 55 SELECT rowid, snippet(t1) FROM t1 WHERE t1 MATCH '123789' |
56 } | 56 } |
57 } {3 {The value is <b>123456789</b>}} | 57 } {3 {The value is <b>123456789</b>}} |
58 do_test fts3ad-1.6 { | 58 do_test fts3ad-1.6 { |
59 execsql { | 59 execsql { |
60 SELECT rowid, snippet(t1) FROM t1 WHERE t1 MATCH '123000000789' | 60 SELECT rowid, snippet(t1) FROM t1 WHERE t1 MATCH '123000000789' |
61 } | 61 } |
62 } {3 {The value is <b>123456789</b>}} | 62 } {3 {The value is <b>123456789</b>}} |
63 | 63 |
| 64 do_test fts3ad-2.1 { |
| 65 execsql { |
| 66 DROP TABLE t1; |
| 67 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter); |
| 68 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping'); |
| 69 SELECT rowid FROM t1 WHERE content MATCH 'run jump'; |
| 70 } |
| 71 } {1} |
| 72 do_test fts3ad-2.2 { |
| 73 execsql { |
| 74 DROP TABLE t1; |
| 75 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize= porter); |
| 76 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping'); |
| 77 SELECT rowid FROM t1 WHERE content MATCH 'run jump'; |
| 78 } |
| 79 } {1} |
| 80 do_test fts3ad-2.3 { |
| 81 execsql { |
| 82 DROP TABLE t1; |
| 83 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize= simple); |
| 84 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping'); |
| 85 SELECT rowid FROM t1 WHERE content MATCH 'run jump'; |
| 86 } |
| 87 } {} |
| 88 do_test fts3ad-2.4 { |
| 89 execsql { |
| 90 DROP TABLE t1; |
| 91 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize= porter); |
| 92 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping'); |
| 93 SELECT rowid FROM t1 WHERE content MATCH 'run jump'; |
| 94 } |
| 95 } {1} |
| 96 do_test fts3ad-2.5 { |
| 97 execsql { |
| 98 DROP TABLE t1; |
| 99 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize = porter); |
| 100 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping'); |
| 101 SELECT rowid FROM t1 WHERE content MATCH 'run jump'; |
| 102 } |
| 103 } {1} |
| 104 |
64 | 105 |
65 finish_test | 106 finish_test |
OLD | NEW |