Debian Codegraph @

test/command/suite/select/index/nested/match_columns/last/or.expected

raw
1 table_create Users TABLE_PAT_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Users name COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 table_create Memos TABLE_PAT_KEY ShortText
6 [[0,0.0,0.0],true]
7 column_create Memos owner COLUMN_SCALAR Users
8 [[0,0.0,0.0],true]
9 column_create Memos title COLUMN_SCALAR ShortText
10 [[0,0.0,0.0],true]
11 column_create Memos content COLUMN_SCALAR Text
12 [[0,0.0,0.0],true]
13 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
14 [[0,0.0,0.0],true]
15 column_create Terms users_name COLUMN_INDEX|WITH_SECTION|WITH_POSITION Users name
16 [[0,0.0,0.0],true]
17 column_create Terms memos_title COLUMN_INDEX|WITH_SECTION|WITH_POSITION Memos title
18 [[0,0.0,0.0],true]
19 column_create Terms memos_content COLUMN_INDEX|WITH_SECTION|WITH_POSITION Memos content
20 [[0,0.0,0.0],true]
21 column_create Users memos COLUMN_INDEX Memos owner
22 [[0,0.0,0.0],true]
23 load --table Users
24 [
25 {"_key": "alice", "name": "Alice"},
26 {"_key": "bob", "name": "Bob"},
27 {"_key": "carlos", "name": "Carlos"}
28 ]
29 [[0,0.0,0.0],3]
30 load --table Memos
31 [
32 {"_key": "alice1", "owner": "alice",
33 "title": "Groonga", "content": "Groonga is full text search engine."},
34 {"_key": "alice2", "owner": "alice",
35 "title": "Rroonga", "content": "Rroonga is the Ruby bindings of Groonga."},
36 {"_key": "bob1", "owner": "bob",
37 "title": "Mroonga", "content": "Mroonga is a MySAL storage engine based on Groonga."},
38 {"_key": "carlos1", "owner": "carlos",
39 "title": "Nroonga", "content": "Nroonga is the node.js bindings of Groonga.."}
40 ]
41 [[0,0.0,0.0],4]
42 select Memos --match_columns "title || content || owner.name" --query "Carlos OR Mroonga" --output_columns '_key'
43 [[0,0.0,0.0],[[[2],[["_key","ShortText"]],["carlos1"],["bob1"]]]]