mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Add Lithuanian to processing languages
SOLR doesn't support Lithuanian, maybe it can be added via plugins. A manual setup of solr is required then. It has been added with basic support. Closes: #1540
This commit is contained in:
@ -133,7 +133,18 @@ object SolrSetup {
|
||||
"Add hungarian",
|
||||
addContentField(Language.Hungarian)
|
||||
),
|
||||
SolrMigration.reIndexAll(20, "Re-Index after adding hungarian content field")
|
||||
SolrMigration.reIndexAll(20, "Re-Index after adding hungarian content field"),
|
||||
SolrMigration[F](
|
||||
21,
|
||||
"Add new field type for lithuanian content",
|
||||
addFieldType(AddFieldType.textLit)
|
||||
),
|
||||
SolrMigration[F](
|
||||
22,
|
||||
"Add lithuanian",
|
||||
addContentField(Language.Lithuanian)
|
||||
),
|
||||
SolrMigration.reIndexAll(23, "Re-Index after adding lithuanian content field")
|
||||
)
|
||||
|
||||
def addFolderField: F[Unit] =
|
||||
@ -275,6 +286,17 @@ object SolrSetup {
|
||||
)
|
||||
)
|
||||
|
||||
val textLit = AddFieldType(
|
||||
"text_lt",
|
||||
"solr.TextField",
|
||||
Analyzer(
|
||||
Tokenizer("solr.StandardTokenizerFactory", Map.empty),
|
||||
List(
|
||||
Filter("solr.LowerCaseFilterFactory", Map.empty)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
final case class Filter(`class`: String, attr: Map[String, String])
|
||||
final case class Tokenizer(`class`: String, attr: Map[String, String])
|
||||
final case class Analyzer(tokenizer: Tokenizer, filter: List[Filter])
|
||||
|
Reference in New Issue
Block a user