From c4403c8dc9ca3458985a1d5f25d79473c37c62fc Mon Sep 17 00:00:00 2001 From: yagi_ Date: Mon, 21 Feb 2011 02:14:35 +0900 Subject: [PATCH] enable to set ferret options (currently local index only) --- lib/ferret_adapter/local_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ferret_adapter/local_index.rb b/lib/ferret_adapter/local_index.rb index 22a803e..e184c42 100644 --- a/lib/ferret_adapter/local_index.rb +++ b/lib/ferret_adapter/local_index.rb @@ -3,7 +3,7 @@ module Adapters class FerretAdapter::LocalIndex def initialize(options) @options = options - @options = { :path => @options[:path], :key => [:id, :_type] } + @options.merge({:key => [:id, :_type]}) create_or_initialize_index end