Masafumi Yokoyama
null+****@clear*****
Fri Mar 13 10:12:07 JST 2015
Masafumi Yokoyama 2015-03-13 10:12:07 +0900 (Fri, 13 Mar 2015) New Revision: 70fcc6b5bfed85befd8c59d2398a70f5da1b07f2 https://github.com/groonga/groonga/commit/70fcc6b5bfed85befd8c59d2398a70f5da1b07f2 Merged f177787: Merge pull request #314 from groonga/test-select-add-a-test-for-1-item-by-column-of-section Message: test select: add a test for 1-item by column of section Added files: test/command/suite/select/match_columns/section/by_column/1_item.expected test/command/suite/select/match_columns/section/by_column/1_item.test Added: test/command/suite/select/match_columns/section/by_column/1_item.expected (+54 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/match_columns/section/by_column/1_item.expected 2015-03-13 10:12:07 +0900 (adbcfbb) @@ -0,0 +1,54 @@ +table_create Memos TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Memos title COLUMN_SCALAR ShortText +[[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 memo_index COLUMN_INDEX|WITH_POSITION|WITH_SECTION Memos title,content +[[0,0.0,0.0],true] +load --table Memos +[ +["title", "content"], +["Groonga", "Start Groonga!"], +["Mroonga", "Start Mroonga!"], +["Rroonga", "Start Rroonga!"], +["Ruby", "Start Ruby!"], +["learn", "Learning Ruby and Groonga..."] +] +[[0,0.0,0.0],5] +select Memos --match_columns title --query Ruby --output_columns "title, content, _score" +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "title", + "ShortText" + ], + [ + "content", + "ShortText" + ], + [ + "_score", + "Int32" + ] + ], + [ + "Ruby", + "Start Ruby!", + 1 + ] + ] + ] +] Added: test/command/suite/select/match_columns/section/by_column/1_item.test (+22 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/match_columns/section/by_column/1_item.test 2015-03-13 10:12:07 +0900 (e1f34df) @@ -0,0 +1,22 @@ +table_create Memos TABLE_NO_KEY +column_create Memos title COLUMN_SCALAR ShortText +column_create Memos content COLUMN_SCALAR ShortText + +table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram +column_create Lexicon memo_index COLUMN_INDEX|WITH_POSITION|WITH_SECTION \ + Memos title,content + +load --table Memos +[ +["title", "content"], +["Groonga", "Start Groonga!"], +["Mroonga", "Start Mroonga!"], +["Rroonga", "Start Rroonga!"], +["Ruby", "Start Ruby!"], +["learn", "Learning Ruby and Groonga..."] +] + +select Memos \ + --match_columns title \ + --query Ruby \ + --output_columns "title, content, _score" -------------- next part -------------- HTML����������������������������...Download