lib/elasticity/search.rb
File search.rb
has 268 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Elasticity
module Search
def self.build(client, index_name, document_types, body, search_args = {})
search_def = Search::Definition.new(index_name, document_types, body, search_args)
Search::Facade.new(client, search_def)
Method build
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def self.build(client, index_name, document_types, body, search_args = {})