Permalink
Browse files

Documentation update. Fixed default configuration preference that cau…

…sed issue on vanilla installations.
  • Loading branch information...
iloveitaly committed Aug 14, 2012
1 parent 2c1cdd9 commit e0ec165d9144009e5da86cd889c4fa92b14c2922
Showing with 9 additions and 16 deletions.
  1. +4 −10 README.md
  2. +1 −1 Versionfile
  3. +3 −4 lib/spree/search/spree_sunspot/configuration.rb
  4. +1 −1 spree_sunspot_search.gemspec
View
@@ -1,9 +1,9 @@
SpreeSunspotSearch
==================
-Adds Solr search to Spree using [Sunspot](https://github.com/sunspot/sunspot). This is a moving targer and is very beta and should be treated as such.
+Adds Solr search to Spree using [Sunspot](https://github.com/sunspot/sunspot).
-This is compatible with Spree 1.1. Untested on 1.0, but will probably work without too much modification
+This is compatible with Spree 1.1.x. Untested on 1.0, but will probably work without too much modification
Install
@@ -26,7 +26,7 @@ Install the solr.yml file from Sunspot.
`rails g sunspot_rails:install`
-Copy the initializer and add `solr_sort_by` to `all.js`
+Copy the initializer and add `solr_sort_by` to `all.js`. This makes the sort drop down function.
`rails g spree_sunspot_search:install`
@@ -44,15 +44,9 @@ Build the index for the first time
Customise the Facets Shown
--------------------------
-Edit the initializer and specify you Product Properties, Product Options, and Price Ranges as an array.
-The initializer should provide enough examples to get you started.
-
-Testing
-=======
+Edit the initializer created by the installation script. The initializer template should provide enough examples to get you started.
TODO
-
-TODOs
=====
* Add an automatic MAX value for price facets (e.g. Above <max_said_value>)
View
@@ -1,2 +1,2 @@
"0.7.0" => { :ref => "dbeb34c149c7d7ecc3f94820e0ae4a9e4798e13a" }
-"1.1.x" => { :branch => "spree-1.1" }
+"1.1.x" => { :branch => "master" }
@@ -12,7 +12,7 @@ class Configuration
def initialize
# Price ranges to be used for faceting
- # gets turned into a Range object for searching (MUST specify with a dash!!!)
+ # gets turned into a Range object for searching (MUST specify with a dash)
self.price_ranges = ["0-25", "25-50", "50-100", "100-150"]
# Product Options for use with Faceting
@@ -34,9 +34,8 @@ def initialize
# custom facets defined as methods directly on Spree::Product
self.other_facets = []
- # facets that have already been created and should be displayed
- # in the suggestions partial
- self.show_facets = [:taxon_name]
+ # facets that have already been created and should be displayed in the suggestions partial
+ self.show_facets = []
self.sort_fields = {
:score => :desc,
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_sunspot_search'
- s.version = '1.1.2'
+ s.version = '1.1.3'
s.summary = 'Add Solr search to Spree via the Sunspot gem'
s.description = 'Sunspot and Spree have a wonderful baby'
s.required_ruby_version = '>= 1.8.7'

0 comments on commit e0ec165

Please sign in to comment.