doximity/es-elasticity

View on GitHub
lib/elasticity/search.rb

Summary

Maintainability
A
3 hrs
Test Coverage

File search.rb has 268 lines of code (exceeds 250 allowed). Consider refactoring.
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)
Severity: Minor
Found in lib/elasticity/search.rb - About 2 hrs to fix

    Method build has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def self.build(client, index_name, document_types, body, search_args = {})
    Severity: Minor
    Found in lib/elasticity/search.rb - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status