Last active
December 12, 2015 03:28
-
-
Save tuxdna/4706528 to your computer and use it in GitHub Desktop.
Data Source configuration for Data Import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dataConfig> | |
<dataSource name="binary_files_db" | |
convertType="false" | |
driver="com.mysql.jdbc.Driver" | |
url="jdbc:mysql://localhost/binary_files" | |
user="binary_user" password="binary_password" | |
/> | |
<dataSource name="fieldReader" | |
type="FieldStreamDataSource" /> | |
<document name="items"> | |
<entity name="root" | |
query="SELECT * from tbl_files" | |
transformer="TemplateTransformer" | |
dataSource="binary_files_db"> | |
<field column="data_source_type" template="Jdbc"/> | |
<field column="data_source_name" template="MySQL"/> | |
<field column="id_files" name="id" /> | |
<field column="description" name="description" /> | |
<field column="filename" name="filename" /> | |
<field column="filesize" name="filesize" /> | |
<field column="filetype" name="filetype" /> | |
<entity dataSource="fieldReader" | |
processor="TikaEntityProcessor" | |
dataField="root.bin_data" format="text"> | |
<field column="text" name="body" /> | |
</entity> | |
<entity dataSource="fieldReader" | |
processor="TikaEntityProcessor" | |
dataField="root.bin_data" format="text"> | |
<field column="text2" name="body" /> | |
</entity> | |
</entity> | |
</document> | |
</dataConfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment