THANK you Mr. Smiley!

I waited days for a response from someone. Thank you so much



Hi Dan,

That page is the in-progress documentation for this: 
https://issues.apache.org/jira/browse/SOLR-3304 which hasn't been committed
and so it requires you check out Lucene/Solr and apply the patch. The class
reference will be solr.SpatialRecursivePrefixTreeFieldType. I updated the wiki.

~ David Smiley

On Aug 27, 2012, at 2:36 PM, Jones, Dan wrote:

According to the document I was reading here: 
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4

First, you must register a spatial field type in the Solr schema.xml file. The
instructions in this whole document imply
theRecursivePrefixTreeStrategy<http://wiki.apache.org/solr/RecursivePrefixTreeStrategy>
based field type used in a geospatial context.

<fieldType name="geo"
class="org.apache.solr.spatial.RecursivePrefixTreeFieldType"

spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory"

distErrPct="0.025"

maxDetailDist="0.001"

/>

I need to set the fieldType to RecursivePrefixTreeFieldType and of course, I'm
getting class not found. I'm using the latest solr 4.0.0-BETA

I have a field that I would like to import into solr that is a MULTIPOLYGON

For Example: TUV Tuvalu MULTIPOLYGON (((179.21322733454343 -8.561290924154292,
179.20240933453334 -8.465417924064994, 179.2183813345482 -8.481890924080346,
179.2251453345545 -8.492217924089957, 179.23109133456006 -8.50491792410179,
179.23228133456115 -8.51841792411436, 179.23149133456042 -8.533499924128407,
179.22831833455746 -8.543426924137648, 179.22236333455191 -8.554145924147633,
179.21322733454343 -8.561290924154292)), ((177.2902543327525 -6.114445921875486,
177.28137233274424 -6.109863921871224, 177.27804533274116 -6.099445921861516,
177.28137233274424 -6.089445921852203, 177.3055273327667 -6.10597292186759,
177.2958093327577 -6.113890921874969, 177.2902543327525 -6.114445921875486)),
((176.30636333183617 -6.288335922037433, 176.29871833182904 -6.285135922034456,
176.29525433182584 -6.274581922024623, 176.30601833183584 -6.260135922011173,
176.31198133184142 -6.28215492203168, 176.30636333183617 -6.288335922037433)),
((178.69580033406152 -7.484163923151129, 178.68885433405507 -7.480835923148035,
178.68878133405497 -7.467572923135677, 178.7017813340671 -7.475208923142787,
178.69580033406152 -7.484163923151129)))

Since the LSP was moved into Solr, would there be a different name for the
class? (I'm not sure the factory class above can be found yet either)

Any help would be much appreciated!


________________________________
This communication (including all attachments) is intended solely for
the use of the person(s) to whom it is addressed and should be treated
as a confidential AAA communication. If you are not the intended
recipient, any use, distribution, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately delete it from your system and notify the originator. Your
cooperation is appreciated.

Reply via email to