Giter Site home page Giter Site logo

norconex / committer-idol Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 531 KB

Autonomy IDOL implementation of Norconex Committer.

Home Page: https://opensource.norconex.com/committers/idol/

License: Apache License 2.0

Java 100.00%
idol-committer norconex-committer

committer-idol's People

Contributors

dependabot[bot] avatar essiembre avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

martinfou yi-refs

committer-idol's Issues

Nordic special characters in the metadata

We’re having a problem with special characters in the importer.

We use a ScriptTransformer to extract certain patterns from the content and insert the extracted values as metafields on the document to index. This works very well, however whenever these values contains special characters (we’re in Scandinavia so there’s a lot of those), they get converted to Java Literals (\uXXXX) in the output. So “smörgåsbord” becomes “sm\u00F6rg\u00E5sbord” in the .meta file, it is not changed in the parsed .cntnt however.

In fact this happens if I just set a constant tagger like so:

<tagger class="com.norconex.importer.handler.tagger.impl.ConstantTagger">
            <constant name="SpecialChars">smörgåsbord</constant></tagger>

Which results in:
SpecialChars = sm\u00F6rg\u00E5sbord
in the .meta file.

The content being fetched is UTF-8 and the response header is set to utf-8, sourceCharset is set to UTF-8, xml-configuration is UTF-8, -Dfile.encoding also to UTF8. How can we prevent the special chars from being represented in this java format?
Please let me know if you need more info to recreate, but basically it happens to me if I download the minimum configuration, point the URL to www.example.com, add the tagger above and use the filecommitter.

The content is ingested into an IDOL instance and that is not able to handle such encoding and thus the searches break and we need to find a way around it.

Thanks and hope you are able to help :)

Unable to extract small documents when idol-committer is installed

When we use the idol-committer it seems unable to extract information from documents smaller than around 8kb.
For small documents neither metadata or content is extracted, only the metadata representing the crawler itself is available in the -add.meta files and cntnt is empty, larger pages are ok.

This appears to happen for us on version 2.8.0 of the http-collector and above as soon as the idol-committer is installed and only then but happens regardless of whether the file- or idol committer is used as target. It extracts correctly on v. 2.7.1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.