[TR-57] Inverted2DirectMutilReduce leaves the last document one token short Created: 08/Sep/09  Updated: 05/Mar/10  Resolved: 17/Oct/09

Status: Resolved
Project: Terrier Core
Component/s: .structures
Affects Version/s: 3.0
Fix Version/s: 3.0

Type: Bug Priority: Minor
Reporter: Craig Macdonald Assignee: Craig Macdonald
Resolution: Fixed  
Labels: None


 Description   
uk.ac.gla.terrier.tests.HadoopShakespeareEndToEndTest$BasicHadoopShakespeareEndToEndTest
testBasicClassical(uk.ac.gla.terrier.tests.HadoopShakespeareEndToEndTest$BasicHadoopShakespeareEndToEndTest)
junit.framework.AssertionFailedError: Document length is incorrect expected:<1178> but was:<1177>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:277)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:195)
at uk.ac.gla.terrier.tests.ShakespeareEndToEndTest.checkDirectIndex(ShakespeareEndToEndTest.java:233)
at uk.ac.gla.terrier.tests.ShakespeareEndToEndTest.checkIndex(ShakespeareEndToEndTest.java:308)
at uk.ac.gla.terrier.tests.BatchEndToEndTest.doTrecTerrierIndexingRunAndEvaluate(BatchEndToEndTest.java:157)
at uk.ac.gla.terrier.tests.BasicShakespeareEndToEndTest.testBasicClassical(BasicShakespeareEndToEndTest.java:19)


 Comments   
Comment by Craig Macdonald [ 17/Oct/09 ]

Found an off by one issue in BitPostingIndexInputFormat. Shakepeare end-to-end tests now pass.

Generated at Sat Dec 05 09:31:18 GMT 2020 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.