Added missing params to methods

This commit is contained in:
Honza Král
2015-06-09 19:21:31 +02:00
parent aed7ec0d03
commit 799918712f
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -425,7 +425,7 @@ class Elasticsearch(object):
@query_params('_source', '_source_exclude', '_source_include',
'analyze_wildcard', 'analyzer', 'default_operator', 'df',
'explain', 'fields', 'indices_boost', 'lenient',
'explain', 'fielddata_fields', 'fields', 'indices_boost', 'lenient',
'allow_no_indices', 'expand_wildcards', 'ignore_unavailable',
'lowercase_expanded_terms', 'from_', 'preference', 'q', 'query_cache',
'routing', 'scroll', 'search_type', 'size', 'sort', 'source', 'stats',
@@ -456,6 +456,8 @@ class Elasticsearch(object):
the query string
:arg explain: Specify whether to return detailed information about
score computation as part of a hit
:arg fielddata_fields: A comma-separated list of fields to return as the
field data representation of a field for each hit
:arg fields: A comma-separated list of fields to return as part of a hit
:arg indices_boost: Comma-separated list of index boosts
:arg lenient: Specify whether format-based query failures (such as
+1 -1
View File
@@ -47,7 +47,7 @@ def _make_path(*parts):
quote_plus(_escape(p), b',*') for p in parts if p not in SKIP_IN_PATH)
# parameters that apply to all methods
GLOBAL_PARAMS = ('pretty', 'format')
GLOBAL_PARAMS = ('pretty', 'format', 'filter_path')
def query_params(*es_query_params):
"""