mirror of https://github.com/apache/lucene.git
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:
parent
b6dd62544d
commit
70897331c0
|
@ -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}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class I18nController < ApplicationController
|
||||
def index
|
||||
@results = SOLR.query("acute").hits
|
||||
end
|
||||
end
|
|
@ -0,0 +1,3 @@
|
|||
<% @results[0]['features'].each do |f| %>
|
||||
<%= f%>
|
||||
<% end %>
|
Loading…
Reference in New Issue