You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/02/26 03:21:42 UTC

svn commit: r511698 - /lucene/solr/trunk/client/ruby/flare/config/environment.rb

Author: ehatcher
Date: Sun Feb 25 18:21:41 2007
New Revision: 511698

URL: http://svn.apache.org/viewvc?view=rev&rev=511698
Log:
Add primitive timeline configurability - ability to set field name used for start/stop dates

Modified:
    lucene/solr/trunk/client/ruby/flare/config/environment.rb

Modified: lucene/solr/trunk/client/ruby/flare/config/environment.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/flare/config/environment.rb?view=diff&rev=511698&r1=511697&r2=511698
==============================================================================
--- lucene/solr/trunk/client/ruby/flare/config/environment.rb (original)
+++ lucene/solr/trunk/client/ruby/flare/config/environment.rb Sun Feb 25 18:21:41 2007
@@ -58,20 +58,30 @@
 
 require 'solr'
 
-
-
 solr_environments = {
+  # facets: default, all *_facet fields are considered facet fields
+  # title: default, :title_text is title field
+  # timeline: default, no timeline support without knowing the field(s) to use
+  
   :development => {
   },
 
-  :uva => {
-  },
-
   :delicious => {
+#    :image_url => Proc.new {|d| "http://images.amazon.com/images/P/#{d[:asin_text]}.01.MZZZZZZZ"},
+    :timeline_dates => :published_year_facet
   },
 
   :tang => {
-  }
+  },
+  
+  :marc => {
+    :timeline_dates => :year_facet
+  },
+  
+  # TODO: :uva could inherit :marc settings, only overriding the template for VIRGO links
+  :uva => {
+    :timeline_dates => :year_facet
+  },
 }
 SOLR_ENV = ENV["SOLR_ENV"] || "development"
 SOLR_CONFIG = solr_environments[SOLR_ENV.to_sym]