Update displayed results using results view.  If passed results are null, use lastQuery.
437181
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);
  }
}
725180
public void resetResult(Object result)
  {

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "resetResult");

    if (result != null)
       ((TopicAclTraversalResults) result).reset();
    //   ((ArrayList) result).clear();

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "resetResult");

  }
360172
def execute(self, return_results=True):
        '''
        
        '''
        if self.results:
            return self.results if return_results else None

        self.execute_raw()

        if self._raw_results_only:
            self.results = self.raw_results
        else:
            self.map_results()

        if return_results:
            return self.results
138986
public void setResults(java.util.Collection<SearchRecord> results) {
        if (results == null) {
            this.results = null;
            return;
        }

        this.results = new java.util.ArrayList<SearchRecord>(results);
    }
1349388
function resultModelView (results) {
    // build result with ModelViewEngine
    var viewResultPromise = this.modelViewEngine.result(results)
    // if query has view cache the cache view result
    if (defined(this.cache) && this.cache.view) {
        // and handler to cache result
        viewResultPromise.then(viewResults => this.cache.cacheResults(viewResults))
    }
    // return view result promise - do not wait for cache
    return viewResultPromise
}
1223300
public function updateSearchResults(&$results, &$properties)
    {
        // Customise empty results
        $customNoSearchResultsText = SiteConfig::current_site_config()->NoSearchResults;
        if ($customNoSearchResultsText) {
            $properties['NoSearchResults'] = $customNoSearchResultsText;
        }

        // Customise empty search
        $customEmptyText = SiteConfig::current_site_config()->EmptySearch;
        if ($customEmptyText) {
            $properties['EmptySearch'] = $customEmptyText;
        }
    }
641231
public void setResults(com.google.api.ads.admanager.axis.v201808.NativeStyle[] results) {
        this.results = results;
    }
528021
def _setResult(self, result):
        
        if self._result is not _NO_RESULT:
            raise AlreadyCalledError()

        self._result = result
854235
def update_result(self):
        """"""
        try:
            if self.paused:
                result = self._paused_result
            else:
                result = self._final_result
        except AttributeError:
            self.table.update_frame()
            return
        stats, cpu_time, wall_time, title, at = result
        self.table.set_result(stats, cpu_time, wall_time, title, at)
446094
public void performUpdateQuery(String queryString, SPARQLQueryBindingSet bindings, Transaction tx, boolean includeInferred, String baseURI) {
        SPARQLQueryDefinition qdef = sparqlManager.newQueryDefinition(queryString);
        if(notNull(baseURI) && !baseURI.isEmpty()){ qdef.setBaseUri(baseURI);}
        if (notNull(ruleset) ) {qdef.setRulesets(ruleset);}
        if(notNull(graphPerms)){ qdef.setUpdatePermissions(graphPerms);}
        qdef.setIncludeDefaultRulesets(includeInferred);
        sparqlManager.clearPageLength();
        sparqlManager.executeUpdate(qdef, tx);
    }
478728
@Override
  public void updateAdaptiveData(final String[] tokens,
      final String[] outcomes) {

    for (int i = 0; i < tokens.length; i++) {
      this.previousMap.put(tokens[i], outcomes[i]);
    }
  }
670585
protected function updateTable()
  {
    if ($this->targetTableComponent !== null) {
      if (!$this->resultsCount) {
        $ds = $this->targetTableComponent->getDataSource();
        $this->setResultsCount($ds->count());
      }

      $imin = ($this->currentPage - 1) * $this->maxByPage;
      $imax = $imin + $this->maxByPage - 1;

      if ($imax > ($this->resultsCount - 1)) {
        $imax = $this->resultsCount - 1;
      }

      $this->targetTableComponent->setParsingIndexes($imin, $imax);
    }
  }
89981
private void resetLastResult() {

        m_result = null;
        m_lastException = null;
        m_categoriesFound = null;
        m_parameterRestriction = null;
        if (!m_parsedQuerySet) {
            // don't reset parsed query if it was deliberately set, otherwise initializing search bean from JSP might fail
            m_parameters.setParsedQuery(null);
        }
    }
1286712
void displayResult(CmsSolrResultList resultList) {

        List<CmsResource> resources;
        evalSeries(resultList);
        if (m_hideSeriesInstances) {
            Set<CmsUUID> instanceIds = new HashSet<CmsUUID>();
            resources = new ArrayList<CmsResource>();
            for (CmsSearchResource res : resultList) {
                if (!instanceIds.contains(res.getStructureId())) {
                    instanceIds.add(res.getStructureId());
                    resources.add(res);
                }
            }
        } else {
            resources = new ArrayList<CmsResource>(resultList);
        }
        m_resultTable.fillTable(A_CmsUI.getCmsObject(), resources, true, false);
        String state = A_CmsWorkplaceApp.addParamToState(
            "",
            CmsEditor.RESOURCE_ID_PREFIX,
            m_currentResource.getStructureId().toString());
        state = A_CmsWorkplaceApp.addParamToState(
            state,
            PARAM_LOCALE,
            m_currentConfigParser.getSearchLocale().toString());
        m_currentState = state;
        CmsAppWorkplaceUi.get().changeCurrentAppState(state);
        if (m_isOverView) {
            enableOverviewMode(false);
            updateBreadCrumb(getBreadCrumbForState(state));
        }
    }
535604
public void updateStatus(long result) {
		if(result != - 1) {
			Double time = execTime / 1000;
			String s = String.format("Execution time: %s sec - Number of rows retrieved: %,d ", time, result);
			Runnable time_setter = new ExecTimeSetter(s);
			SwingUtilities.invokeLater(time_setter);
		}
	}
1139048
def update_fw_db_result(self, tenant_id, os_status=None, dcnm_status=None,
                            dev_status=None):
        
        serv_obj = self.get_service_obj(tenant_id)
        serv_obj.update_fw_local_result(os_status, dcnm_status, dev_status)
        serv_obj.commit_fw_db_result()
552141
@Override
    protected void onRangeChanged(HasData<RecordList.Record> display) {

        // Get the new range required.
        range = display.getVisibleRange();
        //if it is the last page don't load more results
        if(display.getRowCount()%range.getLength()!= 0 && display.getRowCount() > 0 && range.getStart() > previousRange.getStart()){
            display.setVisibleRange(previousRange.getStart(), previousRange.getLength());
        }

        updateResults(range.getStart(), range.getLength());
        previousRange = range;
    }