[
https://issues.apache.org/jira/browse/TIKA-2274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15887559#comment-15887559
]
Matthew Caruana Galizia commented on TIKA-2274:
-----------------------------------------------
Thanks fot checking up on this. Try Metadata.TITLE rather than
TikaCoreProperties.TITLE.
My suggestion for a namespace is "meta", so in this example the resulting name
would be "metatitle".
> <title> and <meta name="title"> metadata collision
> --------------------------------------------------
>
> Key: TIKA-2274
> URL: https://issues.apache.org/jira/browse/TIKA-2274
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.14
> Reporter: Matthew Caruana Galizia
> Priority: Minor
> Labels: html
>
> In several different corpuses I've found HTML files which look like the
> following:
> {code}
> <html>
> <head>
> <title>Some title</title>
> <meta name="title" content="some other title">
> </head>
> ...
> </html>
> {code}
> This causes the "title" property in the metadata to have two values set, when
> one would expect that this field is not multivalued.
> Perhaps some fields from <meta> tags, like this one, should be namespaced.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)