Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StripBeforeTransformer not emitting correctly? #111

Open
svanschalkwyk opened this issue Apr 23, 2020 · 1 comment
Open

StripBeforeTransformer not emitting correctly? #111

svanschalkwyk opened this issue Apr 23, 2020 · 1 comment

Comments

@svanschalkwyk
Copy link

I have a field such as the one below:

<meta name="p_temp_id">/ip/Bolthouse-Farms-Organics-Premium-Matchstix-Julienne-Carrots-10-oz/44933639</meta>

With the configuration below, I expect "44933639" to be written back to the same field.
Instead, the original field value is returned.

<transformer class="com.norconex.importer.handler.transformer.impl.StripBeforeTransformer" inclusive="true" caseSensitive="false">
    <restrictTo caseSensitive="false" field="p_temp_id">.*</restrictTo>
    <stripBeforeRegex>\d{6,}$</stripBeforeRegex>
</transformer>

when:
@essiembre
Copy link
Contributor

Transformers apply on content. To deal with fields, use a tagger. Like the ReplaceTagger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants