为什么我的Cassandra Lucene索引不能返回所有结果?

问题描述:

我们有2个查询应该返回相同的结果。但是第二个查询返回的结果要少得多,有时候没有结果。这些是2个查询:为什么我的Cassandra Lucene索引不能返回所有结果?

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

否则你有更好的方法?

谢谢你的帮助!

否则你有更好的方法?

有一个集成卡桑德拉Apache Solr实现称为DSE Search。但显然它不是免费的

除了Stratio Lucene索引实现之外,我知道的唯一其他现有的开源Lucene索引impl是Stargate Core。我不知道它是否成熟或生产准备,他们的github上显得相当空闲(上次提交= 2015年10月)

已在https://github.com/Stratio/cassandra-lucene-index/issues/259解决。

总之,SELECT COUNT子句使用内部寻呼,即not supported before 3.6.0 release

解决方案是或者禁用寻呼或更新为新版本。