can you please send us the entire schema.xml file you were using when you 
got that error?

Would be nice to get to the bottom of how/why you gut an error regarding 
"positionIncrementGap" on AbstractSpatialPrefixTreeFieldType.



: Date: Mon, 18 Jul 2016 18:10:40 +0200
: From: Rastislav Hudak <hudak.rastis...@gmail.com>
: Reply-To: solr-user@lucene.apache.org
: To: solr-user@lucene.apache.org
: Subject: Re: Problem using bbox in schema
: 
: Thanks Erick.
: I wasn't able to track this down but when I re-set the schema to the sample
: one and added the bbox it was working. I thought it must be the bbox field
: because of that 'AbstractSpatialPrefixTreeFieldType' but it must have been
: something else. The only difference I can see now is that I left all the
: sample fieldtypes in, eg previously I deleted "point" as I didn't need it. So
: maybe there's some dependency I missed.
: 
: Thanks anyways!
: 
: Rasta
: 
: On 2016-07-18 17:56, Erick Erickson wrote:
: > Those work fine for me (latest 6x version). It looks to me like
: > you've changed some _other_ field, this error
: > 
: > Can't set positionIncrementGap on custom analyzer class
: > 
: > looks like you have some text-related field you've also changed
: > and likely have a custom analyzer somewhere?
: > 
: > Best,
: > Erick
: > 
: > On Mon, Jul 18, 2016 at 1:26 AM, Rastislav Hudak
: > <hudak.rastis...@gmail.com> wrote:
: > > Hi all,
: > > 
: > > using solr 6.1.0, I'm trying to add bbox into my schema, the same way it's
: > > in all examples I could find:
: > > 
: > > <field name="bbox" type="bbox" indexed="true" stored="true" />
: > > <fieldType name="bbox" class="solr.BBoxField" geo="true"
: > > numberType="_bbox_coord" storeSubFields="false" />
: > > <fieldType name="_bbox_coord" class="solr.TrieDoubleField"
: > > precisionStep="8" docValues="true" stored="false"/>
: > > 
: > > However, if I add these lines the core cannot be initialized, I'm getting
: > > following exception:
: > > 
: > > java.util.concurrent.ExecutionException:
: > > org.apache.solr.common.SolrException: Unable to create core [phaidra]
: > > at java.util.concurrent.FutureTask.report(FutureTask.java:122)
: > > at java.util.concurrent.FutureTask.get(FutureTask.java:192)
: > > at org.apache.solr.core.CoreContainer$1.run(CoreContainer.java:494)
: > > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
: > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
: > > at
: > > 
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$22(ExecutorUtil.java:229)
: > > at
: > > 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
: > > at
: > > 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
: > > at java.lang.Thread.run(Thread.java:745)
: > > Caused by: org.apache.solr.common.SolrException: Unable to create core
: > > [phaidra]
: > > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:825)
: > > at
: > > org.apache.solr.core.CoreContainer.lambda$load$0(CoreContainer.java:466)
: > > ... 5 more
: > > Caused by: org.apache.solr.common.SolrException: Could not load conf for
: > > core phaidra: Can't load schema
: > > /var/solr/data/phaidra/conf/managed-schema:
: > > Plugin Initializing failure for [schema.xml] fieldType
: > > at
: > > org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:86)
: > > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:810)
: > > ... 6 more
: > > Caused by: org.apache.solr.common.SolrException: Can't load schema
: > > /var/solr/data/phaidra/conf/managed-schema: Plugin Initializing failure
: > > for
: > > [schema.xml] fieldType
: > > at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:600)
: > > at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:183)
: > > at
: > > 
org.apache.solr.schema.ManagedIndexSchema.<init>(ManagedIndexSchema.java:104)
: > > at
: > > 
org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:174)
: > > at
: > > 
org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:47)
: > > at
: > > 
org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:75)
: > > at
: > > 
org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:108)
: > > at
: > > org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:79)
: > > ... 7 more
: > > Caused by: org.apache.solr.common.SolrException: Plugin Initializing
: > > failure for [schema.xml] fieldType
: > > at
: > > 
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:194)
: > > at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:494)
: > > ... 14 more
: > > Caused by: java.lang.RuntimeException: Can't set positionIncrementGap on
: > > custom analyzer class
: > > org.apache.solr.schema.AbstractSpatialPrefixTreeFieldType$1
: > > at org.apache.solr.schema.FieldType.setArgs(FieldType.java:182)
: > > at
: > > 
org.apache.solr.schema.FieldTypePluginLoader.init(FieldTypePluginLoader.java:150)
: > > at
: > > 
org.apache.solr.schema.FieldTypePluginLoader.init(FieldTypePluginLoader.java:53)
: > > at
: > > 
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:191)
: > > ... 15 more
: > > 
: > > thanks for any help!
: > > 
: > > Rasta
: 
: 

-Hoss
http://www.lucidworks.com/

Reply via email to