You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _getting-started/ingest-data.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,32 +50,32 @@ Use the following steps to create a sample index and define field mappings for t
50
50
```
51
51
{% include copy.html %}
52
52
53
-
1. Download [ecommerce.json](https://github.com/opensearch-project/documentation-website/blob/{{site.opensearch_major_minor_version}}/assets/examples/ecommerce.json). This file contains the index data formatted so that it can be ingested by the Bulk API:
53
+
1. Download [ecommerce.ndjson](https://github.com/opensearch-project/documentation-website/blob/{{site.opensearch_major_minor_version}}/assets/examples/ecommerce.ndjson). This file contains the index data formatted so that it can be ingested by the Bulk API:
1. Use the [Create index]({{site.url}}{{site.baseurl}}/api-reference/index-apis/create-index/) API to create an index using the mappings defined in `ecommerce-field_mappings.json`:
176
176
```bash
177
-
curl -H "Content-Type: application/x-ndjson" \
177
+
curl -H "Content-Type: application/json" \
178
178
-X PUT "https://localhost:9201/ecommerce?pretty" \
179
179
--data-binary "@ecommerce-field_mappings.json" \
180
180
-ku admin:<custom-admin-password>
@@ -188,11 +188,11 @@ This section can be broken down into two parts:
188
188
"index" : "ecommerce"
189
189
}
190
190
```
191
-
1. Use the [Bulk]({{site.url}}{{site.baseurl}}/api-reference/document-apis/bulk/) API to add data to the new ecommerce index from `ecommerce.json`:
191
+
1. Use the [Bulk]({{site.url}}{{site.baseurl}}/api-reference/document-apis/bulk/) API to add data to the new ecommerce index from `ecommerce.ndjson`:
192
192
```bash
193
193
curl -H "Content-Type: application/x-ndjson" \
194
194
-X PUT "https://localhost:9201/ecommerce/_bulk?pretty" \
0 commit comments