| 1 |
table_create Entries TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Entries content COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
load --table Entries |
| 6 |
[ |
| 7 |
{"content": "groonga and MySQL and PosrgreSQL"} |
| 8 |
] |
| 9 |
[[0,0.0,0.0],1] |
| 10 |
select Entries --output_columns ' snippet(content, "SQL", "<span class=\\"keyword\\">", "</span>", {"width": 10, "max_n_results": 2} )' |
| 11 |
[ |
| 12 |
[ |
| 13 |
0, |
| 14 |
0.0, |
| 15 |
0.0 |
| 16 |
], |
| 17 |
[ |
| 18 |
[ |
| 19 |
[ |
| 20 |
1 |
| 21 |
], |
| 22 |
[ |
| 23 |
[ |
| 24 |
"snippet", |
| 25 |
null |
| 26 |
] |
| 27 |
], |
| 28 |
[ |
| 29 |
[ |
| 30 |
"d My<span class=\"keyword\">SQL</span> an", |
| 31 |
"Posrgre<span class=\"keyword\">SQL</span>" |
| 32 |
] |
| 33 |
] |
| 34 |
] |
| 35 |
] |
| 36 |
] |