| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Memos content COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC150 |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Lexicon memos_content COLUMN_INDEX|WITH_POSITION Memos content |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Memos |
| 10 |
[ |
| 11 |
{"content": "This is a pen"}, |
| 12 |
{"content": "That is a pen"}, |
| 13 |
{"content": "They are pens"} |
| 14 |
] |
| 15 |
[[0,0.0,0.0],3] |
| 16 |
select Memos --match_columns content --query "Thas OR ere" --fuzzy_max_distance 1 --output_columns *,_score --command_version 3 --output_trace_log yes --output_type apache-arrow |
| 17 |
return_code: int32 |
| 18 |
start_time: timestamp[ns] |
| 19 |
elapsed_time: double |
| 20 |
error_message: string |
| 21 |
error_file: string |
| 22 |
error_line: uint32 |
| 23 |
error_function: string |
| 24 |
error_input_file: string |
| 25 |
error_input_line: int32 |
| 26 |
error_input_command: string |
| 27 |
-- metadata -- |
| 28 |
GROONGA:data_type: metadata |
| 29 |
return_code start_time elapsed_time error_message error_file error_line error_function error_input_file error_input_line error_input_command |
| 30 |
(int32) (timestamp) (double) (utf8) (utf8) (uint32) (utf8) (utf8) (int32) (utf8) |
| 31 |
0 0 1970-01-01T09:00:00+09:00 0.000000 (null) (null) (null) (null) (null) (null) (null) |
| 32 |
======================================== |
| 33 |
depth: uint16 |
| 34 |
sequence: uint16 |
| 35 |
name: dictionary<values=string, indices=int16, ordered=0> |
| 36 |
value: dense_union<0: uint32=0, 1: string=1> |
| 37 |
elapsed_time: uint64 |
| 38 |
-- metadata -- |
| 39 |
GROONGA:data_type: trace_log |
| 40 |
depth sequence name value elapsed_time |
| 41 |
(uint16) (uint16) (dictionary) (dense_union) (uint64) |
| 42 |
0 1 0 ii.select.input Thas 0 |
| 43 |
1 1 1 ii.select.operator or 1 |
| 44 |
2 2 0 ii.select.exact.n_hits 0 2 |
| 45 |
3 2 0 ii.select.fuzzy.input Thas 3 |
| 46 |
4 2 1 ii.select.fuzzy.input.actual that 4 |
| 47 |
5 2 2 ii.select.fuzzy.input.actual this 5 |
| 48 |
6 2 3 ii.select.fuzzy.n_hits 2 6 |
| 49 |
7 1 2 ii.select.n_hits 2 7 |
| 50 |
8 1 0 ii.select.input ere 8 |
| 51 |
9 1 1 ii.select.operator or 9 |
| 52 |
10 2 0 ii.select.exact.n_hits 2 10 |
| 53 |
11 1 2 ii.select.n_hits 2 11 |
| 54 |
======================================== |
| 55 |
content: string |
| 56 |
_score: double |
| 57 |
-- metadata -- |
| 58 |
GROONGA:n_hits: 2 |
| 59 |
content _score |
| 60 |
(utf8) (double) |
| 61 |
0 This is a pen 1.000000 |
| 62 |
1 That is a pen 1.000000 |