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 "O. Klein" <kl...@octoweb.nl> on 2011/10/15 13:29:23 UTC

Re: Combine XML data with DIH

O. Klein wrote:
> 
> I have folder with XML files
> 
> 1.xml contains:
> <id>http://www.site.com/1.html</id>
> <content>blacontent</content>
> 
> 2.xml contains:
> <id>http://www.site.com/1.html</id>
> <title>blatitle&lt;//title&gt;
> 
> I want to  create document in Solr:
> 
> <id>http://www.site.com/1.html</id>
> <content>blacontent</content>
> <title>blatitle&lt;//title&gt;
> 
> 

I changed my problem in the quotes as it's a little different and hopefully
easier to solve.

Can this be done with DIH? And how?

--
View this message in context: http://lucene.472066.n3.nabble.com/Combine-XML-data-with-DIH-tp3209413p3423888.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Combine XML data with DIH

Posted by "O. Klein" <kl...@octoweb.nl>.
O. Klein wrote:
> 
> 
> O. Klein wrote:
>> 
>> I have folder with XML files
>> 
>> 1.xml contains:
>> <id>http://www.site.com/1.html</id>
>> <content>blacontent</content>
>> <title>blatitle&lt;//title&gt;
>> 
>> 2.xml contains:
>> <id>http://www.site.com/1.html</id>
>> <title>blatitle2&lt;//title&gt;
>> 
>> I want to  create document in Solr:
>> 
>> <id>http://www.site.com/1.html</id>
>> <content>blacontent</content>
>> <title>blatitle2&lt;//title&gt;
>> 
>> 
> 
> I changed my problem in the quotes as it's a little different and
> hopefully easier to solve.
> 
> Can this be done with DIH? And how?
> 

Hmm, I tried to index all docs and JOIN them on id. This didn't work as it
only shows the fields in the linked document.

Is there some way to show all the fields of the combined documents?


--
View this message in context: http://lucene.472066.n3.nabble.com/Combine-XML-data-with-DIH-tp3209413p3425844.html
Sent from the Solr - User mailing list archive at Nabble.com.