mirror of
https://github.com/gotson/komga.git
synced 2026-04-16 20:11:30 +02: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
|
import kotlin.time.measureTime
|
||||||
|
|
||||||
private val logger = KotlinLogging.logger {}
|
private val logger = KotlinLogging.logger {}
|
||||||
private const val INDEX_VERSION = 4
|
private const val INDEX_VERSION = 5
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
class SearchIndexLifecycle(
|
class SearchIndexLifecycle(
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ class SearchIndexController(
|
||||||
when (luceneHelper.getIndexVersion()) {
|
when (luceneHelper.getIndexVersion()) {
|
||||||
1, 2 -> taskEmitter.rebuildIndex(HIGHEST_PRIORITY)
|
1, 2 -> taskEmitter.rebuildIndex(HIGHEST_PRIORITY)
|
||||||
3 -> taskEmitter.rebuildIndex(HIGHEST_PRIORITY, setOf(LuceneEntity.Series))
|
3 -> taskEmitter.rebuildIndex(HIGHEST_PRIORITY, setOf(LuceneEntity.Series))
|
||||||
|
4 -> taskEmitter.rebuildIndex(HIGHEST_PRIORITY, setOf(LuceneEntity.ReadList))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue