copyField destination does not exist

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

copyField destination does not exist

Merlin Morgenstern
Hi there,

I am trying to get solr indexing mysql tables. Seems like I have
misconfigured schema.xml:

HTTP ERROR: 500

Severe errors in solr configuration.

-------------------------------------------------------------
org.apache.solr.common.SolrException: copyField destination :'text' does
not exist
        at
        org.apache.solr.schema.IndexSchema.registerCopyField(IndexSchema.java:685)


My config looks like this:

 <fields>
        <field name="id" type="string" indexed="true" stored="true"
        required="true"/>
        <field name="phrase" type="text" indexed="true" stored="true"
        required="true"/>
        <field name="country" type="text" indexed="true" stored="true"
        required="true"/>
 </fields>

 <uniqueKey>id</uniqueKey>
 <!-- field for the QueryParser to use when an explicit fieldname is
 absent -->
 <defaultSearchField>phrase</defaultSearchField>


What is wrong within this config? The type schould be OK.

--
http://www.fastmail.fm - Choose from over 50 domains or use your own

Reply | Threaded
Open this post in threaded view
|

Re: copyField destination does not exist

britske
The error is saying you have a copyfield-directive in schema.xml that wants
to copy the value of a field to the destination field 'text' that doesn't
exist (which indeed is the case given your supplied fields) Search your
schema.xml for 'copyField'. There's probably something configured related to
copyfield functionality that you don't want.  Perhaps you de-commented the
copyfield-portion of schema.xml by accident?

hth,
Geert-Jan

2011/3/28 Merlin Morgenstern <[hidden email]>

> Hi there,
>
> I am trying to get solr indexing mysql tables. Seems like I have
> misconfigured schema.xml:
>
> HTTP ERROR: 500
>
> Severe errors in solr configuration.
>
> -------------------------------------------------------------
> org.apache.solr.common.SolrException: copyField destination :'text' does
> not exist
>        at
>
>  org.apache.solr.schema.IndexSchema.registerCopyField(IndexSchema.java:685)
>
>
> My config looks like this:
>
>  <fields>
>        <field name="id" type="string" indexed="true" stored="true"
>        required="true"/>
>        <field name="phrase" type="text" indexed="true" stored="true"
>        required="true"/>
>        <field name="country" type="text" indexed="true" stored="true"
>        required="true"/>
>  </fields>
>
>  <uniqueKey>id</uniqueKey>
>  <!-- field for the QueryParser to use when an explicit fieldname is
>  absent -->
>  <defaultSearchField>phrase</defaultSearchField>
>
>
> What is wrong within this config? The type schould be OK.
>
> --
> http://www.fastmail.fm - Choose from over 50 domains or use your own
>
>