i need to do something like this on apache cassandra,
SELECT * FROM mytable where address = “%indonesia%”
any idea how to do it on cassandra?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Its not supported out of the box. You must maintain your own indices.
I would recommend to use “Supercolumn index” or use a order preserving partitioner (e.g. org.apache.cassandra.dht.OrderPreservingPartioner) in conjunction with range queries.
Take a look at the slides from Benjamin Black’s excellent talk about cassandra and index