You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2014/11/18 17:09:34 UTC
[jira] [Commented] (TIKA-595) HtmlHandler does not support
multivalue metadata
[ https://issues.apache.org/jira/browse/TIKA-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14216358#comment-14216358 ]
Tim Allison commented on TIKA-595:
----------------------------------
+1 to supporting multivalue metadata.
Be careful to test that a given property allows multiple values...isMultiValuePermitted?
Otherwise, you'll get a runtime exception...for those wanting to try at home:
{noformat}
Metadata m = new Metadata();
m.add(TikaCoreProperties.TITLE, "this is a title");
m.add(TikaCoreProperties.TITLE, "this is another title");
{noformat}
> HtmlHandler does not support multivalue metadata
> ------------------------------------------------
>
> Key: TIKA-595
> URL: https://issues.apache.org/jira/browse/TIKA-595
> Project: Tika
> Issue Type: Bug
> Components: metadata, parser
> Affects Versions: 0.8
> Reporter: Lutz Pumpenmeier
> Assignee: Dave Meikle
> Priority: Minor
> Fix For: 1.7
>
> Attachments: TIKA-595.patch
>
>
> The HtmlHandler uses metadata.set(...). So META tags that occure more than once are not handled correctly (DublinCore metadata can be set more than once).
> The handler should use metadata.add(..) instead.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)