Hi! I am trying to get spatial filtering to work, but have some trouble while trying to understand what the status is.
The version of solr I'm using is a nightly build of 21-Jun-2010. I have this field definition in my schema: <field name="location" type="location" indexed="true" stored="true" required="false" /> And I also have the type "location": <fieldType name="location" class="solr.PointType" dimension="2" subFieldType="float" /> When I query my docs, this is how the location-related information is represented: <str name="location">48.4040035,9.7759283</str> <float name="location_0_f">48.404003</float> <float name="location_1_f">9.7759285</float> Now I'd like to filter the query to match all docs which are within a certain radius from a given point. According to http://wiki.apache.org/solr/SpatialSearch something like this is proposed: /select?q=*:*&fq={!sfilt fl=location}&pt=48.404,9.775&d=100 This throws an error "Unknown query type 'sfilt'". Why is that? Do I need a newer solr build? Not surprising what works well is a bounding box query like this one: /select?q=*:*&fq=location_0_f:[48 TO 49] AND location_1_f:[9 TO 10] But I'd really like to be able to filter by euclidic distance. So I think the main question is: How do I get sfilt to work? Thanks! Marian