| 1 |
table_create Contents TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Contents html COLUMN_SCALAR Text |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizers NormalizerNFKC --extractors ExtractorHTML |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Terms contents_html COLUMN_INDEX|WITH_POSITION Contents html |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Contents |
| 10 |
[ |
| 11 |
{"html": "<p>Groonga is a <b>fast</b> full text search engine.</p>"} |
| 12 |
] |
| 13 |
[[0,0.0,0.0],1] |
| 14 |
index_column_diff Terms contents_html |
| 15 |
[[0,0.0,0.0],[]] |
| 16 |
select Contents --match_columns html --query "fast" --output_columns html |
| 17 |
[ |
| 18 |
[ |
| 19 |
0, |
| 20 |
0.0, |
| 21 |
0.0 |
| 22 |
], |
| 23 |
[ |
| 24 |
[ |
| 25 |
[ |
| 26 |
1 |
| 27 |
], |
| 28 |
[ |
| 29 |
[ |
| 30 |
"html", |
| 31 |
"Text" |
| 32 |
] |
| 33 |
], |
| 34 |
[ |
| 35 |
"<p>Groonga is a <b>fast</b> full text search engine.</p>" |
| 36 |
] |
| 37 |
] |
| 38 |
] |
| 39 |
] |
| 40 |
select Contents --match_columns html --query "<b>" --output_columns html |
| 41 |
[[0,0.0,0.0],[[[0],[["html","Text"]]]]] |