title: Difference between geodist() and dist() for Geo-Spacial Search
body: <p>What is the Difference between <strong>Geodist(sfield,x,y) and dist(2,x,y,a,b)</strong> in Apache Solr for Geo-Spacial Searches ?? </p>
  
  <p>dist(2,x,y,0,0) :- calculates the <strong>Euclidean distance</strong> between (0,0) and (x,y) for each document. Return the Distance between two Vectors (points) in an n-dimensional space.</p>
  
  <p>I was earlier using <strong>geodist()</strong> distance function for Geo-Spatial searches on my website but its response time was large. so have done a POC(proof of concept) for different distance functions and found that <strong>dist(2,x,y,0,0)</strong> distance function is relatively taking half of the time. But I want to know the reason behind this and the algorithms which both functions are using to calculate the distance.</p>
  
  <p>I have to make a difference matrix for the same to convey it further. </p>