赞助商

MOST RECENT NEWS - WE MOMENTARILY RENEW

27
1、CreateDataBase.java  

然后在d:\lucene下建立3个文本文件,我的是holenalsdjflasdlfj.txt、holen1.txt、holen2.txt,在里面输入一些内容,有一个包含有"nationally"就可以了,这个就是我们要测试查询的字符串。
首先执行CreateDataBase.java(初始化库),然后InsertRecords.java(添加索引),最后QueryRecords.java(测试文件)
然后就可以看到正确的输出了。

:),就到这里,欢迎指正!!!!!!

作者:博爱老头@博爱老头的草屋
地址:http://www.icnote.com/post/14/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!

0 条评论 to “Lucene简单DEMO”

发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称  [注册]
密码  [游客无需密码]
网址
电邮
               

 

©2007-2012 IcNote.COM Theme by Youth work room