Skip to content

Commit

Permalink
added support for an :order parameter which translates to :sort for R…
Browse files Browse the repository at this point in the history
…Solr
  • Loading branch information
ruckus committed Jun 8, 2010
1 parent 3928b5e commit 976e6a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/parser_methods.rb
Expand Up @@ -15,7 +15,10 @@ def generate_query_options(query, options = {})
query_options[:rows] = (options[:limit] || solr_searchable_configuration[:limit])
if options[:fq]
query_options[:fq].concat(options[:fq])
end
end
if options[:order]
query_options[:sort] = options[:order]
end
query_options
end # parse_query

Expand Down

0 comments on commit 976e6a0

Please sign in to comment.