-
public final class SearchServiceKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static BooleanisSearchableprivate final static SearchService.OptionssearchOptionsprivate static Function1<Publication.Service.Context, Publication.Service>searchServiceFactory
-
Method Summary
Modifier and Type Method Description final BooleangetIsSearchable()final SearchService.OptionsgetSearchOptions()Function1<Publication.Service.Context, Publication.Service>getSearchServiceFactory()voidsetSearchServiceFactory(Function1<Publication.Service.Context, Publication.Service> searchServiceFactory)final static SearchIteratorsearch(Publication $self, String query, SearchService.Options options)Starts a new search through the publication content, with the given query. -
-
Method Detail
-
getIsSearchable
final Boolean getIsSearchable()
-
getSearchOptions
final SearchService.Options getSearchOptions()
-
getSearchServiceFactory
Function1<Publication.Service.Context, Publication.Service> getSearchServiceFactory()
-
setSearchServiceFactory
void setSearchServiceFactory(Function1<Publication.Service.Context, Publication.Service> searchServiceFactory)
-
search
final static SearchIterator search(Publication $self, 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 for the search service.
Returns null if the publication is not searchable.
-
-
-
-