| 1 |
table_create TermExpansions TABLE_NO_KEY |
| 2 |
column_create TermExpansions term COLUMN_SCALAR ShortText |
| 3 |
column_create TermExpansions expansions COLUMN_VECTOR ShortText |
| 4 |
|
| 5 |
table_create Terms TABLE_PAT_KEY ShortText \ |
| 6 |
--normalizer NormalizerAuto |
| 7 |
column_create Terms expansion_term COLUMN_INDEX TermExpansions term |
| 8 |
|
| 9 |
load --table TermExpansions |
| 10 |
[ |
| 11 |
{"term": "Rroonga", "expansions": ["Rroonga", "Ruby Groonga"]} |
| 12 |
] |
| 13 |
|
| 14 |
query_expand TermExpansions "Groonga rroonga Mroonga" \ |
| 15 |
--term_column term \ |
| 16 |
--expanded_term_column expansions |