| 1 |
table_create Entries TABLE_PAT_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Entries content COLUMN_SCALAR Text |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Entries |
| 10 |
[ |
| 11 |
{"_key": "The first post!", |
| 12 |
"content": "Welcome! This is my first post!"}, |
| 13 |
{"_key": "Groonga", |
| 14 |
"content": "I started to use groonga. It's very fast!"}, |
| 15 |
{"_key": "Mroonga", |
| 16 |
"content": "I also started to use mroonga. It's also very fast! Really fast!"}, |
| 17 |
{"_key": "Good-bye Senna", |
| 18 |
"content": "I migrated all Senna system!"}, |
| 19 |
{"_key": "Good-bye Tritonn", |
| 20 |
"content": "I also migrated all Tritonn system!"} |
| 21 |
] |
| 22 |
[[0,0.0,0.0],5] |
| 23 |
select Entries --match_columns content --query '-fast' |
| 24 |
[[[-63,0.0,0.0],"Syntax error: <|-|fast>"]] |
| 25 |
#|e| Syntax error: <|-|fast> |