Sha256: ddee33750eb03a7e986ff7cd3e808b3f9888fa96fe4b05eac31f7e13c493e259
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
=RSolrExt A set of helper methods/modules to assist in building Solr queries and handling responses for RSolr. ==Examples ===Params params = RSolrExt::Params.create_fielded_queries(:name=>'a string...', :cat=>[:one, :two]) params == ['name:"a string..."', 'cat:"one"', 'cat:"two"'] The params hash can then be passed into RSolr for fielded querying. ===Select solr_hash = {} # an evaluated solr (ruby) hash response = RSolrExt::Response::Select.create(solr_hash) response.docs.each do |d| puts d[:cat] end puts response.facets.inspect ====Pagination In your view (using will_paginate): <%= will_paginate(response) %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mwmitchell-rsolr_ext-0.1.0 | README.rdoc |