2017-01-11 156 views

回答

5

如果你试图用它的长度超过255个字符(或约100 UTF-8编码的字节),你会得到一个错误,像这样的

InvalidIndexNameException[Invalid index name [...], index name is too long, (266 > 255)] 

至于有效字符的名称创建一个索引在索引使用,寻找最好的地方是在their test suite,但基本上索引名

  • 不得包含#\/*?"<>|
  • 不能开始与_-+
  • 必须不为...
  • 必须小写