| 1 |
table_create TermExpansions TABLE_NO_KEY |
| 2 |
column_create TermExpansions term COLUMN_SCALAR ShortText |
| 3 |
column_create TermExpansions expansion COLUMN_SCALAR ShortText |
| 4 |
|
| 5 |
load --table TermExpansions |
| 6 |
[ |
| 7 |
{"term": "PGroonga", "expansion": "PGroonga"}, |
| 8 |
{"term": "PGroonga", "expansion": "Groonga PostgreSQL"}, |
| 9 |
{"term": "Rroonga", "expansion": "Rroonga"}, |
| 10 |
{"term": "Rroonga", "expansion": "Ruby Groonga"} |
| 11 |
] |
| 12 |
|
| 13 |
query_expand TermExpansions "Groonga Rroonga Mroonga" \ |
| 14 |
--term_column term \ |
| 15 |
--expanded_term_column expansion |