Skip to content

Commit

Permalink
Upgrade to cassandra-3.11.5.1 to support index name longer than 48 ch…
Browse files Browse the repository at this point in the history
…aracters
  • Loading branch information
vroyer committed Dec 28, 2019
1 parent 073a1a4 commit 10bd73e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
elasticsearch = 6.2.3.22
elasticsearch_vanilla = 6.2.3
cassandra = 3.11.5
cassandra = 3.11.5.1
lucene = 7.2.1

# optional dependencies
Expand Down
8 changes: 5 additions & 3 deletions docs/elassandra/source/limitations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@ fields are not more stored in lucene by the default elassandra lucene engine nam
Index and type names
--------------------

Because cassandra does not support special caraters in keyspace and table names, Elassandra automatically replaces dots (.) and hyphens (-) characters
Because Cassandra does not support special characters in keyspace and table names, Elassandra automatically replaces dots (.) and hyphens (-) characters
by underscore (_) in index names, and hyphen (-) characters by underscore (_) in type names to create underlying Cassandra keyspaces and tables.

When such a modification occurs for document type names, Elassandra keeps type names translation in memory to correctly translate back table names to documents types.
Obviously, if you have types names like *xxx-xxx* and *xxx_xxx* in the sames underlying keyspace, bijective translation is not possible and you will get some trouble.
Obviously, if you have types names like *xxx-xxx* and *xxx_xxx* in the same underlying keyspace, bijective translation is not possible and you can get some trouble.

Moreover, Cassandra table names are limited to 48 caraters, so Elasticsearch type names are also limited to 48 characters.
Moreover, Cassandra table names are limited to 48 characters, so Elasticsearch type names are also limited to 48 characters. If you need
longer Elasticsearch index names, you can increase this limit with the Cassandra system property ``cassandra.max_name_length``, but be careful
with the maximum filename length on your platform in you data directory.

Column names
------------
Expand Down

0 comments on commit 10bd73e

Please sign in to comment.