我正在探索引用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 core,它运行正常。我想知道是否有可能为物化视图创建solr核心。为物化视图创建核心命令失败,但是可以以任何其他方式吗?
$ dsetool create_core test.alltimehigh generateResources = true
- 这 一个失败
答案 0 :(得分:1)
不幸的是,目前不支持此功能。
The prerequisite for creating a core with automatic resource generation is an existing CQL table
在