| 1 |
table_create Paragraphs TABLE_NO_KEY |
| 2 |
column_create Paragraphs content COLUMN_SCALAR Text |
| 3 |
|
| 4 |
table_create Words TABLE_PAT_KEY ShortText \ |
| 5 |
--default_tokenizer TokenDelimit \ |
| 6 |
--normalizer NormalizerAuto |
| 7 |
column_create Words index COLUMN_INDEX Paragraphs content |
| 8 |
|
| 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 |
|
| 17 |
select Paragraphs \ |
| 18 |
--match_columns content \ |
| 19 |
--query '*Q"search engine MySQL"' \ |
| 20 |
--output_columns content,_score |