| 1 |
Execution example:: |
| 2 |
|
| 3 |
plugin_register token_filters/stop_word |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto --token_filters TokenFilterStopWord |
| 6 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 7 |
column_create Terms is_stop_word COLUMN_SCALAR Bool |
| 8 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 9 |
load --table Terms |
| 10 |
[ |
| 11 |
{"_key": "and", "is_stop_word": true} |
| 12 |
] |
| 13 |
# [[0,1337566253.89858,0.000355720520019531],1] |
| 14 |
table_tokenize Terms "Hello and Good-bye" --mode GET |
| 15 |
# [[0,1337566253.89858,0.000355720520019531],[]] |