📄 hitsummarizer.java
字号:
/* 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 builds a summary for a hit on a query. */
public interface HitSummarizer {
/** Returns a summary for the given hit details.
*
* @param details the details of the hit to be summarized
* @param query indicates what should be higlighted in the summary text
*/
// Modified by Xie. add "fullTextSummary" param
String getSummary(HitDetails detail, Query query, boolean fullTextSummary) throws IOException;
String getSummaryNew(HitDetails detail, Query query, int summaryType) throws IOException;
/** Returns summaries for a set of details. Hook for parallel IPC calls.
*
* @param details the details of hits to be summarized
* @param query indicates what should be higlighted in the summary text
*/
//Modified by Xie. add "fullTextSummary" param
String[] getSummary(HitDetails[] details, Query query, boolean fullTextSummary) throws IOException;
String[] getSummaryNew(HitDetails[] details, Query query, int summaryType) throws IOException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -