lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Ibbotson <iani...@googlemail.com>
Subject Re: The status of Local/Geo/Spatial/Distance Solr
Date Fri, 13 Nov 2009 16:34:19 GMT
Heya.. could it be a problem with your solr config files? I seem to
recall a change from the docs as they were to get this working.. I
have...

  <updateRequestProcessorChain>
      <processor
class="com.pjaol.search.solr.update.LocalUpdateProcessorFactory">
        <str name="latField">lat</str>
        <str name="lngField">lng</str>
        <int name="startTier">4</int>
        <int name="endTier">25</int>
      </processor>
   <processor class="solr.RunUpdateProcessorFactory" />
   <processor class="solr.LogUpdateProcessorFactory" />
  </updateRequestProcessorChain>

  <searchComponent name="localsolr"
class="com.pjaol.search.solr.component.LocalSolrQueryComponent" />
  <requestHandler name="geo"
class="org.apache.solr.handler.component.SearchHandler">
    <arr name="components">
      <str>localsolr</str>
      <str>facet</str>
      <str>mlt</str>
      <str>highlight</str>
      <str>debug</str>
    </arr>
  </requestHandler>

That tie up with your config/ I'd bascially interpreted the current
packaging as... What used to be locallucene has deffo merged into
lucene-spatial in this build, no more locallucene. However, you still
need to build localsolr for now...

My solr jars are:

commons-beanutils-1.8.0.jar   commons-logging-1.1.1.jar
localsolr-1.5.2-rc1.jar              lucene-misc-2.9.1-ki-rc3.jar
        serializer-2.7.1.jar               stax-1.2.0.jar
 xml-apis-1.3.04.jar
commons-codec-1.4.jar         commons-pool-1.5.3.jar
log4j-1.2.13.jar                     lucene-queries-2.9.1-ki-rc3.jar
        slf4j-api-1.5.5.jar                stax-api-1.0.jar
 xpp3-1.1.3.4.O.jar
commons-dbcp-1.2.2.jar        geoapi-nogenerics-2.1M2.jar
lucene-analyzers-2.9.1-ki-rc3.jar    lucene-snowball-2.9.1-ki-rc3.jar
        slf4j-log4j12-1.5.5.jar            stax-utils-20040917.jar
commons-fileupload-1.2.1.jar  geronimo-stax-api_1.0_spec-1.0.1.jar
lucene-core-2.9.1-ki-rc3.jar         lucene-spatial-2.9.1-ki-rc3.jar
        solr-commons-csv-1.4.0-ki-rc1.jar  woodstox-wstx-asl-3.2.7.jar
commons-httpclient-3.1.jar    gt2-referencing-2.3.1.jar
lucene-highlighter-2.9.1-ki-rc3.jar
lucene-spellchecker-2.9.1-ki-rc3.jar      solr-core-1.4.0-ki-rc1.jar
      xalan-2.7.1.jar
commons-io-1.3.2.jar          jsr108-0.01.jar
lucene-memory-2.9.1-ki-rc3.jar
org.codehaus.woodstox-wstx-asl-3.2.7.jar  solr-solrj-1.4.0-ki-rc1.jar
      xercesImpl-2.9.1.jar

Sorry for dumping the info at you... hope it helps tho

Ian.

2009/11/13 Bertie Shen <bertie.shen@gmail.com>:
> Hey,
>
>   I am interested in using LocalSolr to go Local/Geo/Spatial/Distance
> search. But the wiki of LocalSolr(http://wiki.apache.org/solr/LocalSolr)
> points to pretty old documentation. Is there a better document I refer to
> for the setting up of LocalSolr and some performance analysis?
>
>   Just sync-ed Solr codebase and found LocalSolr is still NOT in the
> contrib package. Do we have a plan to incorporate it? I download a LocalSolr
> lib localsolr-1.5.jar from
> http://developer.k-int.com/m2snapshots/localsolr/localsolr/1.5/ and notice
> that the namespace is com.pjaol.search. blah blah, while LocalLucene package
> is in Lucene codebase and the package name is org.apache.lucene.spatial blah
> blah.
>
>   But localsolr-1.5.jar from from
> http://developer.k-int.com/m2snapshots/localsolr/localsolr/1.5/  does not
> work with lucene-spatial-3.0-dev.jar I build from Lucene codebase directly.
> After I restart tomcat, I could not load solr admin page. The error is as
> follows. It looks solr is still looking for
> old named classes.
>
>  Thanks.
>
> HTTP Status 500 - Severe errors in solr configuration. Check your log files
> for more detailed information on what may be wrong. If you want solr to
> continue after configuration errors, change:
> <abortOnConfigurationError>false</abortOnConfigurationError> in null
> -------------------------------------------------------------
> java.lang.NoClassDefFoundError:
> com/pjaol/search/geo/utils/DistanceFilter at java.lang.Class.forName0(Native
> Method) at java.lang.Class.forName(Class.java:247) at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:357)
> 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.loadSearchComponents(SolrCore.java:833) at
> org.apache.solr.core.SolrCore.<init>(SolrCore.java:551) at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
> at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
> at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
> at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
> at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
> at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
> at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:744)
> at
> org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:144)
> at java.security.AccessController.doPrivileged(Native Method) at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
> at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
> org.apache.catalina.core.StandardService.start(StandardService.java:448) at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at
> org.apache.catalina.startup.Catalina.start(Catalina.java:552) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
> Caused by: java.lang.ClassNotFoundException:
> com.pjaol.search.geo.utils.DistanceFilter at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 46
> more
>

Mime
View raw message