james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [4/9] james-project git commit: JAMES-2013 Document tika in the README and provide example configuration file
Date Thu, 08 Jun 2017 02:46:41 GMT
JAMES-2013 Document tika in the README and provide example configuration file


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/cbaf67d0
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/cbaf67d0
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/cbaf67d0

Branch: refs/heads/master
Commit: cbaf67d05c3e9b793a8457464eb9765cd5b31e5d
Parents: 16968c4
Author: benwa <btellier@linagora.com>
Authored: Mon Jun 5 17:51:50 2017 +0700
Committer: benwa <btellier@linagora.com>
Committed: Thu Jun 8 09:46:25 2017 +0700

----------------------------------------------------------------------
 README.adoc                                     | 11 +++++++++++
 .../destination/conf/tika.properties            | 20 ++++++++++++++++++++
 .../cassandra/destination/conf/tika.properties  | 20 ++++++++++++++++++++
 3 files changed, 51 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/cbaf67d0/README.adoc
----------------------------------------------------------------------
diff --git a/README.adoc b/README.adoc
index 72b83be..bcfa705 100644
--- a/README.adoc
+++ b/README.adoc
@@ -189,6 +189,17 @@ You can add an optional port binding to port 8000, to expose the webadmin
server
 
 To have log file accessible on a volume, add *-v  $PWD/logs:/logs* option to the above command
line, where *$PWD/logs* is your local directory to put files in.
 
+===== Handling attachment indexing
+
+You can handle attachment text extraction before indexing in ElasticSearch. This makes attachments
searchable. To enable this:
+
+Run tika:
+
+    $ docker run --name tika logicalspark/docker-tikaserver:latest
+
+Add a link for the tika container in the above command line:
+
+    $ docker run --hostname HOSTNAME -p "25:25" -p 80:80 -p "110:110" -p "143:143" -p "465:465"
-p "587:587" -p "993:993" --link cassandra:cassandra --link elasticsearch:elasticsearch --link
tika:tika --name james_run -t james_run
 
 ==== Run James with Java 8 + Guice + JPA + Lucene
 

http://git-wip-us.apache.org/repos/asf/james-project/blob/cbaf67d0/dockerfiles/run/guice/cassandra-ldap/destination/conf/tika.properties
----------------------------------------------------------------------
diff --git a/dockerfiles/run/guice/cassandra-ldap/destination/conf/tika.properties b/dockerfiles/run/guice/cassandra-ldap/destination/conf/tika.properties
new file mode 100644
index 0000000..73fc333
--- /dev/null
+++ b/dockerfiles/run/guice/cassandra-ldap/destination/conf/tika.properties
@@ -0,0 +1,20 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+tika.host=tika
+tika.port=9998
+tika.timeoutInMillis=3000
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/james-project/blob/cbaf67d0/dockerfiles/run/guice/cassandra/destination/conf/tika.properties
----------------------------------------------------------------------
diff --git a/dockerfiles/run/guice/cassandra/destination/conf/tika.properties b/dockerfiles/run/guice/cassandra/destination/conf/tika.properties
new file mode 100644
index 0000000..73fc333
--- /dev/null
+++ b/dockerfiles/run/guice/cassandra/destination/conf/tika.properties
@@ -0,0 +1,20 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+tika.host=tika
+tika.port=9998
+tika.timeoutInMillis=3000
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message