add REST documentation for search module

Can you turn SearchResult into a union model? I believe the response for a BasicUser and a SearchUser is slightly different (although you'll need to check that first), so we might need to define `SearchUser`, `SearchGroup`, `SearchContent` and `SearchDiscussion` here