Open rbkio opened 5 years ago
Can you try "select JSON a, b from....." Not sure if i am correct.
My intention here is not to get results back as JSON, but to index my string column as json. Checking if something of this sort is possible with Stratio indexes.
Is there a way, using stratio index, I can index a text column in my Cassandra table as a json object and query on the keys with in the json?
For example consider the below table structure :
CREATE TABLE test (pk int PRIMARY KEY, json_text text, lucene text);
My data in this table looks like this :
Can I create any such index :
And do queries like below or anything similar :
I know I can use maps to achieve what I am trying to do here with json text column. But, I have read about and faced issues with huge maps in Cassandra. So, trying to avoid maps and trying to get similar functionality with strings. Any suggestions?