»ùÓÚJavaµÄÈ«ÎļìË÷ÒýÇæ¼ò½é
LuceneÊÇÒ»¸ö»ùÓÚJavaµÄÈ«ÎÄË÷Òý¹¤¾ß°ü¡£
»ùÓÚJavaµÄÈ«ÎÄË÷ÒýÒýÇæLucene¼ò½é£º¹ØÓÚ×÷ÕߺÍLuceneµÄÀúÊ·
È«ÎļìË÷µÄʵÏÖ£ºLueneÈ«ÎÄË÷ÒýºÍÊý¾Ý¿âË÷ÒýµÄ±È½Ï
ÖÐÎÄÇзִʻúÖƼò½é£º»ùÓÚ´Ê¿âºÍ×Ô¶¯ÇзִÊËã·¨µÄ±È½Ï
¾ßÌåµÄ°²×°ºÍʹÓüò½é£ºÏµÍ³½á¹¹½éÉܺÍÑÝʾ
Hacking Lucene£º¼ò»¯µÄ²éѯ·ÖÎöÆ÷£¬É¾³ýµÄʵÏÖ£¬¶¨ÖƵÄÅÅÐò£¬Ó¦ÓýӿڵÄÀ©Õ¹
´ÓLuceneÎÒÃÇ»¹¿ÉÒÔѧµ½Ê²Ã´
ÁíÍ⣬Èç¹ûÊÇÔÚÑ¡ÔñÈ«ÎÄÒýÇ棬ÏÖÔÚÒ²ÐíÊÇÊÔÊÔSphinx
µÄʱºòÁË£ºÏà±ÈLuceneËٶȸü¿ì£¬ÓÐÖÐÎķִʵÄÖ§³Ö
£¬¶øÇÒÄÚÖÃÁ˶Լòµ¥µÄ·Ö²¼Ê½¼ìË÷µÄÖ§³Ö£»
»ùÓÚJavaµÄÈ«ÎÄË÷Òý/¼ìË÷ÒýÇæ——Lucene
Lucene²»ÊÇÒ»¸öÍêÕûµÄÈ«ÎÄË÷ÒýÓ¦Ó㬶øÊÇÊÇÒ»¸öÓÃJavaдµÄÈ«ÎÄË÷ÒýÒýÇ湤¾ß°ü£¬Ëü¿ÉÒÔ·½±ãµÄǶÈëµ½¸÷ÖÖÓ¦ÓÃÖÐʵÏÖÕë¶ÔÓ¦ÓõÄÈ«ÎÄË÷Òý/¼ìË÷¹¦ÄÜ¡£
LuceneµÄ×÷ÕߣºLuceneµÄ¹±Ï×ÕßDoug Cutting
ÊÇ
һλ×ÊÉîÈ«ÎÄË÷Òý/¼ìË÷ר¼Ò£¬Ôø¾ÊÇV-TwinËÑË÷ÒýÇæ(AppleµÄCopland²Ù×÷ϵͳµÄ³É¾ÍÖ®Ò»)µÄÖ÷Òª¿ª·¢Õߣ¬ºóÔÚExciteµ£Èθ߼¶ÏµÍ³
¼Ü¹¹Éè¼Æʦ£¬Ä¿Ç°´ÓÊÂÓÚһЩINTERNETµ×²ã¼Ü¹¹µÄÑо¿¡£Ëû¹±Ï׳öµÄLuceneµÄÄ¿±êÊÇΪ¸÷ÖÖÖÐСÐÍÓ¦ÓóÌÐò¼ÓÈëÈ«ÎļìË÷¹¦ÄÜ¡£
LuceneµÄ·¢Õ¹Àú³Ì£ºÔçÏÈ·¢²¼ÔÚ×÷Õß×Ô¼ºµÄwww.lucene.com
£¬ºóÀ´·¢²¼ÔÚSourceForge
£¬2001ÄêÄêµ×³ÉΪAPACHE»ù½ð»ájakartaµÄÒ»¸ö×ÓÏîÄ¿£ºhttp://jakarta.apache.org/lucene/
ÒѾÓкܶàJavaÏîÄ¿¶¼Ê¹ÓÃÁËLucene×÷ΪÆäºǫ́µÄÈ«ÎÄË÷ÒýÒýÇ棬±È½ÏÖøÃûµÄÓУº
J
ive
£ºWEBÂÛ̳ϵͳ£»
Eyebrows
£ºÓʼþÁбíHTML¹éµµ/ä¯ÀÀ/²éѯϵͳ£¬±¾ÎĵÄÖ÷Òª²Î¿¼Îĵµ“TheLucene search engine: Powerful, flexible, and free
”×÷Õß¾ÍÊÇEyeBrowsϵͳµÄÖ÷Òª¿ª·¢ÕßÖ®Ò»£¬¶øEyeBrowsÒѾ³ÉΪĿǰAPACHEÏîÄ¿µÄÖ÷ÒªÓʼþÁбí¹éµµÏµÍ³¡£
Cocoon
:»ùÓÚXMLµÄweb·¢²¼¿ò¼Ü£¬È«ÎļìË÷²¿·ÖʹÓÃÁËLucene
Eclipse
:»ùÓÚJavaµÄ¿ª·Å¿ª·¢Æ½Ì¨£¬°ïÖú²¿·ÖµÄÈ«ÎÄË÷ÒýʹÓÃÁËLucene
¶ÔÓÚÖÐÎÄÓû§À´Ëµ£¬×î¹ØÐĵÄÎÊÌâÊÇÆäÊÇ·ñÖ§³ÖÖÐÎĵÄÈ«ÎļìË÷¡£µ«Í¨¹ýºóÃæ¶ÔÓÚLuceneµÄ½á¹¹µÄ½éÉÜ£¬Äã»áÁ˽⵽ÓÉÓÚLuceneÁ¼ºÃ¼Ü¹¹Éè¼Æ£¬¶ÔÖÐÎĵÄÖ§³ÖÖ»Ðè¶ÔÆäÓïÑÔ´Ê·¨·ÖÎö½Ó¿Ú½øÐÐÀ©Õ¹¾ÍÄÜʵÏÖ¶ÔÖÐÎļìË÷µÄÖ§³Ö¡£
È«ÎļìË÷µÄʵÏÖ»úÖÆ
LuceneµÄAPI½Ó¿ÚÉè¼ÆµÄ±È½ÏͨÓã¬ÊäÈëÊä³ö½á¹¹¶¼ºÜÏñÊý¾Ý¿âµÄ±í==>¼Ç¼==>×ֶΣ¬ËùÒԺܶഫͳµÄÓ¦ÓõÄÎļþ¡¢Êý¾Ý¿âµÈ¶¼¿ÉÒԱȽϷ½±ãµÄÓ³Éäµ½LuceneµÄ´æ´¢½á¹¹/½Ó¿ÚÖС£×ÜÌåÉÏ¿´£º¿ÉÒÔÏÈ°ÑLuceneµ±³É
Ïà¹ØÎĵµ£º
import javax.swing.JOptionPane;
public class San {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
&n ......
1995Ä꣬ÃÀ¹úSun Microsystems¹«Ë¾ÕýʽÏòITÒµ½çÍƳöÁËjavaÓïÑÔ£¬¸ÃÓïÑÔ¾ßÓа²È«¡¢¿çƽ̨¡¢ÃæÏò¶ÔÏó¡¢¼òµ¥¡¢ÊÊÓÃÓÚÍøÂçµÈÏÔÖøÌص㣬µ±Ê±ÒÔwebΪÖ÷ÒªÐÎʽµÄ»¥ÁªÍøÕýÔÚѸÃÍ·¢Õ¹£¬javaÓïÑԵijöÏÖѸËÙÒýÆðËùÓгÌÐòÔ±ºÍÈí¼þ¹«Ë¾µÄ¼«´ó¹Ø×¢£¬³ÌÐòÔ±ÃǷ׷׳¢ÊÔÓÃjavaÓïÑÔ±àдÍøÂçÓ¦ÓóÌÐò£¬²¢ÀûÓÃÍøÂç°Ñ³ÌÐò·¢²¼µ½ÊÀ½ç¸÷µØ½øÐÐÔËÐС ......
1. ÏÈдһ¸öSingletonµÄclass
package stone;
public class Singleton {
private static Singleton instance;
private Singleton() {}
public static Singleton getInstance(){
if(instance==null)
&n ......
(1). ´´½¨Ò»¸ö½Ó¿Ú, Òª´úÀíµÄÀàºÍ ´úÀíÀ඼½«¼Ì³ÐËü
package stone;
public interface Image {
public void show();
}
(2). ´´½¨Òª±»´úÀíµÄÀà:
package stone;
public class BigImage implements Image {
public BigImage() {
......
JavaÀïÓиöºÜÖØÒªµÄÌØÉ«ÊÇException £¬Ò²¾ÍÊÇ˵ÔÊÐí³ÌÐò²úÉúÀýÍâ×´¿ö¡£¶øÔÚѧJava µÄʱºò£¬ÎÒÃÇÒ²Ö»ÖªµÀException µÄд·¨£¬È´Î´±ØÕæÄÜÁ˽ⲻͬÖÖÀàµÄException µÄÇø±ð¡£
Ê×ÏÈ£¬ÄúÓ¦¸ÃÖªµÀµÄÊÇJava ÌṩÁËÁ½ÖÖException µÄģʽ£¬Ò»ÖÖÊÇÖ´ÐеÄʱºòËù²úÉúµÄException (Runtime Exception)£¬ÁíÍâÒ»ÖÖÔòÊÇÊÜ¿ØÖƵÄException ......