We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 271376f commit 4ed675aCopy full SHA for 4ed675a
docs/api.rst
@@ -63,6 +63,19 @@ connection class::
63
64
.. py:module:: elasticsearch
65
66
+Response Filtering
67
+~~~~~~~~~~~~~~~~~~
68
+
69
+The `filter_path` parameter is used to reduce the response returned by
70
+elasticsearch. For example, to only return `_id` and `_type`, do::
71
72
+ es.search(index='test-index', filter_path=['hits.hits._id', 'hits.hits._type'])
73
74
+It also supports the `*` wildcard character to match any field or part of a
75
+field's name::
76
77
+ es.search(index='test-index', filter_path=['hits.hits._*'])
78
79
Elasticsearch
80
-------------
81
0 commit comments