-
- All Implemented Interfaces:
-
org.readium.r2.shared.publication.Publication.Service,org.readium.r2.shared.util.Closeable
public interface SearchService implements Publication.Service
Provides a way to search terms in a publication.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSearchService.OptionsHolds the available search options and their current values.
-
Method Summary
Modifier and Type Method Description abstract Try<SearchIterator, SearchException>search(String query, SearchService.Options options)Starts a new search through the publication content, with the given query. abstract SearchService.OptionsgetOptions()Default value for the search options of this service. -
-
Method Detail
-
search
abstract Try<SearchIterator, SearchException> search(String query, SearchService.Options options)
Starts a new search through the publication content, with the given query.
If an option is nil when calling search(), its value is assumed to be the default one.
-
getOptions
abstract SearchService.Options getOptions()
Default value for the search options of this service.
If an option does not have a value, it is not supported by the service.
-
-
-
-