lib/isomorfeus/data/document_accelerator.rb in isomorfeus-data-2.4.1 vs lib/isomorfeus/data/document_accelerator.rb in isomorfeus-data-2.4.2

- old
+ new

@@ -55,9 +55,13 @@ def search_each(query, options, &block) @index.search_each(query, options, &block) end + def each(&block) + @index.each(&block) + end + private def get_doc_id(key) # special characters must be escaped, characters taken from the ferret query parser documentation escaped_key = key.gsub(/([\\\&\:\(\)\[\]\{\}\!\"\~\^\|\<\>\=\*\?\+\-\s])/, '\\\\\1')