KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > searcher > Searcher


1 /* Copyright (c) 2003 The Nutch Organization. All rights reserved. */
2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
3
4 package net.nutch.searcher;
5
6 import java.io.IOException JavaDoc;
7
8 /** Service that searches. */
9 public interface Searcher {
10   /** Return the top-scoring hits for a query. */
11   Hits search(Query query, int numHits) throws IOException JavaDoc;
12
13   /** Return an HTML-formatted explanation of how a query scored. */
14   String JavaDoc getExplanation(Query query, Hit hit) throws IOException JavaDoc;
15 }
16
Popular Tags