I am new to Select2 and am having trouble integrating AJAX. When I search, the results aren\'t being filtered based on the query.
Here\'s how it looks: http://i.imgu
This question was asked on the github project and the answer was: filter on the server side. The default filter function called when AJAX is not used is present in the Select2 documentation on the matcher parameter:
matcher
function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase())>=0; }