-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests for --query_expansion OR at the end is moved.
- Loading branch information
Showing
5 changed files
with
110 additions
and
21 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
test/command/suite/select/query_expansion/scalar/or_at_the_end.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,29 @@ | ||
table_create Memos TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Memos content COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
[[0,0.0,0.0],true] | ||
column_create Lexicon diary_content COLUMN_INDEX|WITH_POSITION Memos content | ||
[[0,0.0,0.0],true] | ||
table_create Synonyms TABLE_PAT_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
column_create Synonyms words COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
load --table Memos | ||
[ | ||
["content"], | ||
["Start groonga!"], | ||
["Start mroonga!"], | ||
["Start rroonga!"], | ||
["Start Ruby or Python!"] | ||
] | ||
[[0,0.0,0.0],4] | ||
load --table Synonyms | ||
[ | ||
["_key", "words"], | ||
["OR", "or"] | ||
] | ||
[[0,0.0,0.0],1] | ||
select --table Memos --query_expansion Synonyms.words --match_columns content --query 'groonga OR' | ||
[[0,0.0,0.0],[[[0],[["_id","UInt32"],["content","ShortText"]]]]] |
26 changes: 26 additions & 0 deletions
26
test/command/suite/select/query_expansion/scalar/or_at_the_end.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,26 @@ | ||
table_create Memos TABLE_NO_KEY | ||
column_create Memos content COLUMN_SCALAR ShortText | ||
|
||
table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
column_create Lexicon diary_content COLUMN_INDEX|WITH_POSITION Memos content | ||
|
||
table_create Synonyms TABLE_PAT_KEY ShortText | ||
column_create Synonyms words COLUMN_SCALAR ShortText | ||
|
||
load --table Memos | ||
[ | ||
["content"], | ||
["Start groonga!"], | ||
["Start mroonga!"], | ||
["Start rroonga!"], | ||
["Start Ruby or Python!"] | ||
] | ||
|
||
load --table Synonyms | ||
[ | ||
["_key", "words"], | ||
["OR", "or"] | ||
] | ||
|
||
select --table Memos --query_expansion Synonyms.words \ | ||
--match_columns content --query 'groonga OR' |
29 changes: 29 additions & 0 deletions
29
test/command/suite/select/query_expansion/vector/or_at_the_end.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,29 @@ | ||
table_create Memos TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Memos content COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
[[0,0.0,0.0],true] | ||
column_create Lexicon diary_content COLUMN_INDEX|WITH_POSITION Memos content | ||
[[0,0.0,0.0],true] | ||
table_create Synonyms TABLE_PAT_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
column_create Synonyms words COLUMN_VECTOR ShortText | ||
[[0,0.0,0.0],true] | ||
load --table Memos | ||
[ | ||
["content"], | ||
["Start groonga!"], | ||
["Start mroonga!"], | ||
["Start rroonga!"], | ||
["Start Ruby or Python!"] | ||
] | ||
[[0,0.0,0.0],4] | ||
load --table Synonyms | ||
[ | ||
["_key", "words"], | ||
["OR", ["or"]] | ||
] | ||
[[0,0.0,0.0],1] | ||
select --table Memos --query_expansion Synonyms.words --match_columns content --query 'groonga OR' | ||
[[0,0.0,0.0],[[[0],[["_id","UInt32"],["content","ShortText"]]]]] |
26 changes: 26 additions & 0 deletions
26
test/command/suite/select/query_expansion/vector/or_at_the_end.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,26 @@ | ||
table_create Memos TABLE_NO_KEY | ||
column_create Memos content COLUMN_SCALAR ShortText | ||
|
||
table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
column_create Lexicon diary_content COLUMN_INDEX|WITH_POSITION Memos content | ||
|
||
table_create Synonyms TABLE_PAT_KEY ShortText | ||
column_create Synonyms words COLUMN_VECTOR ShortText | ||
|
||
load --table Memos | ||
[ | ||
["content"], | ||
["Start groonga!"], | ||
["Start mroonga!"], | ||
["Start rroonga!"], | ||
["Start Ruby or Python!"] | ||
] | ||
|
||
load --table Synonyms | ||
[ | ||
["_key", "words"], | ||
["OR", ["or"]] | ||
] | ||
|
||
select --table Memos --query_expansion Synonyms.words \ | ||
--match_columns content --query 'groonga OR' |
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