Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
al-x authored and ferronrsmith committed Apr 18, 2024
1 parent 991b010 commit 7750a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ When specifying the `searchBodyTemplate` option, prefix the value with `@` (a cu
Uses a pseudo-URL format to specify arguments to the module as follows. Given:

```bash
elasticdump --searchBodyTemplate='@./temapltes/my-teamplate?param1=value&param2=another-value'
elasticdump --searchBodyTemplate='@./templates/my-template?param1=value&param2=another-value'
```

with a module at `./transforms/my-transform.js` with the following:
Expand All @@ -848,7 +848,7 @@ module.exports = function(doc, options) {
};
```

will load module `./temapltes/my-teamplate.js', and execute the function with `doc` and `options` = `{"param1": "value", "param2": "another-value"}`.
will load module `./templates/my-template.js', and execute the function with `doc` and `options` = `{"param1": "value", "param2": "another-value"}`.

An example template for modifying dates using a simple templating engine is available in the `templates` folder.

Expand Down

0 comments on commit 7750a0c

Please sign in to comment.