| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Memos content COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Lexicon diary_content COLUMN_INDEX|WITH_POSITION Memos content |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
table_create Synonyms TABLE_PAT_KEY ShortText |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
column_create Synonyms words COLUMN_VECTOR ShortText |
| 12 |
[[0,0.0,0.0],true] |
| 13 |
load --table Memos |
| 14 |
[ |
| 15 |
["content"], |
| 16 |
["Start groonga or mroonga!"], |
| 17 |
["Start groonga! Or mroonga!"], |
| 18 |
["Start groonga! OR! mroonga!"] |
| 19 |
] |
| 20 |
[[0,0.0,0.0],3] |
| 21 |
load --table Synonyms |
| 22 |
[ |
| 23 |
["_key", "words"], |
| 24 |
["OR", ["or"]] |
| 25 |
] |
| 26 |
[[0,0.0,0.0],1] |
| 27 |
select --table Memos --query_expander Synonyms.words --match_columns content --query '"OR"' |
| 28 |
[ |
| 29 |
[ |
| 30 |
0, |
| 31 |
0.0, |
| 32 |
0.0 |
| 33 |
], |
| 34 |
[ |
| 35 |
[ |
| 36 |
[ |
| 37 |
1 |
| 38 |
], |
| 39 |
[ |
| 40 |
[ |
| 41 |
"_id", |
| 42 |
"UInt32" |
| 43 |
], |
| 44 |
[ |
| 45 |
"content", |
| 46 |
"ShortText" |
| 47 |
] |
| 48 |
], |
| 49 |
[ |
| 50 |
1, |
| 51 |
"Start groonga or mroonga!" |
| 52 |
] |
| 53 |
] |
| 54 |
] |
| 55 |
] |