private Map<Long, Double> chunkScoresAsMap(Tensor chunkLimitTensor) {
        Map<Long, Double> chunkScores = new HashMap<>();
        chunkLimitTensor.cellIterator()
                .forEachRemaining(cell -> chunkScores.put(cell.getKey().numericLabel(0), cell.getValue()));
        return chunkScores;
    }
Removes all but the top-n highest scoring entries for a string array field.
The scores should be computed in a tensor returned in summary-features.

@author andreer
container-search/src/main/java/com/yahoo/search/searchers/ChunkLimitingSearcher.java