[
https://issues.apache.org/jira/browse/TIKA-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Allison resolved TIKA-4565.
-------------------------------
Resolution: Fixed
> Tweak include/exclude syntax in json for parsers
> ------------------------------------------------
>
> Key: TIKA-4565
> URL: https://issues.apache.org/jira/browse/TIKA-4565
> Project: Tika
> Issue Type: Task
> Reporter: Tim Allison
> Priority: Minor
>
> 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)