Forked from stephen-puiszis/elasticsearch-cheatsheet.txt
Created
April 8, 2017 14:57
-
-
Save walidsa3d/da04761bdbd70494a75bbe3278460616 to your computer and use it in GitHub Desktop.
Revisions
-
stephen-puiszis revised this gist
Jul 7, 2015 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,6 +50,11 @@ curl -X GET 'http://localhost:9200/<index name>/<type>/_settings' # View s curl -X GET 'http://localhost:9200/<index name>/_search' # Search an index curl -X GET 'http://localhost:9200/<index name>/<type>/_search' # Search an index type # Bulk API curl -X GET 'http://localhost:9200/_bulk' curl -X GET 'http://localhost:9200/<index name>/_bulk' curl -X GET 'http://localhost:9200/<index name>/<type>/_bulk' # Elastic River Basics curl -X GET 'http://localhost:9200/_river/_meta' # View River settings curl -X GET 'http://localhost:9200/_river/<index name>/_meta' # View River meta data for index -
stephen-puiszis revised this gist
Jun 18, 2015 . 1 changed file with 14 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,7 +23,6 @@ /_cat/fielddata /_cat/fielddata/{fields} # Important Things bin/elasticsearch # Start Elastic instance curl -X GET 'http://localhost:9200/?pretty=true' # View instance metadata @@ -32,15 +31,24 @@ curl -X GET 'http://localhost:9200/_cat?pretty=true' # List a curl -X GET 'http://localhost:9200/_cat/indices?pretty=true' # List all indices curl -X GET 'http://localhost:9200/_cluster/health?pretty=true' # View Cluster Health # Index, Type Basics curl -X GET 'http://localhost:9200/<index name>' # View specific index curl -X POST 'http://localhost:9200/<index name>' # Create an index curl -X DELETE 'http://localhost:9200/<index name>' # Delete an index curl -X GET 'http://locahost:9200/<index name>/<type>/<id>' # Retrieve a specific document curl -X POST 'http://locahost:9200/<index name>/<type>/' # Create a document curl -X PUT 'http://locahost:9200/<index name>/<type>/<id>' # Create/Update a specific document curl -X DELETE 'http://localhost:9200/<index name>/<type>/<id>' # Delete a specific document curl -X GET 'http://localhost:9200/<index name>/_mappings' # View mappings for index curl -X GET 'http://localhost:9200/<index name>/_settings' # View setting information for an index curl -X GET 'http://localhost:9200/<index name>/<type>/_mappings' # View mappings for an index type curl -X GET 'http://localhost:9200/<index name>/<type>/_settings' # View setting information for an index type curl -X GET 'http://localhost:9200/<index name>/_search' # Search an index curl -X GET 'http://localhost:9200/<index name>/<type>/_search' # Search an index type # Elastic River Basics curl -X GET 'http://localhost:9200/_river/_meta' # View River settings -
stephen-puiszis created this gist
Jun 17, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,53 @@ # Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands # cat paths /_cat/allocation /_cat/shards /_cat/shards/{index} /_cat/master /_cat/nodes /_cat/indices /_cat/indices/{index} /_cat/segments /_cat/segments/{index} /_cat/count /_cat/count/{index} /_cat/recovery /_cat/recovery/{index} /_cat/health /_cat/pending_tasks /_cat/aliases /_cat/aliases/{alias} /_cat/thread_pool /_cat/plugins /_cat/fielddata /_cat/fielddata/{fields} # Important Things bin/elasticsearch # Start Elastic instance curl -X GET 'http://localhost:9200/?pretty=true' # View instance metadata curl -X POST 'http://localhost:9200/_shutdown' # Shutdown Elastic instance curl -X GET 'http://localhost:9200/_cat?pretty=true' # List all admin methods curl -X GET 'http://localhost:9200/_cat/indices?pretty=true' # List all indices curl -X GET 'http://localhost:9200/_cluster/health?pretty=true' # View Cluster Health # Index Basics curl -X GET 'http://localhost:9200/<index name>' # View specific index curl -X POST 'http://localhost:9200/<index name>' # Create an index curl -X GET 'http://localhost:9200/<index name>/_mappings' # View mappings for index curl -X GET 'http://localhost:9200/<index name>/_settings' # View mappings for index curl -X PUT 'http://locahost:9200/<index name>/' # Create a document # Search / Filtering Querying Basics curl -X GET 'http://localhost:9200/<index name>/_search?pretty=true' # Search an index # Elastic River Basics curl -X GET 'http://localhost:9200/_river/_meta' # View River settings curl -X GET 'http://localhost:9200/_river/<index name>/_meta' # View River meta data for index curl -X GET 'http://localhost:9200/_river/<index name>/_meta/_source' # View River source for index curl -X GET 'http://localhost:9200/_river/<index name>/_status' # View River status curl -X GET 'http://localhost:9200/_river/<index name>/_search' # Seach the River Index @StephenPuiszis https://gist.github.com/stephen-puiszis