[英]How to install a search engine on cassandra?
I want to search trough cassandra data. 我想搜索槽卡桑德拉数据。 Is cqlsh enough for that?
cqlsh是否足以满足要求? It seems I have to use some search engine to do that.
看来我必须使用一些搜索引擎来做到这一点。 Can I use solr or elastic search?
我可以使用Solr或弹性搜索吗? If yes, how to do?
如果是,该怎么办? If not, what to do?
如果没有,该怎么办? How to do fulltextsearch in cassandra?
如何在Cassandra中进行全文搜索?
Several possibles solution, in random order: 几种可能的解决方案,以随机顺序排列:
use an external search engine like ElasticSearch or Solr, not recommended because you have to manage another cluster of machine and there are also data consistency issues (what if the data is persisted in C* but fails to be indexed by the search engine ? Retry strategy ?) 不建议使用外部搜索引擎,例如ElasticSearch或Solr,因为您必须管理另一台机器集群,并且还存在数据一致性问题(如果数据保留在C *中但无法被搜索引擎索引,该怎么办?重试策略) ?)
use DSE Search, a tight integration (same JVM) between Cassandra and Solr, it's not free though: http://docs.datastax.com/en/datastax_enterprise/4.8/datastax_enterprise/srch/srchOverview.html 使用DSE搜索,这是Cassandra和Solr之间的紧密集成(相同的JVM),但是它不是免费的: http : //docs.datastax.com/en/datastax_enterprise/4.8/datastax_enterprise/srch/srchOverview.html
use a secondary index implementation that provide full text search, 2 candidates 使用提供全文本搜索的二级索引实现,两个候选
Wait for Cassandra 3.4 (estimated release in ~ March/April 2016) that will bring SASI index that provide full text search: https://github.com/xedin/sasi/tree/3.2-readme 等待Cassandra 3.4 (预计于2016年3月/ 2016年4月发布),它将带来提供全文本搜索的SASI索引: https : //github.com/xedin/sasi/tree/3.2-readme
您可以尝试使用cassandra lucene索引 ,我已经在生产环境中使用了很长时间,它确实功能强大,唯一的好处是,如果您不信任开源项目,那么您可以去Datastax Enterprise
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.