Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Commit

Permalink
Minor doc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
davedash committed Aug 11, 2011
1 parent a14e1ba commit 72c0b37
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
build/
dist/
*.egg-info
docs/_build/
8 changes: 8 additions & 0 deletions docs/installation.rst
Expand Up @@ -22,6 +22,14 @@ Installation
so you don't have to
have ElasticSearch running.

.. data:: ES_DUMP_CURL

If set to a path all the requests that `ElasticUtils` makes will be dumped
into the designated file.

.. note:: Python does not write this file until the process is finished.


.. data:: ES_HOSTS

This is a list of hosts. In development this will look like::
Expand Down
15 changes: 12 additions & 3 deletions docs/queries.rst
Expand Up @@ -6,9 +6,18 @@ ElasticUtils makes querying and filtering and collecting facets from
ElasticSearch simple ::


q = (S(product='firefox').filter(version='4.0', platform='all')
.facet('product', global_=True).facet('version')
.facet('platform').facet('type'))
q = (S(model).filter(product='firefox')
.filter(version='4.0', platform='all')
.facet('product', global_=True).facet('version')
.facet('platform').facet('type'))


Where ``model`` is a Django-model.

.. note::

If you're not using Django, you can create stub-models. See the tests for
more details.

Search All
----------
Expand Down

0 comments on commit 72c0b37

Please sign in to comment.