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 Suman Pal <su...@dreamztech.com> on 2019/11/05 06:37:02 UTC
How to index from zip file( .gz ) by using
Hi,
My name is Suman Pal,I am facing problem during indexing from zip file( .gz
) by using <requestHandler name="/dataimport"
class="solr.DataImportHandler">
at present I able to index like below code:
<?xml version="1.0" encoding="utf-8"?>
<dataConfig>
<dataSource type="BinFileDataSource" name="ds1" />
<dataSource type="FileDataSource" encoding="UTF-8" name="fds" />
<document>
<entity name="e1" processor="XPathEntityProcessor" stream="true"
forEach="/reel/image" url="C:\Users\test\xm.xml" rootEntity="true"
dataSource="fds">
<field column="filename" xpath="/reel/image/filename" name="filename" />
</entity>
</document>
</dataConfig>
and my xml.xml as follows:
<reel>
<image>
<filename>file1</filename>
.......................
...........................
</image>
</reel>
----------------------------------------------
My requirement is there any way xml.xml files will present in compressed
file and solr able to index from compressed file
Thanks,
Suman Pal