Can I change when search results are loaded?

Can Select2 wait until the user has typed a search term before triggering the request?

$('select').select2({
  ajax: {
    delay: 250 // wait 250 milliseconds before triggering the request
  }
});
{% include options/not-written.html %}

Select2 is allowing long search terms, can this be prevented?

$('select').select2({
  maximumInputLength: 20 // only allow terms up to 20 characters long
});
{% include options/not-written.html %}

I only want the search box if there are enough results

$('select').select2({
  minimumResultsForSearch: 20 // at least 20 results must be displayed
});
{% include options/not-written.html %}

How can I permanently hide the search box?

$('select').select2({
  minimumResultsForSearch: Infinity
});
{% include options/not-written.html %}