[Groonga-commit] droonga/droonga-engine at ea0e64d [master] groonga: Don't output WITH_WEIGHT twice

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Apr 23 18:36:30 JST 2014


YUKI Hiroshi	2014-04-23 18:36:30 +0900 (Wed, 23 Apr 2014)

  New Revision: ea0e64d344d86e54a7ffafc47f2d138bc152b28d
  https://github.com/droonga/droonga-engine/commit/ea0e64d344d86e54a7ffafc47f2d138bc152b28d

  Message:
    groonga: Don't output WITH_WEIGHT twice

  Modified files:
    lib/droonga/plugins/groonga/column_list.rb

  Modified: lib/droonga/plugins/groonga/column_list.rb (+7 -5)
===================================================================
--- lib/droonga/plugins/groonga/column_list.rb    2014-04-23 18:33:33 +0900 (5c8da51)
+++ lib/droonga/plugins/groonga/column_list.rb    2014-04-23 18:36:30 +0900 (d61afa6)
@@ -86,12 +86,14 @@ module Droonga
               flags << "WITH_SECTION" if column.with_section?
               flags << "WITH_WEIGHT" if column.with_weight?
               flags << "WITH_POSITION" if column.with_position?
-            elsif column.scalar?
-              flags << "COLUMN_SCALAR"
-            elsif column.vector?
-              flags << "COLUMN_VECTOR"
+            else
+              if column.scalar?
+                flags << "COLUMN_SCALAR"
+              elsif column.vector?
+                flags << "COLUMN_VECTOR"
+              end
+              flags << "WITH_WEIGHT" if column.with_weight?
             end
-            flags << "WITH_WEIGHT" if column.with_weight?
             flags.join('|')
           end
 
-------------- next part --------------
HTML����������������������������...
Download 



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