'What are the rules for collection names in SOLR?

What is the naming ruleset for collections that should be followed, or in other words what are the inacceptable characters for a collection name? (for example, in elasticsearch you can't use some symbols ",:? etc..." for naming indices



Solution 1:[1]

Just found an answer in solr docs:

Throughout Solr there are limitations on the allowable characters in collection names. Any characters other than ASCII alphanumeric characters (A-Za-z0-9), hyphen (-) or underscore (_) are replaced with an underscore when calculating the collection name for a category.

Update: Collection names must consist entirely of periods, underscores, hyphens, and alphanumerics as well not start with a hyphen

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1