Because I have codebase that relay in logic to resolve the name of collections.
With this modification I'm forced to have logic to handled old and new collections when this should be transparent. If I have collection collection-1, collection-2, collection-3 created with a external tool, upgrading to 5.5 now I have collection-1, collection-2, collection-3 and collection_x. A way to resolve this problem can be aliases, but the collection API doesn't list the aliases in LIST command and read the noise CLUSTERSTATE command to fetch collections (and aliases) in cluster with thousand of collections is like no-no. Sorry but without a way to rename old collection to collection_*, the enforce to do not allow hyphens is frustrating as a user. \-- /Yago Riveiro  On Mar 28 2016, at 6:07 pm, Anshum Gupta <ans...@anshumgupta.net> wrote: > I'm not sure why this would be a problem as older collections would continue to work just fine. Do you mean that the restriction doesn't allow you to e.g. add a shard with a valid name, to an older collection ? > > On Mon, Mar 28, 2016 at 9:22 AM, Yago Riveiro <yago.rive...@gmail.com> wrote: > > > This kind of stuff can't be released without a way to rename the current > collections with hyphens (even for 6.0) > > > > \\-- > > > > /Yago Riveiro > > > >  > > On Mar 28 2016, at 5:19 pm, Anshum Gupta &lt;ans...@anshumgupta.net&gt; > wrote: > > > Yes, this was added in 5.5, though I think it shouldn't have been, > specially the hyphens. > The hyphen was added back as part of SOLR-8725 but it would only be would > with 6.0 (and 5.5.1). > > > > > > > On Mon, Mar 28, 2016 at 7:36 AM, Yago Riveiro &lt;yago.rive...@gmail.com > &gt; > wrote: > > > > > > &gt; Hi, > &gt; > &gt; With solr 5.5 I can't create a collection with the name collection-16, > and > &gt; in 5.3.1 I can do it, Why? > &gt; > &gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt; > &gt; &lt;response&gt; > &gt; &lt;lst name="responseHeader"&gt;&lt;int > name="status"&gt;400&lt;/int&gt;&lt;int > &gt; name="QTime"&gt;1&lt;/int&gt;&lt;/lst&gt;&lt;lst > name="error"&gt;&lt;lst > name="metadata"&gt;&lt;str > &gt; name="error- > class"&gt;org.apache.solr.common.SolrException&lt;/str&gt;&am p;lt;str > &gt; > &gt; name="root-error- > > class"&gt;org.apache.solr.common.SolrException&lt;/str&gt;&am p;lt;/lst&gt;&lt;str > &gt; name="msg"&gt;Invalid name: 'collection-16' Identifiers must consist > entirely > &gt; of periods, underscores and alphanumerics&lt;/str&gt;&lt;int > &gt; name="code"&gt;400&lt;/int&gt;&lt;/lst&gt; > &gt; &lt;/response&gt; > &gt; > &gt; > &gt; > &gt; \\----- > &gt; Best regards > &gt; \\-- > &gt; View this message in context: > &gt; <http://lucene.472066.n3.nabble.com/Unable-to-create- collection- > in-5-5-tp4266437.html> > &gt; Sent from the Solr - User mailing list archive at Nabble.com. > &gt; > > > > > > \\-- > Anshum Gupta > > > > \-- Anshum Gupta