我的问题通过以下步骤解决:我需要在下面给出:
$DSE_HOME/resources/banana/src/config.js
solr_core: "MY_OWN_CORE"
我仍然可以从 Banana UI 更改或加载另一个内核。
1) 将 https://github.com/LucidWorks/banana 克隆到 $DSE_HOME/resources/banana。
确保您已签出发布分支(应该是默认分支)。
如果你愿意,你可以在此时 rm -rf .git 以节省空间,但它反正不是很大。
2) 编辑资源/banana/src/config.js 并:
将 solr_core 更改为您最常使用的核心(只是为了方便,您可以稍后在每个仪表板的设置中选择不同的核心。
将banana_index 更改为banana.dashboards(可以是任何您想要的,但相应地修改第3 步)。如果您不想将仪表板保存到 solr,则不是绝对必要的。
3) 从 resources/banana/resources/banana-int-solr-4.5/banana-int/conf 发布香蕉模式
使用来自wikipedia demo 的solrconfig.xml,而不是banana 提供的那个
建议调用核心banana.dashboards。
如果您不想将仪表板保存到 solr,则不是绝对必要的。
curl --data-binary @solrconfig.xml -H 'Content-type:text/xml; charset=utf-8' "http://localhost:8983/solr/resource/banana.dashboards/solrconfig.xml"
curl --data-binary @schema.xml -H 'Content-type:text/xml; charset=utf-8' "http://localhost:8983/solr/resource/banana.dashboards/schema.xml"
curl -X POST -H 'Content-type:text/xml; charset=utf-8' "http://localhost:8983/solr/admin/cores?action=CREATE&name=banana.dashboards"
4) 编辑 resources/tomcat/conf/server.xml 并在标签内添加以下内容:
5) 如果您之前启动过 DSE,请删除 resources/tomcat/work。
6) 在 Solr 模式下启动 DSE,然后转到 http://localhost:8983/banana