Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| ES='http://localhost:9200' | |
| ESIDX='test3' | |
| ESTYPE='test' | |
| curl -XDELETE $ES/$ESIDX | |
| curl -XPUT $ES/$ESIDX/ -d '{ | |
| "settings" : { |
| # delete index (will print an error if 'my_index' doesn't exist, you can safely ignore it) | |
| curl -XDELETE 'http://localhost:9200/my_index' | |
| # create index with its settings | |
| curl -XPOST 'http://localhost:9200/my_index' -d '{ | |
| "index.analysis.analyzer.default.type":"custom", | |
| "index.analysis.analyzer.default.tokenizer":"standard", | |
| "index.analysis.analyzer.default.filter.0":"lowercase", | |
| "index.analysis.analyzer.default.filter.1":"asciifolding" | |
| }' |