首页 文章

需要为包含JSON / XML字符串的列创建索引 . 如何在solr中使用jsonTokenizerFactory在cassandra中进行分析

提问于
浏览
0

我是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 回答

相关问题