【问题标题】:Why does my Cassandra Lucene Index not return all results?为什么我的 Cassandra Lucene 索引没有返回所有结果?
【发布时间】: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

否则你有更好的选择吗?

谢谢你的帮助!

【问题讨论】:

    标签: lucene cassandra


    【解决方案1】:

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

    简而言之,SELECT COUNT 子句使用的是内部分页,即not supported before 3.6.0 release

    解决方案是禁用分页或更新到较新的版本。

    【讨论】:

      【解决方案2】:

      否则你有更好的选择吗?

      CassandraApache Solr 的集成称为 DSE Search。但显然它不是免费的

      除了 Stratio Lucene 索引实现,我知道的唯一其他现有的开源 Lucene 索引 impl 是 Stargate Core。我不确定它是成熟的还是生产就绪的,他们的 github 似乎很空闲(最后一次提交 = 2015 年 10 月)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-01-08
        • 2016-04-30
        • 1970-01-01
        • 1970-01-01
        • 2016-02-27
        • 1970-01-01
        相关资源
        最近更新 更多