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

Custom schema packages not being indexed by Solr #171

Closed
ted-strauss-K1 opened this issue Feb 12, 2018 · 2 comments
Closed

Custom schema packages not being indexed by Solr #171

ted-strauss-K1 opened this issue Feb 12, 2018 · 2 comments

Comments

@ted-strauss-K1
Copy link

ted-strauss-K1 commented Feb 12, 2018

I have created a custom dataset type using scheming, bids_meg: https://gist.github.com/tedstrauss/5d5e305faadcc22bf9fce7010a7be2e9

My Solr is running on Tomcat7. I added a couple lines to the schema.xml file:

<field name="bids_meg_type" type="string" indexed="true" stored="true" />
<field name="InstitutionName" type="textgen" indexed="true" stored="true" />

(The first line is meant to add the custom type itself. And the second line is just the first of 30+ fields within the type.)
I restart Tomcat7, and run the re-indexing command:

sudo service restart tomcat7
ckan search-index rebuild -r --config=/etc/ckan/default/development.ini

The re-indexing command runs fine, but no packages of type bids_meg are indexed.

At the /datasets page, no packages of type bids_meg are listed or returned from the search.
At /bids_meg, the custom type are listed; is a change to the CKAN theme needed to include custom types on the main /datasets page?

I've gone through similar issues on this repo, but still haven't solved this.

Does something need to be changed in circle.yml because I'm using Tomcat and not Catalina?

@wardi
Copy link
Contributor

wardi commented Feb 13, 2018

What's your http://docs.ckan.org/en/latest/maintaining/configuration.html#ckan-search-show-all-types setting? by default /dataset only shows dataset-type datasets

@ted-strauss-K1
Copy link
Author

I had no such setting in my config.
Adding ckan.search.show_all_types = true fixed it right up.
Thanks for ongoing amazing support @wardi !

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