我是cassandra的新手,我正在使用DSE 4.1.3,我将获取JSON文档/文件作为提要,我必须将其作为json字符串存储在Cassandra表列之一中,我必须对其进行分析 . 任何人都可以告诉我如何使用jsonTonkenFactory类创建索引DSE-Search(solr) .
最近我开始了解SIREn插件API扩展到solr . SIREn提供了对JSON文档进行索引的示例
<fieldType name="json" class="org.sindice.siren.solr.schema.SirenField"
omitNorms="true"
datatypeConfig="datatypes.xml">
<analyzer type="index">
<tokenizer class="org.sindice.siren.solr.analysis.JsonTokenizerFactory"/>
</analyzer>
</fieldType>
和菲尔兹
<schema name="example" version="1.5">
<fields>
<!-- _version_ and update log are required for SolrCloud -->
<field name="_version_" type="long" indexed="true" stored="true"/>
<!-- The ID of the document -->
<field name="id" type="string" indexed="true" stored="true"/>
<!-- json indexing scheme -->
<field name="json" type="json" indexed="true" stored="false"/>
</fields>
我尝试将SIREn插件Jar文件放入Solr jar文件/ etc / share / dse / solr /
有关更多信息:http://sirendb.com/docs/getting-started/
任何人都可以知道在这种情况下做什么以及如何做到这一点?
谢谢
1 回答
按照文档为Solr放置自定义jar的位置:http://www.datastax.com/documentation/datastax_enterprise/4.0/datastax_enterprise/srch/srchConfLibPath.html
打包安装:/ usr / share / dse
二进制安装:install_location / resources / dse / lib