Skip to content

[Q] Multiple fieldMatcher in a handler (v.3.x) #120

@jetnet

Description

@jetnet

hello Pascal,

I'd like to use several methods (e.g. csv and regex) in the KeepOnlyTagger, but it seems, only one fieldMatcher is allowed:

<handler class="$KeepOnlyTagger">
         <fieldMatcher method="csv">crawl_date,type,content,collector.depth,document.language</fieldMatcher>
         <fieldMatcher method="regex">(thumbnailImage|imagePHash).*</fieldMatcher>
 </handler>

Error:

1 XML configuration errors detected:

[XML] StartCommand: cvc-complex-type.2.4.a: Invalid content was found starting with element 'fieldMatcher'. One of '{restrictTo}' is expected.

How to do that with the 3.x? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions