fun refreshKeywordIndex()

in core/search/src/main/kotlin/io/klibs/core/search/suggest/SuggestService.kt [19:28]


    fun refreshKeywordIndex() {
        try {
            val nanosTaken = measureNanoTime {
                suggestRepository.refreshIndex()
            }
            logger.info("Updated keywords index in ${TimeUnit.NANOSECONDS.toSeconds(nanosTaken)} seconds")
        } catch (e: Exception) {
            logger.error("Unable to refresh keywords index", e)
        }
    }