Class: ThinkingSphinx::Middlewares::SphinxQL

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

Defined Under Namespace

Classes: Inner

Constant Summary

SELECT_OPTIONS =
[:ranker, :max_matches, :cutoff, :max_query_time,
:retry_count, :retry_delay, :field_weights, :index_weights, :reverse_scan,
:comment]

Instance Method Summary (collapse)

Methods inherited from Middleware

#initialize

Constructor Details

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

Instance Method Details

- (Object) call(contexts)



8
9
10
11
12
13
14
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 8

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

  app.call contexts
end