Search code examples
databasesolrnosqlspring-data

What are the rules for collection names in SOLR?


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


Solution

  • 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