Debian Codegraph @

test/command/suite/load/index/offline/vector/text.expected

raw
1 table_create Docs TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Docs sentences COLUMN_VECTOR Text
4 [[0,0.0,0.0],true]
5 load --table Docs
6 [
7 {"sentences":["午前中は良く晴れます.", "午後は雨が降ります."]}
8 ]
9 [[0,0.0,0.0],1]
10 table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
11 [[0,0.0,0.0],true]
12 column_create Words docs_sentences COLUMN_INDEX|WITH_POSITION|WITH_SECTION Docs sentences
13 [[0,0.0,0.0],true]
14 select Docs --match_columns 'sentences' --query '"午前中"' --output_columns '_id,_score,sentences'
15 [
16 [
17 0,
18 0.0,
19 0.0
20 ],
21 [
22 [
23 [
24 1
25 ],
26 [
27 [
28 "_id",
29 "UInt32"
30 ],
31 [
32 "_score",
33 "Int32"
34 ],
35 [
36 "sentences",
37 "Text"
38 ]
39 ],
40 [
41 1,
42 1,
43 [
44 "午前中は良く晴れます.",
45 "午後は雨が降ります."
46 ]
47 ]
48 ]
49 ]
50 ]
51 select Docs --match_columns 'sentences' --query '"ります"' --output_columns '_id,_score,sentences'
52 [
53 [
54 0,
55 0.0,
56 0.0
57 ],
58 [
59 [
60 [
61 1
62 ],
63 [
64 [
65 "_id",
66 "UInt32"
67 ],
68 [
69 "_score",
70 "Int32"
71 ],
72 [
73 "sentences",
74 "Text"
75 ]
76 ],
77 [
78 1,
79 1,
80 [
81 "午前中は良く晴れます.",
82 "午後は雨が降ります."
83 ]
84 ]
85 ]
86 ]
87 ]