Helper documentation tweaks

This commit is contained in:
Honza Kral
2013-10-10 13:20:42 +02:00
parent 8568388f29
commit 61509723e6
4 changed files with 11 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
.. _api:
API Documentation API Documentation
================= =================
+2
View File
@@ -1,3 +1,5 @@
.. _helpers:
Helpers Helpers
======= =======
+5
View File
@@ -51,6 +51,11 @@ Example Usage
Features Features
-------- --------
This client was designed as very thin wrapper around Elasticseach's REST API to
allow for maximum flexibility. This means that there are no opinions in this
client; it also means that some of the APIs are a little cumbersome to use from
Python. We have created some :ref:`helpers` to help with this issue.
Extendability Extendability
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
+2 -1
View File
@@ -12,7 +12,8 @@ def bulk_index(client, docs, chunk_size=500, stats_only=False, **kwargs):
{ {
'_index': 'index-name', '_index': 'index-name',
'_type': 'document', '_type': 'document',
'_parent': '5', '_id': 42,
'_parent': 5,
'_ttl': '1d', '_ttl': '1d',
'_source': { '_source': {
... ...