Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Request: Enable to set Ferret options #2

Open
wants to merge 1 commit into from

1 participant

yagi_
yagi_

This patch enables dm-ferret-adapter to set init options of Ferret.
Currently local index only.

Usage:

DataMapper.setup(:search, {:adapter => :ferret, :path => './ferret/', :analyzer => ::Ferret::Analysis::WhiteSpaceAnalyzer.new, :auto_flush
=> true, :locale => locale})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ferret_adapter/local_index.rb
2  lib/ferret_adapter/local_index.rb
View
@@ -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
Something went wrong with that request. Please try again.