searcher.java
来自「nutch搜索的改进型工具和优化爬虫的相关工具」· Java 代码 · 共 22 行
JAVA
22 行
/* Copyright (c) 2003 The Nutch Organization. All rights reserved. */
/* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
package net.nutch.searcher;
import java.io.IOException;
/** Service that searches. */
public interface Searcher {
/** Return the top-scoring hits for a query. */
Hits search(Query query, int numHits, String mode) throws IOException;
Hits search(Query query, int numHits, int sortType, String mode) throws IOException;
/**
* Add by liubin. 2006-02-13
*/
//Hits search(Query query, int numHits, long start, long end) throws IOException;
Hits search(Query query, int numHits, int sortType, long start, long end, String mode) throws IOException;
/** Return an HTML-formatted explanation of how a query scored. */
String getExplanation(Query query, Hit hit) throws IOException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?