A bit late (sorry to bump an old post) but this is something I have hit with our Windows installation.
Many of the code snippets shown in the tutorial etc are written for Linux systems (I guess most people are using Linux for Elasticsearch?) so I will share a few of the "Windows-isms" I have found so far.
If we look at one line from the Tutorial:
curl 'localhost:9200/_cat/indices?v'
This will fail on Windows:
curl: (6) Could not resolve host: 'localhost
Use double quotes (or no quotes) instead:
curl "localhost:9200/_cat/indices?v"
or curl localhost:9200/_cat/indices?v
Both work. Now, to split across lines using the same example, use the ^ (caret symbol) at the end of each line. If you do this interactively (as I show below) you will be prompted "More?" at the start of each new line.
curl localhost:9200/^
More? _cat/indices?v
You can also do this in a batch file:
copy con test.bat
curl localhost:9200/^
_cat/indices?v
^Z
1 file(s) copied.
test
This will achieve the same output.
I hope this helps - and I will share more Windows-isms as they come to light.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.