I would like to find out if I can insert nested level JSON document directly into cassandra Column family using any of the collection based data type(map,list..etc)? Any examples would be greatly appreciated.
Thanks, HDB
I would like to find out if I can insert nested level JSON document directly into cassandra Column family using any of the collection based data type(map,list..etc)? Any examples would be greatly appreciated.
Thanks, HDB
As you correctly wrote in your comment you can extract 'searchable' fields from the JSON and put them in separate, indexed columns. You can also try to map more fields from the JSON, convert them to a flat object and construct a map, which also can be indexed. More here:
CQL for Cassandra 2.0 & 2.1: Indexing a collection
Please note, however:
Indexes on the keys and values of a map cannot co-exist.
Therefore - as always in Cassandra - you have to design your model based on needed queries.
However, if you are only researching possible solutions, I suggest you taking a look on ElasticSearch, which might be a better choice in this case.