Debian Codegraph @

test/command/suite/select/function/snippet_html/none/no_option.test

raw
1 table_create Documents TABLE_HASH_KEY ShortText
2 column_create Documents content COLUMN_SCALAR Text
3
4 table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
5 column_create Terms document_index COLUMN_INDEX|WITH_POSITION Documents content
6
7 load --table Documents
8 [
9 ["_key", "content"],
10 ["Groonga", "Groonga can be used with MySQL."]
11 ]
12
13 select Documents \
14 --match_columns content --query 'MySQL' \
15 --output_columns '_key, snippet_html(_key)'