mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-02-15 20:33:26 +00:00
Add missing solr migration for french
This commit is contained in:
parent
31fae34595
commit
9c82f186d0
@ -51,12 +51,27 @@ object SolrSetup {
|
||||
solrEngine,
|
||||
"Index all from database",
|
||||
FtsMigration.Result.indexAll.pure[F]
|
||||
),
|
||||
FtsMigration[F](
|
||||
5,
|
||||
solrEngine,
|
||||
"Add content_fr field",
|
||||
addContentFrField.map(_ => FtsMigration.Result.workDone)
|
||||
),
|
||||
FtsMigration[F](
|
||||
6,
|
||||
solrEngine,
|
||||
"Index all from database",
|
||||
FtsMigration.Result.indexAll.pure[F]
|
||||
)
|
||||
)
|
||||
|
||||
def addFolderField: F[Unit] =
|
||||
addStringField(Field.folderId)
|
||||
|
||||
def addContentFrField: F[Unit] =
|
||||
addTextField(Some(Language.French))(Field.content_fr)
|
||||
|
||||
def setupCoreSchema: F[Unit] = {
|
||||
val cmds0 =
|
||||
List(
|
||||
|
Loading…
Reference in New Issue
Block a user