Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Probably the easiest way to explore your ElasticSearch cluster is to use <a href="https://github.com/mobz/elasticsearch-head" rel="noreferrer">elasticsearch-head</a>.</p> <p>You can install it by doing:</p> <pre><code>cd elasticsearch/ ./bin/plugin -install mobz/elasticsearch-head </code></pre> <p>Then (assuming ElasticSearch is already running on your local machine), open a browser window to: </p> <p><code>http://localhost:9200/_plugin/head/</code></p> <p>Alternatively, you can just use <code>curl</code> from the command line, eg: </p> <p>Check the mapping for an index:</p> <pre><code>curl -XGET 'http://127.0.0.1:9200/my_index/_mapping?pretty=1' </code></pre> <p>Get some sample docs:</p> <pre><code>curl -XGET 'http://127.0.0.1:9200/my_index/_search?pretty=1' </code></pre> <p>See the actual terms stored in a particular field (ie how that field has been analyzed):</p> <pre><code>curl -XGET 'http://127.0.0.1:9200/my_index/_search?pretty=1' -d ' { "facets" : { "my_terms" : { "terms" : { "size" : 50, "field" : "foo" } } } } </code></pre> <p>More available here: <a href="http://www.elasticsearch.org/guide" rel="noreferrer">http://www.elasticsearch.org/guide</a></p> <h1>UPDATE : Sense plugin in <a href="https://github.com/bleskes/sense" rel="noreferrer">Marvel</a></h1> <p>By far the easiest way of writing <code>curl</code>-style commands for Elasticsearch is the <a href="http://www.elasticsearch.org/overview/marvel/download/" rel="noreferrer">Sense plugin in Marvel</a>. </p> <p>It comes with source highlighting, pretty indenting and autocomplete.</p> <p>Note: <a href="https://github.com/bleskes/sense" rel="noreferrer">Sense was originally a standalone chrome plugin but is now part of the Marvel project</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload