Hi Adam,

I cut a branch at Github of a forked Solr 1.5 that applied a bunch of patches 
that my student and I did in my CSCI 572 class at USC. The branch is here [1].

You can simply use Git to go grab that if you want and not worry about the 
patches either. I sent an email [2] and filed a bunch of JIRA issues 
(referenced in that email) but the patches weren't really applied hence the Git 
fork. Also if you are interested in just spatial stuff, check out Apache SIS 
[3], a project where we're trying to replicate functionality from e.g., a 
Geotools or JTS, but with an ASLv2 license. We're not specifically focused on 
spatial search in SIS, but it is definitely one of the areas.

HTH!

Cheers,
Chris

[1] https://github.com/chrismattmann/solrcene
[2] http://s.apache.org/JI6
[3] http://incubator.apache.org/sis/


On Dec 28, 2010, at 5:54 PM, Adam Estrada wrote:

> Hi Grant,
> 
> I grabbed the latest version from trunk this morning and am still unable to
> get any of the spatial functionality to work. I still seem to be getting the
> class loading errors that I was getting when using the patches and jar files
> I found all over the web. What I really need at this point is an example of
> solrconfig.xml and whatever else I need to include to make it work properly.
> I am using the Geonames DB with valid lat/longs in decimal degrees so I'm
> confident that the data are correct. I have tried several examples all with
> the same results.
> 
> There are other patches like the following that show snippets of how to
> modify the solrconfig file but there is no definitive source...
> 
> https://issues.apache.org/jira/secure/attachment/12452781/SOLR-2077.Quach.Mattmann.082210.patch.txt
> 
> I would gladly update this page if I could just get it working.
> http://wiki.apache.org/solr/SpatialSearch
> 
> w/r,
> Adam
> 
> 
> On Tue, Dec 14, 2010 at 9:04 AM, Grant Ingersoll <gsing...@apache.org>wrote:
> 
>> For this functionality, you are probably better off using trunk or
>> branch_3x.  There are quite a few patches related to that particular one
>> that you will need to apply in order to have it work correctly.
>> 
>> 
>> On Dec 13, 2010, at 10:06 PM, Adam Estrada wrote:
>> 
>>> All,
>>> 
>>> Can anyone shed some light on this error. I can't seem to get this
>>> class to load. I am using the distribution of Solr from Lucid
>>> Imagination and the Spatial Plugin from here
>>> https://issues.apache.org/jira/browse/SOLR-773. I don't know how to
>>> apply a patch but the jar file is in there. What else can I do?
>>> 
>>> org.apache.solr.common.SolrException: Error loading class
>>> 'org.apache.solr.spatial.tier.SpatialTierQueryParserPlugin'
>>>      at
>> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373)
>>>      at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:413)
>>>      at
>> org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:435)
>>>      at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1498)
>>>      at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1492)
>>>      at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1525)
>>>      at org.apache.solr.core.SolrCore.initQParsers(SolrCore.java:1442)
>>>      at org.apache.solr.core.SolrCore.<init>(SolrCore.java:548)
>>>      at
>> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
>>>      at
>> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
>>>      at
>> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
>>>      at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>>      at
>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
>>>      at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>>>      at
>> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
>>>      at
>> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
>>>      at
>> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
>>>      at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>>      at
>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>>>      at
>> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
>>>      at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>>      at
>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>>>      at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>>      at
>> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
>>>      at org.mortbay.jetty.Server.doStart(Server.java:210)
>>>      at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>>      at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>      at java.lang.reflect.Method.invoke(Unknown Source)
>>>      at org.mortbay.start.Main.invokeMain(Main.java:183)
>>>      at org.mortbay.start.Main.start(Main.java:497)
>>>      at org.mortbay.start.Main.main(Main.java:115)
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.apache.solr.spatial.tier.SpatialTierQueryParserPlugin
>>>      at java.net.URLClassLoader$1.run(Unknown Source)
>>>      at java.security.AccessController.doPrivileged(Native Method)
>>>      at java.net.URLClassLoader.findClass(Unknown Source)
>>>      at java.lang.ClassLoader.loadClass(Unknown Source)
>>>      at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
>>>      at java.lang.ClassLoader.loadClass(Unknown Source)
>>>      at java.lang.Class.forName0(Native Method)
>>>      at java.lang.Class.forName(Unknown Source)
>>>      at
>> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:357)
>>>      ... 33 more
>> 
>> --------------------------
>> Grant Ingersoll
>> http://www.lucidimagination.com
>> 
>> 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattm...@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reply via email to