mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Index exsiting data in solr
This commit is contained in:
@ -10,6 +10,11 @@ sealed trait TextData {
|
||||
|
||||
def collective: Ident
|
||||
|
||||
final def fold[A](f: TextData.Attachment => A, g: TextData.Item => A): A =
|
||||
this match {
|
||||
case a: TextData.Attachment => f(a)
|
||||
case a: TextData.Item => g(a)
|
||||
}
|
||||
}
|
||||
|
||||
object TextData {
|
||||
|
Reference in New Issue
Block a user