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