{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckanext-scheming/issues/171","repository_url":"https://api.github.com/repos/ckan/ckanext-scheming","labels_url":"https://api.github.com/repos/ckan/ckanext-scheming/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckanext-scheming/issues/171/comments","events_url":"https://api.github.com/repos/ckan/ckanext-scheming/issues/171/events","html_url":"https://github.com/ckan/ckanext-scheming/issues/171","id":296559817,"number":171,"title":"Custom schema packages not being indexed by Solr","user":{"login":"tedstrauss","id":930560,"avatar_url":"https://avatars2.githubusercontent.com/u/930560?v=4","gravatar_id":"","url":"https://api.github.com/users/tedstrauss","html_url":"https://github.com/tedstrauss","followers_url":"https://api.github.com/users/tedstrauss/followers","following_url":"https://api.github.com/users/tedstrauss/following{/other_user}","gists_url":"https://api.github.com/users/tedstrauss/gists{/gist_id}","starred_url":"https://api.github.com/users/tedstrauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedstrauss/subscriptions","organizations_url":"https://api.github.com/users/tedstrauss/orgs","repos_url":"https://api.github.com/users/tedstrauss/repos","events_url":"https://api.github.com/users/tedstrauss/events{/privacy}","received_events_url":"https://api.github.com/users/tedstrauss/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-12T23:19:41Z","updated_at":"2018-02-13T15:44:00Z","closed_at":"2018-02-13T15:44:00Z","author_association":"NONE","body":"I have created a custom dataset type using scheming, `bids_meg`: https://gist.github.com/tedstrauss/5d5e305faadcc22bf9fce7010a7be2e9\r\n\r\nMy Solr is running on Tomcat7. I added a couple lines to the schema.xml file:\r\n```\r\n<field name=\"bids_meg_type\" type=\"string\" indexed=\"true\" stored=\"true\" />\r\n<field name=\"InstitutionName\" type=\"textgen\" indexed=\"true\" stored=\"true\" />\r\n```\r\n(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.)\r\nI restart Tomcat7, and run the re-indexing command:\r\n```\r\nsudo service restart tomcat7\r\nckan search-index rebuild -r --config=/etc/ckan/default/development.ini\r\n```\r\n\r\nThe re-indexing command runs fine, but no packages of type `bids_meg` are indexed.\r\n\r\nAt the `/datasets` page, no packages of type `bids_meg` are listed or returned from the search. \r\nAt `/bids_meg`, the custom type are listed; is a change to the CKAN theme needed to include custom types on the main `/datasets` page? \r\n\r\nI've gone through similar issues on this repo, but still haven't solved this.\r\n\r\nDoes something need to be changed in `circle.yml` because I'm using Tomcat and not Catalina?\r\n\r\n  \r\n"},"comment":{"url":"https://api.github.com/repos/ckan/ckanext-scheming/issues/comments/365306073","html_url":"https://github.com/ckan/ckanext-scheming/issues/171#issuecomment-365306073","issue_url":"https://api.github.com/repos/ckan/ckanext-scheming/issues/171","id":365306073,"user":{"login":"tedstrauss","id":930560,"avatar_url":"https://avatars2.githubusercontent.com/u/930560?v=4","gravatar_id":"","url":"https://api.github.com/users/tedstrauss","html_url":"https://github.com/tedstrauss","followers_url":"https://api.github.com/users/tedstrauss/followers","following_url":"https://api.github.com/users/tedstrauss/following{/other_user}","gists_url":"https://api.github.com/users/tedstrauss/gists{/gist_id}","starred_url":"https://api.github.com/users/tedstrauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedstrauss/subscriptions","organizations_url":"https://api.github.com/users/tedstrauss/orgs","repos_url":"https://api.github.com/users/tedstrauss/repos","events_url":"https://api.github.com/users/tedstrauss/events{/privacy}","received_events_url":"https://api.github.com/users/tedstrauss/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T15:44:00Z","updated_at":"2018-02-13T15:44:00Z","author_association":"NONE","body":"I had no such setting in my config. \r\nAdding `ckan.search.show_all_types = true` fixed it right up.\r\nThanks for ongoing amazing support @wardi !"}}
{"actor":{"display_login":"tedstrauss"}}