| 1 |
plugin_register "query_expanders/tsv" |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create Memos TABLE_NO_KEY |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Memos content COLUMN_SCALAR ShortText |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
table_create Lexicon TABLE_PAT_KEY ShortText --normalizer NormalizerAuto --default_tokenizer TokenBigram |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create Lexicon memos_content COLUMN_INDEX|WITH_POSITION Memos content |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
load --table Memos |
| 12 |
[ |
| 13 |
["content"], |
| 14 |
["Start Groonga!"], |
| 15 |
["Start Mroonga!"], |
| 16 |
["Start Rroonga!"], |
| 17 |
["Start Ruby!"], |
| 18 |
["Learning Ruby and Groonga..."] |
| 19 |
] |
| 20 |
[[0,0.0,0.0],5] |
| 21 |
select --table Memos --filter 'query("content", "-content:@mroonga", { "expander": "QueryExpanderTSV", "flags": ["ALLOW_LEADING_NOT", "ALLOW_COLUMN"] })' |
| 22 |
[ |
| 23 |
[ |
| 24 |
0, |
| 25 |
0.0, |
| 26 |
0.0 |
| 27 |
], |
| 28 |
[ |
| 29 |
[ |
| 30 |
[ |
| 31 |
4 |
| 32 |
], |
| 33 |
[ |
| 34 |
[ |
| 35 |
"_id", |
| 36 |
"UInt32" |
| 37 |
], |
| 38 |
[ |
| 39 |
"content", |
| 40 |
"ShortText" |
| 41 |
] |
| 42 |
], |
| 43 |
[ |
| 44 |
1, |
| 45 |
"Start Groonga!" |
| 46 |
], |
| 47 |
[ |
| 48 |
3, |
| 49 |
"Start Rroonga!" |
| 50 |
], |
| 51 |
[ |
| 52 |
4, |
| 53 |
"Start Ruby!" |
| 54 |
], |
| 55 |
[ |
| 56 |
5, |
| 57 |
"Learning Ruby and Groonga..." |
| 58 |
] |
| 59 |
] |
| 60 |
] |
| 61 |
] |