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 quorum match in filter tests
- Loading branch information
Showing
4 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
test/command/suite/select/filter/quorum_match/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,53 @@ | ||
| table_create Paragraphs TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Paragraphs content COLUMN_SCALAR Text | ||
| [[0,0.0,0.0],true] | ||
| table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenDelimit --normalizer NormalizerAuto | ||
| [[0,0.0,0.0],true] | ||
| column_create Words index COLUMN_INDEX Paragraphs content | ||
| [[0,0.0,0.0],true] | ||
| load --table Paragraphs | ||
| [ | ||
| {"content": "Groonga is a full text search engine"}, | ||
| {"content": "Mroonga is a MySQL storage engine"}, | ||
| {"content": "PGroonga is an full text search extension for PostgreSQL"}, | ||
| {"content": "Rroonga is a Ruby bindings of GroongaL"} | ||
| ] | ||
| [[0,0.0,0.0],4] | ||
| select Paragraphs --filter 'content *Q "search engine MySQL"' --output_columns content,_score | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| [ | ||
| [ | ||
| [ | ||
| 3 | ||
| ], | ||
| [ | ||
| [ | ||
| "content", | ||
| "Text" | ||
| ], | ||
| [ | ||
| "_score", | ||
| "Int32" | ||
| ] | ||
| ], | ||
| [ | ||
| "Groonga is a full text search engine", | ||
| 2 | ||
| ], | ||
| [ | ||
| "PGroonga is an full text search extension for PostgreSQL", | ||
| 1 | ||
| ], | ||
| [ | ||
| "Mroonga is a MySQL storage engine", | ||
| 2 | ||
| ] | ||
| ] | ||
| ] | ||
| ] |
19 changes: 19 additions & 0 deletions
19
test/command/suite/select/filter/quorum_match/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,19 @@ | ||
| table_create Paragraphs TABLE_NO_KEY | ||
| column_create Paragraphs content COLUMN_SCALAR Text | ||
|
|
||
| table_create Words TABLE_PAT_KEY ShortText \ | ||
| --default_tokenizer TokenDelimit \ | ||
| --normalizer NormalizerAuto | ||
| column_create Words index COLUMN_INDEX Paragraphs content | ||
|
|
||
| load --table Paragraphs | ||
| [ | ||
| {"content": "Groonga is a full text search engine"}, | ||
| {"content": "Mroonga is a MySQL storage engine"}, | ||
| {"content": "PGroonga is an full text search extension for PostgreSQL"}, | ||
| {"content": "Rroonga is a Ruby bindings of GroongaL"} | ||
| ] | ||
|
|
||
| select Paragraphs \ | ||
| --filter 'content *Q "search engine MySQL"' \ | ||
| --output_columns content,_score |
49 changes: 49 additions & 0 deletions
49
test/command/suite/select/filter/quorum_match/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,49 @@ | ||
| table_create Paragraphs TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Paragraphs content COLUMN_SCALAR Text | ||
| [[0,0.0,0.0],true] | ||
| table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenDelimit --normalizer NormalizerAuto | ||
| [[0,0.0,0.0],true] | ||
| column_create Words index COLUMN_INDEX Paragraphs content | ||
| [[0,0.0,0.0],true] | ||
| load --table Paragraphs | ||
| [ | ||
| {"content": "Groonga is a full text search engine"}, | ||
| {"content": "Mroonga is a MySQL storage engine"}, | ||
| {"content": "PGroonga is an full text search extension for PostgreSQL"}, | ||
| {"content": "Rroonga is a Ruby bindings of GroongaL"} | ||
| ] | ||
| [[0,0.0,0.0],4] | ||
| select Paragraphs --filter 'content *Q2 "search engine MySQL"' --output_columns content,_score | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| [ | ||
| [ | ||
| [ | ||
| 2 | ||
| ], | ||
| [ | ||
| [ | ||
| "content", | ||
| "Text" | ||
| ], | ||
| [ | ||
| "_score", | ||
| "Int32" | ||
| ] | ||
| ], | ||
| [ | ||
| "Groonga is a full text search engine", | ||
| 2 | ||
| ], | ||
| [ | ||
| "Mroonga is a MySQL storage engine", | ||
| 2 | ||
| ] | ||
| ] | ||
| ] | ||
| ] |
19 changes: 19 additions & 0 deletions
19
test/command/suite/select/filter/quorum_match/threshold.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,19 @@ | ||
| table_create Paragraphs TABLE_NO_KEY | ||
| column_create Paragraphs content COLUMN_SCALAR Text | ||
|
|
||
| table_create Words TABLE_PAT_KEY ShortText \ | ||
| --default_tokenizer TokenDelimit \ | ||
| --normalizer NormalizerAuto | ||
| column_create Words index COLUMN_INDEX Paragraphs content | ||
|
|
||
| load --table Paragraphs | ||
| [ | ||
| {"content": "Groonga is a full text search engine"}, | ||
| {"content": "Mroonga is a MySQL storage engine"}, | ||
| {"content": "PGroonga is an full text search extension for PostgreSQL"}, | ||
| {"content": "Rroonga is a Ruby bindings of GroongaL"} | ||
| ] | ||
|
|
||
| select Paragraphs \ | ||
| --filter 'content *Q2 "search engine MySQL"' \ | ||
| --output_columns content,_score |