You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Peter Litsegård <pe...@foi.se> on 2010/12/03 09:52:04 UTC

Java.io.IOException with multiple directives

Hi!

I've run into a strange behaviour while using Nutch (solrindexer) together with Solr 1.4.1. I'd like to copy the 'title' and 'content' field to another field, say, 'foo'. In my first attempt I added the <copyField/> directives in schema.xml and got the java exception so I removed them from schema.xml. In my second attempt I added the <copyField/> directives to the 'solrindex-mapping.xml' file and ran into the same exception again! Is this a known issue or have I stumbled into unknown territory?

Any workarounds?

Many thanks!
/Peter

SV: Java.io.IOException with multiple directives

Posted by Peter Litsegård <pe...@foi.se>.
Hi Andrzej!

The exception was "java.io.IOException". Of course I "forgot" to make the "dest" field multivalued. Embarrassing:-) I'll update the schema.xml file an try again... Stay tuned!

Cheers,
/Peter 

-----Ursprungligt meddelande-----
Från: Andrzej Bialecki [mailto:ab@getopt.org] 
Skickat: den 3 december 2010 10:42
Till: dev@nutch.apache.org
Ämne: Re: Java.io.IOException with multiple <copyField/> directives

On 2010-12-03 09:52, Peter Litsegård wrote:
> Hi!
> 
> I've run into a strange behaviour while using Nutch (solrindexer) together with Solr 1.4.1. I'd like to copy the 'title' and 'content' field to another field, say, 'foo'. In my first attempt I added the <copyField/> directives in schema.xml and got the java exception so I removed them from schema.xml. In my second attempt I added the <copyField/> directives to the 'solrindex-mapping.xml' file and ran into the same exception again! Is this a known issue or have I stumbled into unknown territory?
> 
> Any workarounds?

I suspect that the field type declared in your schema.xml is not multiValued. What was the exception?


--
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web ___|||__||  \|  ||  |  Embedded Unix, System Integration http://www.sigram.com  Contact: info at sigram dot com


SV: Java.io.IOException with multiple directives

Posted by Peter Litsegård <pe...@foi.se>.
Hi Andrzej!

OF COURSE I'd forgot to set 'multiValued="true"! Thanks for pointing this out!

Cheers,
/Peter 

-----Ursprungligt meddelande-----
Från: Andrzej Bialecki [mailto:ab@getopt.org] 
Skickat: den 3 december 2010 10:42
Till: dev@nutch.apache.org
Ämne: Re: Java.io.IOException with multiple <copyField/> directives

On 2010-12-03 09:52, Peter Litsegård wrote:
> Hi!
> 
> I've run into a strange behaviour while using Nutch (solrindexer) together with Solr 1.4.1. I'd like to copy the 'title' and 'content' field to another field, say, 'foo'. In my first attempt I added the <copyField/> directives in schema.xml and got the java exception so I removed them from schema.xml. In my second attempt I added the <copyField/> directives to the 'solrindex-mapping.xml' file and ran into the same exception again! Is this a known issue or have I stumbled into unknown territory?
> 
> Any workarounds?

I suspect that the field type declared in your schema.xml is not multiValued. What was the exception?


--
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web ___|||__||  \|  ||  |  Embedded Unix, System Integration http://www.sigram.com  Contact: info at sigram dot com


Re: Java.io.IOException with multiple directives

Posted by Andrzej Bialecki <ab...@getopt.org>.
On 2010-12-03 09:52, Peter Litsegård wrote:
> Hi!
> 
> I've run into a strange behaviour while using Nutch (solrindexer) together with Solr 1.4.1. I'd like to copy the 'title' and 'content' field to another field, say, 'foo'. In my first attempt I added the <copyField/> directives in schema.xml and got the java exception so I removed them from schema.xml. In my second attempt I added the <copyField/> directives to the 'solrindex-mapping.xml' file and ran into the same exception again! Is this a known issue or have I stumbled into unknown territory?
> 
> Any workarounds?

I suspect that the field type declared in your schema.xml is not
multiValued. What was the exception?


-- 
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com