Cqlsh query for wildcard characters

那年仲夏 提交于 2020-01-07 02:57:05

问题


I want a query to perform following operation

List employees name either start or end with A

but i seen on some sites that cassandra do not support wildcard characters is it true or not

i also refered solr_query but cqlsh gives error undefined name solr_query

select * from emp where solr_query='name:A* or name:*A'; where name is coloumn

please help me out with this


回答1:


Full Text Search is only a feature of DataStax Enterprise. So for Apache Cassandra, you have no such facility.

Hope it helps!



来源:https://stackoverflow.com/questions/36721192/cqlsh-query-for-wildcard-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!