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

Reply via email to