The Re-order EP allows developers to re-order search results according to any arbitrary scheme. This is usually used in approaches where other types of information is used to refine the search results (e.g., execution traces).
- Implement Sando.ExtensionContracts.ResultsReordererContracts.IResultsReorderer.ReorderSearchResults
- Add re-order to Sando's configuration file (link to come)
IQueryable<CodeSearchResult> ReorderSearchResults(IQueryable<CodeSearchResult> searchResults) - Given a list of search results re-order them according to your scheme.
- Does not re-order results (results are ordered according to search score only
A user may only want to search over recently executed code. The user could add a filter to re-order results according to their last execution time or even remove results that haven't been executed in the last day.