Skip to content

Commit ee1dd75

Browse files
committed
formatting and
removing the double index instructoins
1 parent 9fd57de commit ee1dd75

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

docs/sphinx/quickstart.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,10 @@ Time to use Elasticsearch! This section walks you through the most important
5454
operations of Elasticsearch. The following examples assume that the Python
5555
client was instantiated as above.
5656

57-
Creating an index
58-
^^^^^^^^^^^^^^^^^
59-
60-
This is how you create the `my_index` index:
61-
62-
.. code-block:: python
63-
64-
client.indices.create(index="my_index")
65-
66-
Create a mapping for your index
67-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57+
Create an index with mappings
58+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6859

60+
This is how you create the `my_index` index.
6961
Optionally, you can first define the expected types of your features with a custom mapping.
7062

7163
.. code-block:: python
@@ -85,7 +77,7 @@ Optionally, you can first define the expected types of your features with a cust
8577
}
8678
}
8779
88-
client.indices.create(index="my_index", mappings = mappings)
80+
client.indices.create(index="my_index", mappings=mappings)
8981
9082
Indexing documents
9183
^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)