| 1 |
table_create Entries TABLE_NO_KEY |
| 2 |
column_create Entries content COLUMN_SCALAR Text |
| 3 |
|
| 4 |
table_create Terms TABLE_PAT_KEY ShortText \ |
| 5 |
--default_tokenizer 'TokenNgram("unify_alphabet", false, \ |
| 6 |
"unify_digit", false)' \ |
| 7 |
--normalizer NormalizerNFKC121 |
| 8 |
column_create Terms entries_content COLUMN_INDEX|WITH_POSITION Entries content |
| 9 |
|
| 10 |
load --table Entries |
| 11 |
[ |
| 12 |
{"content": "abcXYZdef"}, |
| 13 |
{"content": "abebcdXYZdef"}, |
| 14 |
{"content": "abcdef"}, |
| 15 |
{"content": "defXYZabc"}, |
| 16 |
{"content": "XYZabc"}, |
| 17 |
{"content": "abc12345678901def"}, |
| 18 |
{"content": "abc1234567890def"}, |
| 19 |
{"content": "abc1de2def"} |
| 20 |
] |
| 21 |
|
| 22 |
select Entries \ |
| 23 |
--match_columns content \ |
| 24 |
--query '*NP"abc def"' \ |
| 25 |
--output_columns '_score, content' |