Permalink
Browse files

added param to not included type in search params

  • Loading branch information...
samdalton committed Jul 21, 2011
1 parent de64d3d commit 5581709e534e3c4e1f657000cf6f6874b56e91ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/solrsan/search.rb
View
@@ -46,7 +46,7 @@ def parse_params_for_solr(search_params={})
:'facet.mincount' => 1}.merge(search_params)
solr_params[:hl] = true unless search_params[:'hl.fl'].blank?
- solr_params[:fq] = ["type:#{class_name}"] + parse_fq(search_params[:fq])
+ solr_params[:fq] = parse_fq(search_params[:fq]) + (if search_params[:untyped] ? [] : ["type:#{class_name}"])
solr_params
end

0 comments on commit 5581709

Please sign in to comment.