search

open fun search(@NonNull searchString: String, @Nullable options: QueryOptions, @NonNull resultListener: QueryResultListener)

Query the database for a match of searchString. Only direct matches, begins-with and ends-with matches are supported. Returns a map of document UIDs to set of pages matching inside that document.

Parameters

searchString

String to search for.

options

Options object determining search behaviour. May be null for default behaviour.

resultListener

Callback listener which will be called with search results. Note that the methods in the listener will be called on the background thread.