Hi Peter
Thanks, you are too nice, it is a minor bug :-)
Cheers, Sergey
On 18/12/14 14:50, Peter Bowyer wrote:
Thanks Sergey, I have opened TIKA-1497 for this enhancement.

Best wishes,
Peter

On 18 December 2014 at 14:31, Sergey Beryozkin <sberyoz...@gmail.com
<mailto:sberyoz...@gmail.com>> wrote:

    Hi,
    I see MetadataResource returning StreamingOutput and it has
    @Produces(text/csv) only. As such this MBW has no effect at the moment.

    We can update MetadataResource to return Metadata directly if
    application/json is requested or update MetadataResource to directly
    convert Metadata to JSON in case of JSON being accepted

    Can you please open a JIRA issue ?

    Cheers, Sergey



    On 18/12/14 13:58, Peter Bowyer wrote:

        Hi,

        I suspect this has a really simple answer, but it's eluding me.

        How do I get the response from
        curl -X PUT -T /path/to/file.pdf http://localhost:9998/meta
        to be JSON and not CSV?

        I've discovered JSONMessageBodyWriter.java
        
(https://github.com/apache/__tika/blob/__af19f3ea04792cad81b428f1df9f5e__bbb2501913/tika-server/src/__main/java/org/apache/tika/__server/JSONMessageBodyWriter.__java
        
<https://github.com/apache/tika/blob/af19f3ea04792cad81b428f1df9f5ebbb2501913/tika-server/src/main/java/org/apache/tika/server/JSONMessageBodyWriter.java>)
        so I think the functionality is present, tried adding --header
        "Accept:
        application/json" to the cURL call, in line with the
        documentation for
        outputting CSV, but no luck so far.

        Many thanks,
        Peter




--
Maple Design Ltd
http://www.mapledesign.co.uk
<http://www.mapledesign.co.uk/>+44 (0)845 123 8008

Reg. in England no. 05920531


Reply via email to