mirror of https://github.com/apache/lucene.git
Fix SimileController that broke with the plugin change
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@522710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
79bb0f1421
commit
9901f0a29c
|
@ -12,6 +12,8 @@
|
|||
|
||||
|
||||
class SimileController < ApplicationController
|
||||
before_filter :flare_before
|
||||
|
||||
def exhibit
|
||||
@data = @flare.search(0, 10)
|
||||
|
||||
|
@ -32,4 +34,14 @@ class SimileController < ApplicationController
|
|||
format.xml # renders timeline.rxml
|
||||
end
|
||||
end
|
||||
|
||||
#TODO: this is duplicated from flare's
|
||||
private
|
||||
def flare_before
|
||||
# TODO: allow source of context to be configurable.
|
||||
session[:flare_context] ||= Flare::Context.new(SOLR_CONFIG)
|
||||
|
||||
@flare = session[:flare_context]
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue