anchor.diff:  
   === The Search API
   
  -Now let's start with some simple searches. There are two basic ways to run searches: one is by sending search parameters through the http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-uri-request.html[REST request URI] and the other by sending them through the http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-body.html[REST request body]. The request body method allows you to be more expressive and also to define your searches in a more readable JSON format. We'll try one example of the request URI method but for the remainder of this tutorial, we will exclusively be using the request body method.
  +Now let's start with some simple searches. There are two basic ways to run searches: one is by sending search parameters through the <<search-uri-request,REST request URI>> and the other by sending them through the<<search-request-body,[REST request body>>. The request body method allows you to be more expressive and also to define your searches in a more readable JSON format. We'll try one example of the request URI method but for the remainder of this tutorial, we will exclusively be using the request body method.
   
   The REST API for search is accessible from the `_search` endpoint. This example returns all documents in the bank index:
   
  
positive.code: 
  === Introducing the Query Language
  
  Elasticsearch provides a JSON-style domain-specific language that you can use to execute queries. This is referred to as the http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl.html[Query DSL]. The query language is quite comprehensive and can be intimidating at first glance but the best way to actually learn it is to start with a few basic examples.
  
  Going back to our last example, we executed this query:
  
  
negative.code: By default, each index in Elasticsearch is allocated 5 primary shards and 1 replica which means that if you have at least two nodes in your cluster, your index will have 5 primary shards and another 5 replica shards (1 complete replica) for a total of 10 shards per index.
  
  NOTE: Each Elasticsearch shard is a Lucene index.  There is a maximum number of documents you can have in a single Lucene index.  As of https://issues.apache.org/jira/browse/LUCENE-5843[`LUCENE-5843`], the limit is `2,147,483,519` (= Integer.MAX_VALUE - 128) documents.  
  You can monitor shard sizes using the <<cat-shards,`_cat/shards`>> api.
  
  With that out of the way, let's get started with the fun part...
  
  