When defining a repository method to be used in a Kotlin coroutine context like ```kotlin fun searchByYear(year: Int): Flow<SeachHit<T>> ``` a call to this method fails as the found document is being mapped into the `SearchHit` instead of the entity type to be put into the `SearchHit`.