You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (Jira)" <ji...@apache.org> on 2025/12/11 14:19:00 UTC

[jira] [Created] (TIKA-4565) Tweak include/exclude syntax

Tim Allison created TIKA-4565:
---------------------------------

             Summary: Tweak include/exclude syntax
                 Key: TIKA-4565
                 URL: https://issues.apache.org/jira/browse/TIKA-4565
             Project: Tika
          Issue Type: Task
            Reporter: Tim Allison


For parsers we currently require the user to know about the decorator implementation detail:
{noformat}
"parsers": [
      {
        "default-parser": {
          "exclude": ["executable-parser"],
          "_decorate": {
            "mimeExclude": ["image/jpeg", "application/pdf"]
          }
        }
      }, ...{noformat}
I like the _ to signify that the "exclude" is not a configuration parameter on the actual parser, but is a system thing. How about something like this:
{noformat}
"parsers": [
      {
        "default-parser": {
          "_exclude": ["executable-parser"],
          "_mime-exclude": ["image/jpeg", "application/pdf"]
        }
      },
      ... {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)