mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Add task to index current database state
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package docspell.ftsclient
|
||||
|
||||
import fs2.Stream
|
||||
import docspell.common._
|
||||
|
||||
/** The fts client is the interface for docspell to a fulltext search
|
||||
* engine.
|
||||
@ -12,7 +13,13 @@ import fs2.Stream
|
||||
*/
|
||||
trait FtsClient[F[_]] {
|
||||
|
||||
/** Optional operation to do some initialization tasks. This is called
|
||||
* exactly once and then never again. It may be used to setup the
|
||||
* database.
|
||||
*/
|
||||
def initialize: F[Unit]
|
||||
|
||||
def searchBasic(q: FtsQuery): Stream[F, FtsBasicResult]
|
||||
|
||||
def indexData(data: Stream[F, TextData]): F[Unit]
|
||||
def indexData(logger: Logger[F], data: Stream[F, TextData]): F[Unit]
|
||||
}
|
||||
|
Reference in New Issue
Block a user