我有一个像这样的表结构
创建表文件(id 文本主键、fname 文本、mimetype 文本、isdir 布尔值、位置文本);
在文件(位置)上创建索引 file_location;
表中内容如下:
插入文件(id,fname,mimetype,isdir,位置)值('1','f1','pdf',False,'c:/ test /');
插入文件 (id, fname, mimetype, isdir, location) 值('2', 'f2', 'pdf', False, 'c:/test/');
插入文件 (id, fname, mimetype, isdir, location) 值('3', 'f3', 'pdf', False, 'c:/test/');
插入文件(id,fname,mimetype,isdir,位置)值('4','f4','pdf',False,'c:/test/a/');
我想列出所有符合以下条件的 id:
从文件中选择 id,位置如“%/test/%”;
我知道 CQL 不支持 like,任何人都可以建议我应该对此类通配符搜索查询采取的方法吗?请建议。
DataStax Enterprise 向 Cassandra 添加了全文搜索:http://www.datastax.com/docs/datastax_enterprise3.1/solutions/search_index http://www.datastax.com/docs/datastax_enterprise3.1/solutions/search_index
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)