Debian Codegraph @

test/command/suite/select/index/nested/by_column/index.expected

raw
1 table_create Articles TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create Comments TABLE_NO_KEY
4 [[0,0.0,0.0],true]
5 column_create Comments article COLUMN_SCALAR Articles
6 [[0,0.0,0.0],true]
7 column_create Comments content COLUMN_SCALAR ShortText
8 [[0,0.0,0.0],true]
9 column_create Articles content COLUMN_SCALAR Text
10 [[0,0.0,0.0],true]
11 column_create Articles comments COLUMN_INDEX Comments article
12 [[0,0.0,0.0],true]
13 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerNFKC130
14 [[0,0.0,0.0],true]
15 column_create Terms articles_content COLUMN_INDEX|WITH_POSITION Articles content
16 [[0,0.0,0.0],true]
17 column_create Terms comments_content COLUMN_INDEX|WITH_POSITION Comments content
18 [[0,0.0,0.0],true]
19 load --table Articles
20 [
21 {"_key": "article-1", "content": "Groonga is fast!"},
22 {"_key": "article-2", "content": "Groonga is useful!"},
23 {"_key": "article-3", "content": "Mroonga is fast!"}
24 ]
25 [[0,0.0,0.0],3]
26 load --table Comments
27 [
28 {"article": "article-1", "content": "I'm using Groonga too!"},
29 {"article": "article-3", "content": "I'm using Mroonga!"},
30 {"article": "article-1", "content": "I'm using PGroonga!"}
31 ]
32 [[0,0.0,0.0],3]
33 log_level --level info
34 [[0,0.0,0.0],true]
35 select Articles --match_columns comments.content --query groonga --output_columns "_key, _score, comments.content"
36 [
37 [
38 0,
39 0.0,
40 0.0
41 ],
42 [
43 [
44 [
45 1
46 ],
47 [
48 [
49 "_key",
50 "ShortText"
51 ],
52 [
53 "_score",
54 "Int32"
55 ],
56 [
57 "comments.content",
58 "ShortText"
59 ]
60 ],
61 [
62 "article-1",
63 1,
64 [
65 "I'm using Groonga too!",
66 "I'm using PGroonga!"
67 ]
68 ]
69 ]
70 ]
71 ]
72 #|i| [object][search][index][key][exact] <Terms.comments_content>
73 #|i| grn_ii_sel > (groonga)
74 #|i| [ii][select] n=1 (groonga)
75 #|i| exact: 1
76 #|i| hits=1