code: function updateResults(res) {
    if (res === undefined) {
      res = lastQuery;
    }
    var results = res.results;
    lastQuery = res;
  
    // content is being viewed or edited, delay updates
    if (noUpdates) {
      console.log('in noUpdates');
      hasQueuedUpdates = true;
      clearTimeout(queuedNotifier);
      queuedNotifier = setInterval(function() { $('.toggle.item').toggleClass('red'); }, 2000);
      return;
    }
  
    // clear queued notifier
    $('.toggle.item').removeClass('red');
    clearInterval(queuedNotifier);
  
    $('.query.button').animate({opacity: 1}, 500, 'linear');
    // use arbitrary rendering to fill results
    var container = '#results';
    $('.selected.fields').html('<option value="">Select a field</option>');
    var baseFields = ['title'];
    if (res.options.query.selectFields) {
      res.options.query.selectFields.forEach(function(f) {
        $('.selected.fields').append('<option>' + f + '</option>');
      });
    }
    $('.all.fields').html('<option value="">Select a field</option>');
    baseFields.forEach(function(f) {
      $('.all.fields').append('<option>' + f + '</option>');
    });
    if (results.hits) {
      $(container).html('');
      $('#queryCount').html(results.hits.hits.length === results.hits.total ? results.hits.total : (results.hits.hits.length + '/' + results.hits.total));
      resultView.render(container, res, context);
    } else {
      $(container).html('<i>No items.</i>');
      $('#queryCount').html('0');
      resultView.render(container, res, context);
    }
  }
docs: Update displayed results using results view.  If passed results are null, use lastQuery.