Skip to content

Commit

Permalink
Fix rebase conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoceccarelli committed May 28, 2019
1 parent 1ac8564 commit 173c013
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,14 @@ public void transform(Map<String, ?> result, ResponseBuilder rb, SolrDocumentSou
SimpleOrderedMap<Object> groupResult = new SimpleOrderedMap<>();
if (group.groupValue != null) {
// use createFields so that fields having doc values are also supported
List<IndexableField> fields = groupField.createFields(group.groupValue.utf8ToString());
final String groupValue;
if (rb.getGroupingSpec().isSkipSecondGroupingStep()) {
groupValue = groupField.getType().indexedToReadable(group.groupValue.utf8ToString());
} else {
groupValue = group.groupValue.utf8ToString();
}
List<IndexableField> fields = groupField.createFields(groupValue);

if (CollectionUtils.isNotEmpty(fields)) {
groupResult.add("groupValue", groupFieldType.toObject(fields.get(0)));
} else {
Expand Down

0 comments on commit 173c013

Please sign in to comment.