| 1 |
table_create Entries TABLE_NO_KEY |
| 2 |
column_create Entries body COLUMN_SCALAR ShortText |
| 3 |
|
| 4 |
table_create Terms TABLE_PAT_KEY ShortText \ |
| 5 |
--default_tokenizer TokenBigram \ |
| 6 |
--normalizer NormalizerAuto |
| 7 |
column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body |
| 8 |
column_create Terms is_stop_word COLUMN_SCALAR Bool |
| 9 |
|
| 10 |
load --table Entries |
| 11 |
[ |
| 12 |
{"body": "Mroonga is a MySQL storage engine based on Groonga. <b>Rroonga</b> is a Ruby binding of Groonga."}, |
| 13 |
{"body": "It is a pen."}, |
| 14 |
{"body": "I am a boy."}, |
| 15 |
{"body": "This is good."} |
| 16 |
] |
| 17 |
|
| 18 |
select Entries \ |
| 19 |
--filter 'body *S "Groonga is fast full text search engine. There are SQL interfaces by Mroonga and PGroonga and Ruby interface by Rroonga."' \ |
| 20 |
--output_columns 'highlight_html(body)' |