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

CopyTagger fields do not end up in SQL #8

Open
onixterry opened this issue Mar 27, 2020 · 2 comments
Open

CopyTagger fields do not end up in SQL #8

onixterry opened this issue Mar 27, 2020 · 2 comments

Comments

@onixterry
Copy link

I'm trying to use the CopyTagger to copy fields from a source system into a standardized field name.

<tagger class="com.norconex.importer.handler.tagger.impl.CopyTagger">
                    <copy fromField="og_type" toField="category" overwrite="true"/>
                    </tagger>

I've experimented with placing these in the preParseHandler and the postParseHandler as well as using the original names of the fields as well as the value that is assigned when "fixFieldNames" is used. Regardless of what I do, the fields do not end up in the SQL endpoint. I've also noticed that these fields are not automatically created by the "createFieldSQL" statement.

Does the SQL Committer not support these features of Norconex? I am using the December release of the HTTP Collector and the 2.0.0 version of the SQL Committer.

@essiembre
Copy link
Contributor

Can you share a copy of your full config? I suggest you try with the XMLFileCommitter to see if the field you are interested it makes it there. Then you'll know if the proble is with the SQL Committer or elsewhere.

@onixterry
Copy link
Author

Thanks for the suggestion. I am seeing differences depending on which database I use. It seems Postgresql is better at handling the data than MariaDB. I'm using the XML to pre-validate and that is helping. Great suggestion.

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