Im now thinking I downloaded the wrong solr zip, I tried this one:
https://hudson.apache.org/hudson/job/Solr-trunk/lastSuccessfulBuild/artifact/trunk/solr/dist/apache-solr-4.0-2010-10-12_08-05-48.zip

In that example scheme
(\apache-solr-4.0-2010-10-12_08-05-48\example\example-DIH\solr\db\conf\schema.xml)
nothing is mentioned about a fieldtype of class solr.LatLonType.

But when I add the lines you suggested to my current schema.xml, I get no
error, so apparently the LatLonType IS found?

Here's what I now have in my schema.xml

<fieldType name="location" class="solr.LatLonType"
subFieldSuffix="_coordinate"/>  
<dynamicField name="*_coordinate"  type="tdouble" indexed="true"
stored="false"/>
<field name="geolocation" type="location" indexed="true" stored="true"/>

and this url:
http://localhost:8983/solr/db/select/?wt=xml&indent=on&facet=true&fl=id,title,lat,lng,city&facet.field=province_raw&q=*:*&fq={!geofilt%20pt=51.8316819,5.8151540%20sfield=geolocation%20d=500}


I also tried this:
http://localhost:8983/solr/db/select/?wt=xml&indent=on&facet=true&fl=id,title,lat,lng,geolocation,city&facet.field=province_raw&q=*:*

So WITHOUT the geofilter. Strange thing there is that the geolocation field
does not show up in the results (even though I restarted my app server,
reloaded my data-config and did a full import)
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Spatial-search-in-Solr-1-5-tp489948p1694443.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to