public interface ClosestResultSelector
REFACTORING NOTE: now closest capture is located by ResourceIndex,
and ClosestResultSelector implementation simply returns it. This class
will be removed unless we find a good use case for it.
| Modifier and Type | Method and Description |
|---|---|
CaptureSearchResult |
getClosest(WaybackRequest wbRequest,
CaptureSearchResults results)
Locate and return the best matching search result from a set for a given
request.
|
CaptureSearchResult getClosest(WaybackRequest wbRequest, CaptureSearchResults results)
INTERFACE CHANGE: 1.8.1 2014-07-2 now getClosest() is not allowed
to throw BetterRequestException, as it can cause redirect
loop triggered by revisits resolution. See ARI-3934.
wbRequest - The WaybackRequest being handledresults - the CaptureSeachResults found matching the requestCopyright © 2005–2015 IIPC. All rights reserved.