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

Flexible Pattern Matching in Strings

Flexible Pattern Matching in Strings

Gonzalo Navarro、Mathieu Raffinot / Cambridge University Press / 2007-7-30 / USD 64.99

String matching problems range from the relatively simple task of searching a single text for a string of characters to searching a database for approximate occurrences of a complex pattern. Recent ye......一起来看看 《Flexible Pattern Matching in Strings》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

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

在线 XML 格式化压缩工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具