README.rdoc in xapian_db-1.3.1 vs README.rdoc in xapian_db-1.3.2
- old
+ new
@@ -171,9 +171,15 @@
XapianDb::DocumentBlueprint.setup(:Person) do |blueprint|
blueprint.index :addresses, as: :json
blueprint.base_query { |p| p.includes(:addresses) }
end
+If you have configured a term_splitter_count, you might want to exclude certain attributes from the automatic term splitting:
+
+ XapianDb::DocumentBlueprint.setup(:Person) do |blueprint|
+ blueprint.attribute :age, :as => :number, :no_split => true
+ end
+
You can specify a natural sort order for each class using a method symbol or a block. If you don't specify an order expression in your xapian query, the matches
are ordered by relevance and - within the same relevance - by the natural sort order. If you don't specify the natural sort order, it defaults to id. Examples:
XapianDb::DocumentBlueprint.setup(:House) do |blueprint|
blueprint.natural_sort_order :number