I am using Yii2-sphinx extension and everything working fine. Now I am doing distance search using sphinx so i want to set latitude and longitude for a given postcode. How can I set those two filters for my index?
As sphinx has an option to set geofilters but in yii2-sphinx, I am not able to do this.
See, http://sphinxsearch.com/blog/2013/07/02/geo-distances-with-sphinx/
Want a query somewhat like
So would need to use GEODIST function in
->select()
and the filter in->andWhere()
May want to change the order too.