/** * Updates the statistics */ void update(ProcessingResult processingResult) { synchronized (this) { totalQueries++; if (processingResult != null) { goodQueries++; final Map<String, Object> attributes = processingResult .getAttributes(); addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_SOURCE, sourceTimeAverage); addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_ALGORITHM, algorithmTimeAverage); addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_TOTAL, totalTimeAverage); } } }
xsltParameters); query = (String) processingResult.getAttributes().get(AttributeNames.QUERY); documents = processingResult.getDocuments();
final Map<String, Object> resultAttributes = processingResult.getAttributes(); response.metadata .put(SearchEngineResponse.RESULTS_TOTAL_KEY, resultAttributes
final Map<String, Object> attributes = processingResult.getAttributes();