How to index from zip file( .gz ) by using <requestHandler name="/dataimport" class="solr.DataImportHandler">

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to index from zip file( .gz ) by using <requestHandler name="/dataimport" class="solr.DataImportHandler">

Suman Pal
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