Add query matcher functionality to Typeahead.