Summon has a really cool new custom search box building widget that includes the ability to pre-limit a search to a specific discipline (or disciplines). The widget also allows you to pre-select which facets to apply to the search.
A question came up on the SummonClients mailing list asking if it was possible to exclude facets from the search — “[is there] a way to exclude newspapers AND book reviews (AND possibly Dissertations) from the initial search”? There isn’t an obvious way at the moment to do that, but I’m a shambrarian and I like to tweak and tinker with things 😀
So, to exclude a content type facet…
1) Go into the Search Box Builder widget and expand the Content Type selection:
2) Select any Content Types to you want to exclude (e.g. Book Review, Dissertation/Thesis and Newspaper Article):
3) Make any other changes you want (appearance, other facets, etc) and click on Get Code to get the widget’s HTML:
At this point, we’ve got a search widget that will only find results that are Book Reviews, Dissertation/Thesis (Thesii? Thesissesses?) or Newspaper Articles. So, the final change to make is to tweak the HTML so that those 3 types are excluded, which you can do by adding a ,t to each of them:
...["ContentType,Dissertation,t", "ContentType,Book Review,t", "ContentType,Newspaper Article,t"]...
The result should be a custom search box that excludes the chosen content types: