The filter function is given a function to convert from suggestion item to string (see SuggestionOptions.suggestionToString), the search string (value from the input), and a suggestion item to compare. It should return true if this item will be in the filtered list, and false to filter it out.

The default filterer converts the suggestion to a lowercase string and checks for the full search string inside the suggestion string.