feat(search): let client specify doc types

SD-1057
Filtering by type in the search request is more efficient than filtering the results after the search. If limit was set on the number of returned items then filtering the result may actually return fewer items than the limit which is confusing.