README.rdoc in xapian_db-1.2.4.7 vs README.rdoc in xapian_db-1.2.5

- old
+ new

@@ -67,10 +67,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 development: database: db/xapian_db/development <<: *defaults @@ -135,9 +136,15 @@ XapianDb::DocumentBlueprint.setup(:Person) do |blueprint| blueprint.attribute :age, :as => :number blueprint.attribute :date_of_birth, :as => :date blueprint.attribute :name, :as => :string blueprint.attribute :updated_at, :as => :date_time + end + +If you don't need field searches for an attribute, turn off the prefixed option (makes your index smaller and more efficient): + + XapianDb::DocumentBlueprint.setup(:Person) do |blueprint| + blueprint.attribute :complex_object, prefixed: false end You can override the global adapter configuration in a specific blueprint. Let's say you use ActiveRecord, but you have one more class that is not stored in the database, but you want it to be indexed: