Debian Codegraph @

test/command/suite/select/index/multi_column/multiple_indexes.test

raw
1 table_create Bigram TABLE_PAT_KEY ShortText \
2 --default_tokenizer TokenBigramSplitSymbolAlpha \
3 --normalizer NormalizerAuto
4
5 table_create Memos TABLE_HASH_KEY ShortText
6 column_create Memos title COLUMN_SCALAR ShortText
7 column_create Memos content COLUMN_SCALAR Text
8
9 column_create Bigram memos1 \
10 COLUMN_INDEX|WITH_POSITION|WITH_SECTION \
11 Memos title,content
12 column_create Bigram memos2 \
13 COLUMN_INDEX|WITH_POSITION|WITH_SECTION \
14 Memos content,title
15
16 load --table Memos
17 [
18 {
19 "_key": "2013-02-06",
20 "title": "Groonga",
21 "content": "It's a fast fulltext search engine!"
22 },
23 {
24 "_key": "2013-02-07",
25 "title": "Mroonga",
26 "content": "It's a MySQL storage engine to use Groonga!"
27 },
28 {
29 "_key": "2013-02-08",
30 "title": "Rroonga",
31 "content": "It's Rroonga bindings for Groonga!"
32 }
33 ]
34
35 select Memos \
36 --match_columns 'title' \
37 --query 'Groonga' \
38 --output_columns 'title,_score'