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 [EMAIL PROTECTED]
+ * 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
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
Nutch-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-cvs