[ 
https://issues.apache.org/jira/browse/TIKA-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044500#comment-18044500
 ] 

ASF GitHub Bot commented on TIKA-4565:
--------------------------------------

tballison merged PR #2441:
URL: https://github.com/apache/tika/pull/2441




> 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)

Reply via email to