README.rdoc in xapian_db-0.4.1 vs README.rdoc in xapian_db-0.4.2
- old
+ new
@@ -106,15 +106,9 @@
class Person
attr_reader :language
end
-you can configure the blueprint to use the language of the object when indexing:
-
- XapianDb::DocumentBlueprint.setup(Person) do |blueprint|
- blueprint.language_method :language
- end
-
The method must return the iso code for the language (:en, :de, ...) as a symbol or a string. Don't worry if you have languages in your database that are not supported by Xapian. If the language is not supported, XapianDb will fall back to the global language configuration or none, if you haven't configured one.
If you want to declare multiple attributes or indexes with default options, you can do this in one statement:
XapianDb::DocumentBlueprint.setup(Person) do |blueprint|
\ No newline at end of file