lib/picky/query/solr.rb in picky-0.9.1 vs lib/picky/query/solr.rb in picky-0.9.2

- old
+ new

@@ -40,11 +40,11 @@ return results if new_query.empty? index_types.each do |index| begin - response = server.select :q => new_query, :fq => "type:#{index.name}", :hl => true, :'hl.fl' => '*', :'hl.simple.pre' => '<', :'hl.simple.post' => '>', :facet => true + response = server.select q: new_query, fq: "type:#{index.name}", hl: true, :'hl.fl' => '*', :'hl.simple.pre' => '<', :'hl.simple.post' => '>', facet: true rescue RSolr::RequestError => re return results end highlighting = response['highlighting'] @@ -56,10 +56,10 @@ end possibilities.collect! { |possibility| possibility.strip }.uniq! similar[index.name] = possibilities unless possibilities.empty? end - results.add :similar => similar + results.add similar: similar end # TODO # class << results \ No newline at end of file