Remove search feature flag

This commit is contained in:
eikek
2022-06-11 21:14:25 +02:00
parent fe8d2fc63f
commit 3d58cffada
2 changed files with 36 additions and 39 deletions

View File

@ -34,7 +34,6 @@ case class Config(
integrationEndpoint: Config.IntegrationEndpoint,
maxItemPageSize: Int,
maxNoteLength: Int,
featureSearch2: Boolean,
fullTextSearch: Config.FullTextSearch,
adminEndpoint: Config.AdminEndpoint,
openid: List[OpenIdConfig],

View File

@ -40,8 +40,6 @@ final class ItemSearchPart[F[_]: Async](
private[this] val logger = docspell.logging.getLogger[F]
def routes: HttpRoutes[F] =
if (!cfg.featureSearch2) HttpRoutes.empty
else
HttpRoutes.of {
case GET -> Root / `searchPath` :? QP.Query(q) :? QP.Limit(limit) :?
QP.Offset(offset) :? QP.WithDetails(detailFlag) :?