Skip to content

Commit 406cf17

Browse files
committed
[DSL] Support query_string type option
1 parent 8be1eb3 commit 406cf17

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/elasticsearch/dsl/search/queries/query_string.rb

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class QueryString
4141

4242
option_method :query
4343
option_method :fields
44+
option_method :type
4445
option_method :default_field
4546
option_method :default_operator
4647
option_method :analyzer

spec/elasticsearch/dsl/search/queries/query_string_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
[ 'query',
4040
'fields',
41+
'type',
4142
'default_field',
4243
'default_operator',
4344
'allow_leading_wildcard',

0 commit comments

Comments
 (0)