Skip to content
This repository
Browse code

Fixed the map reduce bug

  • Loading branch information...
commit da582f0ad4f93f2e79eb2c44d9dce663844d86f1 1 parent 939b301
vzhabiuk authored
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) {
47 47 partialDocIds[docIdIndex++] = docId;
48 48 ZoieSegmentReader<?> zoieReader = (ZoieSegmentReader<?>)(reader.getInnerReader());
49 49 DocIDMapperImpl docIDMapper = (DocIDMapperImpl) zoieReader.getDocIDMaper();
50   - result.getMapResults().add(mapReduceStrategy.map(docIDMapper.getDocArray(), BUFFER_SIZE, zoieReader.getUIDArray(), new FieldAccessor(facetInfos, reader, docIDMapper)));
  50 + result.getMapResults().add(mapReduceStrategy.map(partialDocIds, BUFFER_SIZE, zoieReader.getUIDArray(), new FieldAccessor(facetInfos, reader, docIDMapper)));
51 51 docIdIndex = 0;
52 52 }
53 53 }

0 comments on commit da582f0

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