Kouhei Sutou
null+****@clear*****
Fri Feb 21 15:40:42 JST 2014
Kouhei Sutou 2014-02-21 15:40:42 +0900 (Fri, 21 Feb 2014) New Revision: e3a3d8c6434e72a9970826fec480340700142c59 https://github.com/groonga/groonga/commit/e3a3d8c6434e72a9970826fec480340700142c59 Message: test select adjuster: add not forward index case Added files: test/command/suite/select/adjuster/not_forward_index.expected test/command/suite/select/adjuster/not_forward_index.test Added: test/command/suite/select/adjuster/not_forward_index.expected (+68 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/adjuster/not_forward_index.expected 2014-02-21 15:40:42 +0900 (a04d801) @@ -0,0 +1,68 @@ +table_create Tags TABLE_PAT_KEY ShortText +[[0,0.0,0.0],true] +table_create Memos TABLE_HASH_KEY ShortText +[[0,0.0,0.0],true] +column_create Memos tags COLUMN_VECTOR Tags +[[0,0.0,0.0],true] +column_create Tags memos_tags COLUMN_INDEX Memos tags +[[0,0.0,0.0],true] +load --table Memos +[ +{ + "_key": "Groonga is fast", + "tags": [ + "groonga" + ] +}, +{ + "_key": "Mroonga is also fast", + "tags": [ + "mroonga", + "groonga" + ] +}, +{ + "_key": "Ruby is an object oriented script language", + "tags": [ + "ruby" + ] +} +] +[[0,0.0,0.0],3] +select Memos --filter true --adjuster 'tags @ "groonga" * 10' --output_columns _key,_score +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 3 + ], + [ + [ + "_key", + "ShortText" + ], + [ + "_score", + "Int32" + ] + ], + [ + "Groonga is fast", + 11 + ], + [ + "Mroonga is also fast", + 11 + ], + [ + "Ruby is an object oriented script language", + 1 + ] + ] + ] +] Added: test/command/suite/select/adjuster/not_forward_index.test (+34 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/adjuster/not_forward_index.test 2014-02-21 15:40:42 +0900 (637b66e) @@ -0,0 +1,34 @@ +table_create Tags TABLE_PAT_KEY ShortText + +table_create Memos TABLE_HASH_KEY ShortText +column_create Memos tags COLUMN_VECTOR Tags + +column_create Tags memos_tags COLUMN_INDEX Memos tags + +load --table Memos +[ +{ + "_key": "Groonga is fast", + "tags": [ + "groonga" + ] +}, +{ + "_key": "Mroonga is also fast", + "tags": [ + "mroonga", + "groonga" + ] +}, +{ + "_key": "Ruby is an object oriented script language", + "tags": [ + "ruby" + ] +} +] + +select Memos \ + --filter true \ + --adjuster 'tags @ "groonga" * 10' \ + --output_columns _key,_score -------------- next part -------------- HTML����������������������������...Download