Modified: tika/site/publish/download.html URL: http://svn.apache.org/viewvc/tika/site/publish/download.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/download.html (original) +++ tika/site/publish/download.html Tue Jun 23 16:53:45 2015 @@ -86,11 +86,11 @@ <div id="content"> <!-- 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. --><div class="section"> <h2>Download Apache Tika<a name="Download_Apache_Tika"></a></h2> -<p>Apache Tika 1.8 is now available. See the <a class="externalLink" href="http://www.apache.org/dist/tika/CHANGES-1.8.txt">CHANGES.txt</a> file for more information on the list of updates in this initial release.</p> +<p>Apache Tika 1.9 is now available. See the <a class="externalLink" href="http://www.apache.org/dist/tika/CHANGES-1.9.txt">CHANGES.txt</a> file for more information on the list of updates in this initial release.</p> <ul> -<li><a class="externalLink" href="http://www.apache.org/dyn/closer.cgi/tika/tika-1.8-src.zip">Mirrors for apache-tika-1.8-src.zip</a> (source archive, <a class="externalLink" href="http://www.apache.org/dist/tika/tika-1.8-src.zip.asc">PGP signature</a>)<br />SHA1: <tt>5e22fee9079370398472e59082d171ae2d7fdd31</tt><br />MD5: <tt>432ac513206eb82bffdd0bb4c0332e79</tt></li> -<li><a class="externalLink" href="http://www.apache.org/dyn/closer.cgi/tika/tika-app-1.8.jar">Mirrors for tika-app-1.8.jar</a> (runnable jar, <a class="externalLink" href="http://www.apache.org/dist/tika/tika-app-1.8.jar.asc">PGP signature</a>)<br />SHA1: <tt>071448fd1f6e71cdf42abc6971c2fd129e3a4543</tt><br />MD5: <tt>785aa2ba03a5ad205cb52765f69f66f3</tt></li> -<li><a class="externalLink" href="http://www.apache.org/dyn/closer.cgi/tika/tika-server-1.8.jar">Mirrors for tika-server-1.8.jar</a> (runnable jar, <a class="externalLink" href="http://www.apache.org/dist/tika/tika-server-1.8.jar.asc">PGP signature</a>)<br />SHA1: <tt>9b5c5550ff57433796dd9d8807ffb8f2f102bc91</tt><br />MD5: <tt>3ec6d893100e82ac25dc572e6eb1c9ad</tt></li></ul> +<li><a class="externalLink" href="http://www.apache.org/dyn/closer.cgi/tika/tika-1.9-src.zip">Mirrors for apache-tika-1.9-src.zip</a> (source archive, <a class="externalLink" href="http://www.apache.org/dist/tika/tika-1.9-src.zip.asc">PGP signature</a>)<br />SHA1: <tt>9b78c9e9ce9640b402b7fef8e30f3cdbe384f44c</tt><br />MD5: <tt>13c0b69b6d56f5579668e9dfe49a75a9</tt></li> +<li><a class="externalLink" href="http://www.apache.org/dyn/closer.cgi/tika/tika-app-1.9.jar">Mirrors for tika-app-1.9.jar</a> (runnable jar, <a class="externalLink" href="http://www.apache.org/dist/tika/tika-app-1.9.jar.asc">PGP signature</a>)<br />SHA1: <tt>8bed1680bd34f396d8e61147c7c9dc29c4a5a7a0</tt><br />MD5: <tt>b8c72fd21552c0391d5dcfa2efdf7294</tt>>\</li> +<li><a class="externalLink" href="http://www.apache.org/dyn/closer.cgi/tika/tika-server-1.9.jar">Mirrors for tika-server-1.9.jar</a> (runnable jar, <a class="externalLink" href="http://www.apache.org/dist/tika/tika-server-1.9.jar.asc">PGP signature</a>)<br />SHA1: <tt>d56b5df74f5d6b3536542cbfc59bea5aa4b0fe44</tt><br />MD5: <tt>f097ab171074dc49e9fe460ed20c3b00</tt></li></ul> <p>Apache Tika releases are available under the <a class="externalLink" href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>. See the NOTICE.txt file contained in each release artifact for applicable copyright attribution notices.</p> <p>If you are looking for previous releases of Apache Tika, have a look in the <a class="externalLink" href="http://archive.apache.org/dist/tika/">archives</a>.</p> <p>If you are looking for releases of Apache Tika from the Apache Lucene project (pre-0.8 releases), have a look in the <a class="externalLink" href="http://archive.apache.org/dist/lucene/tika/">lucene archives</a>. If you are looking for releases of Apache Tika from the Apache Incubator (pre-0.2 releases), have a look in the <a class="externalLink" href="http://archive.apache.org/dist/incubator/tika/">incubator archives</a>.</p></div> @@ -159,41 +159,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + +
Modified: tika/site/publish/index.html URL: http://svn.apache.org/viewvc/tika/site/publish/index.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/index.html (original) +++ tika/site/publish/index.html Tue Jun 23 16:53:45 2015 @@ -86,13 +86,15 @@ <div id="content"> <!-- 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. --><div class="section"> <h2>Apache Tika - a content analysis toolkit<a name="Apache_Tika_-_a_content_analysis_toolkit"></a></h2> -<p>The Apache Tika™ toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF). All of these file types can be parsed through a single interface, making Tika useful for search engine indexing, content analysis, translation, and much more. You can find the latest release on the <a href="./download.html">download page</a>. Please see the <a href="./1.8/gettingstarted.html">Getting Started</a> page for more information on how to start using Tika.</p> -<p>The <a href="./1.8/parser.html">Parser</a> and <a href="./1.8/detection.html">Detector</a> pages describe the main interfaces of Tika and how they work.</p> +<p>The Apache Tika™ toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF). All of these file types can be parsed through a single interface, making Tika useful for search engine indexing, content analysis, translation, and much more. You can find the latest release on the <a href="./download.html">download page</a>. Please see the <a href="./1.9/gettingstarted.html">Getting Started</a> page for more information on how to start using Tika.</p> +<p>The <a href="./1.9/parser.html">Parser</a> and <a href="./1.9/detection.html">Detector</a> pages describe the main interfaces of Tika and how they work.</p> <p>If you're interested in contributing to Tika, please see the <a href="./contribute.html">Contributing</a> page or send an email to the <a href="./mail-lists.apt">Tika development list</a>.</p> <p>Tika is a project of the <a class="externalLink" href="http://www.apache.org/">Apache Software Foundation</a>, and was formerly a subproject of <a class="externalLink" href="http://lucene.apache.org/">Apache Lucene</a>. </p></div> <div class="section"> <h2>Latest News<a name="Latest_News"></a></h2> <dl> +<dt>23 June 2015: Apache Tika Release</dt> +<dd> Apache Tika 1.9 has been released. This includes several improvements including parsers that extract additional content e.g., from images using EXIF and FFMPEG, along with improvements to MIME detection using probabilistic means, and updates to the Tika REST server supporting translation and language detection. Please see the <a class="externalLink" href="https://dist.apache.org/repos/dist/release/tika/CHANGES-1.9.txt">CHANGES.txt</a> file for a full list of changes in this release. Have a look at the download page for more information on how to obtain Apache Tika 1.9.</dd> <dt>20 April 2015: Apache Tika Release</dt> <dd> Apache Tika 1.8 has been released! This release includes several bug fixes, tika-batch (a batch processing system for processing large sets of files), and more! Please see the <a class="externalLink" href="https://dist.apache.org/repos/dist/release/tika/CHANGES-1.8.txt">CHANGES.txt</a> file for a full list of changes in this release and have a look at the download page for more information on how to obtain Apache Tika 1.8.</dd> <dt>15 January 2015: Apache Tika Release</dt> @@ -247,41 +249,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/integration.html URL: http://svn.apache.org/viewvc/tika/site/publish/integration.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/integration.html (original) +++ tika/site/publish/integration.html Tue Jun 23 16:53:45 2015 @@ -130,41 +130,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/issue-tracking.html URL: http://svn.apache.org/viewvc/tika/site/publish/issue-tracking.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/issue-tracking.html (original) +++ tika/site/publish/issue-tracking.html Tue Jun 23 16:53:45 2015 @@ -135,41 +135,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/license.html URL: http://svn.apache.org/viewvc/tika/site/publish/license.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/license.html (original) +++ tika/site/publish/license.html Tue Jun 23 16:53:45 2015 @@ -338,41 +338,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/mail-lists.html URL: http://svn.apache.org/viewvc/tika/site/publish/mail-lists.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/mail-lists.html (original) +++ tika/site/publish/mail-lists.html Tue Jun 23 16:53:45 2015 @@ -141,41 +141,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/plugin-management.html URL: http://svn.apache.org/viewvc/tika/site/publish/plugin-management.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/plugin-management.html (original) +++ tika/site/publish/plugin-management.html Tue Jun 23 16:53:45 2015 @@ -230,41 +230,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/plugins.html URL: http://svn.apache.org/viewvc/tika/site/publish/plugins.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/plugins.html (original) +++ tika/site/publish/plugins.html Tue Jun 23 16:53:45 2015 @@ -121,17 +121,21 @@ <td>2.3.1</td></tr> <tr class="a"> <td>org.apache.maven.plugins</td> +<td><a class="externalLink" href="http://maven.apache.org/plugins/maven-release-plugin/">maven-release-plugin</a></td> +<td>2.3.2</td></tr> +<tr class="b"> +<td>org.apache.maven.plugins</td> <td><a class="externalLink" href="http://maven.apache.org/plugins/maven-remote-resources-plugin/">maven-remote-resources-plugin</a></td> <td>1.2.1</td></tr> -<tr class="b"> +<tr class="a"> <td>org.apache.maven.plugins</td> <td><a class="externalLink" href="http://maven.apache.org/plugins/maven-shade-plugin/">maven-shade-plugin</a></td> <td>2.3</td></tr> -<tr class="a"> +<tr class="b"> <td>org.apache.maven.plugins</td> <td><a class="externalLink" href="http://maven.apache.org/plugins/maven-site-plugin/">maven-site-plugin</a></td> <td>3.3</td></tr> -<tr class="b"> +<tr class="a"> <td>org.apache.maven.plugins</td> <td><a class="externalLink" href="http://maven.apache.org/surefire/maven-surefire-plugin">maven-surefire-plugin</a></td> <td>2.18.1</td></tr></table></div> @@ -189,41 +193,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/project-info.html URL: http://svn.apache.org/viewvc/tika/site/publish/project-info.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/project-info.html (original) +++ tika/site/publish/project-info.html Tue Jun 23 16:53:45 2015 @@ -177,41 +177,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/project-summary.html URL: http://svn.apache.org/viewvc/tika/site/publish/project-summary.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/project-summary.html (original) +++ tika/site/publish/project-summary.html Tue Jun 23 16:53:45 2015 @@ -176,41 +176,54 @@ <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/source-repository.html URL: http://svn.apache.org/viewvc/tika/site/publish/source-repository.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/source-repository.html (original) +++ tika/site/publish/source-repository.html Tue Jun 23 16:53:45 2015 @@ -163,41 +163,54 @@ http-proxy-port = 3128 <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Modified: tika/site/publish/team-list.html URL: http://svn.apache.org/viewvc/tika/site/publish/team-list.html?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/publish/team-list.html (original) +++ tika/site/publish/team-list.html Tue Jun 23 16:53:45 2015 @@ -360,41 +360,54 @@ window.onLoad = init(); <li class="expanded"> - <a href="1.8/index.html">Apache Tika 1.8</a> + <a href="1.9/index.html">Apache Tika 1.9</a> <ul> <li class="none"> - <a href="1.8/gettingstarted.html">Getting Started</a> + <a href="1.9/gettingstarted.html">Getting Started</a> </li> <li class="none"> - <a href="1.8/formats.html">Supported Formats</a> + <a href="1.9/formats.html">Supported Formats</a> </li> <li class="none"> - <a href="1.8/parser.html">Parser API</a> + <a href="1.9/parser.html">Parser API</a> </li> <li class="none"> - <a href="1.8/parser_guide.html">Parser 5min Quick Start Guide</a> + <a href="1.9/parser_guide.html">Parser 5min Quick Start Guide</a> </li> <li class="none"> - <a href="1.8/detection.html">Content and Language Detection</a> + <a href="1.9/detection.html">Content and Language Detection</a> </li> <li class="none"> - <a href="1.8/examples.html">Usage Examples</a> + <a href="1.9/examples.html">Usage Examples</a> </li> <li class="none"> - <a href="1.8/api/">API Documentation</a> + <a href="1.9/api/">API Documentation</a> </li> </ul> </li> + + + + + + + + <li class="collapsed"> + <a href="1.8/index.html">Apache Tika 1.8</a> + </li> + + + Added: tika/site/src/site/apt/1.9/detection.apt URL: http://svn.apache.org/viewvc/tika/site/src/site/apt/1.9/detection.apt?rev=1687095&view=auto ============================================================================== --- tika/site/src/site/apt/1.9/detection.apt (added) +++ tika/site/src/site/apt/1.9/detection.apt Tue Jun 23 16:53:45 2015 @@ -0,0 +1,211 @@ + ----------------- + Content Detection + ----------------- + +~~ 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. + +Content Detection + + This page gives you information on how content and language detection + works with Apache Tika, and how to tune the behaviour of Tika. + +%{toc|section=1|fromDepth=1} + +* {The Detector Interface} + + The + {{{./api/org/apache/tika/detect/Detector.html}org.apache.tika.detect.Detector}} + interface is the basis for most of the content type detection in Apache + Tika. All the different ways of detecting content all implement the + same common method: + +--- +MediaType detect(java.io.InputStream input, + Metadata metadata) throws java.io.IOException +--- + + The <<<detect>>> method takes the stream to inspect, and a + <<<Metadata>>> object that holds any additional information on + the content. The detector will return a + {{{./api/org/apache/tika/mime/MediaType.html}MediaType}} object describing + its best guess as to the type of the file. + + In general, only two keys on the Metadata object are used by Detectors. + These are <<<Metadata.RESOURCE_NAME_KEY>>> which should hold the name + of the file (where known), and <<<Metadata.CONTENT_TYPE>>> which should + hold the advertised content type of the file (eg from a webserver or + a content repository). + + +* {Mime Magic Detection} + + By looking for special ("magic") patterns of bytes near the start of + the file, it is often possible to detect the type of the file. For + some file types, this is a simple process. For others, typically + container based formats, the magic detection may not be enough. (More + detail on detecting container formats below) + + Tika is able to make use of a a mime magic info file, in the + {{{http://www.freedesktop.org/standards/shared-mime-info}Freedesktop MIME-info}} + format to peform mime magic detection. (Note that Tika supports a few + more match types than Freedesktop does) + + This is provided within Tika by + {{{./api/org/apache/tika/detect/MagicDetector.html}org.apache.tika.detect.MagicDetector}}. It is most commonly access via + {{{./api/org/apache/tika/mime/MimeTypes.html}org.apache.tika.mime.MimeTypes}}, + normally sourced from the <<<tika-mimetypes.xml>>> and <<<custom-mimetypes.xml>>> + files. For more information on defining your own custom mimetypes, see + {{{./parser_guide.html#Add_your_MIME-Type}the new parser guide}}. + + +* {Resource Name Based Detection} + + Where the name of the file is known, it is sometimes possible to guess + the file type from the name or extension. Within the + <<<tika-mimetypes.xml>>> file is a list of patterns which are used to + identify the type from the filename. + + However, because files may be renamed, this method of detection is quick + but not always as accurate. + + This is provided within Tika by + {{{./api/org/apache/tika/detect/NameDetector.html}org.apache.tika.detect.NameDetector}}. + + +* {Known Content Type "Detection} + + Sometimes, the mime type for a file is already known, such as when + downloading from a webserver, or when retrieving from a content store. + This information can be used by detectors, such as + {{{./api/org/apache/tika/mime/MimeTypes.html}org.apache.tika.mime.MimeTypes}}, + + +* {The default Mime Types Detector} + + By default, the mime type detection in Tika is provided by + {{{./api/org/apache/tika/mime/MimeTypes.html}org.apache.tika.mime.MimeTypes}}. + This detector makes use of <<<tika-mimetypes.xml>>> to power + magic based and filename based detection. + + Firstly, magic based detection is used on the start of the file. + If the file is an XML file, then the start of the XML is processed + to look for root elements. Next, if available, the filename + (from <<<Metadata.RESOURCE_NAME_KEY>>>) is + then used to improve the detail of the detection, such as when magic + detects a text file, and the filename hints it's really a CSV. Finally, + if available, the supplied content type (from <<<Metadata.CONTENT_TYPE>>>) + is used to further refine the type. + + +* {Container Aware Detection} + + Several common file formats are actually held within a common container + format. One example is the PowerPoint .ppt and Word .doc formats, which + are both held within an OLE2 container. Another is Apple iWork formats, + which are actually a series of XML files within a Zip file. + + Using magic detection, it is easy to spot that a given file is an OLE2 + document, or a Zip file. Using magic detection alone, it is very difficult + (and often impossible) to tell what kind of file lives inside the container. + + For some use cases, speed is important, so having a quick way to know the + container type is sufficient. For other cases however, you don't mind + spending a bit of time (and memory!) processing the container to get a + more accurate answer on its contents. For these cases, the additional + container aware detectors contained in the <<<Tika Parsers>>> jar should + be used. + + Tika provides a wrapping detector in the form of + {{{./api/org/apache/tika/detect/DefaultDetector.html}org.apache.tika.detect.DefaultDetector}}. + This uses the service loader to discover all available detectors, including + any available container aware ones, and tries them in turn. For container + aware detection, include the <<<Tika Parsers>>> jar and its dependencies + in your project, then use DefaultDetector along with a <<<TikaInputStream>>>. + + Because these container detectors needs to read the whole file to open and + inspect the container, they must be used with a + {{{./api/org/apache/tika/io/TikaInputStream.html}org.apache.tika.io.TikaInputStream}}. + If called with a regular <<<InputStream>>>, then all work will be done + by the default Mime Magic detection only. + + For more information on container formats and Tika, see + {{{http://wiki.apache.org/tika/MetadataDiscussion}}} + + +* {The default Tika Detector} + + Just as with Parsers, Tika provides a special detector + {{{./api/org/apache/tika/detect/DefaultDetector.html}org.apache.tika.detect.DefaultDetector}} + which auto-detects (based on service files) the available detectors at + runtime, and tries these in turn to identify the file type. + + If only <<<Tika Core>>> is available, the Default Detector will work only + with Mime Magic and Resource Name detection. However, if <<<Tika Parsers>>> + (and its dependencies!) are available, additional detectors which known about + containers (such as zip and ole2) will be used as appropriate, provided that + detection is being performed with a + {{{./api/org/apache/tika/io/TikaInputStream.html}org.apache.tika.io.TikaInputStream}}. + Custom detectors can also be used as desired, they simply need to be listed + in a service file much as is done for + {{{./parser_guide.html#List_the_new_parser}custom parsers}}. + + +* {Ways of triggering Detection} + + The simplest way to detect is through the + {{{./api/org/apache/tika/Tika.html}Tika Facade class}}, which provides methods to + detect based on + {{{./api/org/apache/tika/Tika.html##detect(java.io.File)}File}}, + {{{./api/org/apache/tika/Tika.html##detect(java.io.InputStream)}InputStream}}, + {{{./api/org/apache/tika/Tika.html##detect(java.io.InputStream, java.lang.String)}InputStream and Filename}}, + {{{./api/org/apache/tika/Tika.html##detect(java.lang.String)}Filename}} or a few others. + It works best with a File or + {{{./api/org/apache/tika/io/TikaInputStream.html}TikaInputStream}}. + + Alternately, detection can be performed on a specific Detector, or using + <<<DefaultDetector>>> to have all available Detectors used. A typical pattern + would be something like: + +--- +TikaConfig tika = new TikaConfig(); + +for (File f : myListOfFiles) { + Metadata metadata = new Metadata(); + metadata.set(Metadata.RESOURCE_NAME_KEY, f.toString()); + String mimetype = tika.getDetector().detect( + TikaInputStream.get(f), metadata); + System.out.println("File " + f + " is " + mimetype); +} +for (InputStream is : myListOfStreams) { + String mimetype = tika.getDetector().detect( + TikaInputStream.get(is), new Metadata()); + System.out.println("Stream " + is + " is " + mimetype); +} +--- + +* {Language Detection} + + Tika is able to help identify the language of a piece of text, which + is useful when extracting text from document formats which do not include + language information in their metadata. + + The language detection is provided by + {{{./api/org/apache/tika/language/LanguageIdentifier.html}org.apache.tika.language.LanguageIdentifier}} + +* {More Examples} + + For more examples of Detection using Apache Tika, please take a look at + the {{{./examples.html}Tika Examples page}}. Added: tika/site/src/site/apt/1.9/gettingstarted.apt URL: http://svn.apache.org/viewvc/tika/site/src/site/apt/1.9/gettingstarted.apt?rev=1687095&view=auto ============================================================================== --- tika/site/src/site/apt/1.9/gettingstarted.apt (added) +++ tika/site/src/site/apt/1.9/gettingstarted.apt Tue Jun 23 16:53:45 2015 @@ -0,0 +1,217 @@ + -------------------------------- + Getting Started with Apache Tika + -------------------------------- + +~~ 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. + +Getting Started with Apache Tika + + This document describes how to build Apache Tika from sources and + how to start using Tika in an application. + +Getting and building the sources + + To build Tika from sources you first need to either + {{{../download.html}download}} a source release or + {{{../source-repository.html}checkout}} the latest sources from + version control. + + Once you have the sources, you can build them using the + {{{http://maven.apache.org/}Maven 2}} build system. Executing the + following command in the base directory will build the sources + and install the resulting artifacts in your local Maven repository. + +--- +mvn install +--- + + See the Maven documentation for more information about the available + build options. + + Note that you need Java 6 or higher to build Tika. + +Build artifacts + + The Tika build consists of a number of components and produces + the following main binaries: + + [tika-core/target/tika-core-*.jar] + Tika core library. Contains the core interfaces and classes of Tika, + but none of the parser implementations. Depends only on Java 6. + + [tika-parsers/target/tika-parsers-*.jar] + Tika parsers. Collection of classes that implement the Tika Parser + interface based on various external parser libraries. + + [tika-app/target/tika-app-*.jar] + Tika application. Combines the above components and all the external + parser libraries into a single runnable jar with a GUI and a command + line interface. + + [tika-server/target/tika-server-*.jar] + Tika JAX-RS REST application. This is a Jetty web server running Tika + REST services as described in {{{http://wiki.apache.org/tika/TikaJAXRS}this page}}. + + [tika-bundle/target/tika-bundle-*.jar] + Tika bundle. An OSGi bundle that combines tika-parsers with non-OSGified + parser libraries to make them easy to deploy in an OSGi environment. + +Using Tika as a Maven dependency + + The core library, tika-core, contains the key interfaces and classes of Tika + and can be used by itself if you don't need the full set of parsers from + the tika-parsers component. The tika-core dependency looks like this: + +--- + <dependency> + <groupId>org.apache.tika</groupId> + <artifactId>tika-core</artifactId> + <version>...</version> + </dependency> +--- + + If you want to use Tika to parse documents (instead of simply detecting + document types, etc.), you'll want to depend on tika-parsers instead: + +--- + <dependency> + <groupId>org.apache.tika</groupId> + <artifactId>tika-parsers</artifactId> + <version>...</version> + </dependency> +--- + + Note that adding this dependency will introduce a number of + transitive dependencies to your project, including one on tika-core. + You need to make sure that these dependencies won't conflict with your + existing project dependencies. You can use the following command in + the tika-parsers directory to get a full listing of all the dependencies. + +--- +$ mvn dependency:tree | grep :compile +--- + +Using Tika in an Ant project + + Unless you use a dependency manager tool like + {{{http://ant.apache.org/ivy/}Apache Ivy}}, the easiest way to use + Tika is to include either the tika-core or the tika-app jar in your + classpath, depending on whether you want just the core functionality + or also all the parser implementations. + +--- +<classpath> + ... <!-- your other classpath entries --> + + <!-- either: --> + <pathelement location="path/to/tika-core-${tika.version}.jar"/> + <!-- or: --> + <pathelement location="path/to/tika-app-${tika.version}.jar"/> + +</classpath> +--- + +Using Tika as a command line utility + + The Tika application jar (tika-app-*.jar) can be used as a command + line utility for extracting text content and metadata from all sorts of + files. This runnable jar contains all the dependencies it needs, so + you don't need to worry about classpath settings to run it. + + The usage instructions are shown below. + +--- +usage: java -jar tika-app.jar [option...] [file|port...] + +Options: + -? or --help Print this usage message + -v or --verbose Print debug level messages + -V or --version Print the Apache Tika version number + + -g or --gui Start the Apache Tika GUI + -s or --server Start the Apache Tika server + -f or --fork Use Fork Mode for out-of-process extraction + + -x or --xml Output XHTML content (default) + -h or --html Output HTML content + -t or --text Output plain text content + -T or --text-main Output plain text content (main content only) + -m or --metadata Output only metadata + -j or --json Output metadata in JSON + -y or --xmp Output metadata in XMP + -l or --language Output only language + -d or --detect Detect document type + -eX or --encoding=X Use output encoding X + -pX or --password=X Use document password X + -z or --extract Extract all attachements into current directory + --extract-dir=<dir> Specify target directory for -z + -r or --pretty-print For XML and XHTML outputs, adds newlines and + whitespace, for better readability + + --create-profile=X + Create NGram profile, where X is a profile name + --list-parsers + List the available document parsers + --list-parser-details + List the available document parsers, and their supported mime types + --list-detectors + List the available document detectors + --list-met-models + List the available metadata models, and their supported keys + --list-supported-types + List all known media types and related information + +Description: + Apache Tika will parse the file(s) specified on the + command line and output the extracted text content + or metadata to standard output. + + Instead of a file name you can also specify the URL + of a document to be parsed. + + If no file name or URL is specified (or the special + name "-" is used), then the standard input stream + is parsed. If no arguments were given and no input + data is available, the GUI is started instead. + +- GUI mode + + Use the "--gui" (or "-g") option to start the + Apache Tika GUI. You can drag and drop files from + a normal file explorer to the GUI window to extract + text content and metadata from the files. + +- Server mode + + Use the "--server" (or "-s") option to start the + Apache Tika server. The server will listen to the + ports you specify as one or more arguments. +--- + + You can also use the jar as a component in a Unix pipeline or + as an external tool in many scripting languages. + +--- +# Check if an Internet resource contains a specific keyword +curl http://.../document.doc \ + | java -jar tika-app.jar --text \ + | grep -q keyword +--- + +Wrappers + + Several wrappers are available to use Tika in another programming language, + such as {{{https://github.com/aviks/Taro.jl}Julia}} or {{{https://github.com/chrismattmann/tika-python}Python}}. Added: tika/site/src/site/apt/1.9/index.apt URL: http://svn.apache.org/viewvc/tika/site/src/site/apt/1.9/index.apt?rev=1687095&view=auto ============================================================================== --- tika/site/src/site/apt/1.9/index.apt (added) +++ tika/site/src/site/apt/1.9/index.apt Tue Jun 23 16:53:45 2015 @@ -0,0 +1,143 @@ + --------------- + Apache Tika 1.7 + --------------- + +~~ 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. + +Apache Tika 1.9 + + The most notable changes in Tika 1.9 over the previous release are: + + * The ability to use the cTAKES clinical text knowledge extraction system for + biomedical data is now included as a Tika parser + ({{{http://issues.apache.org/jira/browse/TIKA-1645}TIKA-1645}}, + {{{http://issues.apache.org/jira/browse/TIKA-1642}TIKA-1642}}). + + * Tika-server allows a user to specify the Tika config from the command line + ({{{http://issues.apache.org/jira/browse/TIKA-1652}TIKA-1652}}, + {{{http://issues.apache.org/jira/browse/TIKA-1426}TIKA-1426}}). + + * Matlab file detection has been improved + ({{{http://issues.apache.org/jira/browse/TIKA-1634}TIKA-1634}}). + + * The EXIFTool was added as an External parser + ({{{http://issues.apache.org/jira/browse/TIKA-1639}TIKA-1639}}). + + * If FFMPEG is installed and on the PATH, it is a usable Parser in Tika + now ({{{http://issues.apache.org/jira/browse/TIKA-1510}TIKA-1510}}). + + * Fixes have been applied to the ExternalParser to make it functional + ({{{http://issues.apache.org/jira/browse/TIKA-1638}TIKA-1638}}). + + * Tika service loading can now be more verbose with the + org.apache.tika.service.error.warn system property + ({{{http://issues.apache.org/jira/browse/TIKA-1636}TIKA-1636}}). + + * Tika Server now allows for metadata extraction from remote + URLs and in addition it outputs the detected language as a + metadata field ({{{http://issues.apache.org/jira/browse/TIKA-1625}TIKA-1625}}). + + * OUTPUT_FILE_TOKEN not being replaced in ExternalParser contributed by Pascal + Essiembre ({{{http://issues.apache.org/jira/browse/TIKA-1620}TIKA-1620}}). + + * Tika REST server now supports language identification + ({{{http://issues.apache.org/jira/browse/TIKA-1622}TIKA-1622}}). + + * All of the example code from the Tika in Action book has been donated to Tika + and added to tika-examples + ({{{http://issues.apache.org/jira/browse/TIKA-1562}TIKA-1562}}). + + * Tika server now logs errors determining ContentDisposition + ({{{http://issues.apache.org/jira/browse/TIKA-1621}TIKA-1621}}). + + * An algorithm for using Byte Histogram frequencies to construct + a Neural Network and to perform MIME detection was added + ({{{http://issues.apache.org/jira/browse/TIKA-1582}TIKA-1582}}). + + * A Bayesian algorithm for MIME detection by probabilistic + means was added + ({{{http://issues.apache.org/jira/browse/TIKA-1517}TIKA-1517}}). + + * Tika now incorporates the Apache Spatial Information + System capability of parsing Geographic ISO 19139 + files + ({{{http://issues.apache.org/jira/browse/TIKA-443}TIKA-443}}). + It can also detect those files as well. + + * Update the MimeTypes code to support inheritance + ({{{http://issues.apache.org/jira/browse/TIKA-1535}TIKA-1535}}). + + * Provide ability to parse and identify Global Change + Master Directory Interchange Format (GCMD DIF) + scientific data files + ({{{http://issues.apache.org/jira/browse/TIKA-1532}TIKA-1532}}). + + * Improvements to detect CBOR files by extension + ({{{http://issues.apache.org/jira/browse/TIKA-1610}TIKA-1610}}). + + * Change xerial.org's sqlite-jdbc jar to "provided" + ({{{http://issues.apache.org/jira/browse/TIKA-1511}TIKA-1511}}). + Users will now need to add sqlite-jdbc to their classpath for + the Sqlite3Parser to work. + + * ExternalParser.check now catches (suppresses) SecurityException + and returns false, so it's OK to run Tika with a security policy + that does not allow execution of external processes + ({{{http://issues.apache.org/jira/browse/TIKA-1628}TIKA-1628}}). + + + The following people have contributed to Tika 1.9 by submitting or + commenting on the issues resolved in this release: + + * Aakarsh Medleri Hire Math + + * Anya Yun Li + + * Arturo Beltran + + * Chris A. Mattmann + + * Gautham Gowrishankar + + * Giuseppe Totaro + + * Jan Kronquist + + * Ji-Hyun Oh + + * Konstantin Gribov + + * Lewis John McGibbney + + * Lorenz Leutgeb + + * Luke sh + + * Michael McCandless + + * Nick Burch + + * Pascal Essiembre + + * Pavel Micka + + * Selina Chu + + * Tim Allison + + * Tyler Palsulich + + See {{http://s.apache.org/4n1}} for more details on these contributions. Added: tika/site/src/site/apt/1.9/parser.apt URL: http://svn.apache.org/viewvc/tika/site/src/site/apt/1.9/parser.apt?rev=1687095&view=auto ============================================================================== --- tika/site/src/site/apt/1.9/parser.apt (added) +++ tika/site/src/site/apt/1.9/parser.apt Tue Jun 23 16:53:45 2015 @@ -0,0 +1,251 @@ + -------------------- + The Parser interface + -------------------- + +~~ 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. + +The Parser interface + + The + {{{./api/org/apache/tika/parser/Parser.html}org.apache.tika.parser.Parser}} + interface is the key concept of Apache Tika. It hides the complexity of + different file formats and parsing libraries while providing a simple and + powerful mechanism for client applications to extract structured text + content and metadata from all sorts of documents. All this is achieved + with a single method: + +--- +void parse( + InputStream stream, ContentHandler handler, Metadata metadata, + ParseContext context) throws IOException, SAXException, TikaException; +--- + + The <<<parse>>> method takes the document to be parsed and related metadata + as input and outputs the results as XHTML SAX events and extra metadata. + The parse context argument is used to specify context information (like + the current local) that is not related to any individual document. + The main criteria that lead to this design were: + + [Streamed parsing] The interface should require neither the client + application nor the parser implementation to keep the full document + content in memory or spooled to disk. This allows even huge documents + to be parsed without excessive resource requirements. + + [Structured content] A parser implementation should be able to + include structural information (headings, links, etc.) in the extracted + content. A client application can use this information for example to + better judge the relevance of different parts of the parsed document. + + [Input metadata] A client application should be able to include metadata + like the file name or declared content type with the document to be + parsed. The parser implementation can use this information to better + guide the parsing process. + + [Output metadata] A parser implementation should be able to return + document metadata in addition to document content. Many document + formats contain metadata like the name of the author that may be useful + to client applications. + + [Context sensitivity] While the default settings and behaviour of Tika + parsers should work well for most use cases, there are still situations + where more fine-grained control over the parsing process is desirable. + It should be easy to inject such context-specific information to the + parsing process without breaking the layers of abstraction. + + [] + + These criteria are reflected in the arguments of the <<<parse>>> method. + +* Document input stream + + The first argument is an + {{{http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html}InputStream}} + for reading the document to be parsed. + + If this document stream can not be read, then parsing stops and the thrown + {{{http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html}IOException}} + is passed up to the client application. If the stream can be read but + not parsed (for example if the document is corrupted), then the parser + throws a {{{./api/org/apache/tika/exception/TikaException.html}TikaException}}. + + The parser implementation will consume this stream but <will not close it>. + Closing the stream is the responsibility of the client application that + opened it in the first place. The recommended pattern for using streams + with the <<<parse>>> method is: + +--- +InputStream stream = ...; // open the stream +try { + parser.parse(stream, ...); // parse the stream +} finally { + stream.close(); // close the stream +} +--- + + Some document formats like the OLE2 Compound Document Format used by + Microsoft Office are best parsed as random access files. In such cases the + content of the input stream is automatically spooled to a temporary file + that gets removed once parsed. A future version of Tika may make it possible + to avoid this extra file if the input document is already a file in the + local file system. See + {{{https://issues.apache.org/jira/browse/TIKA-153}TIKA-153}} for the status + of this feature request. + +* XHTML SAX events + + The parsed content of the document stream is returned to the client + application as a sequence of XHTML SAX events. XHTML is used to express + structured content of the document and SAX events enable streamed + processing. Note that the XHTML format is used here only to convey + structural information, not to render the documents for browsing! + + The XHTML SAX events produced by the parser implementation are sent to a + {{{http://docs.oracle.com/javase/6/docs/api/org/xml/sax/ContentHandler.html}ContentHandler}} + instance given to the <<<parse>>> method. If this the content handler + fails to process an event, then parsing stops and the thrown + {{{http://docs.oracle.com/javase/6/docs/api/org/xml/sax/SAXException.html}SAXException}} + is passed up to the client application. + + The overall structure of the generated event stream is (with indenting + added for clarity): + +--- +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>...</title> + </head> + <body> + ... + </body> +</html> +--- + + Parser implementations typically use the + {{{./apidocs/org/apache/tika/sax/XHTMLContentHandler.html}XHTMLContentHandler}} + utility class to generate the XHTML output. + + Dealing with the raw SAX events can be a bit complex, so Apache Tika + comes with a number of utility classes that can be used to process and + convert the event stream to other representations. + + For example, the + {{{./api/org/apache/tika/sax/BodyContentHandler.html}BodyContentHandler}} + class can be used to extract just the body part of the XHTML output and + feed it either as SAX events to another content handler or as characters + to an output stream, a writer, or simply a string. The following code + snippet parses a document from the standard input stream and outputs the + extracted text content to standard output: + +--- +ContentHandler handler = new BodyContentHandler(System.out); +parser.parse(System.in, handler, ...); +--- + + Another useful class is + {{{./api/org/apache/tika/parser/ParsingReader.html}ParsingReader}} that + uses a background thread to parse the document and returns the extracted + text content as a character stream: + +--- +InputStream stream = ...; // the document to be parsed +Reader reader = new ParsingReader(parser, stream, ...); +try { + ...; // read the document text using the reader +} finally { + reader.close(); // the document stream is closed automatically +} +--- + +* Document metadata + + The third argument to the <<<parse>>> method is used to pass document + metadata both in and out of the parser. Document metadata is expressed + as an {{{./api/org/apache/tika/metadata/Metadata.html}Metadata}} object. + + The following are some of the more interesting metadata properties: + + [Metadata.RESOURCE_NAME_KEY] The name of the file or resource that contains + the document. + + A client application can set this property to allow the parser to use + file name heuristics to determine the format of the document. + + The parser implementation may set this property if the file format + contains the canonical name of the file (for example the Gzip format + has a slot for the file name). + + [Metadata.CONTENT_TYPE] The declared content type of the document. + + A client application can set this property based on for example a HTTP + Content-Type header. The declared content type may help the parser to + correctly interpret the document. + + The parser implementation sets this property to the content type according + to which the document was parsed. + + [Metadata.TITLE] The title of the document. + + The parser implementation sets this property if the document format + contains an explicit title field. + + [Metadata.AUTHOR] The name of the author of the document. + + The parser implementation sets this property if the document format + contains an explicit author field. + + [] + + Note that metadata handling is still being discussed by the Tika development + team, and it is likely that there will be some (backwards incompatible) + changes in metadata handling before Tika 1.0. + +* Parse context + + + The final argument to the <<<parse>>> method is used to inject + context-specific information to the parsing process. This is useful + for example when dealing with locale-specific date and number formats + in Microsoft Excel spreadsheets. Another important use of the parse + context is passing in the delegate parser instance to be used by + two-phase parsers like the + {{{./api/org/apache/parser/pkg/PackageParser.html}PackageParser}} subclasses. + Some parser classes allow customization of the parsing process through + strategy objects in the parse context. + +* Parser implementations + + Apache Tika comes with a number of parser classes for parsing + {{{./formats.html}various document formats}}. You can also extend Tika + with your own parsers, and of course any contributions to Tika are + warmly welcome. + + The goal of Tika is to reuse existing parser libraries like + {{{http://pdfbox.apache.org/}PDFBox}} or + {{{http://poi.apache.org/}Apache POI}} as much as possible, and so most + of the parser classes in Tika are adapters to such external libraries. + + Tika also contains some general purpose parser implementations that are + not targeted at any specific document formats. The most notable of these + is the {{{./apidocs/org/apache/tika/parser/AutoDetectParser.html}AutoDetectParser}} + class that encapsulates all Tika functionality into a single parser that + can handle any types of documents. This parser will automatically determine + the type of the incoming document based on various heuristics and will then + parse the document accordingly. + +* {More Examples} + + For more examples of calling Parsing with Apache Tika, please take a look at + the {{{./examples.html}Tika Examples page}}. Added: tika/site/src/site/apt/1.9/parser_guide.apt URL: http://svn.apache.org/viewvc/tika/site/src/site/apt/1.9/parser_guide.apt?rev=1687095&view=auto ============================================================================== --- tika/site/src/site/apt/1.9/parser_guide.apt (added) +++ tika/site/src/site/apt/1.9/parser_guide.apt Tue Jun 23 16:53:45 2015 @@ -0,0 +1,143 @@ + -------------------------------------------- + Get Tika parsing up and running in 5 minutes + -------------------------------------------- + Arturo Beltran + -------------------------------------------- + +~~ 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. + +Get Tika parsing up and running in 5 minutes + + This page is a quick start guide showing how to add a new parser to Apache Tika. + Following the simple steps listed below your new parser can be running in only 5 minutes. + +%{toc|section=1|fromDepth=1} + +* {Getting Started} + + The {{{./gettingstarted.html}Getting Started}} document describes how to + build Apache Tika from sources and how to start using Tika in an application. Pay close attention + and follow the instructions in the "Getting and building the sources" section. + + +* {Add your MIME-Type} + + Tika loads the core, standard MIME-Types from the file + "org/apache/tika/mime/tika-mimetypes.xml", which comes from + {{{http://svn.apache.org/repos/asf/tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml}tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml}} . + If your new MIME-Type is a standard one which is missing from Tika, + submit a patch for this file! + + If your MIME-Type needs adding, create a new file + "org/apache/tika/mime/custom-mimetypes.xml" in your codebase. + You should add to it something like this: + +--- + <?xml version="1.0" encoding="UTF-8"?> + <mime-info> + <mime-type type="application/hello"> + <glob pattern="*.hi"/> + </mime-type> + </mime-info> +--- + +* {Create your Parser class} + + Now, you need to create your new parser. This is a class that must + implement the Parser interface offered by Tika. Instead of implementing + the Parser interface directly, it is recommended that you extend the + abstract class AbstractParser if possible. AbstractParser handles + translating between API changes for you. + + A very simple Tika Parser looks like this: + +--- +/* + * 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. + * + * @Author: Arturo Beltran + */ +package org.apache.tika.parser.hello; + +import java.io.IOException; +import java.io.InputStream; +import java.util.Collections; +import java.util.Set; + +import org.apache.tika.exception.TikaException; +import org.apache.tika.metadata.Metadata; +import org.apache.tika.mime.MediaType; +import org.apache.tika.parser.ParseContext; +import org.apache.tika.parser.AbstractParser; +import org.apache.tika.sax.XHTMLContentHandler; +import org.xml.sax.ContentHandler; +import org.xml.sax.SAXException; + +public class HelloParser extends AbstractParser { + + private static final Set<MediaType> SUPPORTED_TYPES = Collections.singleton(MediaType.application("hello")); + public static final String HELLO_MIME_TYPE = "application/hello"; + + public Set<MediaType> getSupportedTypes(ParseContext context) { + return SUPPORTED_TYPES; + } + + public void parse( + InputStream stream, ContentHandler handler, + Metadata metadata, ParseContext context) + throws IOException, SAXException, TikaException { + + metadata.set(Metadata.CONTENT_TYPE, HELLO_MIME_TYPE); + metadata.set("Hello", "World"); + + XHTMLContentHandler xhtml = new XHTMLContentHandler(handler, metadata); + xhtml.startDocument(); + xhtml.endDocument(); + } +} +--- + + Pay special attention to the definition of the SUPPORTED_TYPES static class + field in the parser class that defines what MIME-Types it supports. If + your MIME-Types aren't standard ones, ensure you listed them in a + "custom-mimetypes.xml" file so that Tika knows about them (see above). + + Is in the "parse" method where you will do all your work. This is, extract + the information of the resource and then set the metadata. + +* {List the new parser} + + Finally, you should explicitly tell the AutoDetectParser to include your new + parser. This step is only needed if you want to use the AutoDetectParser functionality. + If you figure out the correct parser in a different way, it isn't needed. + + List your new parser in: + {{{http://svn.apache.org/repos/asf/tika/trunk/tika-parsers/src/main/resources/META-INF/services/org.apache.tika.parser.Parser}tika-parsers/src/main/resources/META-INF/services/org.apache.tika.parser.Parser}} + + Modified: tika/site/src/site/apt/download.apt.vm URL: http://svn.apache.org/viewvc/tika/site/src/site/apt/download.apt.vm?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/src/site/apt/download.apt.vm (original) +++ tika/site/src/site/apt/download.apt.vm Tue Jun 23 16:53:45 2015 @@ -25,18 +25,18 @@ Download Apache Tika * {{{http://www.apache.org/dyn/closer.cgi/tika/tika-${project.parent.version}-src.zip}Mirrors for apache-tika-${project.parent.version}-src.zip}} (source archive, {{{http://www.apache.org/dist/tika/tika-${project.parent.version}-src.zip.asc}PGP signature}})\ - SHA1: <<<5e22fee9079370398472e59082d171ae2d7fdd31>>>\ - MD5: <<<432ac513206eb82bffdd0bb4c0332e79>>> + SHA1: <<<9b78c9e9ce9640b402b7fef8e30f3cdbe384f44c>>>\ + MD5: <<<13c0b69b6d56f5579668e9dfe49a75a9>>> * {{{http://www.apache.org/dyn/closer.cgi/tika/tika-app-${project.parent.version}.jar}Mirrors for tika-app-${project.parent.version}.jar}} (runnable jar, {{{http://www.apache.org/dist/tika/tika-app-${project.parent.version}.jar.asc}PGP signature}})\ - SHA1: <<<071448fd1f6e71cdf42abc6971c2fd129e3a4543>>>\ - MD5: <<<785aa2ba03a5ad205cb52765f69f66f3>>> + SHA1: <<<8bed1680bd34f396d8e61147c7c9dc29c4a5a7a0>>>\ + MD5: <<<b8c72fd21552c0391d5dcfa2efdf7294>>>>\ * {{{http://www.apache.org/dyn/closer.cgi/tika/tika-server-${project.parent.version}.jar}Mirrors for tika-server-${project.parent.version}.jar}} (runnable jar, {{{http://www.apache.org/dist/tika/tika-server-${project.parent.version}.jar.asc}PGP signature}})\ - SHA1: <<<9b5c5550ff57433796dd9d8807ffb8f2f102bc91>>>\ - MD5: <<<3ec6d893100e82ac25dc572e6eb1c9ad>>> + SHA1: <<<d56b5df74f5d6b3536542cbfc59bea5aa4b0fe44>>>\ + MD5: <<<f097ab171074dc49e9fe460ed20c3b00>>> [] Modified: tika/site/src/site/apt/index.apt.vm URL: http://svn.apache.org/viewvc/tika/site/src/site/apt/index.apt.vm?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/src/site/apt/index.apt.vm (original) +++ tika/site/src/site/apt/index.apt.vm Tue Jun 23 16:53:45 2015 @@ -39,6 +39,15 @@ Apache Tika - a content analysis toolkit Latest News + [23 June 2015: Apache Tika Release] + Apache Tika 1.9 has been released. This includes several improvements including + parsers that extract additional content e.g., from images using EXIF and FFMPEG, + along with improvements to MIME detection using probabilistic means, and updates + to the Tika REST server supporting translation and language detection. Please see + the {{{https://dist.apache.org/repos/dist/release/tika/CHANGES-1.9.txt}CHANGES.txt}} + file for a full list of changes in this release. Have a look at the download page + for more information on how to obtain Apache Tika 1.9. + [20 April 2015: Apache Tika Release] Apache Tika 1.8 has been released! This release includes several bug fixes, tika-batch (a batch processing system for processing large sets Modified: tika/site/src/site/site.xml URL: http://svn.apache.org/viewvc/tika/site/src/site/site.xml?rev=1687095&r1=1687094&r2=1687095&view=diff ============================================================================== --- tika/site/src/site/site.xml (original) +++ tika/site/src/site/site.xml Tue Jun 23 16:53:45 2015 @@ -40,7 +40,16 @@ <item name="Issue Tracker" href="https://issues.apache.org/jira/browse/TIKA"/> </menu> <menu name="Documentation"> - <item name="Apache Tika 1.8" href="1.8/index.html"> + <item name="Apache Tika 1.9" href="1.9/index.html"> + <item name="Getting Started" href="1.9/gettingstarted.html"/> + <item name="Supported Formats" href="1.9/formats.html"/> + <item name="Parser API" href="1.9/parser.html"/> + <item name="Parser 5min Quick Start Guide" href="1.9/parser_guide.html"/> + <item name="Content and Language Detection" href="1.9/detection.html"/> + <item name="Usage Examples" href="1.9/examples.html"/> + <item name="API Documentation" href="1.9/api/"/> + </item> + <item name="Apache Tika 1.8" href="1.8/index.html" collapse="true"> <item name="Getting Started" href="1.8/gettingstarted.html"/> <item name="Supported Formats" href="1.8/formats.html"/> <item name="Parser API" href="1.8/parser.html"/>
