Kill list is the only part of committed index which can change. New documents or new versions of already indexed documents are indexed in new segments and old versions invalidated in previous segments using so called kill list. So the question arise – how can we change already indexed document? When Lucene execute search for a query it search in all available segments. This index (or index part) is called segment. Lucene finish all service operations with index and close it, so it's available for searching. In some point in time application decide to commit (publish) all the changes in the index. It's important to understand though, that Lucene index is append only. There are many more complications which are not so important for basic understanding.
0 Comments
Leave a Reply. |