PageFilter
class PageFilter(name: String?, availablePageSizes: List<Int>, defaultPageSize: Int?, maxHits: Int) : Filter<PageFilterContext, PageFilterResult>
Content copied to clipboard
PageFilter allows to paginate search query results.
Parameters
name
name of the PageFilter
availablePageSizes
list of available of per page variants
defaultPageSize
default number of hits per page
maxHits
maximum number of hits to available for a pagination
Constructors
PageFilter
Link copied to clipboard
fun PageFilter(name: String? = null, availablePageSizes: List<Int> = DEFAULT_AVAILABLE_PAGE_SIZES, defaultPageSize: Int? = null, maxHits: Int = DEFAULT_MAX_HITS)
Content copied to clipboard
name of the PageFilter
Types
Functions
prepare
Link copied to clipboard
open override fun prepare(name: String, params: QueryFilterParams): PageFilterContext
Content copied to clipboard
provideDelegate
Link copied to clipboard
operator fun provideDelegate(thisRef: QueryFilters, property: KProperty<*>): <ERROR CLASS><QueryFilters, BoundFilter<C, R>>
Content copied to clipboard