Sure, here it is:

<?xml version="1.0" encoding="UTF-8" ?>

<schema name="phaidra-schema" version="1.6">

    <field name="_version_" type="long" indexed="true" stored="false"/>
    <field name="_root_" type="string" indexed="true" stored="false"
docValues="false" />
    <field name="_text_" type="text_general" indexed="true" stored="false"
multiValued="true"/>
    <copyField source="*" dest="_text_"/>

    <!-- mongo connector -->
    <field name="_id" type="string" indexed="true" stored="true"
required="true" multiValued="false" />
    <uniqueKey>_id</uniqueKey>

    <field name="_ts" type="long" indexed="true" stored="true" />
    <field name="ns" type="string" indexed="true" stored="true"/>

    <field name="datastreams" type="strings" indexed="true" stored="true"
multiValued="true"/>
    <field name="owner" type="string" indexed="true" stored="true"/>
    <field name="pid" type="string" indexed="true" stored="true"/>
    <field name="cmodel" type="string" indexed="true" stored="true"/>

    <field name="modified" type="date" indexed="true" stored="true"/>
    <copyField source="modified" dest="tmodified"/>
    <field name="tmodified" type="tdate" indexed="true" stored="false"/>

    <field name="created" type="date" indexed="true" stored="true"/>
    <copyField source="created" dest="tcreated"/>
    <field name="tcreated" type="tdate" indexed="true" stored="false"/>

    <field name="size" type="long" indexed="true" stored="true"/>
    <copyField source="size" dest="tsize"/>
    <field name="tsize" type="tlong" indexed="true" stored="false"/>

    <field name="haspart" type="strings" indexed="true" stored="false"
multiValued="true"/>
    <field name="ispartof" type="strings" indexed="true" stored="false"
multiValued="true"/>
    <field name="alt_versions" type="strings" indexed="true" stored="false"
multiValued="true"/>
    <field name="alt_formats" type="strings" indexed="true" stored="false"
multiValued="true"/>

    <field name="uwm_roles_json" type="text_general" indexed="false"
stored="true"/>

    <field name="latlon" type="location" indexed="true" stored="true" />
    <field name="bbox" type="bbox" indexed="true" stored="true" />

    <dynamicField name="dc_*" type="strings" indexed="true" stored="true"
multiValued="true"/>
    <dynamicField name="bib_*" type="text_general" indexed="true"
stored="true" multiValued="true"/>

    <dynamicField name="*_eng" type="text_en" indexed="true" stored="true"
multiValued="true"/>
    <dynamicField name="*_deu" type="text_de" indexed="true" stored="true"
multiValued="true"/>
    <dynamicField name="*_ita" type="text_it" indexed="true" stored="true"
multiValued="true"/>

    <!-- FIELD TYPES -->

    <fieldType name="location" class="solr.LatLonType"
subFieldSuffix="_coordinate"/>
    <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"/>

    <fieldType name="ignored" stored="false" indexed="false"
docValues="false" multiValued="true" class="solr.StrField" />
    <fieldType name="boolean" class="solr.BoolField"
sortMissingLast="true"/>
    <fieldType name="booleans" class="solr.BoolField"
sortMissingLast="true" multiValued="true"/>
    <fieldType name="string" class="solr.StrField" sortMissingLast="true"
docValues="true" />
    <fieldType name="strings" class="solr.StrField" sortMissingLast="true"
multiValued="true" docValues="true" />
    <fieldType name="int" class="solr.TrieIntField" docValues="true"
precisionStep="0" positionIncrementGap="0"/>
    <fieldType name="float" class="solr.TrieFloatField" docValues="true"
precisionStep="0" positionIncrementGap="0"/>
    <fieldType name="long" class="solr.TrieLongField" docValues="true"
precisionStep="0" positionIncrementGap="0"/>
    <fieldType name="double" class="solr.TrieDoubleField" docValues="true"
precisionStep="0" positionIncrementGap="0"/>
    <fieldType name="ints" class="solr.TrieIntField" docValues="true"
precisionStep="0" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="floats" class="solr.TrieFloatField" docValues="true"
precisionStep="0" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="longs" class="solr.TrieLongField" docValues="true"
precisionStep="0" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="doubles" class="solr.TrieDoubleField" docValues="true"
precisionStep="0" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="tint" class="solr.TrieIntField" docValues="true"
precisionStep="8" positionIncrementGap="0"/>
    <fieldType name="tfloat" class="solr.TrieFloatField" docValues="true"
precisionStep="8" positionIncrementGap="0"/>
    <fieldType name="tlong" class="solr.TrieLongField" docValues="true"
precisionStep="8" positionIncrementGap="0"/>
    <fieldType name="tdouble" class="solr.TrieDoubleField" docValues="true"
precisionStep="8" positionIncrementGap="0"/>
    <fieldType name="tints" class="solr.TrieIntField" docValues="true"
precisionStep="8" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="tfloats" class="solr.TrieFloatField" docValues="true"
precisionStep="8" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="tlongs" class="solr.TrieLongField" docValues="true"
precisionStep="8" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="tdoubles" class="solr.TrieDoubleField"
docValues="true" precisionStep="8" positionIncrementGap="0"
multiValued="true"/>
    <fieldType name="date" class="solr.DateRangeField" docValues="true"
precisionStep="0" positionIncrementGap="0"/>
    <fieldType name="dates" class="solr.DateRangeField" docValues="true"
precisionStep="0" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="tdate" class="solr.DateRangeField" docValues="true"
precisionStep="6" positionIncrementGap="0"/>
    <fieldType name="tdates" class="solr.DateRangeField" docValues="true"
precisionStep="6" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="binary" class="solr.BinaryField"/>
    <fieldType name="random" class="solr.RandomSortField" indexed="true" />

    <fieldType name="text_ws" class="solr.TextField"
positionIncrementGap="100">
      <analyzer>
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
      </analyzer>
    </fieldType>

    <fieldType name="text_general" class="solr.TextField"
positionIncrementGap="100" multiValued="true">
      <analyzer type="index">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>

    <fieldType name="text_en" class="solr.TextField"
positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="lang/stopwords_en.txt"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.EnglishPossessiveFilterFactory"/>
        <filter class="solr.KeywordMarkerFilterFactory"
protected="protwords.txt"/>
        <filter class="solr.PorterStemFilterFactory"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="lang/stopwords_en.txt"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.EnglishPossessiveFilterFactory"/>
        <filter class="solr.KeywordMarkerFilterFactory"
protected="protwords.txt"/>
        <filter class="solr.PorterStemFilterFactory"/>
      </analyzer>
    </fieldType>

    <fieldType name="text_de" class="solr.TextField"
positionIncrementGap="100">
      <analyzer>
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="lang/stopwords_de.txt" format="snowball" />
        <filter class="solr.GermanNormalizationFilterFactory"/>
        <filter class="solr.GermanLightStemFilterFactory"/>
      </analyzer>
    </fieldType>

    <fieldType name="text_it" class="solr.TextField"
positionIncrementGap="100">
      <analyzer>
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.ElisionFilterFactory" ignoreCase="true"
articles="lang/contractions_it.txt"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="lang/stopwords_it.txt" format="snowball" />
        <filter class="solr.ItalianLightStemFilterFactory"/>
      </analyzer>
    </fieldType>

</schema>

Cheers!
Rasta

On 18 July 2016 at 23:49, Chris Hostetter <hossman_luc...@fucit.org> wrote:

>
> 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