| 1 |
table_create Entries TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Entries content COLUMN_SCALAR Text |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC121 |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Terms entries_content COLUMN_INDEX|WITH_POSITION Entries content |
| 8 |
[[0,0.0,0.0],true] |
| 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 |
[[0,0.0,0.0],8] |
| 21 |
select Entries --match_columns content --query '*NP"abc def .$"' --output_columns '_score, content' |
| 22 |
[ |
| 23 |
[ |
| 24 |
0, |
| 25 |
0.0, |
| 26 |
0.0 |
| 27 |
], |
| 28 |
[ |
| 29 |
[ |
| 30 |
[ |
| 31 |
3 |
| 32 |
], |
| 33 |
[ |
| 34 |
[ |
| 35 |
"_score", |
| 36 |
"Int32" |
| 37 |
], |
| 38 |
[ |
| 39 |
"content", |
| 40 |
"Text" |
| 41 |
] |
| 42 |
], |
| 43 |
[ |
| 44 |
1, |
| 45 |
"abc def." |
| 46 |
], |
| 47 |
[ |
| 48 |
1, |
| 49 |
"abc 1 2 3 4 5 6 7 8 9 def." |
| 50 |
], |
| 51 |
[ |
| 52 |
1, |
| 53 |
"abc 1 de 2 def." |
| 54 |
] |
| 55 |
] |
| 56 |
] |
| 57 |
] |