1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/elasticdump/README.md

9 lines
310 B
Markdown
Raw Normal View History

2020-09-16 13:01:06 +02:00
elasticdump
===========
```bash
$ alias elasticdump='docker run --rm --net host -v $PWD:/data -w /data elasticdump/elasticsearch-dump'
$ query='{"query": {"query_string": {"query": "+hello:world +foo:bar"}}}'
$ elasticdump --input=http://127.0.0.1:9200/index_name output=result.json --searchBody="$query"
```