Junit error was coming up when suggester results are from second Lucene segment(docbase>0).
Document ID map inside Complex data was populated with key as docbase +docID , but documentToPositionsMap inside phrase scorer is considering only doc id.
Junit was passing mostly since the data will be in one segment and docbase will be zero for this usecase.
Junit error was coming up when suggester results are from second Lucene segment(docbase>0). Document ID map inside Complex data was populated with key as docbase +docID , but documentToPositionsMap inside phrase scorer is considering only doc id. Junit was passing mostly since the data will be in one segment and docbase will be zero for this usecase.
Complex data document map Scorer document to positionmap
Closes #4108