| 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 \ |
| 6 |
--normalizer NormalizerNFKC121 |
| 7 |
column_create Terms entries_content COLUMN_INDEX|WITH_POSITION Entries content |
| 8 |
|
| 9 |
load --table Entries |
| 10 |
[ |
| 11 |
{"content": "abc. def"}, |
| 12 |
{"content": "abebcd. def."}, |
| 13 |
{"content": "abc def."}, |
| 14 |
{"content": "def. abc"}, |
| 15 |
{"content": ". abc def"}, |
| 16 |
{"content": "abc 1 2 3 4 5 6 7 8 9 10 def."}, |
| 17 |
{"content": "abc 1 2 3 4 5 6 7 8 9 def."}, |
| 18 |
{"content": "abc 1 de 2 def."} |
| 19 |
] |
| 20 |
|
| 21 |
select Entries \ |
| 22 |
--match_columns content \ |
| 23 |
--query '*NP"abc .$ def"' \ |
| 24 |
--output_columns '_score, content' |