mirror of https://github.com/apache/lucene.git
Minor formatting changes, and exposed Solr::Connection from Context
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@579880 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8b242f76ee
commit
aa1e9e1064
|
@ -14,7 +14,7 @@ require 'solr'
|
|||
|
||||
class Flare::Context
|
||||
attr_accessor :queries, :filters, :facet_queries, :applied_facet_queries, :page, :sort
|
||||
attr_reader :facet_fields, :text_fields
|
||||
attr_reader :facet_fields, :text_fields, :connection
|
||||
|
||||
def initialize(solr_config={})
|
||||
@solr_config = solr_config
|
||||
|
|
|
@ -18,8 +18,6 @@ module Flare
|
|||
end
|
||||
|
||||
module ClassMethods
|
||||
#
|
||||
|
||||
def flare(options={})
|
||||
include Flare::ActionControllerExtensions::InstanceMethods
|
||||
|
||||
|
@ -48,7 +46,6 @@ module Flare
|
|||
end
|
||||
|
||||
def auto_complete_for_search_query
|
||||
# TODO instead of "text", default to the default search field configured in schema.xml
|
||||
@values = @flare.retrieve_field_facets(self.class.suggest_field, 5, params['search']['query'].downcase)
|
||||
|
||||
render :partial => 'suggest'
|
||||
|
|
Loading…
Reference in New Issue