Debian Codegraph @

test/command/suite/select/query/near/near_and_not_near.expected

raw
1 table_create Entries TABLE_PAT_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 Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto
6 [[0,0.0,0.0],true]
7 column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
8 [[0,0.0,0.0],true]
9 load --table Entries
10 [
11 {"_key": "Near and not near",
12 "content": "I also started to use Mroonga. It's also very fast! Really fast!"},
13 {"_key": "Only not near",
14 "content": "I also started to use Mroonga. It's very fast! Really fast!"}
15 ]
16 [[0,0.0,0.0],2]
17 select Entries --match_columns content --query '*N"also Really"' --output_columns content
18 [
19 [
20 0,
21 0.0,
22 0.0
23 ],
24 [
25 [
26 [
27 1
28 ],
29 [
30 [
31 "content",
32 "Text"
33 ]
34 ],
35 [
36 "I also started to use Mroonga. It's also very fast! Really fast!"
37 ]
38 ]
39 ]
40 ]