I'm using jQuery UI Autocomplete.
Is there a way to override its default search algorithm?
The changes I want to make are:
- Prioritize words that start with the search term at the top of the suggested results.
- Return a maximum of 5 results (instead of the default behavior, which is to return all matching results, potentially creating a really tall dropdown box).