Tag Archives: 全文搜索

Hypy-全文搜索引擎

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: