我熟悉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 < getdate() AND isapproved='true' AND id='${dataimporter.delta.id}'"
deltaQuery="select id from cameras where isapproved='true' AND updatedate > '${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数据库呢?
谢谢!