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; 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; 12 13 /** Return an HTML-formatted explanation of how a query scored. */ 14 String getExplanation(Query query, Hit hit) throws IOException; 15 } 16