mirror of
https://github.com/gotson/komga.git
synced 2025-12-27 11:00:24 +01:00
parent
63e3d8a6ae
commit
03de229da5
2 changed files with 2 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ import kotlin.math.ceil
|
|||
import kotlin.time.measureTime
|
||||
|
||||
private val logger = KotlinLogging.logger {}
|
||||
private const val INDEX_VERSION = 4
|
||||
private const val INDEX_VERSION = 5
|
||||
|
||||
@Component
|
||||
class SearchIndexLifecycle(
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class SearchIndexController(
|
|||
when (luceneHelper.getIndexVersion()) {
|
||||
1, 2 -> taskEmitter.rebuildIndex(HIGHEST_PRIORITY)
|
||||
3 -> taskEmitter.rebuildIndex(HIGHEST_PRIORITY, setOf(LuceneEntity.Series))
|
||||
4 -> taskEmitter.rebuildIndex(HIGHEST_PRIORITY, setOf(LuceneEntity.ReadList))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue