In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "Lucene's file structure is what", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "what is the file structure of Lucene"!
Lucene's file structure is a hierarchy.
Lucene file hierarchy contains:
If I had to make an analogy:
The index here is equivalent to the table in the database. When the number of records in the table reaches a certain amount, we have to partition the table.
The table is divided into two parts.
That is, an index can be broken down into multiple segments.
The records in the database table are stored in different partitions, where the documents are equivalent to the records in the database table. Different documents are stored in different segments.
A slight difference from table partitioning is that the segments here can be merged into a new segment.
An index contains multiple segments, each segment contains one or more documents, and documents contain multiple domains, which can be segmented into one or more terms.
Lucene index holds forward and backward information.
Forward information: holds the index-to-word inclusion relationships hierarchically.
index-segment-document-domain-word
An index contains which segments, which documents each segment contains, which domains are contained in documents, and which terms the domains are divided into.
Reverse information: word-to-document mapping.
In the previous article (1) in this series, we defined this mapping from words to documents as an inverted list. Through the inverted list, we can see in which documents each word appears.
At this point, I believe that everyone has a deeper understanding of "Lucene's file structure is what", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
Maven uses tomcat6 to run projects by default. In this section, maven is asked to use tomcat7 to add
Wechat
About us
Contact us
Product review
car news
thenatureplanet
More Form oMedia:
AutoTimes.
Bestcoffee.
SL News.
Jarebook.
Coffee Hunters.
Sundaily.
Modezone.
NNB.
Coffee.
Game News.
FrontStreet.
GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.