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)