kbredemeier/elastic_adatper

View on GitHub

Showing 53 of 53 total issues

Line is too long. [105/80]
Open

# !> 2015-02-06 17:52:22 +0100: > {"product_suggest":{"text":"fo","completion":{"field":"name_suggest"}}}
Severity: Minor
Found in examples/basic_usage.rb by rubocop

Freeze mutable objects assigned to constants.
Open

  VERSION = "0.2.0"
Severity: Minor
Found in lib/elastic_adapter/version.rb by rubocop

This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

Example:

# bad
CONST = [1, 2, 3]

# good
CONST = [1, 2, 3].freeze

Line is too long. [91/80]
Open

response.inspect # => "{:id=>\"1\", :name=>\"foo\", :name_suggest=>\"foo\", :price=>11.12}"
Severity: Minor
Found in examples/basic_usage.rb by rubocop

Line is too long. [116/80]
Open

# !> 2015-02-06 17:52:19 +0100: < {"_index":"product_index","_type":"product","_id":"2","_version":1,"created":true}
Severity: Minor
Found in examples/basic_usage.rb by rubocop

Line is too long. [187/80]
Open

# !> 2015-02-06 17:52:22 +0100: < {"valid":true,"_shards":{"total":1,"successful":1,"failed":0},"explanations":[{"index":"product_index","valid":true,"explanation":"ConstantScore(*:*)"}]}
Severity: Minor
Found in examples/basic_usage.rb by rubocop

Re-enable Metrics/LineLength cop with # rubocop:enable after disabling it.
Open

# rubocop:disable Metrics/LineLength

Line is too long. [294/80]
Open

# !> 2015-02-06 17:52:22 +0100: < {"count":0,"_shards":{"total":1,"successful":0,"failed":1,"failures":[{"index":"product_index","shard":0,"reason":"BroadcastShardOperationFailedException[[product_index][0] ]; nested: QueryParsingException[[product_index] request does not support [foo]]; "}]}}
Severity: Minor
Found in examples/basic_usage.rb by rubocop

Line is too long. [178/80]
Open

# !> 2015-02-06 17:52:22 +0100: < {"_shards":{"total":1,"successful":1,"failed":0},"product_suggest":[{"text":"fo","offset":0,"length":2,"options":[{"text":"foo","score":1.0}]}]}
Severity: Minor
Found in examples/basic_usage.rb by rubocop

Line is too long. [86/80]
Open

    #   test_index.seach(name_suggestions: {text: "foo", completion: {field: "name"}})
Severity: Minor
Found in lib/elastic_adapter/index.rb by rubocop

Line is too long. [112/80]
Open

response.inspect # => "{:index=>\"product_index\", :type=>\"product\", :id=>\"1\", :version=>1, :created=>true}"
Severity: Minor
Found in examples/basic_usage.rb by rubocop

Line is too long. [140/80]
Open

# !> 2015-02-06 17:52:22 +0100: GET http://localhost:9200/product_index/_validate/query?explain=true [status:200, request:0.006s, query:n/a]
Severity: Minor
Found in examples/basic_usage.rb by rubocop

Line is too long. [135/80]
Open

    # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-count.html#search-count Elasticsearch count api
Severity: Minor
Found in lib/elastic_adapter/index.rb by rubocop

Line is too long. [128/80]
Open

    # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters.html Elasticsearch suggesters
Severity: Minor
Found in lib/elastic_adapter/index.rb by rubocop
Severity
Category
Status
Source
Language