dxl360 commented on pull request #2080:
URL: https://github.com/apache/lucene-solr/pull/2080#issuecomment-729475817


   Original implementation accumulates `int invertState.length` (number of 
tokens) by term frequency and will overflow if the term frequency is too large. 
Can we increment `length` by 1 for each token when we use custom term 
frequencies to hold arbitrary scoring signals (norms is disabled)? In this way, 
the number of tokens is bounded by 2,147,483,647 and `long 
totalTermFreq/sumTotalTermFreq` won't overflow.


----------------------------------------------------------------
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.

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