{ "version": "1.7.0", "description": "Distributed, RESTful Search Engine (version 1)", "homepage": "https://www.elastic.co/products/elasticsearch", "license": { "identifier": "Freeware|Apache-2.0", "url": "https://github.com/elastic/elasticsearch/blob/master/LICENSE.txt" }, "suggest": { "JDK": [ "java/oraclejdk", "java/openjdk" ] }, "url": "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.0.zip", "hash": "sha1:d5180ece0408deb34eac0e07750bb389fa4a33f3", "extract_dir": "elasticsearch-1.7.0", "bin": [ [ "bin\\elasticsearch.bat", "elasticsearch" ], [ "bin\\plugin.bat", "elasticsearch-plugin" ], [ "bin\\service.bat", "elasticsearch-service" ] ], "persist": [ "config", "plugins" ], "post_install": [ "# we have to overwrite SCRIPT_DIR because elasticsearch.in.bat doesn't care if SCRIPT_DIR or ES_HOME are already set ...", "(gc \"$original_dir\\bin\\elasticsearch.in.bat\") | % { $_ -replace 'set SCRIPT_DIR=%~dp0', \"set SCRIPT_DIR=$original_dir\" } | Set-Content \"$original_dir\\bin\\elasticsearch.in.bat\"", "# use persistent data/logs directory", "(gc \"$dir\\config\\elasticsearch.yml\") | % { $_ -replace '#path.conf: /path/to/conf', \"path.conf: $persist_dir\\config\" } | Set-Content \"$dir\\config\\elasticsearch.yml\"", "(gc \"$dir\\config\\elasticsearch.yml\") | % { $_ -replace '#path.data: /path/to/data1,/path/to/data2', \"##path.data: /path/to/data1,/path/to/data2\" } | Set-Content \"$dir\\config\\elasticsearch.yml\"", "(gc \"$dir\\config\\elasticsearch.yml\") | % { $_ -replace '#path.data: /path/to/data', \"path.data: $persist_dir\\data\" } | Set-Content \"$dir\\config\\elasticsearch.yml\"", "(gc \"$dir\\config\\elasticsearch.yml\") | % { $_ -replace '#path.logs: /path/to/logs', \"path.logs: $persist_dir\\logs\" } | Set-Content \"$dir\\config\\elasticsearch.yml\"", "(gc \"$dir\\config\\elasticsearch.yml\") | % { $_ -replace '#path.work: /path/to/work', \"path.work: $persist_dir\\work\" } | Set-Content \"$dir\\config\\elasticsearch.yml\"", "(gc \"$dir\\config\\elasticsearch.yml\") | % { $_ -replace '#path.plugins: /path/to/plugins', \"path.plugins: $persist_dir\\plugins\" } | Set-Content \"$dir\\config\\elasticsearch.yml\"" ] }