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

Manolo Caracuel commented on TIKA-2542:
---------------------------------------

[~gagravarr] I'm not proposing to use headers. I meant in the returned content, 
as <html><head>. For example:

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta name="X-Parsed-By" content="org.apache.tika.parser.DefaultParser" />
<meta name="X-Parsed-By" content="org.apache.tika.parser.pkg.PackageParser" />
<meta name="Content-Type" content="application/zip" />
<title></title>
</head>
<body>
plain text would go here...


> Support in tika-server for getting plain text and metadata at the same time
> ---------------------------------------------------------------------------
>
>                 Key: TIKA-2542
>                 URL: https://issues.apache.org/jira/browse/TIKA-2542
>             Project: Tika
>          Issue Type: Improvement
>          Components: core, server
>    Affects Versions: 1.17
>            Reporter: Manolo Caracuel
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.18
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> It would be good to have a way to get a files plain text extracted and also 
> get the metadata detected. Currently you can only get the metadata if the 
> request has Accepts of text/xml or text/html but then the text in the body is 
> not the plain text as it contains html elements as well.
> I propose that when requesting /tika/plain with Accepts header of text/xml, 
> an xhtml document is returned with the metadata in head's meta elements and 
> the plain text in the body.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to