Method: Stretchy::Factory.context_nodes

Defined in:
lib/stretchy/factory.rb

.context_nodes(params, context = default_context) ⇒ Object



58
59
60
61
62
63
64
65
66
# File 'lib/stretchy/factory.rb', line 58

def context_nodes(params, context = default_context)
  if context[:boost]
    params_to_boost(params, context)
  elsif context[:filter] && !context[:query]
    params_to_filters(dotify_params(params, context), context)
  else
    params_to_queries(dotify_params(params, context), context)
  end
end