![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Lucene
ylzhjlinux
这个作者很懒,什么都没留下…
展开
-
Lucene: Search Engine Arch
Components for indexing ACQUIRE CONTENT The first step, at the bottom of figure 1.4, is to acquire content. This process, which involves using a crawler or spider, gathers and scopes the conte...原创 2014-07-03 11:54:06 · 165 阅读 · 0 评论 -
Lucene: the core indexing classes
IndexWriter IndexWriter is the central component of the indexing process. This class creates a new index or opens an existing one, and adds, removes, or updates documents in the index. Think of Ind...原创 2014-07-03 15:11:37 · 95 阅读 · 0 评论 -
Lucene: the core searching classes
IndexSearcher IndexSearcher is to searching what IndexWriter is to indexing: the central link to the index that exposes several search methods. You can think of IndexSearcher as a class that open...原创 2014-07-03 15:19:58 · 71 阅读 · 0 评论 -
Lucene: Understanding the indexing process
INDEX SEGMENTSEvery Lucene index consists of one or more segments. Each segment is a standalone index, holding a subset of all indexed documents. A new segment is created whenever the writer flush...原创 2014-07-03 16:57:57 · 91 阅读 · 0 评论 -
Lucene: Boosting documents and fields
Not all documents and fields are created equal—or at least you can make sure that’s the case by using boosting. Boosting may be done during indexing, as we describe here, or during searching. Search-...原创 2014-07-04 10:08:20 · 124 阅读 · 0 评论 -
Lucene: Indexing numbers, dates, and times And Field truncation
Although most content is textual in nature, in many cases handling numeric or date/time values is crucial. In a commerce setting, the product’s price, and perhaps other numeric attributes like weight...原创 2014-07-04 10:28:04 · 100 阅读 · 0 评论 -
Lucene: Adding search to your application
Directory dir = FSDirectory.open(new File("/path/to/index"));IndexReader reader = IndexReader.open(dir);IndexSearcher searcher = new IndexSearcher(reader);QueryParser parser = new QueryPar...原创 2014-07-04 14:14:51 · 79 阅读 · 0 评论 -
Apache SOLR and Carrot2 integration strategies 1
deploy carrot2-webapp1. download soucre code#git clone git://github.com/carrot2/carrot2.git 2.compile#cd carrot2#ant webapp 3.deploy#cp tmp/webapp/carrot2-webapp.war /path/to/tom...原创 2014-10-30 14:31:40 · 105 阅读 · 0 评论 -
Apache SOLR and Carrot2 integration strategies 2
In order to use custom chinese tokenizer(eg. jcseg). Following the next steps1. download carrot2 souce code and import it to eclipse#git clone git://github.com/carrot2/carrot2.git#cd carrot2...原创 2014-11-04 17:39:29 · 133 阅读 · 0 评论