NoDeletionPolicy

An IndexDeletionPolicy which keeps all index commits around, never deleting them. This class is a singleton and can be accessed by referencing .INSTANCE.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun onCommit(commits: MutableList<out IndexCommit>)

This is called each time the writer completed a commit. This gives the policy a chance to remove old commit points with each commit.

Link copied to clipboard
open override fun onInit(commits: MutableList<out IndexCommit>)

This is called once when a writer is first instantiated to give the policy a chance to remove old commit points.