| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
column_create Memos title COLUMN_SCALAR ShortText |
| 3 |
column_create Memos tags COLUMN_VECTOR ShortText |
| 4 |
|
| 5 |
table_create Terms TABLE_PAT_KEY ShortText |
| 6 |
column_create Terms index COLUMN_INDEX|WITH_SECTION Memos title,tags |
| 7 |
|
| 8 |
load --table Memos |
| 9 |
[ |
| 10 |
{"title": "Groonga", "tags": ["Groonga"]}, |
| 11 |
{"title": "Rroonga", "tags": ["Groonga", "Rroonga", "Ruby"]}, |
| 12 |
{"title": "Mroonga", "tags": ["Groonga", "Mroonga", "MySQL"]} |
| 13 |
] |
| 14 |
|
| 15 |
select Memos \ |
| 16 |
--match_columns "Terms.index.title" \ |
| 17 |
--query 'G*' \ |
| 18 |
--output_columns title,tags,_score |