Python全文搜索引擎 Hypy

openkk 8年前
     <p><img alt="Python全文搜索引擎 Hypy" src="https://simg.open-open.com/show/9ca580fa250ba5f737177f0b92618b30.png" width="157" height="85" /></p>    <p>Hypy 是一个为 Python 应用程序编写的全文搜索引擎,可以使用它从Python代码索引和搜索你的文档。<br /> 代码示例:</p>    <pre class="literal-block">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:</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1325237068202" target="_blank">http://www.open-open.com/lib/view/home/1325237068202</a></p>