[Groonga-commit] ranguba/rroonga at acddfa2 [master] Fix the default weight value

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Mar 26 00:13:53 JST 2014


Kouhei Sutou	2014-03-26 00:13:53 +0900 (Wed, 26 Mar 2014)

  New Revision: acddfa29adb49c666457cf4ebfc8327ffa16b4ad
  https://github.com/ranguba/rroonga/commit/acddfa29adb49c666457cf4ebfc8327ffa16b4ad

  Message:
    Fix the default weight value

  Modified files:
    ext/groonga/rb-grn-index-column.c

  Modified: ext/groonga/rb-grn-index-column.c (+1 -1)
===================================================================
--- ext/groonga/rb-grn-index-column.c    2014-03-26 00:01:13 +0900 (fb710fd)
+++ ext/groonga/rb-grn-index-column.c    2014-03-26 00:13:53 +0900 (a8e7fc7)
@@ -717,7 +717,7 @@ rb_grn_index_column_search (int argc, VALUE *argv, VALUE self)
     options.max_interval = 0;
     options.weight_vector = NULL;
     if (NIL_P(rb_weight)) {
-        options.vector_size = 0;
+        options.vector_size = 1;
     } else {
         options.vector_size = NUM2UINT(rb_weight);
     }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index