| 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": "a x a x x b x x"}, |
| 12 |
{"content": "a x x x b x"} |
| 13 |
] |
| 14 |
[[0,0.0,0.0],2] |
| 15 |
select Entries --match_columns content --query '*NP2"a b"' --output_columns '_score, content' |
| 16 |
[ |
| 17 |
[ |
| 18 |
0, |
| 19 |
0.0, |
| 20 |
0.0 |
| 21 |
], |
| 22 |
[ |
| 23 |
[ |
| 24 |
[ |
| 25 |
1 |
| 26 |
], |
| 27 |
[ |
| 28 |
[ |
| 29 |
"_score", |
| 30 |
"Int32" |
| 31 |
], |
| 32 |
[ |
| 33 |
"content", |
| 34 |
"Text" |
| 35 |
] |
| 36 |
], |
| 37 |
[ |
| 38 |
1, |
| 39 |
"a x a x x b x x" |
| 40 |
] |
| 41 |
] |
| 42 |
] |
| 43 |
] |