Class: Elastic::Commands::BuildQueryFromParams

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic/commands/build_query_from_params.rb

Instance Method Summary collapse

Instance Method Details

#performObject



3
4
5
6
7
8
9
10
11
# File 'lib/elastic/commands/build_query_from_params.rb', line 3

def perform
  if block
    # TODO: builder mode, support nesting through first parameter
  else
    node = build_or_node(params)
  end

  node.try(:simplify)
end