【问题标题】:Is it possible to create solr core for materialized views是否可以为物化视图创建 solr 核心
【发布时间】:2016-12-07 16:45:10
【问题描述】:

我正在探索参考this 的物化视图。我创建了一个表和一个物化视图,如下所示。

CREATE TABLE scores (   user TEXT,   game TEXT,   year INT,   month INT,   day INT,   score INT,   PRIMARY KEY (user, game, year, month, day) )



CREATE MATERIALIZED VIEW alltimehigh AS
       SELECT user FROM scores
       WHERE game IS NOT NULL AND score IS NOT NULL AND user IS NOT NULL AND year IS NOT NULL AND month IS NOT NULL AND day IS NOT NULL
       PRIMARY KEY (game, score, user, year, month, day)
       WITH CLUSTERING ORDER BY (score desc)

接下来我需要对此执行 solr 搜索。我成功地为分数表创建了 solr 核心,它工作正常。我想知道是否也可以为物化视图创建 solr 核心。物化视图的创建核心命令失败,但是否可以通过其他方式?

$ dsetool create_core test.alltimehigh generateResources=true
--this 一个失败

【问题讨论】:

    标签: solr cassandra cassandra-3.0


    【解决方案1】:

    很遗憾,目前不支持此功能。

    The prerequisite for creating a core with automatic resource generation is an existing CQL table

    http://docs.datastax.com/en/latest-dse/datastax_enterprise/srch/creatingCoreAutoGenIndexResources.html

    【讨论】:

    • 能否提供参考链接?
    • 修改了回复。
    猜你喜欢
    • 1970-01-01
    • 2017-03-11
    • 2018-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-04
    相关资源
    最近更新 更多