Re: elastic result search by text with nearest distance using latitude and longitude

2014-02-12 Thread Binh Ly
Oh I see, sounds like you want to sort by relevance and then have the distance factored into the relevance score also. You might want to take a look at the function_score query: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_using_funct

Re: elastic result search by text with nearest distance using latitude and longitude

2014-02-11 Thread Vallabh Bothre
Thanks for replying Binh, Yeap first 25 matches having closer distance (lat,lon values) but they are not relevant matches. For Ex. When i search for "palexpo" from San Francisco (37.77519600,-122.41920400) it gives me, 1. PLUGZ -- 37.80664300 -122.41628300 -- 2.181 Miles from san francisco 2.

Re: elastic result search by text with nearest distance using latitude and longitude

2014-02-11 Thread Binh Ly
I'm curious, can you show the results (lon, lat values) of the first 25 matches? -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@goog

elastic result search by text with nearest distance using latitude and longitude

2014-02-10 Thread Vallabh Bothre
Dear All, I am using elastic for venue search in that i do have title, latitude and longitude. I have some what 4 lac data. *My concern is that i wanted to search the text which will produce the relevant result with nearest distance.* Right now i am using "geo_distance" you can see my below c