title: What is the difference between CONTAINS and WITHIN on Elasticsearch GeoShape queries?
body: <p>I try to determine if a polygon (indexed in document) has common point with another shape like a circle.</p>
  
  <p>The Elasticsearch <a href="https://www.elastic.co/guide/en/elasticsearch/reference/5.0/query-dsl-geo-shape-query.html" rel="noreferrer">documentation</a> provides 4 types of relation:</p>
  
  <ul>
  <li>INTERSECT ;</li>
  <li>DISJOINCT ;</li>
  <li>CONTAINS ;</li>
  <li>WITHIN.</li>
  </ul>
  
  <p>I try to find more information especially from the GeoJSON side without success.</p>
  
  <p>I think the first type could answer my problem but I can't find the difference between the two lasts. The documentation is very short.</p>
  
  <p>Thanks.</p>