private void limitChunks(Hit hit, Query query, String[] chunkFieldNames, Set<Integer> topChunkIndexes) {
        for (String fieldName : chunkFieldNames) {
            fieldName = fieldName.trim();
            if (fieldName.startsWith("summaryfeatures.") || fieldName.startsWith("matchfeatures."))
                limitChunkFeature(hit, query, fieldName, topChunkIndexes);
            else
                limitChunkField(hit, query, fieldName, topChunkIndexes);
        }
    }
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