mirror of https://github.com/apache/lucene.git
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:
parent
9d469e91b1
commit
525c7a06ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue