jpountz commented on PR #964:
URL: https://github.com/apache/lucene/pull/964#issuecomment-1163587114

   Thanks for looking @gsmiller ! This helps leverage `TotalHitCountCollector` 
internally from `IndexSearcher#count`, but if users wish to use 
`IndexSearcher#search(Query, Collector)`, how can they get access to the 
`Weight` so that they can pass it to the `TotalHitCountCollector` constructor? 
As far as I can tell, the only option would be for users to create a separate 
Weight manually?


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to