Custom filtering for autocompletion.