title: Jquery Select2 4 - Ajax "no results found" when using custom data
body: <p>I can't get the Ajax example to work outside of the <a href="https://select2.github.io/examples.html#data-ajax" rel="nofollow noreferrer">github example on the documentation page</a>.  </p>
  
  <p>Here's what I'm trying:</p>
  
  <p><a href="https://jsfiddle.net/vhrpzcuv/8/" rel="nofollow noreferrer">https://jsfiddle.net/vhrpzcuv/8/</a></p>
  
  <pre><code>&lt;select name="test" class="select2picker" style="width: 100%"&gt;
   &lt;option value="test"&gt;test&lt;/option&gt;
  &lt;/select&gt;
  
      $('.select2picker').select2({
      ajax: {
          url: "", //For testing don't do this.  
          dataType: 'json',
          data: function(params) {
              return {
                  filter: params.term // search term
              };
          },
          processResults: function(data) {
              data = [{
                  id: 0,
                  text: 'enhancement'
              }];
              console.log(data);
              return data;
          }
      }
  });
  </code></pre>