Kouhei Sutou
null+****@clear*****
Tue Feb 13 18:16:34 JST 2018
Kouhei Sutou 2018-02-13 18:16:34 +0900 (Tue, 13 Feb 2018) New Revision: e542731991a876d00491b7cebe5a99a727c38aec https://github.com/groonga/groonga/commit/e542731991a876d00491b7cebe5a99a727c38aec Message: test: add missing similar search threshold in filter tests Added files: test/command/suite/select/filter/similar/threshold.expected test/command/suite/select/filter/similar/threshold.test Added: test/command/suite/select/filter/similar/threshold.expected (+42 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/filter/similar/threshold.expected 2018-02-13 18:16:34 +0900 (46eae7ec0) @@ -0,0 +1,42 @@ +table_create Data TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Data 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 data_content COLUMN_INDEX|WITH_POSITION Data content +[[0,0.0,0.0],true] +load --table Data +[ +{"content": "a a a b b c d e f g h i j k"} +] +[[0,0.0,0.0],1] +select --table Data --filter 'content *S2 "a b c"' --output_columns content,_score --sortby _id +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "content", + "ShortText" + ], + [ + "_score", + "Int32" + ] + ], + [ + "a a a b b c d e f g h i j k", + 2097155 + ] + ] + ] +] Added: test/command/suite/select/filter/similar/threshold.test (+18 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/filter/similar/threshold.test 2018-02-13 18:16:34 +0900 (387487a8d) @@ -0,0 +1,18 @@ +table_create Data TABLE_NO_KEY +column_create Data content COLUMN_SCALAR ShortText + +table_create Terms TABLE_PAT_KEY ShortText \ + --default_tokenizer TokenBigram \ + --normalizer NormalizerAuto +column_create Terms data_content COLUMN_INDEX|WITH_POSITION Data content + +load --table Data +[ +{"content": "a a a b b c d e f g h i j k"} +] + +select \ + --table Data \ + --filter 'content *S2 "a b c"' \ + --output_columns content,_score \ + --sortby _id -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180213/c0b0a95e/attachment-0001.htm