You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by cu...@apache.org on 2005/05/12 19:51:56 UTC
svn commit: r169857 -
/incubator/nutch/trunk/src/java/org/apache/nutch/searcher/NutchBean.java
Author: cutting
Date: Thu May 12 10:51:56 2005
New Revision: 169857
URL: http://svn.apache.org/viewcvs?rev=169857&view=rev
Log:
Add old signature for back-compatibility.
Modified:
incubator/nutch/trunk/src/java/org/apache/nutch/searcher/NutchBean.java
Modified: incubator/nutch/trunk/src/java/org/apache/nutch/searcher/NutchBean.java
URL: http://svn.apache.org/viewcvs/incubator/nutch/trunk/src/java/org/apache/nutch/searcher/NutchBean.java?rev=169857&r1=169856&r2=169857&view=diff
==============================================================================
--- incubator/nutch/trunk/src/java/org/apache/nutch/searcher/NutchBean.java (original)
+++ incubator/nutch/trunk/src/java/org/apache/nutch/searcher/NutchBean.java Thu May 12 10:51:56 2005
@@ -146,6 +146,23 @@
private boolean maxSizeExceeded;
}
+ /** Search for pages matching a query, eliminating excessive hits from the
+ * same site. Hits after the first <code>maxHitsPerDup</code> from the same
+ * site are removed from results. The remaining hits have {@link
+ * Hit#moreFromDupExcluded()} set. <p> If maxHitsPerDup is zero then all
+ * hits are returned.
+ *
+ * @param query query
+ * @param numHits number of requested hits
+ * @param maxHitsPerDup the maximum hits returned with matching values, or zero
+ * @return Hits the matching hits
+ * @throws IOException
+ */
+ public Hits search(Query query, int numHits, int maxHitsPerDup)
+ throws IOException {
+ return search(query, numHits, maxHitsPerDup, "site", null, false);
+ }
+
/** Search for pages matching a query, eliminating excessive hits with
* matching values for a named field. Hits after the first
* <code>maxHitsPerDup</code> are removed from results. The remaining hits