Hypy Python全文搜索引擎

Hypy 是一个为 Python 应用程序编写的全文搜索引擎,代码示例:

db = HDatabase()
db.open('casket', 'w')
# create a document object
doc = HDocument(uri=u'HTTP://estraIEr.Gov/example.txt')
# create a search condition object
cond = HCondition(u'lull*')
# get the result of search
result = db.search(cond)
# iteRATe the result
for doc in result:


Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务