Home

Awesome

SPORE Specifications for Elasticsearch

Welcome to the Elasticsearch SPORE project

Versions

spore-elasticsearchElasticSearchJSpore
master (0.0.1)0.20.20.0.1

Build Status

Thanks to cloudbees for the build status: Build Status

Test trends

Available APIs

API NameMethodURLDocumentation
welcomeGET/
create_indexPUT/{index}http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index.html
delete_indexDELETE/{index}http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-index.html
put_mappingPUT/{index}/_mappinghttp://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping.html
get_mappingGET/{index}/{type}/_mappinghttp://www.elasticsearch.org/guide/reference/api/admin-indices-get-mapping.html
delete_mappingDELETE/{index}/{type}http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-mapping.html
indexPOST/{index}/{type}/{id}http://www.elasticsearch.org/guide/reference/api/index_.html
searchPOST/{index}/{type}/_searchhttp://www.elasticsearch.org/guide/reference/api/search/
deleteDELETE/{index}/{type}/{id}http://www.elasticsearch.org/guide/reference/api/delete.html
analyzeGET/_analyzehttp://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html
countPOST/_counthttp://www.elasticsearch.org/guide/reference/api/count.html
statusGET/{index}/_statushttp://www.elasticsearch.org/guide/reference/api/admin-indices-status.html
shutdownPOST/_cluster/nodes/{nodes}/_shutdownhttp://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown.html
nodes_statsGET/_nodes/{nodeId}/stats/{stats}http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-stats.html
nodes_infoGET/_nodes/{nodeId}/{info}http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-info.html
cluster_stateGET/_cluster/statehttp://www.elasticsearch.org/guide/reference/api/admin-cluster-state.html
cluster_healthGET/_cluster/health/{index}http://www.elasticsearch.org/guide/reference/api/admin-cluster-health.html
cluster_settingsGET/_cluster/settingshttp://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html
put_cluster_settingsPUT/_cluster/settingshttp://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html
hot_threadsGET/_nodes/{nodeId}/hot_threadshttp://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-hot-threads.html
multi_searchGET/{index}/{type}/_msearchhttp://www.elasticsearch.org/guide/reference/api/multi-search.html
flushGET/{index}/_flushhttp://www.elasticsearch.org/guide/reference/api/admin-indices-flush.html
index_statsGET/{index}/_stats/{stat}/{option}/{type}http://www.elasticsearch.org/guide/reference/api/admin-indices-stats.html
index_stats_optionsGET/{index}/_stats/{stat}/{option}/{type}?xxxhttp://www.elasticsearch.org/guide/reference/api/admin-indices-stats.html
index_settingsGET/{index}/_settingshttp://www.elasticsearch.org/guide/reference/api/admin-indices-get-settings.html
index_put_settingsPUT/{index}/_settingshttp://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings.html

TODO

Thanks to @imotov, it's easy to get all REST entry points:

ES_DIR=.
grep "controller.registerHandler\(([^,]*),[^,]*" $ES_DIR -o -h -E -R --include "*.java" | \
  sed s/controller\.registerHandler\(// | sed s/RestRequest.Method.// | \
  sort -t, -k1 -k2 > methods.txt

Here are the methods that have to be implemented in SPORE:

API NameMethodURLDocumentation
DELETE/_template/{name}http://www.elasticsearch.org/guide/reference/api/xxx
DELETE/{index}/_queryhttp://www.elasticsearch.org/guide/reference/api/xxx
DELETE/{index}/_warmerhttp://www.elasticsearch.org/guide/reference/api/xxx
DELETE/{index}/_warmer/{name}http://www.elasticsearch.org/guide/reference/api/xxx
DELETE/{index}/{type}/_queryhttp://www.elasticsearch.org/guide/reference/api/xxx
DELETE/{index}/{type}/_warmer/{name}http://www.elasticsearch.org/guide/reference/api/xxx
GET/_aliaseshttp://www.elasticsearch.org/guide/reference/api/xxx
GET/_cache/clearhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/_mgethttp://www.elasticsearch.org/guide/reference/api/xxx
GET/_optimizehttp://www.elasticsearch.org/guide/reference/api/xxx
GET/_refreshhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/_search/scrollhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/_search/scroll/{scroll_id}http://www.elasticsearch.org/guide/reference/api/xxx
GET/_segmentshttp://www.elasticsearch.org/guide/reference/api/xxx
GET/_template/{name}http://www.elasticsearch.org/guide/reference/api/xxx
GET/_validate/queryhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/_aliaseshttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/_cache/clearhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/_mgethttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/_optimizehttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/_refreshhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/_segmentshttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/_validate/queryhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/_warmerhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/_warmer/{name}http://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/{type}/_mgethttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/{type}/_percolatehttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/{type}/_validate/queryhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/{type}/_warmer/{name}http://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/{type}/{id}http://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/{type}/{id}/_explainhttp://www.elasticsearch.org/guide/reference/api/xxx
GET/{index}/{type}/{id}/_mlthttp://www.elasticsearch.org/guide/reference/api/xxx
HEAD/http://www.elasticsearch.org/guide/reference/api/xxx
HEAD/{index}http://www.elasticsearch.org/guide/reference/api/xxx
HEAD/{index}/{type}http://www.elasticsearch.org/guide/reference/api/xxx
HEAD/{index}/{type}/{id}http://www.elasticsearch.org/guide/reference/api/xxx
POST/_aliaseshttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_bulkhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_cache/clearhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_cluster/nodes/_restarthttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_cluster/nodes/{nodeId}/_restarthttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_cluster/reroutehttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_gateway/snapshothttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_mgethttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_optimizehttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_refreshhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_search/scrollhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/_search/scroll/{scroll_id}http://www.elasticsearch.org/guide/reference/api/xxx
POST/_template/{name}http://www.elasticsearch.org/guide/reference/api/xxx
POST/_validate/queryhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index} SAME AS PUThttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_bulkhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_cache/clearhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_closehttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_counthttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_gateway/snapshothttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_mgethttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_openhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_optimizehttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_refreshhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/_validate/queryhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/{type}http://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/{type}/_bulkhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/{type}/_counthttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/{type}/_mgethttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/{type}/_percolatehttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/{type}/_validate/queryhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/{type}/{id}/_createhttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/{type}/{id}/_mlthttp://www.elasticsearch.org/guide/reference/api/xxx
POST/{index}/{type}/{id}/_updatehttp://www.elasticsearch.org/guide/reference/api/xxx
PUT/_bulkhttp://www.elasticsearch.org/guide/reference/api/xxx
PUT/_template/{name}http://www.elasticsearch.org/guide/reference/api/xxx
PUT/{index}/_bulkhttp://www.elasticsearch.org/guide/reference/api/xxx
PUT/{index}/_warmer/{name}http://www.elasticsearch.org/guide/reference/api/xxx
PUT/{index}/{type}/_bulkhttp://www.elasticsearch.org/guide/reference/api/xxx
PUT/{index}/{type}/_warmer/{name}http://www.elasticsearch.org/guide/reference/api/xxx
PUT/{index}/{type}/{id}/_createhttp://www.elasticsearch.org/guide/reference/api/xxx

Known issues

API NameMethodURLDocumentation
multi_searchGET/{index}/{type}/_msearchDoesn't work JSpore issue?

Ignored APIs

GET, "/{index}/{type}/_search"
POST, "/{index}/{type}/_msearch"
POST, "/{index}/_flush"