manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shinichiro Abe (JIRA)" <>
Subject [jira] [Commented] (CONNECTORS-1074) Replace ExtensionMimeMap with new Tika().detect(filename)
Date Thu, 16 Oct 2014 01:23:34 GMT


Shinichiro Abe commented on CONNECTORS-1074:

Hi Karl,

bq. Are you planning on submitting a patch for this?
I've not yet worked on this, I intended to write a patch sometime though. 

bq. will require all Tika jars and their dependencies be included in all the war files
I agree.

bq. In the Tika connector itself ... the content type should always be "text/plain;charset=utf-8".
I was not aware this.

bq. did you want me to experiment with making this change?
Yes, if possible.


> Replace ExtensionMimeMap with new Tika().detect(filename)
> ---------------------------------------------------------
>                 Key: CONNECTORS-1074
>                 URL:
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Framework core
>            Reporter: Shinichiro Abe
>             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|]
> [test code|]

This message was sent by Atlassian JIRA

View raw message