Hi Nick, Thanks for the prompt response. I've provided a patch for the items you identify as well as a few other bits and bobs. https://github.com/apache/tika/pull/234 This relates to https://issues.apache.org/jira/browse/TIKA-2636 Thanks
On 2018/04/24 13:41:37, Nick Burch <[email protected]> wrote: > On Mon, 23 Apr 2018, lewis john mcgibbney wrote: > > Using the tika-server, I am having issues parsing the attachment ENVI hdr > > file at [0] with the EnviHeaderParser [1]. > > > > Is there any way I can explicitly force execution of the EnviHeaderParser? > > I think not directly on a per-request basis. All the Tika Server endpoints > go through the createParser() method of TikaResource which gets a new > AutoDetect parser. Short of a Tika Config only containing the ENVI parser, > I don't think you can directly force it with a header. > > Your only option really is to get Tika to detect your file as an ENVI one. > That means defining the envi type in the Tika Mimetypes file (it doesn't > seem to be there...), then using mime magic or an explicit type header to > get it detected as ENVI. At that point the ENVI parser should kick in > > Nick >
