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
4 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
test/command/suite/table_create/default_tokenizer/delimit/default.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,50 @@ | ||
table_create Tags TABLE_PAT_KEY ShortText --default_tokenizer TokenDelimit | ||
[[0,0.0,0.0],true] | ||
table_create Movies TABLE_HASH_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
column_create Movies tags COLUMN_VECTOR Tags | ||
[[0,0.0,0.0],true] | ||
column_create Tags movies_tags COLUMN_INDEX Movies tags | ||
[[0,0.0,0.0],true] | ||
load --table Movies | ||
[ | ||
{"_key": "Seven Samurai", tags: "Samurai Japanese Japan"}, | ||
{"_key": "The Last Samurai", tags: "Samurai English Japanese US Japan"} | ||
] | ||
[[0,0.0,0.0],2] | ||
select Tags --output_columns _key --limit -1 | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
5 | ||
], | ||
[ | ||
[ | ||
"_key", | ||
"ShortText" | ||
] | ||
], | ||
[ | ||
"English" | ||
], | ||
[ | ||
"Japan" | ||
], | ||
[ | ||
"Japanese" | ||
], | ||
[ | ||
"Samurai" | ||
], | ||
[ | ||
"US" | ||
] | ||
] | ||
] | ||
] |
15 changes: 15 additions & 0 deletions
15
test/command/suite/table_create/default_tokenizer/delimit/default.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,15 @@ | ||
table_create Tags TABLE_PAT_KEY ShortText \ | ||
--default_tokenizer TokenDelimit | ||
|
||
table_create Movies TABLE_HASH_KEY ShortText | ||
column_create Movies tags COLUMN_VECTOR Tags | ||
|
||
column_create Tags movies_tags COLUMN_INDEX Movies tags | ||
|
||
load --table Movies | ||
[ | ||
{"_key": "Seven Samurai", tags: "Samurai Japanese Japan"}, | ||
{"_key": "The Last Samurai", tags: "Samurai English Japanese US Japan"} | ||
] | ||
|
||
select Tags --output_columns _key --limit -1 |
50 changes: 50 additions & 0 deletions
50
test/command/suite/table_create/default_tokenizer/delimit/normalize.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,50 @@ | ||
table_create Tags TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenDelimit | ||
[[0,0.0,0.0],true] | ||
table_create Movies TABLE_HASH_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
column_create Movies tags COLUMN_VECTOR Tags | ||
[[0,0.0,0.0],true] | ||
column_create Tags movies_tags COLUMN_INDEX Movies tags | ||
[[0,0.0,0.0],true] | ||
load --table Movies | ||
[ | ||
{"_key": "Seven Samurai", tags: "Samurai Japanese Japan"}, | ||
{"_key": "The Last Samurai", tags: "Samurai English Japanese US Japan"} | ||
] | ||
[[0,0.0,0.0],2] | ||
select Tags --output_columns _key --limit -1 | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
5 | ||
], | ||
[ | ||
[ | ||
"_key", | ||
"ShortText" | ||
] | ||
], | ||
[ | ||
"english" | ||
], | ||
[ | ||
"japan" | ||
], | ||
[ | ||
"japanese" | ||
], | ||
[ | ||
"samurai" | ||
], | ||
[ | ||
"us" | ||
] | ||
] | ||
] | ||
] |
15 changes: 15 additions & 0 deletions
15
test/command/suite/table_create/default_tokenizer/delimit/normalize.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,15 @@ | ||
table_create Tags TABLE_PAT_KEY|KEY_NORMALIZE ShortText \ | ||
--default_tokenizer TokenDelimit | ||
|
||
table_create Movies TABLE_HASH_KEY ShortText | ||
column_create Movies tags COLUMN_VECTOR Tags | ||
|
||
column_create Tags movies_tags COLUMN_INDEX Movies tags | ||
|
||
load --table Movies | ||
[ | ||
{"_key": "Seven Samurai", tags: "Samurai Japanese Japan"}, | ||
{"_key": "The Last Samurai", tags: "Samurai English Japanese US Japan"} | ||
] | ||
|
||
select Tags --output_columns _key --limit -1 |