Lucene
文章平均质量分 84
davyjones2010
生活在这个世界而不知其义,如同徜徉于一座伟大的图书馆而不碰书籍。
展开
-
Lucene: Introduction to Lucene (Part I)
1. Why do we use Lucene? 1) If we want to execute the query like this: (content like '%DataStructure%') or (content like '%XMU%') in DB. Then it starts searching the whole content from...原创 2013-05-19 12:42:08 · 110 阅读 · 0 评论 -
Lucene: Introduction to Lucene (Part II)
1. Lucene Delete Function /** * Delete Index * */ public void delete() { Directory dir = FSDirectory.open(new File("E:/LuceneIndex")); IndexWriter writer = null; try { ...原创 2013-05-20 22:36:52 · 95 阅读 · 0 评论 -
Lucene: Introduction to Lucene (Part III)
1. How do we add index for number type?// new Field(String, String, Field.Store.YES, Field.Index.NOT_ANALYZED)// is only applicable for building for string type// we should use a sub-class of F...原创 2013-05-21 08:31:48 · 89 阅读 · 0 评论 -
Lucene: Introduction to Lucene (Part IV)
1. The lifecycle of IndexReader and IndexWriter 1) The open and close operations for reader/writer are at high cost. 2) Especially for IndexReader, time consumption of these operations are...原创 2013-05-23 08:47:37 · 103 阅读 · 0 评论 -
Lucene: Introduction to Lucene (Part V-Query)
Summary: 1) Execute precise query using TermQuery 2) Execute fuzzy String type range query using TermRangeQuery 3) Execute precise Numeric type range query using NumericRangeQuery ...原创 2013-05-24 23:49:48 · 115 阅读 · 0 评论 -
Lucene: Introduction to Lucene (Part VI-Query)
Summary: 1) In last chapter, we've introduced TermQuery, NumericQuery and TermRangeQuery. 2) In this chapter, we will introduce PrefixQuery/WildcardQuery/BoolenQuery/PhaseQuery/FuzzyQuery....原创 2013-05-25 15:33:44 · 115 阅读 · 0 评论 -
Lucene: Introduction to Lucene (Part VII-QueryParser)
1. Introduction to QueryParser 1) Sometimes we want to pass a String like this: "student AND teacher" to execue query. It means we want to search a certain field which contains both "s...原创 2013-05-25 17:04:33 · 99 阅读 · 0 评论