{
TopFieldCollector collector = TopFieldCollector.create(sort, numHits, false, true, false, false);
searcher.search(query, collector);
this.size = collector.getTotalHits();
ScoreDoc[] docs = collector.topDocs().scoreDocs;
for (int i = scoreNodes.size(); i < docs.length; i++)
{
String uuid = reader.document(docs[i].doc).get(FieldNames.UUID);
//NodeId id = new NodeId(UUID.fromString(uuid));
scoreNodes.add(new ScoreNode(uuid, docs[i].score, docs[i].doc));