A received query is processed so as to generate an initial group of ranked documents
corresponding to the received query. Each document in all or a portion of the documents
in the initial group of ranked documents is associated with a respective set of
ranked candidate terms such that each candidate term in the respective set of ranked
candidate terms is embedded within the document. Each respective set of ranked
candidate terms is identified at a time prior to the processing of the received
query. In accordance with a selection function, a subset of the candidate terms
in one or more of the respective sets of candidate terms is selected. In response
to the received query, the initial group of ranked documents and the subset of
candidate terms are presented.