| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
column_create Memos title COLUMN_SCALAR ShortText |
| 3 |
column_create Memos content COLUMN_SCALAR ShortText |
| 4 |
|
| 5 |
table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram |
| 6 |
column_create Lexicon memo_index COLUMN_INDEX|WITH_POSITION|WITH_SECTION \ |
| 7 |
Memos title,content |
| 8 |
|
| 9 |
load --table Memos |
| 10 |
[ |
| 11 |
["title", "content"], |
| 12 |
["Groonga", "Start Groonga!"], |
| 13 |
["Mroonga", "Start Mroonga!"], |
| 14 |
["Rroonga", "Start Rroonga!"], |
| 15 |
["Ruby", "Start Ruby!"], |
| 16 |
["learn", "Learning Ruby and Groonga..."] |
| 17 |
] |
| 18 |
|
| 19 |
select Memos \ |
| 20 |
--match_columns "Lexicon.memo_index[0] * 10" \ |
| 21 |
--query Ruby \ |
| 22 |
--output_columns "title, content, _score" |