Debian Codegraph @

test/command/suite/load/index/online/vector/text.test

raw
1 table_create Docs TABLE_NO_KEY
2 column_create Docs sentences COLUMN_VECTOR Text
3
4 table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
5 column_create Words docs_sentences COLUMN_INDEX|WITH_POSITION|WITH_SECTION Docs sentences
6
7 load --table Docs
8 [
9 {"sentences":["午前中は良く晴れます.", "午後は雨が降ります."]}
10 ]
11
12 select Docs --match_columns 'sentences' --query '"午前中"' \
13 --output_columns '_id,_score,sentences'
14
15 select Docs --match_columns 'sentences' --query '"ります"' \
16 --output_columns '_id,_score,sentences'