HypyPython全文搜索引擎
Hypy 是一個(gè)為 Python 應(yīng)用程序編寫的全文搜索引擎,代碼示例:
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:
評(píng)論
圖片
表情
