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: