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
6 changed files
with
108 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
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
70 changes: 70 additions & 0 deletions
70
test/command/suite/select/function/fuzzy_search/index/vector.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,70 @@ | ||
table_create Users TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Users name COLUMN_VECTOR ShortText | ||
[[0,0.0,0.0],true] | ||
table_create Tags TABLE_PAT_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
column_create Tags tag COLUMN_INDEX Users name | ||
[[0,0.0,0.0],true] | ||
load --table Users | ||
[ | ||
{"name": ["Tom", "Tomy"]}, | ||
{"name": ["Tomy", "Tom"]}, | ||
{"name": ["Tomy", "Ken"]}, | ||
{"name": ["Tom", "Ken"]}, | ||
{"name": ["Ken"]} | ||
] | ||
[[0,0.0,0.0],5] | ||
select Users --filter 'fuzzy_search(name, "Tom", 2)' --output_columns 'name, _score' --match_escalation_threshold -1 | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
4 | ||
], | ||
[ | ||
[ | ||
"name", | ||
"ShortText" | ||
], | ||
[ | ||
"_score", | ||
"Int32" | ||
] | ||
], | ||
[ | ||
[ | ||
"Tom", | ||
"Tomy" | ||
], | ||
2 | ||
], | ||
[ | ||
[ | ||
"Tomy", | ||
"Tom" | ||
], | ||
3 | ||
], | ||
[ | ||
[ | ||
"Tomy", | ||
"Ken" | ||
], | ||
2 | ||
], | ||
[ | ||
[ | ||
"Tom", | ||
"Ken" | ||
], | ||
3 | ||
] | ||
] | ||
] | ||
] |
18 changes: 18 additions & 0 deletions
18
test/command/suite/select/function/fuzzy_search/index/vector.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,18 @@ | ||
table_create Users TABLE_NO_KEY | ||
column_create Users name COLUMN_VECTOR ShortText | ||
|
||
table_create Tags TABLE_PAT_KEY ShortText | ||
column_create Tags tag COLUMN_INDEX Users name | ||
|
||
load --table Users | ||
[ | ||
{"name": ["Tom", "Tomy"]}, | ||
{"name": ["Tomy", "Tom"]}, | ||
{"name": ["Tomy", "Ken"]}, | ||
{"name": ["Tom", "Ken"]}, | ||
{"name": ["Ken"]} | ||
] | ||
|
||
select Users --filter 'fuzzy_search(name, "Tom", 2)' \ | ||
--output_columns 'name, _score' \ | ||
--match_escalation_threshold -1 |