how lucene use skip list in inverted index?

前端 未结 2 1509
一整个雨季
一整个雨季 2021-01-06 11:00

In some blogs and lucene website,I know lucene use data structure \"skip list\" in inverted index. But I have some puzzle about it.

1:In general,skip list maybe use

相关标签:
2条回答
  • 2021-01-06 11:34

    see To accelerate posting list skips, Lucene uses skip lists

    0 讨论(0)
  • 2021-01-06 11:52

    Lucene uses memory in a couple different ways, even though the index is persisted on a disk when the IndexReader is created for searching and for operations like sorting (field cache):

    http://blog.mikemccandless.com/2010/07/lucenes-ram-usage-for-searching.html

    Basically those binary files get copied into RAM for much faster scanning and reducing I/O. You get a hint in the above link how searching with some parameters can force Lucene to "skip terms in searching" Hence, where that data structure can be used.

    Lucene is open source, so you can see the code for yourself what is being used in Java or Lucene.NET for the C# implementation.

    0 讨论(0)
提交回复
热议问题