You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Peter Kronenberg <pe...@torch.ai> on 2021/02/10 15:24:04 UTC

Config defaults

Where are the tika-config defaults defined?  Is there a 'canonical' list of defaults, sort of like the .properties files?

Re: Config defaults

Posted by Tim Allison <ta...@apache.org>.
That was my fear.  This is what I'd like to have for all configurable parsers:

https://github.com/apache/tika/blob/main/tika-pipes/tika-emitters/tika-emitter-s3/src/main/java/org/apache/tika/pipes/emitter/s3/S3Emitter.java#L60

We don't yet.

On Wed, Feb 10, 2021 at 10:59 AM Peter Kronenberg
<pe...@torch.ai> wrote:
>
> I’m not seeing any of the params listed, only the parsers and mime-types
>
> -----Original Message-----
> From: Tim Allison <ta...@apache.org>
> Sent: Wednesday, February 10, 2021 10:42 AM
> To: user@tika.apache.org
> Subject: Re: Config defaults
>
> Try one of these options from tika-app.  I'd like to document every configurable parser in javadocs for each parser...not there yet.
>
> } else if (arg.equals("--dump-minimal-config")) {
>     pipeMode = false;
>     dumpConfig(TikaConfigSerializer.Mode.MINIMAL);
> } else if (arg.equals("--dump-current-config")) {
>     pipeMode = false;
>     dumpConfig(TikaConfigSerializer.Mode.CURRENT);
> } else if (arg.equals("--dump-static-config")) {
>     pipeMode = false;
>     dumpConfig(TikaConfigSerializer.Mode.STATIC);
> } else if (arg.equals("--dump-static-full-config")) {
>     pipeMode = false;
>     dumpConfig(TikaConfigSerializer.Mode.STATIC_FULL);
>
> On Wed, Feb 10, 2021 at 10:24 AM Peter Kronenberg <pe...@torch.ai> wrote:
> >
> > Where are the tika-config defaults defined?  Is there a ‘canonical’ list of defaults, sort of like the .properties files?

RE: Config defaults

Posted by Peter Kronenberg <pe...@torch.ai>.
I’m not seeing any of the params listed, only the parsers and mime-types

-----Original Message-----
From: Tim Allison <ta...@apache.org> 
Sent: Wednesday, February 10, 2021 10:42 AM
To: user@tika.apache.org
Subject: Re: Config defaults

Try one of these options from tika-app.  I'd like to document every configurable parser in javadocs for each parser...not there yet.

} else if (arg.equals("--dump-minimal-config")) {
    pipeMode = false;
    dumpConfig(TikaConfigSerializer.Mode.MINIMAL);
} else if (arg.equals("--dump-current-config")) {
    pipeMode = false;
    dumpConfig(TikaConfigSerializer.Mode.CURRENT);
} else if (arg.equals("--dump-static-config")) {
    pipeMode = false;
    dumpConfig(TikaConfigSerializer.Mode.STATIC);
} else if (arg.equals("--dump-static-full-config")) {
    pipeMode = false;
    dumpConfig(TikaConfigSerializer.Mode.STATIC_FULL);

On Wed, Feb 10, 2021 at 10:24 AM Peter Kronenberg <pe...@torch.ai> wrote:
>
> Where are the tika-config defaults defined?  Is there a ‘canonical’ list of defaults, sort of like the .properties files?

Re: Config defaults

Posted by Tim Allison <ta...@apache.org>.
Try one of these options from tika-app.  I'd like to document every
configurable parser in javadocs for each parser...not there yet.

} else if (arg.equals("--dump-minimal-config")) {
    pipeMode = false;
    dumpConfig(TikaConfigSerializer.Mode.MINIMAL);
} else if (arg.equals("--dump-current-config")) {
    pipeMode = false;
    dumpConfig(TikaConfigSerializer.Mode.CURRENT);
} else if (arg.equals("--dump-static-config")) {
    pipeMode = false;
    dumpConfig(TikaConfigSerializer.Mode.STATIC);
} else if (arg.equals("--dump-static-full-config")) {
    pipeMode = false;
    dumpConfig(TikaConfigSerializer.Mode.STATIC_FULL);

On Wed, Feb 10, 2021 at 10:24 AM Peter Kronenberg
<pe...@torch.ai> wrote:
>
> Where are the tika-config defaults defined?  Is there a ‘canonical’ list of defaults, sort of like the .properties files?