Menu
Amazon Elasticsearch Service
Developer Guide (API Version 2015-01-01)

Step 3: Search Documents in an Amazon ES Domain

To search documents in an Amazon Elasticsearch Service domain, use the Elasticsearch search API. Alternatively, you can use Kibana to search documents in the domain.

To search documents from the command line

  • Run the following command to search the movies domain for the word mars:

    curl -XGET 'elasticsearch_domain_endpoint/movies/_search?q=mars'

To search documents from an Amazon ES domain by using Kibana

  1. Point your browser to the Kibana plugin for your Amazon ES domain. You can find the Kibana endpoint on your domain dashboard on the Amazon ES console. The URL follows the format of:

    https://domain.region.es.amazonaws.com/_plugin/kibana/
  2. To use Kibana, you must configure at least one index pattern. Kibana uses these patterns to identity which indices you want to analyze. For this tutorial, enter movies and choose Create.

  3. The Index Patterns screen shows your various document fields, fields like actor and director. For now, choose Discover to search your data.

  4. In the search bar, type mars, and then press Enter. Note how the similarity score (_score) increases when you search for the phrase mars attacks.