| 1 |
#$GRN_QUERY_EXPANDER_TSV_SYNONYMS_FILE=#{db_directory}/synonyms.tsv |
| 2 |
#@copy-path fixture/query_expander/tsv/expand.tsv #{db_directory}/synonyms.tsv |
| 3 |
plugin_register "query_expanders/tsv" |
| 4 |
|
| 5 |
table_create Memos TABLE_NO_KEY |
| 6 |
column_create Memos content COLUMN_SCALAR ShortText |
| 7 |
|
| 8 |
load --table Memos |
| 9 |
[ |
| 10 |
["content"], |
| 11 |
["Start Rroonga!"], |
| 12 |
["Start Ruby and Groonga!"], |
| 13 |
["Start Ruby and Mroonga!"] |
| 14 |
] |
| 15 |
|
| 16 |
select --table Memos --query_expander QueryExpanderTSV \ |
| 17 |
--match_columns content --query rroonga |