Viacheslav, Did you re-index? Clearly re-indexing is needed when changing field types. ~ David ________________________________ From: Viacheslav Davidovich [via Lucene] [ml-node+s472066n4022861...@n3.nabble.com] Sent: Wednesday, November 28, 2012 4:42 AM To: Smiley, David W. Subject: Re: Problem with migration to SolrAdaptersForLuceneSpatial4
Hi David, thank you for reply. Actually when I change the fieldType to <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate" /> some magic happens and old query start to work. And this change resolve my problems with distance calculation even without solr.SpatialRecursivePrefixTreeFieldType field type usage. WBR Viacheslav. On 26.11.2012, at 18:52, David Smiley (@MITRE.org) wrote: > 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. > ________________________________ If you reply to this email, your message will be added to the discussion below: http://lucene.472066.n3.nabble.com/Problem-with-migration-to-SolrAdaptersForLuceneSpatial4-tp4022298p4022861.html To unsubscribe from Problem with migration to SolrAdaptersForLuceneSpatial4, click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4022298&code=RFNNSUxFWUBtaXRyZS5vcmd8NDAyMjI5OHwxMDE2NDI2OTUw>. NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> ----- 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-tp4022298p4022959.html Sent from the Solr - User mailing list archive at Nabble.com.