manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONNECTORS-1074) Replace ExtensionMimeMap with new Tika().detect(filename)
Date Thu, 16 Oct 2014 08:07:34 GMT

    [ https://issues.apache.org/jira/browse/CONNECTORS-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14173511#comment-14173511
] 

Karl Wright commented on CONNECTORS-1074:
-----------------------------------------

I created a branch (branches/CONNECTORS-1074) to work on this.

I then build a baseline MCF 2.0 distribution zip, so we could see what happens to the size
when we move tika dependencies to the root level:

147,592,481 apache-manifoldcf-2.0-dev-bin.zip



> Replace ExtensionMimeMap with new Tika().detect(filename)
> ---------------------------------------------------------
>
>                 Key: CONNECTORS-1074
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1074
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Framework core
>            Reporter: Shinichiro Abe
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 2.0
>
>
> It would be nice if we could support many mime type since ManifoldCF has already been
using Tika.
> {noformat}
>  new Tika().detect(fileName);
> {noformat}
> returns String MimeType. Then we could set this into RepositoryDocument#setMimeType(mimeType)
on each connector;
> Tika reference:
> [javadoc|http://tika.apache.org/1.6/api/org/apache/tika/Tika.html]
> [test code|http://svn.apache.org/viewvc/tika/tags/1.6-rc2/tika-core/src/test/java/org/apache/tika/TikaDetectionTest.java?view=markup]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message