【发布时间】:2015-05-30 09:19:57
【问题描述】:
在 Cassandra 2.1 中,我们可以通过在列上创建二级索引来查询集合。
cqlsh:play> select * from songs where tags contains 't1';
id | tags | title
--------------------------------------+--------------+-------
e99f8f30-d212-11e4-bc9e-5d1b1922b94d | {'t1', 't2'} | Song1
但我想查询多个值 - 像这样:
select * from songs where tags contains 't1|t2';
这可能吗?
【问题讨论】: