SOLR-1047 - added support for facet.method

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@750612 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2009-03-05 21:49:44 +00:00
parent 9d469e91b1
commit 525c7a06ca
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ class Solr::Request::Standard < Solr::Request::Select
hash["facet.mincount"] = @params[:facets][:mincount]
hash["facet.prefix"] = @params[:facets][:prefix]
hash["facet.offset"] = @params[:facets][:offset]
hash["facet.method"] = @params[:facets][:method] if @params[:facets][:method]
if @params[:facets][:fields] # facet fields are optional (could be facet.query only)
@params[:facets][:fields].each do |f|
if f.kind_of? Hash