Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
265 additions
and
8 deletions.
There are no files selected for viewing
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
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
196 changes: 196 additions & 0 deletions
196
test/command/suite/schema/tables/token_filters.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,196 @@ | ||
| plugin_register token_filters/stop_word | ||
| [[0,0.0,0.0],true] | ||
| table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --token_filters TokenFilterStopWord | ||
| [[0,0.0,0.0],true] | ||
| schema | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| { | ||
| "plugins": { | ||
| "token_filters/stop_word": { | ||
| "name": "token_filters/stop_word" | ||
| } | ||
| }, | ||
| "types": { | ||
| "Bool": { | ||
| "name": "Bool", | ||
| "size": 1, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "Float": { | ||
| "name": "Float", | ||
| "size": 8, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "Int16": { | ||
| "name": "Int16", | ||
| "size": 2, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "Int32": { | ||
| "name": "Int32", | ||
| "size": 4, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "Int64": { | ||
| "name": "Int64", | ||
| "size": 8, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "Int8": { | ||
| "name": "Int8", | ||
| "size": 1, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "LongText": { | ||
| "name": "LongText", | ||
| "size": 2147483648, | ||
| "can_be_key_type": false, | ||
| "can_be_value_type": false | ||
| }, | ||
| "Object": { | ||
| "name": "Object", | ||
| "size": 8, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "ShortText": { | ||
| "name": "ShortText", | ||
| "size": 4096, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": false | ||
| }, | ||
| "Text": { | ||
| "name": "Text", | ||
| "size": 65536, | ||
| "can_be_key_type": false, | ||
| "can_be_value_type": false | ||
| }, | ||
| "Time": { | ||
| "name": "Time", | ||
| "size": 8, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "TokyoGeoPoint": { | ||
| "name": "TokyoGeoPoint", | ||
| "size": 8, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "UInt16": { | ||
| "name": "UInt16", | ||
| "size": 2, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "UInt32": { | ||
| "name": "UInt32", | ||
| "size": 4, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "UInt64": { | ||
| "name": "UInt64", | ||
| "size": 8, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "UInt8": { | ||
| "name": "UInt8", | ||
| "size": 1, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| }, | ||
| "WGS84GeoPoint": { | ||
| "name": "WGS84GeoPoint", | ||
| "size": 8, | ||
| "can_be_key_type": true, | ||
| "can_be_value_type": true | ||
| } | ||
| }, | ||
| "tokenizers": { | ||
| "TokenBigram": { | ||
| "name": "TokenBigram" | ||
| }, | ||
| "TokenBigramIgnoreBlank": { | ||
| "name": "TokenBigramIgnoreBlank" | ||
| }, | ||
| "TokenBigramIgnoreBlankSplitSymbol": { | ||
| "name": "TokenBigramIgnoreBlankSplitSymbol" | ||
| }, | ||
| "TokenBigramIgnoreBlankSplitSymbolAlpha": { | ||
| "name": "TokenBigramIgnoreBlankSplitSymbolAlpha" | ||
| }, | ||
| "TokenBigramIgnoreBlankSplitSymbolAlphaDigit": { | ||
| "name": "TokenBigramIgnoreBlankSplitSymbolAlphaDigit" | ||
| }, | ||
| "TokenBigramSplitSymbol": { | ||
| "name": "TokenBigramSplitSymbol" | ||
| }, | ||
| "TokenBigramSplitSymbolAlpha": { | ||
| "name": "TokenBigramSplitSymbolAlpha" | ||
| }, | ||
| "TokenBigramSplitSymbolAlphaDigit": { | ||
| "name": "TokenBigramSplitSymbolAlphaDigit" | ||
| }, | ||
| "TokenDelimit": { | ||
| "name": "TokenDelimit" | ||
| }, | ||
| "TokenDelimitNull": { | ||
| "name": "TokenDelimitNull" | ||
| }, | ||
| "TokenFilterStopWord": { | ||
| "name": "TokenFilterStopWord" | ||
| }, | ||
| "TokenMecab": { | ||
| "name": "TokenMecab" | ||
| }, | ||
| "TokenRegexp": { | ||
| "name": "TokenRegexp" | ||
| }, | ||
| "TokenTrigram": { | ||
| "name": "TokenTrigram" | ||
| }, | ||
| "TokenUnigram": { | ||
| "name": "TokenUnigram" | ||
| } | ||
| }, | ||
| "normalizers": { | ||
| "NormalizerAuto": { | ||
| "name": "NormalizerAuto" | ||
| }, | ||
| "NormalizerNFKC51": { | ||
| "name": "NormalizerNFKC51" | ||
| } | ||
| }, | ||
| "tables": { | ||
| "Terms": { | ||
| "name": "Terms", | ||
| "type": "patricia trie", | ||
| "key_type": { | ||
| "name": "ShortText", | ||
| "type": "type" | ||
| }, | ||
| "value_type": null, | ||
| "tokenizer": "TokenBigram", | ||
| "normalizer": null, | ||
| "token_filters": [ | ||
| { | ||
| "name": "TokenFilterStopWord" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| ] |
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,7 @@ | ||
| plugin_register token_filters/stop_word | ||
|
|
||
| table_create Terms TABLE_PAT_KEY ShortText \ | ||
| --default_tokenizer TokenBigram \ | ||
| --token_filters TokenFilterStopWord | ||
|
|
||
| schema |
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
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
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
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
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