Debian Codegraph @

test/command/suite/select/function/vector/vector_find/reference.expected

raw
1 plugin_register functions/vector
2 [[0,0.0,0.0],true]
3 table_create Tags TABLE_PAT_KEY ShortText
4 [[0,0.0,0.0],true]
5 table_create Memos TABLE_HASH_KEY ShortText
6 [[0,0.0,0.0],true]
7 column_create Memos tags COLUMN_VECTOR Tags
8 [[0,0.0,0.0],true]
9 load --table Memos
10 [
11 {"_key": "Groonga", "tags": ["Groonga", "Full text search"]},
12 {"_key": "Rroonga", "tags": ["Groonga", "Full text search", "Ruby", "Library"]},
13 {"_key": "Nothing"}
14 ]
15 [[0,0.0,0.0],3]
16 select Memos --output_columns 'tags, vector_find(tags, "Full text search")'
17 [
18 [
19 0,
20 0.0,
21 0.0
22 ],
23 [
24 [
25 [
26 3
27 ],
28 [
29 [
30 "tags",
31 "Tags"
32 ],
33 [
34 "vector_find",
35 null
36 ]
37 ],
38 [
39 [
40 "Groonga",
41 "Full text search"
42 ],
43 "Full text search"
44 ],
45 [
46 [
47 "Groonga",
48 "Full text search",
49 "Ruby",
50 "Library"
51 ],
52 "Full text search"
53 ],
54 [
55 [],
56 null
57 ]
58 ]
59 ]
60 ]