简体   繁体   English

Solr和eXist-db集成

[英]Solr and eXist-db integration

We have XML files stored in an eXist-db XML database that are needed to be indexed and stored in Solr . 我们将XML文件存储在eXist-db XML数据库中,需要对它们进行索引并存储在Solr中 The documentation does not mention eXist much. 该文档没有太多提及eXist。 If someone here knows, please help. 如果有人知道,请帮助。 Much appreciated! 非常感激!

We've done something similar but not from eXist DB. 我们已经做了类似的事情,但eXist DB却没有。 You have a couple of options, you can: 您有两种选择,可以:

You can use Solr's URLDataSource to access eXist-db using REST. 您可以使用Solr的URLDataSource通过REST访问eXist-db。 So instead of pushing data to Solr, you use Solr's DataImportHandler to read the data from eXist and mold it as it's going in with XPathEntityProcessor . 因此,而不是将数据推到Solr的,你使用Solr的DataImportHandler因为它与将在以使用存在读取数据,并塑造它XPathEntityProcessor

How to GET xml resources from eXist: http://exist-db.org/exist/devguide_rest.xml 如何从eXist获取xml资源: http//exist-db.org/exist/devguide_rest.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM