Managing the consistency level of write in Cassandra on the client side

How to specify the consistency level of write in Cassandra on the client side.

You can specify the consistency level of write in Cassandra on the client side. Consistency refers to how up-to-date and synchronized a row of data is on all of its replicas. Like Cassandra, DSE Search extends Solr with the cl HTTP parameter that you can send with Solr data to tune consistency. The format of the URL is:
$ curl "http://host:port/solr/keyspace.table/update?cl=ONE"

The cl parameter specifies the consistency level of the write in Cassandra on the client side. The default consistency level for write is QUORUM. To globally change the default on the server side, use the Cassandra drivers and client libraries.

Note: For DSE Search read queries, only CL=ONE is supported.

Setting the consistency level of the write in Cassandra on the client side using SolrJ

SolrJ does not allow setting the consistency level parameter using a Solr update request. To set the consistency level using SolrJ, use this command instead:
HttpSolrServer httpSolrServer = new HttpSolrServer ( url );
httpSolrServer . getInvariantParams (). add ( "cl" , "ALL" );