Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to configure the list of indexable fields and facets.
- Loading branch information
Showing
7 changed files
with
30 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,13 @@ | |||
unless defined?(PRODUCT_PRICE_RANGES) | |||
PRODUCT_PRICE_RANGES = {0..25 => " Under $25", 25..50 => " $25 to $50", | |||
50..100 => " $50 to $100", 100..200 => "$100 to $200"} | |||
end | |||
unless defined?(PRODUCT_SOLR_FIELDS) | |||
PRODUCT_SOLR_FIELDS = [:name, :description, :is_active, {:price => :float}, | |||
:taxon_ids, :price_range, :taxon_names, :store_ids, | |||
:brand_property, :color_option, :size_option] | |||
end | |||
unless defined?(PRODUCT_SOLR_FACETS) | |||
PRODUCT_SOLR_FACETS = [:price_range, :taxon_names, | |||
:brand_property, :color_option, :size_option] | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters