| 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 |
load --table Memos |
| 8 |
[ |
| 9 |
["content"], |
| 10 |
["Start Rroonga!"], |
| 11 |
["Start Ruby and Groonga!"] |
| 12 |
] |
| 13 |
[[0,0.0,0.0],2] |
| 14 |
select --table Memos --query_expander QueryExpanderTSV --match_columns content --query rroonga |
| 15 |
[ |
| 16 |
[ |
| 17 |
0, |
| 18 |
0.0, |
| 19 |
0.0 |
| 20 |
], |
| 21 |
[ |
| 22 |
[ |
| 23 |
[ |
| 24 |
2 |
| 25 |
], |
| 26 |
[ |
| 27 |
[ |
| 28 |
"_id", |
| 29 |
"UInt32" |
| 30 |
], |
| 31 |
[ |
| 32 |
"content", |
| 33 |
"ShortText" |
| 34 |
] |
| 35 |
], |
| 36 |
[ |
| 37 |
2, |
| 38 |
"Start Ruby and Groonga!" |
| 39 |
], |
| 40 |
[ |
| 41 |
1, |
| 42 |
"Start Rroonga!" |
| 43 |
] |
| 44 |
] |
| 45 |
] |
| 46 |
] |
| 47 |
plugin_unregister "query_expanders/tsv" |
| 48 |
[[0,0.0,0.0],true] |
| 49 |
select --table Memos --query_expander QueryExpanderTSV --match_columns content --query rroonga |
| 50 |
[[[-22,0.0,0.0],"[select] nonexistent query expander: <QueryExpanderTSV>"]] |
| 51 |
#|e| [select] nonexistent query expander: <QueryExpanderTSV> |