mwmitchell-rsolr_ext 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.rdoc +16 -4
  2. data/lib/rsolr_ext.rb +1 -1
  3. data/rsolr_ext.gemspec +1 -1
  4. metadata +1 -1
@@ -9,14 +9,26 @@ A set of helper methods/modules to assist in building Solr queries and handling
9
9
 
10
10
  The params hash can then be passed into RSolr for fielded querying.
11
11
 
12
+ ===Base
13
+ solr_hash = {} # an evaluated solr (ruby) response hash
14
+ response = RSolrExt::Response::Base.create(solr_hash)
15
+
12
16
  ===Select
13
- solr_hash = {} # an evaluated solr (ruby) hash
17
+ solr_hash = {} # an evaluated solr (ruby) response hash
14
18
  response = RSolrExt::Response::Select.create(solr_hash)
15
19
  response.docs.each do |d|
16
20
  puts d[:cat]
17
21
  end
18
22
  puts response.facets.inspect
19
-
23
+
20
24
  ====Pagination
21
- In your view (using will_paginate):
22
- <%= will_paginate(response) %>
25
+ When using the RSolrExt::Response::Select extension, pagination becomes very easy. In your view (using will_paginate):
26
+ <%= will_paginate(response) %>
27
+
28
+ ===Update
29
+ solr_hash = {} # an evaluated solr (ruby) response hash
30
+ response = RSolrExt::Response::Update.create(solr_hash)
31
+
32
+ ===Luke
33
+ solr_hash = {} # an evaluated solr (ruby) response hash
34
+ response = RSolrExt::Response::Luke.create(solr_hash)
@@ -13,7 +13,7 @@ end
13
13
 
14
14
  module RSolrExt
15
15
 
16
- VERSION = '0.1.0'
16
+ VERSION = '0.2.0'
17
17
 
18
18
  autoload :Params, 'rsolr_ext/params'
19
19
  autoload :Response, 'rsolr_ext/response'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rsolr_ext"
3
- s.version = "0.1.0"
3
+ s.version = "0.2.0"
4
4
  s.date = "2009-03-12"
5
5
  s.summary = "An extension lib for RSolr"
6
6
  s.email = "goodieboy@gmail.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mwmitchell-rsolr_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Mitchell