Displaying 1 result from an estimated 1 matches for "results_pages".
Did you mean:
result_pages
2007 Nov 09
2
Problem with stemming and AAF
...t drb server, and using will_paginate to page results.
The code in my search_controller.rb:
search_text = params[:query] || " "
@products = Product.find_with_ferret(search_text, :page =>
params[:page], :per_page => #$ItemsPerPage, :limit => $ItemsPerPage,
:offset => $offset)
@results_pages = Product.paginate_search(search_text, :page =>
params[:page], :per_page => $ItemsPerPage)
The next step was to implement stemming, which seemed straightforward
enough. I created the stemmed_analyzer.rb file in the lib directory,
as follows:
require ''rubygems''
require ...