问题描述
请帮助我解决此问题。
我正在尝试查询-
select * from port_monitoring_info where first_name like 'ar%' and first_name like '%ad'
我收到此错误:
“ first_name如果包含LIKE,则不能被多个关系限制”
我试图用两个类似的条件过滤一列。它在MySQL中工作。但不能在Cassandra中使用。
我已经为此列进行过SASI索引编制。我正在粘贴索引查询。
CREATE CUSTOM INDEX first_name ON port_monitoring_info (first_name) USING 'org.apache.cassandra.index.sasi.SASIIndex' {
'mode': 'CONTAINS','analyzer_class': 'org.apache.cassandra.index.sasi.analyzer.NonTokenizingAnalyzer','case_sensitive': 'false'
};
在此之后,我可以使用一个类似的条件('%ar','%ar','%ar%)进行过滤。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)