Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SevenZFileDataSourceクラスを使ってデータをインポートする場合のDataImportHandler用の設定ファイルの設定例。
<?xml version="1.0" encoding="UTF-8" ?>
<dataConfig>
<dataSource type="info.pandanote.szdi.SevenZFileDataSource" basePath="${solr.install.dir}/../jawiki"
encoding="utf-8"/>
<document>
<entity
name="document"
processor="FileListEntityProcessor"
baseDir="${solr.install.dir}/../jawiki"
fileName=".*-solr\.7z$"
recursive="false"
rootEntity="false"
dataSource="null">
<entity
name="processor"
processor="XPathEntityProcessor"
url="${document.fileAbsolutePath}"
useSolrAddSchema="true"
stream="true">
</entity>
</entity>
</document>
</dataConfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.