File: nested_index.expected

package info (click to toggle)
groonga 16.0.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188,416 kB
  • sloc: ansic: 772,827; cpp: 52,396; ruby: 40,556; javascript: 10,250; yacc: 7,045; sh: 5,627; python: 2,821; makefile: 1,679
file content (96 lines) | stat: -rw-r--r-- 2,794 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
table_create Entries TABLE_HASH_KEY ShortText
[[0,0.0,0.0],true]
column_create Entries content COLUMN_SCALAR Text
[[0,0.0,0.0],true]
table_create Blogs TABLE_HASH_KEY ShortText
[[0,0.0,0.0],true]
column_create Blogs entries COLUMN_VECTOR Entries
[[0,0.0,0.0],true]
table_create Users TABLE_HASH_KEY ShortText
[[0,0.0,0.0],true]
column_create Users blogs COLUMN_VECTOR Blogs
[[0,0.0,0.0],true]
column_create Blogs users COLUMN_INDEX Users blogs
[[0,0.0,0.0],true]
column_create Entries blogs COLUMN_INDEX Blogs entries
[[0,0.0,0.0],true]
table_create Terms TABLE_PAT_KEY ShortText   --default_tokenizer TokenBigram   --normalizer NormalizerAuto
[[0,0.0,0.0],true]
column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION   Entries content
[[0,0.0,0.0],true]
table_create LooseTerms TABLE_PAT_KEY|KEY_NORMALIZE ShortText   --default_tokenizer TokenBigramIgnoreBlankSplitSymbolAlphaDigit   --normalizer NormalizerAuto
[[0,0.0,0.0],true]
column_create LooseTerms entries_content_index COLUMN_INDEX|WITH_POSITION   Entries content
[[0,0.0,0.0],true]
load --table Entries
[
{"_key": "alice:2013-03-12",
 "content": "Welcome! This is my first post!"},
{"_key": "bob:2013-03-12",
 "content": "I started to use groonga. It's very fast!"},
{"_key": "carlos:2013-03-12",
 "content": "I also started to use mroonga. It's also very fast! Really fast!"},
{"_key": "alice:2013-03-13",
 "content": "I also started to use mroonga. It's also very very fast!"},
{"_key": "bob:2013-03-13",
 "content": "I migrated all Senna system!"},
{"_key": "carlos:2013-03-13",
 "content": "I also migrated all Tritonn system!"}
]
[[0,0.0,0.0],6]
load --table Blogs
[
{"_key": "Alice's Adventures in Wonderland",
 "entries": ["alice:2013-03-12", "alice:2013-03-13"]},
{"_key": "Bob memo",
 "entries": ["bob:2013-03-12", "bob:2013-03-13"]},
{"_key": "Carlog",
 "entries": ["calros:2013-03-12", "calros:2013-03-13"]}
]
[[0,0.0,0.0],3]
load --table Users
[
{"_key": "alice",  "blogs": ["Alice's Adventures in Wonderland"]},
{"_key": "bob",    "blogs": ["Bob memo"]},
{"_key": "calros", "blogs": ["Carlog"]}
]
[[0,0.0,0.0],3]
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'
[
  [
    0,
    0.0,
    0.0
  ],
  [
    [
      [
        1
      ],
      [
        [
          "_key",
          "ShortText"
        ],
        [
          "blogs.entries.content",
          "Text"
        ],
        [
          "_score",
          "Int32"
        ]
      ],
      [
        "bob",
        [
          [
            "I started to use groonga. It's very fast!",
            "I migrated all Senna system!"
          ]
        ],
        25
      ]
    ]
  ]
]