sgup432 opened a new pull request, #15818:
URL: https://github.com/apache/lucene/pull/15818

   ### Description
   
   Related issue - https://github.com/apache/lucene/issues/15768
   
   Adds BM25 k3 parameter to the classic query parser for query-side term 
frequency saturation. Duplicate terms in a query string now get their boost 
computed as ((k3+1)*qtf)/(k3+qtf) instead of linear summing, when enabled via 
`parser.setK3(8f)`.
   
   Defaults to -1 (disabled) — fully backward compatible. Saturation is applied 
at parse time in QueryParserBase.getBooleanQuery() so BooleanQuery.rewrite() 
never sees duplicates.
   
   <!--
   If this is your first contribution to Lucene, please make sure you have 
reviewed the contribution guide.
   https://github.com/apache/lucene/blob/main/CONTRIBUTING.md
   -->
   


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

Reply via email to