I`m trying to perform alphabetical search in solr, but i cannot do it until this moment
I want to search by letter, and my search needs to retrieve only the words that begin with the specified letter at the beggining, not if the words contains the letter anywhere else
example: if i click on letter "a" it must retrive "ant", "animal" etc
not "banana", "camelo"
my controller nowadays look like this:
@articles = Sunspot.search(Article) do keywords(params[:q]) paginate(:page => params[:page], :per_page => 20) order_by :relevance, :desc order_by :article_order, :asc end
Can anyone help? thanks in advance
searchable
block? – Nick Zadrozny