Brain2000 commented on issue #10458: URL: https://github.com/apache/lucene/issues/10458#issuecomment-1379477576
@romseygeek Two years later, I pinpointed the source of the issue above. It was getting worse where records were just being omitted without any rhyme or reason. It looks like there's a problem in the TopFieldCollector.java where it calls "compareBottom" without calling "setBottom" first. I believe this is an issue if getLeafComparer( ) is called more than once. I found a workaround is to rescope the variable storing the bottom slot set from calling "setBottom( )", to outside of the LeafFieldComparator class to make it persistent (just like the setTopValue( ) is called outside of the LeafFieldComparator class). Making the bottom slot number persistent *should* also be safe, since the documentation states that setBottom will always be called before compareBottom. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
