Debian Codegraph @

test/command/suite/select/query/adjust/negative/multiple_weight.test

raw
1 table_create Memos TABLE_NO_KEY
2 column_create Memos title COLUMN_SCALAR ShortText
3 column_create Memos content COLUMN_SCALAR ShortText
4
5 table_create Terms TABLE_PAT_KEY ShortText \
6 --default_tokenizer TokenBigram \
7 --normalizer NormalizerAuto
8 column_create Terms index COLUMN_INDEX|WITH_POSITION|WITH_SECTION Memos title,content
9
10 load --table Memos
11 [
12 {"title": "Groonga", "content": "Groonga is a full text search engine."},
13 {"title": "Rroonga", "content": "Rroonga is the Ruby bindings of Groonga."},
14 {"title": "Mroonga", "content": "Mroonga is a MySQL storage engine based of Groonga."}
15 ]
16
17 select Memos \
18 --query 'title:@Groonga ~0.1content:@full ~0.3content:@text' \
19 --columns[score].stage filtered \
20 --columns[score].flags COLUMN_SCALAR \
21 --columns[score].type Float32 \
22 --columns[score].value _score \
23 --output_columns 'title,content,score'
24