class User
include Ripple::Document
property :firstname, String
property :lastname, String
index :fullname, String do
"#{self.firstname} #{self.lastname}"
end
end
Creates and persists a secondary index "fullname_bin" with the value as evaluated by the block.
Added index method to Indexes::ClassMethods
Example:
Creates and persists a secondary index "fullname_bin" with the value as evaluated by the block.