Kouhei Sutou
null+****@clear*****
Fri Mar 29 18:39:48 JST 2013
Kouhei Sutou 2013-03-29 18:39:48 +0900 (Fri, 29 Mar 2013) New Revision: c5dcc5b8331f5551f6bce31530765a2e17fa0a32 https://github.com/groonga/groonga/commit/c5dcc5b8331f5551f6bce31530765a2e17fa0a32 Message: suggest: add configuration table It has only weight column for now. It is initialized as 1. Modified files: src/suggest/groonga_suggest_create_dataset.c Modified: src/suggest/groonga_suggest_create_dataset.c (+8 -1) =================================================================== --- src/suggest/groonga_suggest_create_dataset.c 2013-03-29 17:59:01 +0900 (b8b88ba) +++ src/suggest/groonga_suggest_create_dataset.c 2013-03-29 18:39:48 +0900 (205725b) @@ -1,5 +1,5 @@ /* -*- c-basic-offset: 2 -*- */ -/* Copyright(C) 2010- Brazil +/* Copyright(C) 2010-2013 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -144,6 +144,13 @@ main(int argc, char **argv) SEND("column_create event_${DATASET} item COLUMN_SCALAR item_${DATASET}"); SEND("column_create event_${DATASET} sequence COLUMN_SCALAR " "sequence_${DATASET}"); + + SEND("table_create configuration TABLE_HASH_KEY ShortText"); + SEND("column_create configuration weight COLUMN_SCALAR UInt32"); + SEND("load --table configuration"); + SEND("["); + SEND("{\"_key\": \"${DATASET}\", \"weight\": 1}"); + SEND("]"); #undef SEND success = ctx->rc == GRN_SUCCESS; GRN_OBJ_FIN(ctx, &text); -------------- next part -------------- HTML����������������������������...下载