diff --git a/lib/elasticsearch/dsl/search/queries/query_string.rb b/lib/elasticsearch/dsl/search/queries/query_string.rb index 74a3b46..ee655bf 100644 --- a/lib/elasticsearch/dsl/search/queries/query_string.rb +++ b/lib/elasticsearch/dsl/search/queries/query_string.rb @@ -19,7 +19,6 @@ module Elasticsearch module DSL module Search module Queries - # A query which returns documents matching a specified expression in the Lucene Query String syntax # # @example @@ -54,7 +53,6 @@ class QueryString option_method :phrase_slop option_method :boost option_method :analyze_wildcard - option_method :auto_generate_phrase_queries option_method :auto_generate_synonyms_phrase_query option_method :minimum_should_match option_method :lenient @@ -63,7 +61,6 @@ class QueryString option_method :tie_breaker option_method :time_zone end - end end end diff --git a/spec/elasticsearch/dsl/search/queries/query_string_spec.rb b/spec/elasticsearch/dsl/search/queries/query_string_spec.rb index b98f312..fd9bdb3 100644 --- a/spec/elasticsearch/dsl/search/queries/query_string_spec.rb +++ b/spec/elasticsearch/dsl/search/queries/query_string_spec.rb @@ -18,9 +18,7 @@ require 'spec_helper' describe Elasticsearch::DSL::Search::Queries::QueryString do - describe '#to_hash' do - let(:search) do described_class.new end @@ -31,12 +29,12 @@ end context 'when options methods are called' do - let(:search) do described_class.new end - [ 'query', + [ + 'query', 'fields', 'type', 'default_field', @@ -50,17 +48,16 @@ 'phrase_slop', 'boost', 'analyze_wildcard', - 'auto_generate_phrase_queries', 'auto_generate_synonyms_phrase_query', 'minimum_should_match', 'lenient', 'locale', 'use_dis_max', 'tie_breaker', - 'time_zone'].each do |option| + 'time_zone' + ].each do |option| describe "##{option}" do - before do search.send(option, 'bar') end @@ -73,9 +70,7 @@ end describe '#initialize' do - context 'when a block is provided' do - let(:search) do described_class.new do query 'foo AND bar'