| |
|
| java.lang.Object dlog4j.search.SearchEnginePlugIn
SearchEnginePlugIn | public class SearchEnginePlugIn implements PlugIn,Runnable(Code) | | A search engine daemon using lucene implements struts's plugin
日记和评论的索引分开两个目录存放
author: Liudong |
activeInterval | protected int activeInterval(Code) | | |
servlet | protected static ActionServlet servlet(Code) | | |
buildLogIndex | protected int buildLogIndex(IndexWriter writer, LastInfo lastInfo) throws Exception(Code) | | 构建某个时间戳后的所有日记信息的索引
Parameters: lastLogTime - 返回新增日记索引的数目 throws: SQLException - |
buildReplyIndex | protected int buildReplyIndex(IndexWriter writer, LastInfo lastInfo) throws Exception(Code) | | 构建某个时间戳后的所有评论信息的索引
Parameters: lastLogTime - 返回新增评论索引的数目 |
destroy | public void destroy()(Code) | | The webapp is to be stop.
See Also: org.apache.struts.action.PlugIn.destroy |
getActiveInterval | public int getActiveInterval()(Code) | | |
getAnalyzer | public static Analyzer getAnalyzer()(Code) | | |
getLogIndexPath | public static String getLogIndexPath()(Code) | | 得到日记索引目录所在的绝对路径
|
getReplyIndexPath | public static String getReplyIndexPath()(Code) | | 得到评论索引目录所在的绝对路径
|
getStatusFile | public String getStatusFile()(Code) | | 得到保存状态信息的文件所在的绝对路径
|
init | public void init(ActionServlet servlet, ModuleConfig config) throws ServletException(Code) | | The webapp started.
See Also: org.apache.struts.action.PlugIn.init(ActionServlet servletModuleConfig config) |
setActiveInterval | public void setActiveInterval(int activeInterval)(Code) | | |
setAnalyzerClass | public void setAnalyzerClass(String analyzerClass)(Code) | | |
setLogIndexPath | public void setLogIndexPath(String indexPath)(Code) | | |
setReplyIndexPath | public void setReplyIndexPath(String indexPath)(Code) | | |
setStatusFile | public void setStatusFile(String statusFile)(Code) | | |
|
|
|