Skip to content

Commit

Permalink
Added a not in the docs on how to handle non-keyword fields
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
honzakral committed Jan 29, 2015
1 parent c4691f1 commit cbd1376
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/search_dsl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ statement:
s = Search().using(client).query("match", title="python")
.. note::

In some cases this approach is not possible due to python's restriction on
identifiers - for example if your field is called ``@timestamp``. In that
case you have to fall back to unpacking a dictionary: ``s.query('range', **
{'@timestamp': {'lt': 'now'}})``

To send the request to Elasticsearch:

.. code:: python
Expand Down

0 comments on commit cbd1376

Please sign in to comment.