I would like a documentation function that works like that following.
doc["search terms"]
and it displays the list of search terms.
And then doc["search terms",2]
displays the second result.
The important key here is that the printed out values and part of the print out.
EDIT: So I have added a bounty because I would like to do this without bringing up the window everytime.
doc = Import@Documentation`ResolveLink["Tab"]; Cases[doc, TemplateBox[{Cell[TextData[name_]], link_}, "SearchResultLink", ___] :> {name, link}, Infinity]
$\endgroup$