From: <bra...@us...> - 2009-10-22 23:39:48
|
Revision: 2814 http://archive-access.svn.sourceforge.net/archive-access/?rev=2814&view=rev Author: bradtofel Date: 2009-10-22 23:39:32 +0000 (Thu, 22 Oct 2009) Log Message: ----------- FEATURE: added closeMatches list, for results that do not match current filters, but still may be appropriate given a users request -- these closeMatches can be offered as alternative requests Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/SearchResults.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/SearchResults.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/SearchResults.java 2009-10-22 23:37:57 UTC (rev 2813) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/SearchResults.java 2009-10-22 23:39:32 UTC (rev 2814) @@ -25,6 +25,7 @@ package org.archive.wayback.core; import java.util.HashMap; +import java.util.List; import java.util.Map; /** @@ -59,7 +60,13 @@ * document returned", etc. */ private HashMap<String,String> filters = null; + /** + * List of URL strings that were not included in these results, but may be + * what the user was looking for. + */ + private List<String> closeMatches = null; + /** * Constructor */ public SearchResults() { @@ -192,4 +199,13 @@ int curPage = (int) Math.floor(firstResult/resultsPerPage) + 1; return curPage; } + + + public List<String> getCloseMatches() { + return closeMatches; + } + + public void setCloseMatches(List<String> closeMatches) { + this.closeMatches = closeMatches; + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |