Comments (5)
FYI: This happens in the ckan-worker background job
from ckanext-extractor.
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
ckanext-extractor/ckanext/extractor/tasks.py
Line 110 in 811b388
ckan.lib.cli.SearchIndexCommand('SearchIndexCommand').rebuild(res_dict['package_id'])
from ckanext-extractor.
@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.
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.
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)
- Auto tagging HOT 2
- Memory leak - celery threads don't go away HOT 1
- Error for PDF Resources HOT 2
- Highlighting (snippets) HOT 2
- How do we handle resources uploaded via datastore_create? HOT 3
- ckan_worker interfering with other plugins HOT 3
- Vocabulary Tags removed from dataset when worker extracts text HOT 8
- the documentation page on extensions.ckan.org needs an update
- Any plans to migrate extension to 2.9?
- Installation on Ubuntu 14.04 HOT 1
- After the extraction the index is not updated HOT 4
- Handling of HTTP errors HOT 3
- TimeOut when extracting a large dataset HOT 5
- NotAuthorized Error HOT 6
- Migration to ckan 2.7 background tasks HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckanext-extractor.