| 1 |
plugin_register token_filters/stop_word |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create Entries TABLE_NO_KEY |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Entries body COLUMN_SCALAR ShortText |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto --token_filters TokenFilterStopWord |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Entries |
| 10 |
[ |
| 11 |
{"body": "This is a pen"} |
| 12 |
] |
| 13 |
[[0,0.0,0.0],1] |
| 14 |
column_create Terms index COLUMN_INDEX|WITH_POSITION Entries body |
| 15 |
[[0,0.0,0.0],true] |
| 16 |
column_create Terms is_stop_word COLUMN_SCALAR Bool |
| 17 |
[[0,0.0,0.0],true] |
| 18 |
load --table Terms |
| 19 |
[ |
| 20 |
{"_key": "is", "is_stop_word": true}, |
| 21 |
{"_key": "a", "is_stop_word": true} |
| 22 |
] |
| 23 |
[[0,0.0,0.0],2] |
| 24 |
table_tokenize Terms "This is a pen" --index_column index |
| 25 |
[ |
| 26 |
[ |
| 27 |
0, |
| 28 |
0.0, |
| 29 |
0.0 |
| 30 |
], |
| 31 |
[ |
| 32 |
{ |
| 33 |
"value": "this", |
| 34 |
"position": 0, |
| 35 |
"force_prefix": false, |
| 36 |
"force_prefix_search": false, |
| 37 |
"estimated_size": 1 |
| 38 |
}, |
| 39 |
{ |
| 40 |
"value": "pen", |
| 41 |
"position": 3, |
| 42 |
"force_prefix": false, |
| 43 |
"force_prefix_search": false, |
| 44 |
"estimated_size": 1 |
| 45 |
} |
| 46 |
] |
| 47 |
] |
| 48 |
log_level --level debug |
| 49 |
[[0,0.0,0.0],true] |
| 50 |
select Entries --filter 'body @ "This is a pen"' |
| 51 |
[ |
| 52 |
[ |
| 53 |
0, |
| 54 |
0.0, |
| 55 |
0.0 |
| 56 |
], |
| 57 |
[ |
| 58 |
[ |
| 59 |
[ |
| 60 |
1 |
| 61 |
], |
| 62 |
[ |
| 63 |
[ |
| 64 |
"_id", |
| 65 |
"UInt32" |
| 66 |
], |
| 67 |
[ |
| 68 |
"body", |
| 69 |
"ShortText" |
| 70 |
] |
| 71 |
], |
| 72 |
[ |
| 73 |
1, |
| 74 |
"This is a pen" |
| 75 |
] |
| 76 |
] |
| 77 |
] |
| 78 |
] |
| 79 |
#|d| [ii][overlap_token_skip] tid=4 pos=0 estimated_size=1 |
| 80 |
#|d| [ii][overlap_token_skip] tid=3 pos=3 estimated_size=1 |
| 81 |
log_level --level notice |
| 82 |
[[0,0.0,0.0],true] |