【发布时间】:2016-01-22 03:28:07
【问题描述】:
我们有 2 个查询应该返回相同的结果。但是第二个查询返回的结果要少得多,有时甚至没有结果。这些是 2 个查询:
SELECT * FROM statistics WHERE source = 'toutiao' AND timespan = '3';
SELECT * FROM statistics WHERE source = 'toutiao' AND timespan = '3' AND text = '{ sort: {fields: [{field: "speed", reverse: true}]}}';.
我们使用这个自定义的 cassandra 索引 https://github.com/Stratio/cassandra-lucene-index。
否则你有更好的选择吗?
谢谢你的帮助!
【问题讨论】: