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: