mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Transport highlighting information to the client
This commit is contained in:
@ -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("**", "**")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user