Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add a tet for table_create --token_filters
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
test/command/suite/table_create/token_filters/nonexistent.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
register token_filters/stop_word | ||
[[0,0.0,0.0],true] | ||
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto --token_filters "TokenFilterStopWord,TokenFilterNonexistent,TokenFilterStopWord" | ||
[ | ||
[ | ||
[ | ||
-22, | ||
0.0, | ||
0.0 | ||
], | ||
"[table][create][token-filter] nonexistent token filter: <TokenFilterNonexistent>" | ||
], | ||
false | ||
] | ||
#|e| [table][create][token-filter] nonexistent token filter: <TokenFilterNonexistent> | ||
dump | ||
plugin_register token_filters/stop_word |
8 changes: 8 additions & 0 deletions
8
test/command/suite/table_create/token_filters/nonexistent.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
register token_filters/stop_word | ||
|
||
table_create Terms TABLE_PAT_KEY ShortText \ | ||
--default_tokenizer TokenBigram \ | ||
--normalizer NormalizerAuto \ | ||
--token_filters "TokenFilterStopWord,TokenFilterNonexistent,TokenFilterStopWord" | ||
|
||
dump |