Debian Codegraph @

test/command/suite/column_create/index/source/scalar_column/text/html.test

raw
1 table_create Contents TABLE_NO_KEY
2 column_create Contents html COLUMN_SCALAR Text
3
4 table_create Terms TABLE_PAT_KEY ShortText \
5 --default_tokenizer TokenBigram \
6 --normalizers NormalizerNFKC \
7 --extractors ExtractorHTML
8 column_create Terms contents_html COLUMN_INDEX|WITH_POSITION Contents html
9
10 load --table Contents
11 [
12 {"html": "<p>Groonga is a <b>fast</b> full text search engine.</p>"}
13 ]
14
15 index_column_diff Terms contents_html
16
17 select Contents \
18 --match_columns html \
19 --query "fast" \
20 --output_columns html
21 select Contents \
22 --match_columns html \
23 --query "<b>" \
24 --output_columns html