mayya-sharipova commented on PR #14154:
URL: https://github.com/apache/lucene/pull/14154#issuecomment-2651354310

   @jpountz Thank you for your feedback. I am happy to discuss alternatives. 
   
   Isn't the whole idea of ReuseStrategy to decide if an analyzer's components 
can be reused or should be recreated/swapped?  
   
   > I worry that this is just one place where the assumption that analysis 
components are immutable is violated, and that there are other ones that 
haven't been found yet. I'm curious if other alternatives were considered, e.g. 
atomically swapping the analyzer or updating the behavior of analysis 
components without needing to replace them.
   
   Yes, indeed in this PR analysis components are immutable, they are 
recreated/ swapped in an analyzer
   
   ----
   
   For the context: this PR came from a need to have an updateable synonyms 
analyzer when it is wrapped  in another analyzer, for example 
CompletionAnalyzer. In Elasticsearch an analyzer with updateable synonyms has a 
custom ReuseStrategy that creates a new components when synonyms are updated. 
We now want CompletionAnalyzer also update its components when its wrapped 
synonyms analyzer updated synonyms.


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