an example of the accented characters of the example data being displayd from Flare via solrb

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@502126 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-02-01 05:16:11 +00:00
parent b6dd62544d
commit 70897331c0
3 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,7 @@ class BrowseController < ApplicationController
@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}

View File

@ -0,0 +1,5 @@
class I18nController < ApplicationController
def index
@results = SOLR.query("acute").hits
end
end

View File

@ -0,0 +1,3 @@
<% @results[0]['features'].each do |f| %>
<%= f%>
<% end %>