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/01 06:16:12 UTC
svn commit: r502126 - in /lucene/solr/trunk/client/ruby/flare/app:
controllers/browse_controller.rb controllers/i18n_controller.rb views/i18n/
views/i18n/index.rhtml
Author: ehatcher
Date: Wed Jan 31 21:16:11 2007
New Revision: 502126
URL: http://svn.apache.org/viewvc?view=rev&rev=502126
Log:
an example of the accented characters of the example data being displayd from Flare via solrb
Added:
lucene/solr/trunk/client/ruby/flare/app/controllers/i18n_controller.rb
lucene/solr/trunk/client/ruby/flare/app/views/i18n/
lucene/solr/trunk/client/ruby/flare/app/views/i18n/index.rhtml
Modified:
lucene/solr/trunk/client/ruby/flare/app/controllers/browse_controller.rb
Modified: lucene/solr/trunk/client/ruby/flare/app/controllers/browse_controller.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/flare/app/controllers/browse_controller.rb?view=diff&rev=502126&r1=502125&r2=502126
==============================================================================
--- lucene/solr/trunk/client/ruby/flare/app/controllers/browse_controller.rb (original)
+++ lucene/solr/trunk/client/ruby/flare/app/controllers/browse_controller.rb Wed Jan 31 21:16:11 2007
@@ -8,6 +8,7 @@
@info = SOLR.send(Solr::Request::IndexInfo.new) # TODO move this call to only have it called when the index may have changed
@facet_fields = @info.field_names.find_all {|v| v =~ /_facet$/}
+ # TODO Add paging and sorting
request = Solr::Request::Standard.new :query => query,
:filter_queries => filters,
:facets => {:fields => @facet_fields, :limit => 20 , :mincount => 1, :sort => :count, :debug_query=>true}
Added: lucene/solr/trunk/client/ruby/flare/app/controllers/i18n_controller.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/flare/app/controllers/i18n_controller.rb?view=auto&rev=502126
==============================================================================
--- lucene/solr/trunk/client/ruby/flare/app/controllers/i18n_controller.rb (added)
+++ lucene/solr/trunk/client/ruby/flare/app/controllers/i18n_controller.rb Wed Jan 31 21:16:11 2007
@@ -0,0 +1,5 @@
+class I18nController < ApplicationController
+ def index
+ @results = SOLR.query("acute").hits
+ end
+end
\ No newline at end of file
Added: lucene/solr/trunk/client/ruby/flare/app/views/i18n/index.rhtml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/flare/app/views/i18n/index.rhtml?view=auto&rev=502126
==============================================================================
--- lucene/solr/trunk/client/ruby/flare/app/views/i18n/index.rhtml (added)
+++ lucene/solr/trunk/client/ruby/flare/app/views/i18n/index.rhtml Wed Jan 31 21:16:11 2007
@@ -0,0 +1,3 @@
+<% @results[0]['features'].each do |f| %>
+ <%= f%>
+<% end %>
\ No newline at end of file