This article only records some simple usage methods for beginners.
The following example uses Lucene. Net 1.9 and can be downloaded from Lucene. net.
1. Basic ApplicationsUsing system;Using system. Collections. Generic;Using system. text;Using Lucene. net;Using Lucene. net. analysis;Using
In the Lucene 3. x era, Lucene In Action is a very good reference book, which details various advanced usage technologies of Lucene, which is very practical for developers. However, Lucene has recently been upgraded to version 4.x, which greatly improves performance and is worth using in new projects. However,
About Lucene
ArticleThere have been more and more discussions. Currently, there is no special forum in China to discuss the use of Lucene, so I am going to set up a Lucene discussion area.
Here we can discuss everything about Lucene full-text indexing, including:
Clucene-Lu
Reprinted from http://download.csdn.net/source/858994
The source address is a Word document, which is converted to HTML format.
Directory
Lucene source code analysis-2 What is Lucene?
Lucene source code analysis-3 index file Overview
Lucene source code analysis-4 index file structure (1)
1 About Lucene1.1 What is LuceneLucene is a full-text search framework, not an app Product.So it doesn't work like www.baidu.com or Google desktop, It just provides a tool to enable you to implement these Products. 1.2 What Lucene can doto answer this question, first understand the nature of LUCENE. In fact, Lucene is a very simple function, after all, you give i
Whether it's looking for the nearest café via a GPS-enabled smartphone, or finding friends near you through social networking sites, or looking at all the trucks that transport certain goods in a particular city, more and more people and businesses are using location-based search services. Creating a location-aware search service is usually part of an expensive, dedicated solution, and is typically done by geo-space experts. However, the popular open source search library Apache
Lucene caching mechanisms and solutions
Overview... 1
1, Filter Cache. 1
2, Field cache ... 2
3. Conclusion ... 6
4.LuceneBase Cache Solution ... 6
Overview
Lucene's caching can be divided into two categories: Filter cache and field cache.
The implementation class for filter cache is Cachingwrapperfilter, which is used to cache query results for other filter.
The implementation class for field cache is Fieldcache, which caches the values of the fi
1. What is Lucene?is a full-text search framework, not an app product, he's just a tool that allows you to implement certain products, not as www.baidu.com can use them.is an open source project of the Apache organization's full-text search engine implemented in Java2. How does the Luncen work?The services provided actually consist of two parts: one in one outEnter: Write, write index to the data source you provideOut: read out, to provide users with
SOLR and Lucene are not competing against each other, while SOLR relies on Lucene because the core technology of SOLR is implemented using Lucene, and the essential difference between SOLR and Lucene is the following three points: Search server, enterprise level and management. Luc
SOLR vs LuceneSOLR and Lucene are not competing against each other, while SOLR relies on Lucene because the core technology of SOLR is implemented using Lucene, and the essential difference between SOLR and Lucene is the following three points: Search server, enterprise level and management.
Lucene is a high-performance Java full-text retrieval toolkit that uses inverted file index structures. The structure and the corresponding generating algorithm are as follows: 0) with two articles 1 and 2Article 1 of the content is: Tom lives in Guangzhou,i live in Guangzhou too.Article 2 of the content is: He once lived in Shanghai. 1) Since Lucene is based on the keyword index and query, first we w
See http://hedong.3322.org/archives/000206.html1. Download ghost First (these two support Chinese search ). 2. Put them under Classpath. 3. Run cmd to enable the command line. 4. Go to G:/JBuilder9/jdk1.4/lib. 5. run the command: G:/JBuilder9/jdk1.4/lib> java-classpath "G:/JBuilder9/jdk1.4/lib/lucene-1.2.jar; G:/JBuilder9/jdk1.4/lib/lucene-demos-1.2.jar" org. apache. lu
Most of Lucene 2.9 focuses on performance optimization. This is reflected in the improvements from low-end internal infrastructure to index management methods. Lucene's index database is composed of a series of separated "fragments", each of which is stored in an independent file. When you add documents to an index, you will create new parts that can be merged. Lucene caches field information in fieldcache.
ArticleDirectory
1. mergefactor
2. maxmergedocs
3. rambuffersizemb
1.. gen format and segments_n
2. CFs format
3. Lock format
3. FNM format
4.. fdx and. FDT formats
5. tii and. Tis formats
6. deletable format
In the previous articles about Lucene, I have briefly explained how to use Lucene for word segmentation, indexing, and search. Recently, most of the time
But do not think Lucene is a Google-like search engine, Lucene is not even an application, it is just a tool, a library. You can also interpret it as an index, The search feature encapsulates a good set of Easy-to-use APIs. With this API you can do a lot of things about search, and it's very convenient.
Lucene can index and search any data.
With the rapid development of the business, Lucene-based index file zip compression is also close to the GB magnitude, while keeping the index file size as an acceptable range is very necessary, not only can improve the index transfer, read speed, It also improves the efficiency of the index cache (Lucene caches the index file when it is opened, such as mmapdirectory in memory-mapped mode).How to reduce the
of these keywords, to assess the quality of our station search, to optimize the search scheme, and improve to provide some reference(6) Use Lucene or SOLR indexes to store analyzed data and provide flexible and powerful retrieval methodsThe specific use of pig analysis data process, the scattered fairy here is not fine, interested friends, can be in the public post-message consulting, today mainly look at, pig analysis of the results of the data stor
To find the article content text (goal: Quickly retrieve what is needed), this search technique is similar to a Chinese Dictionary index page design principleArticle 1 of the content is: Tom lives in Guangzhou,i live in Guangzhou too.Article 2 of the content is: He once lived in Shanghai. 1) Since Lucene is based on the keyword index and query, first we want to get the keywords of these two articles, usually we need to deal with the following measu
provide some reference(6) Use Lucene or SOLR indexes to store analyzed data and provide flexible and powerful retrieval methodsThe specific use of pig analysis data process, the scattered fairy here is not fine, interested friends, can be in the public post-message consulting, today mainly look at, pig analysis of the results of the data stored in the Lucene index, as for why Choose
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.