SOLR-3073: Fixed 'Invalid UUID string' error

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1238678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Martijn van Groningen 2012-01-31 15:56:38 +00:00
parent d3e50cad5f
commit cf538e6f74
2 changed files with 5 additions and 2 deletions

View File

@ -541,6 +541,9 @@ Bug Fixes
* SOLR-2280: commitWithin ignored for a delete query (Juan Grande via janhoy)
* SOLR-3073: Fixed 'Invalid UUID string' error when having an UUID field as
the unique key and executing a distributed grouping request. (Devon Krisman, Martijn van Groningen)
Other Changes
----------------------
* SOLR-2922: Upgrade commons-io and commons-lang to 2.1 and 2.6, respectively. (koji)

View File

@ -184,7 +184,7 @@ public class TopGroupsResultTransformer implements ShardResultTransformer<List<C
documents.add(document);
Document doc = retrieveDocument(uniqueField, searchGroup.scoreDocs[i].doc);
document.add("id", uniqueField.getType().toObject(doc.getField(uniqueField.getName())));
document.add("id", uniqueField.getType().toExternal(doc.getField(uniqueField.getName())));
if (!Float.isNaN(searchGroup.scoreDocs[i].score)) {
document.add("score", searchGroup.scoreDocs[i].score);
}
@ -237,7 +237,7 @@ public class TopGroupsResultTransformer implements ShardResultTransformer<List<C
documents.add(document);
Document doc = retrieveDocument(uniqueField, scoreDoc.doc);
document.add("id", uniqueField.getType().toObject(doc.getField(uniqueField.getName())));
document.add("id", uniqueField.getType().toExternal(doc.getField(uniqueField.getName())));
if (rb.getGroupingSpec().isNeedScore()) {
document.add("score", scoreDoc.score);
}