You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Merlin Morgenstern <me...@fastmail.fm> on 2011/03/28 16:13:17 UTC
copyField destination does not exist
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
Re: copyField destination does not exist
Posted by Geert-Jan Brits <gb...@gmail.com>.
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 <me...@fastmail.fm>
> 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
>
>