Plugins can have “sites” in them, any plugin that exists under the plugins directory with a
_site
directory, its content will be statically served when hitting/_plugin/[plugin_name]/
url. Those can be added even after the process has started.
— http://www.elasticsearch.org/guide/reference/modules/plugins.html
elasticsearch plugins which don't contain any Java files are identified as “site” plugins, and their content is served as static files.
This makes it easy to create small, self-contained HTML applications for elasticsearch, just like this one.
You can either simply copy the index.html
file to $ES_HOME/plugins/hello-elasticsearch/_site
directory,
or use the plugin
script included with elasticsearch installation:
plugin -install hello-elasticsearch -url https://raw.github.com/gist/3381710/hello-elasticsearch.zip
The application will be available at http://localhost:9200/_plugin/hello-elasticsearch/index.html.
bin/plugin -install hello-elasticsearch -url https://gist.github.com/karmi/3381710/raw/6d980c1e2f99321a382c59ef649902a0d60ea3f1/hello-elasticsearch.zip