Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add missing similar search threshold in filter tests
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
test/command/suite/select/filter/similar/threshold.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,42 @@ | ||
| table_create Data TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Data content COLUMN_SCALAR ShortText | ||
| [[0,0.0,0.0],true] | ||
| table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto | ||
| [[0,0.0,0.0],true] | ||
| column_create Terms data_content COLUMN_INDEX|WITH_POSITION Data content | ||
| [[0,0.0,0.0],true] | ||
| load --table Data | ||
| [ | ||
| {"content": "a a a b b c d e f g h i j k"} | ||
| ] | ||
| [[0,0.0,0.0],1] | ||
| select --table Data --filter 'content *S2 "a b c"' --output_columns content,_score --sortby _id | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| [ | ||
| [ | ||
| [ | ||
| 1 | ||
| ], | ||
| [ | ||
| [ | ||
| "content", | ||
| "ShortText" | ||
| ], | ||
| [ | ||
| "_score", | ||
| "Int32" | ||
| ] | ||
| ], | ||
| [ | ||
| "a a a b b c d e f g h i j k", | ||
| 2097155 | ||
| ] | ||
| ] | ||
| ] | ||
| ] |
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 Data TABLE_NO_KEY | ||
| column_create Data content COLUMN_SCALAR ShortText | ||
|
|
||
| table_create Terms TABLE_PAT_KEY ShortText \ | ||
| --default_tokenizer TokenBigram \ | ||
| --normalizer NormalizerAuto | ||
| column_create Terms data_content COLUMN_INDEX|WITH_POSITION Data content | ||
|
|
||
| load --table Data | ||
| [ | ||
| {"content": "a a a b b c d e f g h i j k"} | ||
| ] | ||
|
|
||
| select \ | ||
| --table Data \ | ||
| --filter 'content *S2 "a b c"' \ | ||
| --output_columns content,_score \ | ||
| --sortby _id |