You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Josh Burchard <bu...@pnp-hcl.com> on 2022/10/04 13:34:55 UTC
max depth of embeddeds & tika server
Tika server question. Is there a way to control the max depth of embedded
file recursion either by passing in an HTTP header or via the xml config file?
I haven't been able to find anything to that effect by checking the Tika wiki,
nor just through googling.
\- Josh Burchard : HCL Technologies
Re: max depth of embeddeds & tika server
Posted by Tim Allison <ta...@apache.org>.
Other question, is this for /tika or /rmeta?
On Tue, Oct 4, 2022 at 4:57 PM Tim Allison <ta...@apache.org> wrote:
>
> Do you want an exception if a file has embedded files deeper than,
> say, 10? Or do you want the parse to keep going for all other
> embedded files that are shallower than 10?
>
> On Tue, Oct 4, 2022 at 4:50 PM Josh Burchard <bu...@pnp-hcl.com> wrote:
> >
> > Thanks Nicholas,
> >
> > I appreciate the pointer. My mistake for being fixated on the term "depth". The header "maxEmbeddedResources" looks promising, but the description reads like it's going to be an absolute number. Unfortunately, in my use case the number of embedded files at any particular depth will both be varied and unknown and I don't want to incur the overhead of cracking the container open beforehand to figure it out. Anyway, I'll give this header a test and see if I can at least give me a partial solution. Thanks again!
> >
> >
> >
> >
> > From: "Nicholas DiPiazza" <ni...@gmail.com>
> > To: user@tika.apache.org
> > Date: 10/04/2022 11:18 AM
> > Subject: Re: max depth of embeddeds & tika server
> > ________________________________
> >
> >
> >
> > see "Specifying Limits" in this doc https://cwiki.apache.org/confluence/display/TIKA/TikaServer
> >
> > On Tue, Oct 4, 2022 at 8:43 AM Josh Burchard <bu...@pnp-hcl.com> wrote:
> > Tika server question. Is there a way to control the max depth of embedded file recursion either by passing in an HTTP header or via the xml config file? I haven't been able to find anything to that effect by checking the Tika wiki, nor just through googling.
> >
> > - Josh Burchard : HCL Technologies
> >
> >
Re: max depth of embeddeds & tika server
Posted by Tim Allison <ta...@apache.org>.
Do you want an exception if a file has embedded files deeper than,
say, 10? Or do you want the parse to keep going for all other
embedded files that are shallower than 10?
On Tue, Oct 4, 2022 at 4:50 PM Josh Burchard <bu...@pnp-hcl.com> wrote:
>
> Thanks Nicholas,
>
> I appreciate the pointer. My mistake for being fixated on the term "depth". The header "maxEmbeddedResources" looks promising, but the description reads like it's going to be an absolute number. Unfortunately, in my use case the number of embedded files at any particular depth will both be varied and unknown and I don't want to incur the overhead of cracking the container open beforehand to figure it out. Anyway, I'll give this header a test and see if I can at least give me a partial solution. Thanks again!
>
>
>
>
> From: "Nicholas DiPiazza" <ni...@gmail.com>
> To: user@tika.apache.org
> Date: 10/04/2022 11:18 AM
> Subject: Re: max depth of embeddeds & tika server
> ________________________________
>
>
>
> see "Specifying Limits" in this doc https://cwiki.apache.org/confluence/display/TIKA/TikaServer
>
> On Tue, Oct 4, 2022 at 8:43 AM Josh Burchard <bu...@pnp-hcl.com> wrote:
> Tika server question. Is there a way to control the max depth of embedded file recursion either by passing in an HTTP header or via the xml config file? I haven't been able to find anything to that effect by checking the Tika wiki, nor just through googling.
>
> - Josh Burchard : HCL Technologies
>
>
Re: max depth of embeddeds & tika server
Posted by Josh Burchard <bu...@pnp-hcl.com>.
Thanks Nicholas,
I appreciate the pointer. My mistake for being fixated on the term
"depth". The header "maxEmbeddedResources" looks promising, but the
description reads like it's going to be an absolute number. Unfortunately,
in my use case the number of embedded files at any particular depth will
both be varied and unknown and I don't want to incur the overhead of
cracking the container open beforehand to figure it out. Anyway, I'll
give this header a test and see if I can at least give me a partial
solution. Thanks again!
From: "Nicholas DiPiazza" <ni...@gmail.com>
To: user@tika.apache.org
Date: 10/04/2022 11:18 AM
Subject: Re: max depth of embeddeds & tika server
see "Specifying Limits" in this doc
https://cwiki.apache.org/confluence/display/TIKA/TikaServer
On Tue, Oct 4, 2022 at 8:43 AM Josh Burchard <bu...@pnp-hcl.com> wrote:
Tika server question. Is there a way to control the max depth of embedded
file recursion either by passing in an HTTP header or via the xml config
file? I haven't been able to find anything to that effect by checking the
Tika wiki, nor just through googling.
- Josh Burchard : HCL Technologies
Re: max depth of embeddeds & tika server
Posted by Nicholas DiPiazza <ni...@gmail.com>.
see "Specifying Limits" in this doc
https://cwiki.apache.org/confluence/display/TIKA/TikaServer
On Tue, Oct 4, 2022 at 8:43 AM Josh Burchard <bu...@pnp-hcl.com> wrote:
> Tika server question. Is there a way to control the max depth of embedded
> file recursion either by passing in an HTTP header or via the xml config
> file? I haven't been able to find anything to that effect by checking the
> Tika wiki, nor just through googling.
>
> - Josh Burchard : HCL Technologies
>
>