Class: ThinkingSphinx::Middlewares::SphinxQL

Inherits:
Middleware
  • Object
show all
Defined in:
lib/thinking_sphinx/middlewares/sphinxql.rb

Defined Under Namespace

Classes: Inner

Constant Summary collapse

SELECT_OPTIONS =
[:agent_query_timeout, :boolean_simplify, :comment, :cutoff,
:field_weights, :global_idf, :idf, :index_weights, :max_matches,
:max_query_time, :max_predicted_time, :ranker, :retry_count, :retry_delay,
:reverse_scan, :sort_method, :rand_seed]

Instance Method Summary collapse

Methods inherited from Middleware

#initialize

Constructor Details

This class inherits a constructor from ThinkingSphinx::Middlewares::Middleware

Instance Method Details

#call(contexts) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 11

def call(contexts)
  contexts.each do |context|
    Inner.new(context).call
  end

  app.call contexts
end