Apache Cassandra与Apache Solr的集成

Flo*_*Flo 7 solr cassandra

我熟悉MSSQL数据库上的Apache Solr,但现在我正在寻找如何将Apache Solr与Apache Cassandra集成而不是我的MSSQL数据库.

我正在寻找教程和设置此集成的第一步,但找不到任何有用的东西.

使用MSSQLDB,我的data-config看起来像这样:

<dataConfig>
<dataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://localhost:1433;databaseName=test" user="sa" password="74667fghbjj3" />
<document name="cameras">
    <entity name="camera" query="select * from cameras WHERE isapproved='true'"
    deltaImportQuery="select * from cameras WHERE updatedate &lt; getdate() AND isapproved='true' AND id='${dataimporter.delta.id}'"
    deltaQuery="select id from cameras where isapproved='true' AND updatedate &gt; '${dataimporter.last_index_time}'">              
        <field name="id" column="ID" />
        <field name="title" column="TITLE" />
        <field name="friendlyurl" column="FRIENDLYURL" />           

        <entity name="camera_country" query="select countryid from cameras where id=${camera.id}">
            <entity name="countries" query="select title_nl as country_nl,title_en as country_en from countries where id = ${camera_country.countryid}">
            </entity>
        </entity>
    </entity>
</document>
</dataConfig>
Run Code Online (Sandbox Code Playgroud)

但是,如何使用Cassandra作为我的NOSQL数据库呢?

谢谢!

小智 5

Solandra是Jake Luciani的一个开源爱好项目.他讲述了索兰德拉的历史,并领导了下一代索兰德拉DSE搜索的发展.他在这篇博文中谈到了这一点.这是我所知道的最好的方法,使用与Cassandra的常规Solr 4接口来复制数据并提供容错等功能.您可以下载它免费试用,DataStax确实为初创公司提供特殊价格,以及它的价值.只是DataStax必须证明在其中投入资源是合理的.有关它的更多详细信息,请参阅文档.免责声明,我为DataStax工作.