| 1 |
table_create Paragraphs TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Paragraphs content COLUMN_SCALAR Text |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenDelimit --normalizer NormalizerAuto |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Words index COLUMN_INDEX Paragraphs content |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Paragraphs |
| 10 |
[ |
| 11 |
{"content": "Groonga is a full text search engine"}, |
| 12 |
{"content": "Mroonga is a MySQL storage engine"}, |
| 13 |
{"content": "PGroonga is an full text search extension for PostgreSQL"}, |
| 14 |
{"content": "Rroonga is a Ruby bindings of GroongaL"} |
| 15 |
] |
| 16 |
[[0,0.0,0.0],4] |
| 17 |
select Paragraphs --match_columns content --query '*Q2"search engine MySQL"' --output_columns content,_score |
| 18 |
[ |
| 19 |
[ |
| 20 |
0, |
| 21 |
0.0, |
| 22 |
0.0 |
| 23 |
], |
| 24 |
[ |
| 25 |
[ |
| 26 |
[ |
| 27 |
2 |
| 28 |
], |
| 29 |
[ |
| 30 |
[ |
| 31 |
"content", |
| 32 |
"Text" |
| 33 |
], |
| 34 |
[ |
| 35 |
"_score", |
| 36 |
"Int32" |
| 37 |
] |
| 38 |
], |
| 39 |
[ |
| 40 |
"Groonga is a full text search engine", |
| 41 |
2 |
| 42 |
], |
| 43 |
[ |
| 44 |
"Mroonga is a MySQL storage engine", |
| 45 |
2 |
| 46 |
] |
| 47 |
] |
| 48 |
] |
| 49 |
] |