[ https://issues.apache.org/jira/browse/SOLR-5219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dawid Weiss updated SOLR-5219: ------------------------------ Description: This is currently quite messy: the user needs to explicitly name one algorithm as the "default", the code of processing that is a bit hairy. The new logic is: 1) if there is a clustering algorithm named 'default' it becomes the default one. 2) if there's any algorithm defined at all, the first one in declaration order becomes the default one. There is no need to declare clustering.algorithm parameter for the clustering component, unless the default from the above procedure needs to be altered. This is a fully backwards compatible improvement that allows one to declare more than one algorithm and give them sensible names. was: This is currently quite messy: the user needs to explicitly name the 'default' algorithm. The logic should be: 1) if there's only one algorithm, it becomes the default, 2) if there's more than one algorithm, the first one becomes the default one. 3) for back-compat, if there is an algorithm called 'default', it does become the default one. The code will simplify a great deal too. > Rewritten selection of the default search and document clustering algorithms > ---------------------------------------------------------------------------- > > Key: SOLR-5219 > URL: https://issues.apache.org/jira/browse/SOLR-5219 > Project: Solr > Issue Type: Improvement > Reporter: Dawid Weiss > Assignee: Dawid Weiss > Priority: Minor > Fix For: 4.5, 5.0 > > > This is currently quite messy: the user needs to explicitly name one > algorithm as the "default", the code of processing that is a bit hairy. > The new logic is: > 1) if there is a clustering algorithm named 'default' it becomes the default > one. > 2) if there's any algorithm defined at all, the first one in declaration > order becomes the default one. > There is no need to declare clustering.algorithm parameter for the clustering > component, unless the default from the above procedure needs to be altered. > This is a fully backwards compatible improvement that allows one to declare > more than one algorithm and give them sensible names. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org