@@ -670,8 +670,10 @@ def delete(self, index, doc_type, id, params=None):
670
670
_ , data = self .transport .perform_request ('DELETE' , _make_path (index , doc_type , id ), params = params )
671
671
return data
672
672
673
- @query_params ('allow_no_indices' , 'expand_wildcards' , 'ignore_unavailable' ,
674
- 'min_score' , 'preference' , 'q' , 'routing' )
673
+ @query_params ('allow_no_indices' , 'analyze_wildcard' , 'analyzer' ,
674
+ 'default_operator' , 'df' , 'expand_wildcards' , 'ignore_unavailable' ,
675
+ 'min_score' , 'lenient' , 'lowercase_expanded_terms' , 'min_score' ,
676
+ 'preference' , 'q' , 'routing' )
675
677
def count (self , index = None , doc_type = None , body = None , params = None ):
676
678
"""
677
679
Execute a query and get the number of matches for that query.
@@ -683,11 +685,24 @@ def count(self, index=None, doc_type=None, body=None, params=None):
683
685
:arg allow_no_indices: Whether to ignore if a wildcard indices
684
686
expression resolves into no concrete indices. (This includes `_all`
685
687
string or when no indices have been specified)
688
+ :arg analyze_wildcard: Specify whether wildcard and prefix queries
689
+ should be analyzed (default: false)
690
+ :arg analyzer: The analyzer to use for the query string
691
+ :arg default_operator: The default operator for query string query (AND
692
+ or OR), default u'OR'
693
+ :arg df: The field to use as default where no field prefix is given in
694
+ the query string
686
695
:arg expand_wildcards: Whether to expand wildcard expression to concrete
687
696
indices that are open, closed or both., default 'open'
688
697
:arg ignore_unavailable: Whether specified concrete indices should be
689
698
ignored when unavailable (missing or closed)
690
699
:arg min_score: Include only documents with a specific `_score` value in the result
700
+ :arg lenient: Specify whether format-based query failures (such as
701
+ providing text to a numeric field) should be ignored
702
+ :arg lowercase_expanded_terms: Specify whether query terms should be
703
+ lowercased
704
+ :arg min_score: Include only documents with a specific `_score` value in
705
+ the result
691
706
:arg preference: Specify the node or shard the operation should be
692
707
performed on (default: random)
693
708
:arg q: Query in the Lucene query string syntax
@@ -746,7 +761,7 @@ def msearch(self, body, index=None, doc_type=None, params=None):
746
761
747
762
@query_params ('allow_no_indices' , 'analyzer' , 'consistency' ,
748
763
'default_operator' , 'df' , 'expand_wildcards' , 'ignore_unavailable' , 'q' ,
749
- 'routing' , 'source' , ' timeout' )
764
+ 'routing' , 'timeout' )
750
765
def delete_by_query (self , index , doc_type = None , body = None , params = None ):
751
766
"""
752
767
Delete documents from one or more indices and one or more types based on a query.
@@ -772,8 +787,6 @@ def delete_by_query(self, index, doc_type=None, body=None, params=None):
772
787
ignored when unavailable (missing or closed)
773
788
:arg q: Query in the Lucene query string syntax
774
789
:arg routing: Specific routing value
775
- :arg source: The URL-encoded query definition (instead of using the
776
- request body)
777
790
:arg timeout: Explicit operation timeout
778
791
"""
779
792
if index in SKIP_IN_PATH :
@@ -1192,8 +1205,10 @@ def delete_template(self, id=None, params=None):
1192
1205
'template' , id ), params = params )
1193
1206
return data
1194
1207
1195
- @query_params ('allow_no_indices' , 'expand_wildcards' , 'ignore_unavailable' ,
1196
- 'min_score' , 'preference' , 'routing' , 'source' )
1208
+ @query_params ('allow_no_indices' , 'analyze_wildcard' , 'analyzer' ,
1209
+ 'default_operator' , 'df' , 'expand_wildcards' , 'ignore_unavailable' ,
1210
+ 'lenient' , 'lowercase_expanded_terms' , 'min_score' , 'preference' , 'q' ,
1211
+ 'routing' )
1197
1212
def search_exists (self , index = None , doc_type = None , body = None , params = None ):
1198
1213
"""
1199
1214
The exists API allows to easily determine if any matching documents
@@ -1207,17 +1222,27 @@ def search_exists(self, index=None, doc_type=None, body=None, params=None):
1207
1222
:arg allow_no_indices: Whether to ignore if a wildcard indices
1208
1223
expression resolves into no concrete indices. (This includes `_all`
1209
1224
string or when no indices have been specified)
1225
+ :arg analyze_wildcard: Specify whether wildcard and prefix queries
1226
+ should be analyzed (default: false)
1227
+ :arg analyzer: The analyzer to use for the query string
1228
+ :arg default_operator: The default operator for query string query (AND
1229
+ or OR), default u'OR'
1230
+ :arg df: The field to use as default where no field prefix is given in
1231
+ the query string
1210
1232
:arg expand_wildcards: Whether to expand wildcard expression to concrete
1211
1233
indices that are open, closed or both., default u'open'
1212
1234
:arg ignore_unavailable: Whether specified concrete indices should be
1213
1235
ignored when unavailable (missing or closed)
1236
+ :arg lenient: Specify whether format-based query failures (such as
1237
+ providing text to a numeric field) should be ignored
1238
+ :arg lowercase_expanded_terms: Specify whether query terms should be
1239
+ lowercased
1214
1240
:arg min_score: Include only documents with a specific `_score` value in
1215
1241
the result
1216
1242
:arg preference: Specify the node or shard the operation should be
1217
1243
performed on (default: random)
1244
+ :arg q: Query in the Lucene query string syntax
1218
1245
:arg routing: Specific routing value
1219
- :arg source: The URL-encoded query definition (instead of using the
1220
- request body)
1221
1246
"""
1222
1247
_ , data = self .transport .perform_request ('POST' , _make_path (index ,
1223
1248
doc_type , '_search' , 'exists' ), params = params , body = body )
0 commit comments