Skip to content

Commit f825e2e

Browse files
authored
Update README.md
1 parent 8725dcd commit f825e2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ Indexer.setIndexName('posts');
100100

101101
## Example
102102

103-
### 1. Create a directory named `content`.
103+
#### 1. Create a directory named `content`.
104104
```bash
105105
$ mkdir 'content'
106106
```
107107

108-
### 2. Create a markdown file with `toml` front matter in a file named `content/test-toml.md`.
108+
#### 2. Create a markdown file with `toml` front matter in a file named `content/test-toml.md`.
109109
```markdown
110110

111111
$ echo '
@@ -120,12 +120,12 @@ Sample content body
120120
' > 'content/test-toml.md'
121121
```
122122

123-
### 3. Generate a newline delimited json file for indexing in Elasticsearch and output it to a file named `public/elasticsearch.json`.
123+
#### 3. Generate a newline delimited json file for indexing in Elasticsearch and output it to a file named `public/elasticsearch.json`.
124124
```bash
125125
$ hes -i 'content/**' -o 'public/elasticsearch.json'
126126
```
127127

128-
### 4. [Bulk](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html) upload your json file to a running Elasticsearch instance.
128+
#### 4. [Bulk](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html) upload your json file to a running Elasticsearch instance.
129129

130130
**[cURL](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html)**
131131
```bash
@@ -180,7 +180,7 @@ const bulkUpload = async () => {
180180
**[Java](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/index.html), [Python](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html), [Ruby](https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html), ...**
181181
> Although the bulk upload examples above are only for cUrl and JavaScript, this format will work seamlessly with **any** one of the *numerous* Elasticsearch [clients](https://www.elastic.co/guide/en/elasticsearch/client/index.html).
182182
183-
### 5. You content is now successfully indexed in Elasticsearch 👍. Happy elastic searching!
183+
#### 5. You content is now successfully indexed in Elasticsearch 👍. Happy elastic searching!
184184

185185
> Refer to the [`content`](content) directory in the root of *this* project for examples of both *yaml* and *toml* content (i.e. `.md` files).
186186

0 commit comments

Comments
 (0)