Kouhei Sutou
null+****@clear*****
Sun Aug 17 12:50:58 JST 2014
Kouhei Sutou 2014-08-17 12:50:58 +0900 (Sun, 17 Aug 2014) New Revision: 848e91f15bc26d1de0283282a328b5cec83d4f53 https://github.com/groonga/groonga/commit/848e91f15bc26d1de0283282a328b5cec83d4f53 Message: test select near: add a test for 'X N*"a z" Z' case Added files: test/command/suite/select/query/near_search/middle.expected test/command/suite/select/query/near_search/middle.test Added: test/command/suite/select/query/near_search/middle.expected (+47 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/query/near_search/middle.expected 2014-08-17 12:50:58 +0900 (ec1f4f7) @@ -0,0 +1,47 @@ +table_create Memos TABLE_PAT_KEY ShortText +[[0,0.0,0.0],true] +column_create Memos 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 memos_content COLUMN_INDEX|WITH_POSITION Memos content +[[0,0.0,0.0],true] +load --table Memos +[ +{"_key":"alphabets", "content": "a b c d e f g h i j k l m"} +] +[[0,0.0,0.0],1] +select --table Memos --match_columns content --query 'c *N"a l" f' +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "_id", + "UInt32" + ], + [ + "_key", + "ShortText" + ], + [ + "content", + "ShortText" + ] + ], + [ + 1, + "alphabets", + "a b c d e f g h i j k l m" + ] + ] + ] +] Added: test/command/suite/select/query/near_search/middle.test (+14 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/query/near_search/middle.test 2014-08-17 12:50:58 +0900 (11ad190) @@ -0,0 +1,14 @@ +table_create Memos TABLE_PAT_KEY ShortText +column_create Memos content COLUMN_SCALAR ShortText + +table_create Terms TABLE_PAT_KEY ShortText \ + --default_tokenizer TokenBigram \ + --normalizer NormalizerAuto +column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content + +load --table Memos +[ +{"_key":"alphabets", "content": "a b c d e f g h i j k l m"} +] + +select --table Memos --match_columns content --query 'c *N"a l" f' -------------- next part -------------- HTML����������������������������...Download