Lucene搜索引擎封装 ExpressSearch

码农软件 · 软件分类 · 搜索引擎 · 2019-08-27 19:26:27

软件介绍

ExpressSearch 是 ExpressMe 建站系统所用的Lucene搜索引擎的封装。

示例代码:

Searcher<Post> createSearcher() {
    SearcherImpl<Post> searcher = new SearcherImpl<Post>();
    searcher.setAnalyzer(new org.apache.lucene.analysis.standard.StandardAnalyzer());
    searcher.setDirectory(org.apache.lucene.store.FSDirectory.getDirectory("/var/search/"));
    // must be writable!
    searcher.setDocumentMapper(new DocumentMapper<Post>(Post.class));
    searcher.setFormatter(new org.apache.lucene.search.highlight.SimpleHTMLFormatter("<b>", "</b>"));
    searcher.init();
    return searcher;
}

本文地址:https://codercto.com/soft/d/13306.html

Linux Device Drivers

Linux Device Drivers

Jonathan Corbet、Alessandro Rubini、Greg Kroah-Hartman / O'Reilly Media / 2005-2-17 / USD 39.95

Device drivers literally drive everything you're interested in--disks, monitors, keyboards, modems--everything outside the computer chip and memory. And writing device drivers is one of the few areas ......一起来看看 《Linux Device Drivers》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具