Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Disable indexing attachements in DIH mail example and do not copy tika and dependencies anymore into DIH mail example

Shalin Shekhar Mangar162ace4e883a
diff --git a/contrib/dataimporthandler/build.xml b/contrib/dataimporthandler/build.xml
index 2bae36e35cb..b9f5c0d1415 100644
--- a/contrib/dataimporthandler/build.xml
+++ b/contrib/dataimporthandler/build.xml
@@ -205,11 +205,6 @@
<include name="**/*.jar"/>
</fileset>
</copy>
- <copy todir="${example}/example-DIH/solr/mail/lib">
- <fileset dir="${common.dir}/contrib/extraction/lib">
- <include name="**/*.jar"/>
- </fileset>
- </copy>
</target>
</project>
diff --git a/example/example-DIH/solr/mail/conf/data-config.xml b/example/example-DIH/solr/mail/conf/data-config.xml
index bcdc41a3ca1..eed4c2baaf5 100644
--- a/example/example-DIH/solr/mail/conf/data-config.xml
+++ b/example/example-DIH/solr/mail/conf/data-config.xml
@@ -1,7 +1,11 @@
<dataConfig>
<document>
- <entity processor="MailEntityProcessor" user="[email protected]"
+ <!--
+ Note - In order to index attachments, set processAttachement="true" and drop
+ Tika and its dependencies to example-DIH/solr/mail/lib directory
+ -->
+ <entity processor="MailEntityProcessor" user="[email protected]"
password="password" host="imap.gmail.com" protocol="imaps"
- fetchMailsSince="2009-04-01 00:00:00" batchSize="20" folders="inbox"/>
+ fetchMailsSince="2009-09-20 00:00:00" batchSize="20" folders="inbox" processAttachement="false"/>
</document>
</dataConfig>