| 1 |
table_create Entries TABLE_PAT_KEY ShortText |
| 2 |
column_create Entries content COLUMN_SCALAR Text |
| 3 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 4 |
column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content |
| 5 |
load --table Entries |
| 6 |
[ |
| 7 |
{"_key": "Near and not near", |
| 8 |
"content": "I also started to use Mroonga. It's also very fast! Really fast!"}, |
| 9 |
{"_key": "Only not near", |
| 10 |
"content": "I also started to use Mroonga. It's very fast! Really fast!"} |
| 11 |
] |
| 12 |
select Entries \ |
| 13 |
--match_columns content \ |
| 14 |
--query '*N"also Really"' \ |
| 15 |
--output_columns content |