Hi, I apologize for the question, but I can not find out what is wrong. I try to switch from Solr 3.5 to Solr 4.0.
With Solr 3.5 I use SOLR-2155 plugin to filter the documents by distance as described in http://wiki.apache.org/solr/SpatialSearch#Advanced_Spatial_Search and this solution perfectly filter the required data. the query looks like this with Solr 3.5: q=*:*&fq={!geofilt}&sfield= some_loc&pt=45.15,-93.85&d=50&sort=geodist() asc Unfortunately when I try to migrate to Solr4 to remove this plugin code usage from the app and add required modifications as described in http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4 the filter result is always empty for any request. what I use: <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType" spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory" distErrPct="0.025" maxDistErr="0.000009" units="degrees" geo="true" distCalculator="haversine"/> to describe the field type <field name="some_loc" type="location_rpt" indexed="true" stored="true" multiValued="true" boost="2.0"/> to define the field properties the query looks like this for Solr 4.0 : &sort=score asc&q={! score=distance} some_loc:"Intersects(Circle(45.15,-93.85 d=50))" For input I have the same long. and latt. coordinates and distance for both queries. Latest JTS library included and available on classpath (as this required for spatialContextFactory). All other migrated to Solr 4.0 parts works as expected, but this query always returns empty result. Could anybody say what I missed to add or made wrong? Thanks. WBR Viacheslav.