Debian Codegraph @

test/command/suite/select/function/query/nested_index.expected

raw
1 table_create Entries TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Entries content COLUMN_SCALAR Text
4 [[0,0.0,0.0],true]
5 table_create Blogs TABLE_HASH_KEY ShortText
6 [[0,0.0,0.0],true]
7 column_create Blogs entries COLUMN_VECTOR Entries
8 [[0,0.0,0.0],true]
9 table_create Users TABLE_HASH_KEY ShortText
10 [[0,0.0,0.0],true]
11 column_create Users blogs COLUMN_VECTOR Blogs
12 [[0,0.0,0.0],true]
13 column_create Blogs users COLUMN_INDEX Users blogs
14 [[0,0.0,0.0],true]
15 column_create Entries blogs COLUMN_INDEX Blogs entries
16 [[0,0.0,0.0],true]
17 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto
18 [[0,0.0,0.0],true]
19 column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
20 [[0,0.0,0.0],true]
21 table_create LooseTerms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigramIgnoreBlankSplitSymbolAlphaDigit --normalizer NormalizerAuto
22 [[0,0.0,0.0],true]
23 column_create LooseTerms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
24 [[0,0.0,0.0],true]
25 load --table Entries
26 [
27 {"_key": "alice:2013-03-12",
28 "content": "Welcome! This is my first post!"},
29 {"_key": "bob:2013-03-12",
30 "content": "I started to use groonga. It's very fast!"},
31 {"_key": "carlos:2013-03-12",
32 "content": "I also started to use mroonga. It's also very fast! Really fast!"},
33 {"_key": "alice:2013-03-13",
34 "content": "I also started to use mroonga. It's also very very fast!"},
35 {"_key": "bob:2013-03-13",
36 "content": "I migrated all Senna system!"},
37 {"_key": "carlos:2013-03-13",
38 "content": "I also migrated all Tritonn system!"}
39 ]
40 [[0,0.0,0.0],6]
41 load --table Blogs
42 [
43 {"_key": "Alice's Adventures in Wonderland",
44 "entries": ["alice:2013-03-12", "alice:2013-03-13"]},
45 {"_key": "Bob memo",
46 "entries": ["bob:2013-03-12", "bob:2013-03-13"]},
47 {"_key": "Carlog",
48 "entries": ["calros:2013-03-12", "calros:2013-03-13"]}
49 ]
50 [[0,0.0,0.0],3]
51 load --table Users
52 [
53 {"_key": "alice", "blogs": ["Alice's Adventures in Wonderland"]},
54 {"_key": "bob", "blogs": ["Bob memo"]},
55 {"_key": "calros", "blogs": ["Carlog"]}
56 ]
57 [[0,0.0,0.0],3]
58 select Users --filter 'sub_filter(blogs.entries, "query(\\"Terms.entries_content_index * 20 || LooseTerms.entries_content_index * 5\\", \\"groonga\\")")' --output_columns '_key, blogs.entries.content, _score'
59 [
60 [
61 0,
62 0.0,
63 0.0
64 ],
65 [
66 [
67 [
68 1
69 ],
70 [
71 [
72 "_key",
73 "ShortText"
74 ],
75 [
76 "blogs.entries.content",
77 "Text"
78 ],
79 [
80 "_score",
81 "Int32"
82 ]
83 ],
84 [
85 "bob",
86 [
87 [
88 "I started to use groonga. It's very fast!",
89 "I migrated all Senna system!"
90 ]
91 ],
92 25
93 ]
94 ]
95 ]
96 ]