qidaye commented on PR #17054:
URL: https://github.com/apache/lucene/pull/17054#issuecomment-7089290431

   I plan to reject maxConn < 2 in all writable HNSW format constructors. 
   But there is a problem. maxConn=1 has always been allowed, so existing 
indexes may contain graphs with M=1. After an upgrade, such indexes will reuse 
the old graph during merge and carry over its M=1, regardless of the M 
configured in the new writer. 
   
   I'm considering two options:
   1. reject new writes and keep the 1/e handling in the rebalance for the old 
graphs.
   2. also forbid using M<2 in builder, and  rebuild graphs instead of reusing 
the old ones.  
   
   I prefer the 1.
   Can you give me some advice? @msokolov 
   
   And should this CHANGES be treated as bug fix or API change?


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