{"action":"opened","issue":{"url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/144","labels_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/144/comments","events_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/144/events","html_url":"https://github.com/duke-libraries/ddr-public/issues/144","id":101052328,"number":144,"title":"Is it expected that Components should appear in search results in some cases?","user":{"login":"corylown","id":458247,"avatar_url":"https://avatars.githubusercontent.com/u/458247?v=3","gravatar_id":"","url":"https://api.github.com/users/corylown","html_url":"https://github.com/corylown","followers_url":"https://api.github.com/users/corylown/followers","following_url":"https://api.github.com/users/corylown/following{/other_user}","gists_url":"https://api.github.com/users/corylown/gists{/gist_id}","starred_url":"https://api.github.com/users/corylown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corylown/subscriptions","organizations_url":"https://api.github.com/users/corylown/orgs","repos_url":"https://api.github.com/users/corylown/repos","events_url":"https://api.github.com/users/corylown/events{/privacy}","received_events_url":"https://api.github.com/users/corylown/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/duke-libraries/ddr-public/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-14T16:51:21Z","updated_at":"2015-08-14T16:51:21Z","closed_at":null,"body":"@coblej @dchandekstark I recall that one of you made a change that limits search results to Collections and Items (to exclude Components). This seems to work for the most part, but there are a couple of cases where Components still appear in results.\r\n\r\nSuch as when issuing a blank search from the home page:\r\n\r\nhttps://repository-dev.lib.duke.edu/?utf8=%E2%9C%93&search_field=all_fields&q=\r\n\r\nI've also seen this when I try adding an additional field (such as MEDIA_MAJOR_TYPE) to the list of facet fields in blacklight_config in the catalog controller. Selecting one of the facets for MEDIA_MAJOR_TYPE (not currently implemented) also returns Component results.\r\n\r\nI'm wondering whether this is by design? Is there a way to prevent Components from appearing as results in these cases? Perhaps you could point out what code changes were made to limit results to Items and Collections so I can better understand this behavior.\r\n\r\nThanks!\r\n\r\nCory"}}