lib/groonga/client/searcher/schema_synchronizer.rb in groonga-client-rails-0.9.3 vs lib/groonga/client/searcher/schema_synchronizer.rb in groonga-client-rails-0.9.4
- old
+ new
@@ -48,12 +48,19 @@
end
def sync_column(column, current_column)
if current_column.nil?
Client.open do |client|
+ flags = []
+ if column.vector?
+ flags << "COLUMN_VECTOR"
+ else
+ flags << "COLUMN_SCALAR"
+ end
client.column_create(:table => @schema.table,
:name => column.name,
- :type => column.type)
+ :type => column.type,
+ :flags => flags.join("|"))
end
end
sync_column_index(column, current_column)
end