search for: pagingenumerator

Displaying 1 result from an estimated 1 matches for "pagingenumerator".

2007 Aug 18
0
Problem with multi-search
...-search on Message and Chat model.But the results dont come.the keyword is indexed but doesnt show up. Im using the paginating_ferret_find method def paginating_ferret_multi_search(options) count = Chat.multi_search(options[:q], [Message], {:limit => :all, :lazy => false}).total_hits PagingEnumerator.new(options[:page_size], count.total_hits, false, options[:current], 1) do |page| offset = (options[:current].to_i - 1) * options[:page_size] limit = options[:page_size] Chat.multi_search(options[:q], [Message], {:offset => offset, :limit => limit}) end end Can anyone...