什么是Elasticsearch Index,Lucene索引和倒数索引
有时候,我对Lucene索引与倒数索引感到困惑。从我的知识倒置索引中包含单个令牌,Elasticsearch索引包括碎片。 那么Lucene索引是什么包含的?
Sometime i got confused between lucene index vs inverted index.From my knowledge inverted index contains individual tokens and elasticsearch index include shards.
Then what is lucene index what does it contains ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Elasticsearch索引由碎片(Lucene Index)和Lucene指数组成,由倒置索引(由单个令牌组成)组成,以下术语可以互换使用。
Elasticsearch基于Lucene,每个Elasticsearch Shard都是一个完整的Lucene Index,Luence中没有碎片的概念。与ES索引不同,Lucene索引不能分布到多个节点,而Elasticsearch索引分布在多个节点上只是意味着其分布到多个节点的碎片(Lucene索引)。
索引和碎片只是逻辑名称,实际数据存储在 lucene seggments中。
ps:ES网站上有几篇文章,解释了索引,碎片和细分市场的更多细节,这将很难介绍,并且在这里将被重复。
Elasticsearch index consist of Shards(Lucene index) and Lucene index consists of inverted index(which consists of individual tokens), below terms can be used interchangeably.
Elasticsearch is based on Lucene, and every Elasticsearch shard is a full blown lucene index, there is no concept of shards in the Luence. Unlike ES index, Lucene index can't be distributed to multiple nodes, and Elasticsearch index distributed to multiple nodes simply means its shards(Lucene index) distributed to multiple nodes.
Index and shards are just the logical names, and actual data is stored in the lucene segments.
P.S: There are several articles on ES sites explaining index, shards and segments in the more details, which would be difficult to cover and would be duplicated here.