fix: rebuild search index for readlists

closes #868
This commit is contained in:
Gauthier Roebroeck 2022-04-25 11:27:30 +08:00
parent 63e3d8a6ae
commit 03de229da5
2 changed files with 2 additions and 1 deletions

View file

@ -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(

View file

@ -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))
}
}
}