title: How does elasticsearch work?
body: <p>How does Elasticsearch handle indices? I have a field called <code>Coordinates</code> which has subfields <code>lat</code> and <code>lng</code> in a collection called <code>users</code>. I want to search inside this collection but by indexing the coordinate field. In my MongoDB configuration the <code>coordinate</code> field is already a 2D index. How can I try to tell ElasticSearch to search indexing that field? Does it know that coordinates is an index ? or should I tell it by this script?</p>
  
  <pre><code>curl -XPUT "localhost:9200/_river/artist/_meta" -d'
  {
    "type": "mongodb",
      "mongodb": {
        "db": "mydb", 
        "collection": "users"
      },
      "index": {
        "name": "coordin", 
        "type": "coordinates"
      }
  }'
  </code></pre>