Experienced In Lucene
2008-02-23 09:34:56来源:互联网 阅读 ()
Lucene is a powerful API. I try to use it these days.
Since the relative introduction can be found in many place, i just want share some my feelings.
If you just want to get general idea of it, you can visit:
http://www.chedong.com/tech/lucene.html For chinese version introduction
http://lucene.apache.org For Download and get Docs
The Key of lucene it a Index file. When you collect a String using Lucene API, it will help you to store all information in one File, with extension .cfs, often will two aid files. You neddn't care about how it works, just use the field type Keyword, Unindexed, Unstored, Text for the information you get. No matter the information type. You only get the infor as a String type and pass it to Lucene API, the collect process it over.
The search process is similar. Lucene provides a type called Query help you to pass the query want to search. The Query have many sub types, TermQuery(Used for one word), Boolean Query(used for multi-query), PrefixField(very useful in search based on category), etc.
Lucene can be devaloped. You can inherit its Analayser , which is used to analyze the language. Generally, A StandardAnalyzer is enough for us, but still with some problem remained, for instance in parsing Chinese words. Filter also can be developed.
Another useful feature is Lucene provide a method to help you to get the summary of the content you have got and bold the key words.
Anyway,Lucene is useful for no-scientist developers. Our team is building a in-site search component based on Lucene. Waiting our good news.
上一篇: CATALINA_HOME/conf/web.xml
下一篇: Tomcat中DataSource的配置方法
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash