2017-01-11 154 views

回答

5

如果你試圖用它的長度超過255個字符(或約100 UTF-8編碼的字節),你會得到一個錯誤,像這樣的

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

至於有效字符的名稱創建一個索引在索引使用,尋找最好的地方是在their test suite,但基本上索引名

  • 不得包含#\/*?"<>|
  • 不能開始與_-+
  • 必須不爲...
  • 必須小寫