Searcher

interface Searcher<R : SearchResult, Q>

Generic interface for searching the document with a query.

Parameters

R

: The type of the search result

Q

: The type of the search query

Inheritors

Functions

Link copied to clipboard
abstract fun isQuerySearchable(query: Q): Boolean

Evaluates the query and returns true if a search can be conducted with it

Link copied to clipboard
abstract fun search(query: Q): Flow<R>

Search for the given query. Results are delivered as a Flow