Skip to content
Browse files

Fixed the map reduce bug

  • Loading branch information...
1 parent 939b301 commit da582f0ad4f93f2e79eb2c44d9dce663844d86f1 vzhabiuk committed Apr 3, 2012
View
2 sensei-core/src/main/java/com/senseidb/search/req/mapred/impl/SenseiMapFunctionWrapper.java
@@ -47,7 +47,7 @@ public final void mapSingleDocument(int docId, BoboIndexReader reader) {
partialDocIds[docIdIndex++] = docId;
ZoieSegmentReader<?> zoieReader = (ZoieSegmentReader<?>)(reader.getInnerReader());
DocIDMapperImpl docIDMapper = (DocIDMapperImpl) zoieReader.getDocIDMaper();
- result.getMapResults().add(mapReduceStrategy.map(docIDMapper.getDocArray(), BUFFER_SIZE, zoieReader.getUIDArray(), new FieldAccessor(facetInfos, reader, docIDMapper)));
+ result.getMapResults().add(mapReduceStrategy.map(partialDocIds, BUFFER_SIZE, zoieReader.getUIDArray(), new FieldAccessor(facetInfos, reader, docIDMapper)));
docIdIndex = 0;
}
}

0 comments on commit da582f0

Please sign in to comment.
Something went wrong with that request. Please try again.