<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Geo/Spatial search using Sphinx search and php</title>
	<atom:link href="http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/</link>
	<description>Because I know too much</description>
	<lastBuildDate>Fri, 02 Dec 2011 15:13:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Roberto Henríquez</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-3474</link>
		<dc:creator>Roberto Henríquez</dc:creator>
		<pubDate>Fri, 04 Nov 2011 13:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-3474</guid>
		<description>I think there is a mistake in the example. Where you say that $_radius is in meters, you probably mean &quot;$_radius is in miles and $circle is in meters&quot;. Otherwise, the conversion

$circle = (float) $_radius * 1.61;

would make no sense.</description>
		<content:encoded><![CDATA[<p>I think there is a mistake in the example. Where you say that $_radius is in meters, you probably mean &#8220;$_radius is in miles and $circle is in meters&#8221;. Otherwise, the conversion</p>
<p>$circle = (float) $_radius * 1.61;</p>
<p>would make no sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geo/Spatial search using Sphinx search and php &#124; My Knowledge Base</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-1414</link>
		<dc:creator>Geo/Spatial search using Sphinx search and php &#124; My Knowledge Base</dc:creator>
		<pubDate>Sat, 15 Jan 2011 09:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-1414</guid>
		<description>[...] In the presentation, Alexander Rubin suggests using Sphinx search for doing the geo/spatial search. I found this the way to go, since I already use sphinx for full-text searching large text tables. Sphinx uses a magic function @geodist for calculation of points of interest (POI) within range. But setup of the source/index and use within PHP is not documented that well. Read the full story [...]</description>
		<content:encoded><![CDATA[<p>[...] In the presentation, Alexander Rubin suggests using Sphinx search for doing the geo/spatial search. I found this the way to go, since I already use sphinx for full-text searching large text tables. Sphinx uses a magic function @geodist for calculation of points of interest (POI) within range. But setup of the source/index and use within PHP is not documented that well. Read the full story [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry Herckenrath</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-1199</link>
		<dc:creator>Terry Herckenrath</dc:creator>
		<pubDate>Thu, 04 Nov 2010 16:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-1199</guid>
		<description>I&#039;ve been using @geodist search for a while now with great success, however recently something in my environment must have changed because I now always get 0 results.

I want to use the command line &#039;search&#039; command to see if I can figure out what is wrong.

My question is how do I perform a geo search from the command line tool (search)? I&#039;m having trouble understanding the terse &#039;help&#039; offered by the search command.

Terry</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using @geodist search for a while now with great success, however recently something in my environment must have changed because I now always get 0 results.</p>
<p>I want to use the command line &#8216;search&#8217; command to see if I can figure out what is wrong.</p>
<p>My question is how do I perform a geo search from the command line tool (search)? I&#8217;m having trouble understanding the terse &#8216;help&#8217; offered by the search command.</p>
<p>Terry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: te-brian</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-1094</link>
		<dc:creator>te-brian</dc:creator>
		<pubDate>Wed, 13 Oct 2010 05:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-1094</guid>
		<description>Many thanks for this concise example.  While my source is much more complicated, its nice that doing the actual filter and sort is so easy.</description>
		<content:encoded><![CDATA[<p>Many thanks for this concise example.  While my source is much more complicated, its nice that doing the actual filter and sort is so easy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webpatser</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-900</link>
		<dc:creator>webpatser</dc:creator>
		<pubDate>Sun, 22 Aug 2010 20:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-900</guid>
		<description>This is correct. Like I replied in the second comment, you need a field with some content, otherwise the result is empty.

This could easily be a fake value. While building the index you can just insert in &#039;a&#039; in a field.

I don&#039;t know when this is fixed.</description>
		<content:encoded><![CDATA[<p>This is correct. Like I replied in the second comment, you need a field with some content, otherwise the result is empty.</p>
<p>This could easily be a fake value. While building the index you can just insert in &#8216;a&#8217; in a field.</p>
<p>I don&#8217;t know when this is fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johni</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-891</link>
		<dc:creator>Johni</dc:creator>
		<pubDate>Fri, 20 Aug 2010 19:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-891</guid>
		<description>Querying simply id, lat, long results in a empty index when i try this. I fixed it by adding the Field 1 to the field list so it actualy has content to index. It seems it doesn&#039;t count lat and lon as content and thinks the dataset is empty. Has anybody a better solution for this Problem?</description>
		<content:encoded><![CDATA[<p>Querying simply id, lat, long results in a empty index when i try this. I fixed it by adding the Field 1 to the field list so it actualy has content to index. It seems it doesn&#8217;t count lat and lon as content and thinks the dataset is empty. Has anybody a better solution for this Problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bas</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-696</link>
		<dc:creator>Bas</dc:creator>
		<pubDate>Fri, 25 Jun 2010 10:40:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-696</guid>
		<description>Does this geodist function search as if it was searching on a globe or is it searching on a flat map?
Or is this a setting?
Can&#039;t find this anywhere.</description>
		<content:encoded><![CDATA[<p>Does this geodist function search as if it was searching on a globe or is it searching on a flat map?<br />
Or is this a setting?<br />
Can&#8217;t find this anywhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webpatser</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-355</link>
		<dc:creator>webpatser</dc:creator>
		<pubDate>Sat, 20 Mar 2010 07:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-355</guid>
		<description>Hi Mike,

You can easily sort the results:

Just add
[php]$search-&gt;SetSortMode ( SPH_SORT_EXTENDED, &quot;@geodist asc&quot;);[/php]</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>You can easily sort the results:</p>
<p>Just add</p>
<pre class="brush: php; title: ; notranslate">$search-&gt;SetSortMode ( SPH_SORT_EXTENDED, &quot;@geodist asc&quot;);</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-354</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 19 Mar 2010 21:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-354</guid>
		<description>Any tips on sorting by distance? Closest first...

I manged to get this functional in a Codeigniter application I&#039;ve been working on... Just need to figure out the pagination! 

Thanks!</description>
		<content:encoded><![CDATA[<p>Any tips on sorting by distance? Closest first&#8230;</p>
<p>I manged to get this functional in a Codeigniter application I&#8217;ve been working on&#8230; Just need to figure out the pagination! </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webpatser</title>
		<link>http://www.god-object.com/2009/10/20/geospatial-search-using-sphinx-search-and-php/comment-page-1/#comment-41</link>
		<dc:creator>webpatser</dc:creator>
		<pubDate>Tue, 17 Nov 2009 07:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.god-object.com/?p=132#comment-41</guid>
		<description>You mean the SetGeoAnchor function? Be sure to really send floats to that function. The sphinxapi.php class is relay strict in variable types.

Also I noticed that if you create an index with only geo data, the search fails. It needs some text field (that is filled on every row), otherwise the search will not return any results. I&#039;ll will update the article with this &#039;bug&#039;.</description>
		<content:encoded><![CDATA[<p>You mean the SetGeoAnchor function? Be sure to really send floats to that function. The sphinxapi.php class is relay strict in variable types.</p>
<p>Also I noticed that if you create an index with only geo data, the search fails. It needs some text field (that is filled on every row), otherwise the search will not return any results. I&#8217;ll will update the article with this &#8216;bug&#8217;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

