README.rdoc in xapian_db-1.3.7 vs README.rdoc in xapian_db-1.3.7.1

- old
+ new

@@ -45,11 +45,11 @@ == Getting started If you want to use xapian_db in a Rails app, you need Rails 3 or newer. For a first look, look at the examples in the examples folder. There's the simple ruby script basic.rb that shows the basic -usage of XapianDB without rails. In the basic_rails folder you'll find a very simple Rails app unsing XapianDb. +usage of XapianDB without rails. In the basic_rails folder you'll find a very simple Rails app using XapianDb. The following steps assume that you are using xapian_db within a Rails app. === Configure your databases @@ -62,11 +62,11 @@ # XapianDb configuration defaults: &defaults adapter: datamapper # Avaliable adapters: :active_record, :datamapper language: de # Global language; can be overridden for specific blueprints term_min_length: 2 # Ignore single character terms - enable_query_flags: FLAG_PHRASE, FLAG_SPELLING_CORRECTION + enabled_query_flags: FLAG_PHRASE, FLAG_SPELLING_CORRECTION development: database: db/xapian_db/development <<: *defaults @@ -203,10 +203,10 @@ terms.gsub(/[éèêëÉÈÊË]/, "e") end end XapianDb::Config.setup do |config| - config.indexer_preprocess_callback UtilT.method(:strip_accents) + config.indexer_preprocess_callback Util.method(:strip_accents) end You may use attributes from associated objects in a blueprint; if you do that and an associated object is updated, your objects should be reindexed, too. You can tell XapnaDB about those dependencies like so: XapianDb::DocumentBlueprint.setup(:Person) do |blueprint|