GithubHelp home page GithubHelp logo

Comments (5)

mystycs avatar mystycs commented on June 11, 2024

FYI: This happens in the ckan-worker background job

from ckanext-extractor.

mystycs avatar mystycs commented on June 11, 2024

Looks like it was an issue with how the solr index was updated, it was running a bunch of other stuff like before_index etc. I used this instead in tasks.py to update the search-index line 110

index_for('package').update_dict(pkg_dict)

ckan.lib.cli.SearchIndexCommand('SearchIndexCommand').rebuild(res_dict['package_id'])

from ckanext-extractor.

torfsen avatar torfsen commented on June 11, 2024

@mystycs It is intended that implementations of before_index in all active plugins are run when ckanext-extractor updates Solr's index for a package. So if you have a before_index implementation that works without ckanext-extractor, then it should be called when ckanext-extractor runs and that call shouldn't fail due to something that ckanext-extractor does.

Judging from your stacktrace, data_dict.get('business_area', '[]') doesn't return a string for you. Have you checked what type that value actually has?

from ckanext-extractor.

mystycs avatar mystycs commented on June 11, 2024

It inputs a multi valued checkbox from https://github.com/ckan/ckanext-scheming

So it looks like ["tag1", "tag2", "tag3" ]. This is so that tags rendered on the dataset page dont look like lists but rather are split up separately.

from ckanext-extractor.

mystycs avatar mystycs commented on June 11, 2024

But using my search index update method did the trick. And im having no issues. So this may just be a use case for me.

from ckanext-extractor.

Related Issues (16)

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.