Virendra Kulkarni
Virendra Kulkarni

Reputation: 11

What is the syntax for DSE Cassandra solr_query for collection types?

I am using DSE Cassandra and wanted to use solr_query for the collection (map, list, set etc.) type columns so wanted the syntax of solr_query for this.

The sample table schema is as follows

CREATE TABLE user_properties ( 
   id UUID, 
   user_id INT,
   properties MAP<text, text>,
   PRIMARY KEY (id)
)

Here how do I do solr_query for the 'properties' column?

Upvotes: 0

Views: 39

Answers (1)

mando222
mando222

Reputation: 543

You will need the schema set up to handle this as a dynamic field. The offical DataStax Doc is here. Once the setup is done you can follow this doc to setup the query.

Upvotes: 0

Related Questions