[jira] [Commented] (TIKA-2274) and <meta name="title"> metadata collision</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=dev@tika.apache.org&q=from:%22Matthew+Caruana+Galizia+%5C%28JIRA%5C%29%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Matthew Caruana Galizia (JIRA)</span></span></a></span> <span class="date"><a href="/search?l=dev@tika.apache.org&q=date:20170228" rel="nofollow">Tue, 28 Feb 2017 00:41:48 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> [ <a rel="nofollow" href="https://issues.apache.org/jira/browse/TIKA-2274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15887559#comment-15887559">https://issues.apache.org/jira/browse/TIKA-2274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15887559#comment-15887559</a> ] </pre><pre> 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: <a rel="nofollow" href="https://issues.apache.org/jira/browse/TIKA-2274">https://issues.apache.org/jira/browse/TIKA-2274</a> > 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) </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg20837.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#20840">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#20840">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg20838.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg20837.html">[jira] [Commented] (TIKA-2274) <title>...</a></span> <span class="sender italic">Tim Allison (JIRA)</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject">[jira] [Commented] (TIKA-2274) <tit...</span> <span class="sender italic">Matthew Caruana Galizia (JIRA)</span></li> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="[jira] [Commented] (TIKA-2274) <title> and <meta name="title"> metadata collision"> <input type="hidden" name="msgid" value="JIRA.13045590.1487848987000.15865.1488271245365@Atlassian.JIRA"> <input type="hidden" name="relpath" value="dev@tika.apache.org/msg20840.html"> <input type="submit" value=" Matthew Caruana Galizia (JIRA) "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="dev@tika.apache.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search dev"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/dev@tika.apache.org/">dev - all messages</a></li> <li class="icons-about"><a href="/dev@tika.apache.org/info.html">dev - about the list</a></li> <li class="icons-expand"><a href="/search?l=dev@tika.apache.org&q=subject:%22%5C%5Bjira%5C%5D+%5C%5BCommented%5C%5D+%5C%28TIKA%5C-2274%5C%29+%3Ctitle%3E+and+%3Cmeta+name%3D%5C%22title%5C%22%3E+metadata+collision%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg20837.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg20838.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">JIRA.13045590.1487848987000.15865.1488271245365@Atlassian.JIRA</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9e9204e6aef45e37',t:'MTc3NTY1OTE0Mg=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>