Skip to content

Commit 13a470a

Browse files
committed
Adding imports of Q and A to docs
1 parent b73e380 commit 13a470a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/search_dsl.rst

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ parameters or the raw ``dict``:
132132

133133
.. code:: python
134134
135+
from elasticsearch_dsl import Q
136+
135137
Q("multi_match", query='python django', fields=['title', 'body'])
136138
Q({"multi_match": {"query": "python django", "fields": ["title", "body"]}})
137139
@@ -235,6 +237,8 @@ To define an aggregation, you can use the ``A`` shortcut:
235237

236238
.. code:: python
237239
240+
from elasticsearch_dsl import A
241+
238242
A('terms', field='tags')
239243
# {"terms": {"field": "tags"}}
240244

0 commit comments

Comments
 (0)