Hi Viacheslav,

1. You don't need JTS unless you're using polygons or WKT and your examples
uses neither.  So you can remove the spatialContext attribute to use the
default, and remove the JTS jar.  But that shouldn't be related to your
reported problem.

2. The units for d= in the circle are in degrees (111.2 km per degree) --
this is why units="degrees" on the field type.  Granted this
misunderstanding should yield a larger circle than what you intended, and so
doesn't explain your reported problem.

Honestly I'm a bit stumped as what you are doing should work.  I assume of
course you indexed your points into this field like <field
name="some_loc">45.15,-93.85</field>   Can you try varying some things, like
using a rectangle query, perhaps even of the whole world?  Remove
spatialContext attribute  (no need to re-index for points)?

By the way, the "boost" attribute on your field is strange to me; I didn't
know you could do that; are you sure you can?  I suspect it is erroneous.

~ David




-----
 Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-with-migration-to-SolrAdaptersForLuceneSpatial4-tp4022298p4022384.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to