Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Created August 7, 2018 11:42
Show Gist options
  • Save pandanote-info/6f1c112bf3281b0a6cf21594f9cb5f1d to your computer and use it in GitHub Desktop.
Save pandanote-info/6f1c112bf3281b0a6cf21594f9cb5f1d to your computer and use it in GitHub Desktop.
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