Skip to content

Commit

Permalink
Correct the "indexes" kwarg spelling in the docstring examples.
Browse files Browse the repository at this point in the history
Really have to get these doctests running.
  • Loading branch information
erikrose committed Sep 20, 2012
1 parent 70e061b commit 329d228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/index.rst
Expand Up @@ -45,7 +45,7 @@ Get just Jessica's document:

Perform a simple search:

>>> es.search('name:joe OR name:freddy', indexes='contacts')
>>> es.search('name:joe OR name:freddy', index='contacts')
{u'_shards': {u'failed': 0, u'successful': 42, u'total': 42},
u'hits': {u'hits': [{u'_id': u'1',
u'_index': u'contacts',
Expand Down Expand Up @@ -86,7 +86,7 @@ Perform a search using the `elasticsearch query DSL`_:
... },
... },
... }
>>> es.search(query, indexes='contacts')
>>> es.search(query, index='contacts')
{u'_shards': {u'failed': 0, u'successful': 42, u'total': 42},
u'hits': {u'hits': [{u'_id': u'3',
u'_index': u'contacts',
Expand Down

0 comments on commit 329d228

Please sign in to comment.