class XapianDb::DocumentBlueprint

A document blueprint describes the mapping of an object to a Xapian document for a given class. @example A simple document blueprint configuration for the class Person

XapianDb::DocumentBlueprint.setup(:Person) do |blueprint|
  blueprint.attribute       :name, :weight => 10
  blueprint.attribute       :first_name
  blueprint.index           :remarks
end

@example A document blueprint configuration with a complex attribute for the class Person

XapianDb::DocumentBlueprint.setup(:Person) do |blueprint|
  blueprint.attribute       :complex, :weight => 10 do
    # add some logic here to evaluate the value of 'complex'
  end
end

@author Gernot Kogler