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

  

![](https://link.nylas.com/open/m7fkqw0yim04itb62itnp7r9/ec42b9ccdd9a4285b0ff0
8cf203af0f2)

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  
>  
>  
>  
> ![](  
>
https://link.nylas.com/open/m7fkqw0yim04itb62itnp7r9/d6c3ba33ed5f4ac8af3b2  
> 9c07e2c5e91)  
>  
> On Mar 28 2016, at 5:19 pm, Anshum Gupta
<ans...@anshumgupta.net>  
> 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
<yago.rive...@gmail.com  
> >  
> wrote:  
>  
> >  
>  
> > > Hi,  
> >  
> > With solr 5.5 I can't create a collection with the name
collection-16,  
> and  
> > in 5.3.1 I can do it, Why?  
> >  
> > <?xml version="1.0" encoding="UTF-8"?>  
> > <response>  
> > <lst name="responseHeader"><int  
> name="status">400</int><int  
> >
name="QTime">1</int></lst><lst  
> name="error"><lst  
> name="metadata"><str  
> > name="error-  
> class">org.apache.solr.common.SolrException</str>&am
p;lt;str  
> >  
> > name="root-error-  
>  
> class">org.apache.solr.common.SolrException</str>&am
p;lt;/lst><str  
> > name="msg">Invalid name: 'collection-16' Identifiers must
consist  
> entirely  
> > of periods, underscores and
alphanumerics</str><int  
> > name="code">400</int></lst>  
> > </response>  
> >  
> >  
> >  
> > \\-----  
> > Best regards  
> > \\--  
> > View this message in context:  
> > <http://lucene.472066.n3.nabble.com/Unable-to-create-
collection-  
> in-5-5-tp4266437.html>  
> > Sent from the Solr - User mailing list archive at Nabble.com.  
> >  
>  
> >  
>  
> > \\--  
> Anshum Gupta  
>  
>

>

>  
\--  
Anshum Gupta

Reply via email to