lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vit <bulgako...@yahoo.com>
Subject trouble running indexer with Solr spatial
Date Tue, 27 Jan 2015 20:07:17 GMT
I am using Solr 4.2

I added 
<fieldType name="location_rpt"  
class="solr.SpatialRecursivePrefixTreeFieldType"

according to
<a href="http://">https://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4 
 and have spatial4j-0.3.jar in my project.

When running the indexer I started getting this error:

java.lang.NoClassDefFoundError: com/google/common/cache/CacheBuilder
	at
org.apache.solr.schema.AbstractSpatialFieldType.<init>(AbstractSpatialFieldType.java:82)
	at
org.apache.solr.schema.AbstractSpatialPrefixTreeFieldType.<init>(AbstractSpatialPrefixTreeFieldType.java:32)
	at
org.apache.solr.schema.SpatialRecursivePrefixTreeFieldType.<init>(SpatialRecursivePrefixTreeFieldType.java:28)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:357)
	at java.lang.Class.newInstance(Class.java:310)
	at
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:470)
	at
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:458)
	at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:81)
	at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:43)
	at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
	at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:374)
	at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:122)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:684)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:618)



--
View this message in context: http://lucene.472066.n3.nabble.com/trouble-running-indexer-with-Solr-spatial-tp4182359.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message