Python搜索引擎 PyLucene

码农软件 · 软件分类 · 搜索引擎 · 2019-08-28 06:57:37

软件介绍

PyLucene 是 Python 语言用来访问 Lucene 索引库的封装。通过 PyLucene 可以用来创建索引和对索引进行搜索。PyLucene 使用 JCC 构建。

示例说明:

Java 代码:

for (int i = 0; i < hits.length(); i++) {
     Document doc = hits.doc(i);
     System.out.println(hits.score(i) + " : " + doc.get("title"));
}

而 Python 的代码则是:

for hit in hits:
    hit = Hit.cast_(hit)
    print hit.getScore(), ':', hit.getDocument['title']

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

Data Structures and Algorithms in Java

Data Structures and Algorithms in Java

Robert Lafore / Sams / 2002-11-06 / USD 64.99

Data Structures and Algorithms in Java, Second Edition is designed to be easy to read and understand although the topic itself is complicated. Algorithms are the procedures that software programs use......一起来看看 《Data Structures and Algorithms in Java》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

SHA 加密
SHA 加密

SHA 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具