mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Remove search feature flag
This commit is contained in:
@ -34,7 +34,6 @@ case class Config(
|
|||||||
integrationEndpoint: Config.IntegrationEndpoint,
|
integrationEndpoint: Config.IntegrationEndpoint,
|
||||||
maxItemPageSize: Int,
|
maxItemPageSize: Int,
|
||||||
maxNoteLength: Int,
|
maxNoteLength: Int,
|
||||||
featureSearch2: Boolean,
|
|
||||||
fullTextSearch: Config.FullTextSearch,
|
fullTextSearch: Config.FullTextSearch,
|
||||||
adminEndpoint: Config.AdminEndpoint,
|
adminEndpoint: Config.AdminEndpoint,
|
||||||
openid: List[OpenIdConfig],
|
openid: List[OpenIdConfig],
|
||||||
|
@ -40,8 +40,6 @@ final class ItemSearchPart[F[_]: Async](
|
|||||||
private[this] val logger = docspell.logging.getLogger[F]
|
private[this] val logger = docspell.logging.getLogger[F]
|
||||||
|
|
||||||
def routes: HttpRoutes[F] =
|
def routes: HttpRoutes[F] =
|
||||||
if (!cfg.featureSearch2) HttpRoutes.empty
|
|
||||||
else
|
|
||||||
HttpRoutes.of {
|
HttpRoutes.of {
|
||||||
case GET -> Root / `searchPath` :? QP.Query(q) :? QP.Limit(limit) :?
|
case GET -> Root / `searchPath` :? QP.Query(q) :? QP.Limit(limit) :?
|
||||||
QP.Offset(offset) :? QP.WithDetails(detailFlag) :?
|
QP.Offset(offset) :? QP.WithDetails(detailFlag) :?
|
||||||
|
Reference in New Issue
Block a user