文章分类 -  Lucene

Lucene Resources
摘要:http://blog.mikemccandless.com/http://www.abyssss.com/?cat=47http://opensourceconnections.com/blog/2013/02/21/lucene-4-finite-state-automaton-in-10-mi... 阅读全文

posted @ 2014-10-30 10:22 ukouryou 阅读(101) 评论(0) 推荐(0)

创建Weight对象
摘要:Weight对象是通过IndexSearcher.createNormalizedWeight(Query query)创建的 1 public Weight createNormalizedWeight(Query query) throws IOException { 2 query =... 阅读全文

posted @ 2014-07-03 17:59 ukouryou 阅读(373) 评论(0) 推荐(0)

Index sample
摘要:1 public void createIndex() throws IOException { 2 DIRECTORY = FSDirectory.open(new File("/home/andy/work/lucene/index/1")); 3 Analyzer chineseanalyzer = new SmartChineseAnalyzer(Version.LUCENE_42); 4 IndexWriterConfig indexWriterConfig = new IndexWriterConfig(Version... 阅读全文

posted @ 2013-10-21 14:01 ukouryou 阅读(134) 评论(0) 推荐(0)

Lucene query:not clause
摘要:Test(+NOT+userId%3A5791)+AND+is_visible%3Atrue+AND+...the result is 0+NOT+userId%3A5791+AND+is_visible%3Atrue+AND+...the result is 4bracket changed sth? 阅读全文

posted @ 2013-10-09 15:41 ukouryou 阅读(142) 评论(0) 推荐(0)

Lucene source Vint 写入
摘要:代码位置org.apache.lucene.store.DataOutput 1 /** Writes an int in a variable-length format. Writes between one and 2 * five bytes. Smaller values t... 阅读全文

posted @ 2013-06-09 12:00 ukouryou 阅读(196) 评论(0) 推荐(0)

导航