You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Savannah Beckett <sa...@yahoo.com> on 2010/07/26 22:38:26 UTC
How to Combine Drupal's solrconfig.xml with Nutch's solrconfig.xml?
I am using Drupal ApacheSolr module to integrate solr with drupal. I already
integrated solr with nutch. I already moved nutch's solrconfig.xml and
schema.xml to solr's example directory, and it work. I tried to append Drupal's
ApacheSolr module's own solrconfig.xml and schema.xml into the same xml files,
but I got the following error when I "java -jar start.jar":
Jul 26, 2010 1:18:31 PM org.apache.solr.common.SolrException log
SEVERE: Exception during parsing file:
solrconfig.xml:org.xml.sax.SAXParseException: The markup in the document
following the root element must be well-formed.
at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
at org.apache.solr.core.Config.<init>(Config.java:110)
at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:130)
at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
Why? does solrconfig.xml allow to have 2 <config> sections? does schema.xml
allow to have 2 <schema> sections?
Thanks.
RE: How to Combine Drupal's solrconfig.xml with Nutch's solrconfig.xml?
Posted by Brian Tingle <Br...@ucop.edu>.
> The markup in the document following the root element must be well-formed
This means the file is not even well formed XML.
http://en.wikipedia.org/wiki/Root_element
schema.xml has a root element <schema> -- there can only be one. I think you need to merge all the <fieldType>s into one <types>
solrconfig.xml's root element is <config> -- you probably need to go through line by line to merge the files into one <config> section.
Re: why not two; I'm not sure for Drupal, but I merged nutch and django into one schema so that data from nutch could be searched in the same search box as data from django. How would you merge the results together if you did it with two solr servers vs. being mixed into the same solr?
-----Original Message-----
From: xiao yang [mailto:yangxiao9901@gmail.com]
Sent: Mon 7/26/2010 10:19 PM
To: user@nutch.apache.org
Subject: Re: How to Combine Drupal's solrconfig.xml with Nutch's solrconfig.xml?
Why not using 2 solr instances? I've deployed 2 solr in tomcat with 2
solr home directories. They work fine.
Thanks!
Xiao
On Tue, Jul 27, 2010 at 4:38 AM, Savannah Beckett
<sa...@yahoo.com> wrote:
> I am using Drupal ApacheSolr module to integrate solr with drupal. I already
> integrated solr with nutch. I already moved nutch's solrconfig.xml and
> schema.xml to solr's example directory, and it work. I tried to append Drupal's
> ApacheSolr module's own solrconfig.xml and schema.xml into the same xml files,
> but I got the following error when I "java -jar start.jar":
>
> Jul 26, 2010 1:18:31 PM org.apache.solr.common.SolrException log
> SEVERE: Exception during parsing file:
> solrconfig.xml:org.xml.sax.SAXParseException: The markup in the document
> following the root element must be well-formed.
> at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
>
> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
> at org.apache.solr.core.Config.<init>(Config.java:110)
> at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:130)
> at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
>
> at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
>
> Why? does solrconfig.xml allow to have 2 <config> sections? does schema.xml
> allow to have 2 <schema> sections?
>
> Thanks.
>
>
>
Re: How to Combine Drupal's solrconfig.xml with Nutch's
solrconfig.xml?
Posted by xiao yang <ya...@gmail.com>.
Why not using 2 solr instances? I've deployed 2 solr in tomcat with 2
solr home directories. They work fine.
Thanks!
Xiao
On Tue, Jul 27, 2010 at 4:38 AM, Savannah Beckett
<sa...@yahoo.com> wrote:
> I am using Drupal ApacheSolr module to integrate solr with drupal. I already
> integrated solr with nutch. I already moved nutch's solrconfig.xml and
> schema.xml to solr's example directory, and it work. I tried to append Drupal's
> ApacheSolr module's own solrconfig.xml and schema.xml into the same xml files,
> but I got the following error when I "java -jar start.jar":
>
> Jul 26, 2010 1:18:31 PM org.apache.solr.common.SolrException log
> SEVERE: Exception during parsing file:
> solrconfig.xml:org.xml.sax.SAXParseException: The markup in the document
> following the root element must be well-formed.
> at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
>
> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
> at org.apache.solr.core.Config.<init>(Config.java:110)
> at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:130)
> at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
>
> at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
>
> Why? does solrconfig.xml allow to have 2 <config> sections? does schema.xml
> allow to have 2 <schema> sections?
>
> Thanks.
>
>
>