Transport highlighting information to the client

This commit is contained in:
Eike Kettner
2020-06-22 22:54:39 +02:00
parent a58ffd11e1
commit ffbb16db45
8 changed files with 202 additions and 48 deletions

View File

@ -15,9 +15,19 @@ final case class FtsQuery(
collective: Ident,
items: Set[Ident],
limit: Int,
offset: Int
offset: Int,
highlight: FtsQuery.HighlightSetting
) {
def nextPage: FtsQuery =
copy(offset = limit + offset)
}
object FtsQuery {
case class HighlightSetting(pre: String, post: String)
object HighlightSetting {
val default = HighlightSetting("**", "**")
}
}