DefaultUserQueryFilter

class DefaultUserQueryFilter(transliterator: StreamTransliterator = DefaultStreamTransliterator()) : QueryFilter<User>

Default implementation of QueryFilter for User objects.

This implementation of QueryFilter ignores upper case, diacritics It uses levenshtein approximation so typos are included in the search.

It is possible to choose a transliteration by providing a transliterator.

Parameters

transliterator

The transliterator to use for transliterating the query string.

Constructors

Link copied to clipboard
constructor(transliterator: StreamTransliterator = DefaultStreamTransliterator())

Functions

Link copied to clipboard
open override fun filter(items: List<User>, query: String): List<User>

Filters the given items based on the query.