随笔 - 579  文章 - 2 评论 - 35 阅读 - 56万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  搜索引擎

搜索引擎,Lucene
使用zend Framework的lucene进行全文检索——中文分词
摘要:zf本身没有提供中文分词算法,具体应用中要自己写。我这里使用简单的二元分词算法(只在utf-8下工作正常,对于其他字符集,请修改程序)。第一步、如何测试分词算法的输出。在zf 的手册中没有提到,我这里简单给个例子:<?php$analyzer=Zend_Search_Lucene_Analysis_Analyzer::getDefault();$value='this is a test!'... 阅读全文
posted @ 2010-09-20 14:27 Dufe王彬 阅读(965) 评论(0) 推荐(0) 编辑
Zend Framework之Search_Lucene实例
摘要://创建具有不同特点的字段 $doc = new Zend_Search_Lucene_Document();// Field is not tokenized, but is indexed and stored within the index. // Stored fields can be retrived from the index. $doc->addField(Zend_Se... 阅读全文
posted @ 2010-09-20 14:20 Dufe王彬 阅读(410) 评论(0) 推荐(0) 编辑
Zend_Search_Lucene索引更新
摘要:更新一个索引view plaincopy to clipboardprint?//更新多一个索引$index=newZend_Search_Lucene(INDEX_DATA);Zend_Search_Lucene_Analysis_Analyzer::setDefault(newZend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsens... 阅读全文
posted @ 2010-09-20 14:18 Dufe王彬 阅读(314) 评论(0) 推荐(0) 编辑
Zend Framework 1.10.1 开始使用 Zend_Search_Lucene
摘要:开始使用 Zend_Search_Lucene目录•介绍 Zend_Search_Lucene •Lucene 索引结构 •索引开始和创建 •索引 •搜索 •被支持的查询 •搜索结果分页 返回目录 介绍 Zend_Search_Lucene Zend_Search_Lucene 组件的目的是提供一个即可使用的全文搜索解决方案。它... 阅读全文
posted @ 2010-09-20 14:17 Dufe王彬 阅读(263) 评论(0) 推荐(0) 编辑
Doug Cutting 访谈录--关于搜索引擎的开发(转载)
摘要:作为Lucene和Nutch两大Apach Open Source Project的始创人(其实还有Lucy, Lucene4C 和Hadoop等相关子项目),Doug Cutting 一直为搜索引擎的开发人员所关注。他终于在为Yahoo以Contractor的身份工作4年后,于今年正式以Employee的身份加入Yahoo 下面是笔者在工作之余,翻译其一篇2年前的访谈录,原文(Doug Cu... 阅读全文
posted @ 2009-02-18 10:39 Dufe王彬 阅读(313) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示