Kouhei Sutou
null+****@clear*****
Sat Oct 4 23:17:48 JST 2014
Kouhei Sutou 2014-10-04 23:17:48 +0900 (Sat, 04 Oct 2014) New Revision: 296ad5f88c7566af347badef354f1d13b9151a1a https://github.com/groonga/groonga/commit/296ad5f88c7566af347badef354f1d13b9151a1a Message: token-filter stop-word: add "is_" prefix to boolean column Modified files: plugins/token_filters/stop_word.c test/command/suite/token_filters/stop_word/skip.expected test/command/suite/token_filters/stop_word/skip.test Modified: plugins/token_filters/stop_word.c (+1 -1) =================================================================== --- plugins/token_filters/stop_word.c 2014-10-04 18:28:26 +0900 (1f976de) +++ plugins/token_filters/stop_word.c 2014-10-04 23:17:48 +0900 (6bb6311) @@ -23,7 +23,7 @@ #include <string.h> -#define COLUMN_NAME "stop_word" +#define COLUMN_NAME "is_stop_word" typedef struct { grn_obj *table; Modified: test/command/suite/token_filters/stop_word/skip.expected (+2 -2) =================================================================== --- test/command/suite/token_filters/stop_word/skip.expected 2014-10-04 18:28:26 +0900 (5c389ee) +++ test/command/suite/token_filters/stop_word/skip.expected 2014-10-04 23:17:48 +0900 (b8977e8) @@ -8,11 +8,11 @@ table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram - [[0,0.0,0.0],true] column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content [[0,0.0,0.0],true] -column_create Terms stop_word COLUMN_SCALAR Bool +column_create Terms is_stop_word COLUMN_SCALAR Bool [[0,0.0,0.0],true] load --table Terms [ -{"_key": "and", "stop_word": true} +{"_key": "and", "is_stop_word": true} ] [[0,0.0,0.0],1] load --table Memos Modified: test/command/suite/token_filters/stop_word/skip.test (+2 -2) =================================================================== --- test/command/suite/token_filters/stop_word/skip.test 2014-10-04 18:28:26 +0900 (e3ab1f6) +++ test/command/suite/token_filters/stop_word/skip.test 2014-10-04 23:17:48 +0900 (d42f746) @@ -8,11 +8,11 @@ table_create Terms TABLE_PAT_KEY ShortText \ --normalizer NormalizerAuto \ --token_filters TokenFilterStopWord column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content -column_create Terms stop_word COLUMN_SCALAR Bool +column_create Terms is_stop_word COLUMN_SCALAR Bool load --table Terms [ -{"_key": "and", "stop_word": true} +{"_key": "and", "is_stop_word": true} ] load --table Memos -------------- next part -------------- HTML����������������������������... ダウンロード