alessandrobenedetti commented on PR #4935: URL: https://github.com/apache/solr/pull/4935#issuecomment-7315312256
> > Thinking a little bit more about this, my opinion: (not a hard position) I believe we could get rid of one of the two parameters (preload, preloadExtensions) and just use one: potentially 'preload' is enough, but it will behave differently: no boolean anymore ALL_FILES -> equivalent to true -> preload those extensions, with priority (if supported) not passing the parameter implies no preload. > > I suspect this can be cleaner and equally effective/readable. What do you think? > > I am a big fan of not having both params, however I went this way for backwards compatibility. I assume that backwards incompatible changes are left for major versions, however if you feel that this is something you would support shipping I am more than happy to re-write this to get rid of the unnecessary boolean param. I have an idea, given that at http side there's no parameter typing and everything is just a string, what if we support: preload=true, preload='ALL FILES' -> they are synonyms, so we should be back compatible preload=<extensions, comma separated with priority order -> new feature with this PR preload=false, missing parameter -> they are synonyms We should be ok with this, avoid too many parameters and be consistent with the history (I remember there was/is facet=on and facet=true, both as possible faceting enablers. let me know what you think! -- 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]
