Github user cestella commented on a diff in the pull request: https://github.com/apache/metron/pull/677#discussion_r131133566 --- Diff: metron-platform/metron-elasticsearch/src/main/java/org/apache/metron/elasticsearch/dao/ElasticsearchDao.java --- @@ -81,8 +82,14 @@ public SearchResponse search(SearchRequest searchRequest) throws InvalidSearchEx .size(searchRequest.getSize()) .from(searchRequest.getFrom()) .query(new QueryStringQueryBuilder(searchRequest.getQuery())) - .fetchSource(true) + .trackScores(true); + Optional<List<String>> fields = searchRequest.getFields(); + if (fields.isPresent()) { + searchSourceBuilder.fields(fields.get()); --- End diff -- What happens if fields.get() is empty or null?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---