Invalid result length when using the collapse and collapse_order options

Issue #453 new
Álvaro Arranz García
created an issue

The problem seems to be in the Collector.remove method as it is only removing the result form self.items and not from self.docset. The CollapseCollector class uses the remove method when promoting a document due to being selected by the collapse_order option in detriment of a previous selected document. This causes the CollapseCollector to increment the final count depending on the promoted documents.