Avoid adding a TotalHitCountCollector to Lucene queries unless absolutely necessary

Description

Having a TopDocsCollector AND a totalHitCountCollector incurs additional cost, not just because there are two object to call "collect" on, but also because several layers of wrapping will be added to collectors when there are more than one collector.

Tested with an Infinispan performance test:

  • Without TotalHitCountCollector:

  • With TotalHitCountCollector:

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

Created September 21, 2020 at 1:28 PM
Updated October 8, 2020 at 12:30 PM
Resolved September 23, 2020 at 11:18 AM