i need to do something like this on apache cassandra, SELECT * FROM mytable where address = "%indonesia%"
any idea how to do it on cassandra?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With