如何在 scylladb 和 cassandra 中创建全文/高级文本搜索?
How to create full / advance text search in scylladb and cassandra?
我已经在我的 centos os 中安装了最新版本的 scylladb 和 cassandra。我试过在 select 查询中允许过滤,但我不需要它,我想在其中进行高级搜索或全文搜索,我有 google 但找不到任何解决方案,当我创建索引并尝试 运行 select 查询它给出错误 "server error: not implemented: indexes"。
有人可以帮我吗?
如果您使用的是 cassandra 3.4 或更高版本,那么您可以使用 SSTable Attached Secondary Index (SASI)。
Using CQL, SSTable attached secondary indexes (SASI) can be created on a non-collection column defined in a table. Secondary indexes are used to query a table that uses a column that is not normally queryable, such as a non primary key column. SASI implements three types of indexes, PREFIX, CONTAINS, and SPARSE.
了解更多:https://docs.datastax.com/en/dse/5.1/cql/cql/cql_using/useSASIIndex.html
或者您可以使用 Apache Solr or Elastic Search。因此,每当创建、更新或删除任何可搜索数据时,您都会从 solr 或弹性搜索中索引或删除数据。
Scylla 正在积极致力于启用二级索引。期望有一个 2.2 版本的工作解决方案
http://www.scylladb.com/product/technology/scylla-roadmap/
目前Scylla要支持全文搜索,需要Solr或Elasticsearch等辅助解决方案,下面link说明如何结合Scylla和Elasticsearch
http://www.scylladb.com/2017/08/03/data-analytics-elastic-scylla/
我已经在我的 centos os 中安装了最新版本的 scylladb 和 cassandra。我试过在 select 查询中允许过滤,但我不需要它,我想在其中进行高级搜索或全文搜索,我有 google 但找不到任何解决方案,当我创建索引并尝试 运行 select 查询它给出错误 "server error: not implemented: indexes"。 有人可以帮我吗?
如果您使用的是 cassandra 3.4 或更高版本,那么您可以使用 SSTable Attached Secondary Index (SASI)。
Using CQL, SSTable attached secondary indexes (SASI) can be created on a non-collection column defined in a table. Secondary indexes are used to query a table that uses a column that is not normally queryable, such as a non primary key column. SASI implements three types of indexes, PREFIX, CONTAINS, and SPARSE.
了解更多:https://docs.datastax.com/en/dse/5.1/cql/cql/cql_using/useSASIIndex.html
或者您可以使用 Apache Solr or Elastic Search。因此,每当创建、更新或删除任何可搜索数据时,您都会从 solr 或弹性搜索中索引或删除数据。
Scylla 正在积极致力于启用二级索引。期望有一个 2.2 版本的工作解决方案 http://www.scylladb.com/product/technology/scylla-roadmap/
目前Scylla要支持全文搜索,需要Solr或Elasticsearch等辅助解决方案,下面link说明如何结合Scylla和Elasticsearch
http://www.scylladb.com/2017/08/03/data-analytics-elastic-scylla/