Solandra:基于Solr和Cassandra的实时分布式搜索引擎

Solandra,从别名上就能看出来,其实它就是结合了 Solr 与 Cassandra 的实时搜索引擎程序。

其特性如下:

  • 支持Solr的大多数默认特性 (search, faceting, highlights)
  • 数据复制,分片,缓存及压缩这些都由Cassandra来进行
  • Multi-master (任意结点都可供读写)
  • 实时性高,写操作完成即可读到
  • Easily add new SolrCores w/o restart across the cluster 轻松添加及重启结点

这是来自官方的介绍:

Solandra is a real-time distributed search engine built on Apache Solr and Apache Cassandra.

At its core, Solandra is a tight integration of Solr and Cassandra, meaning within a single JVM both Solr and Cassandra are running, and documents are stored and disributed using Cassandra's data model.

Solandra makes managing and dynamically growing Solr simple(r).

For more information please see the wiki

Requirements:

Java >= 1.6

Features:
  • Supports most out-of-the-box Solr functionality (search, faceting, highlights)
  • Replication, sharding, caching, and compaction managed by Cassandra
  • Multi-master (read/write to any node)
  • Writes become available as soon as write succeeds
  • Easily add new SolrCores w/o restart across the cluster
Getting started:

The following will guide you through setting up a single node instance of Solandra.

From the Solandra base directory:

mkdir /tmp/cassandra-data ant cd solandra-app; bin/solandra 

Now that Solandra is running you can run the demo:

cd http://www.cnblogs.com/reuters-demo ./1-download_data.sh ./2-import_data.sh While data is loading, open the file ./website/index.html in your favorite browser. 
Embedding in an existing cassandra distribution

To use an existing Cassandra distribution perform the following steps.

  1. Download your Cassandra distribution
  2. Unzip it the directory of your choice
  3. Run the following solandra ant task to deploy the necessary files into the unzipped dir

    ant -Dcassandra={unzipped dir} cassandra-dist

  4. You can now start Solr within Cassandra by using $CASSANDRA_HOME/bin/solandra command. Cassandra now takes two optional properties: -Dsolandra.context and -Dsolandra.port for the context path and the Jetty port.

Limitations

Solandra uses Solr's built in distributed searching meachanism. Most of its limitations are covered here:

http://wiki.apache.org/solr/DistributedSearch#Distributed_Searching_Limitations

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值