gpt4 book ai didi

solr - Nutch 和 Solr 入门 : where's Solr's conf/directory?

转载 作者:行者123 更新时间:2023-12-01 10:00:01 25 4
gpt4 key购买 nike

我正在尝试开始使用 Nutch (v 1.7) 和 Solr (v 4.3.1)。我正在学习本教程:http://wiki.apache.org/nutch/NutchTutorial

我对 step 6 感到困惑我被告知将 Nutch 模式文件复制到 Solr 的目录之一。

6. Integrate Solr with Nutch

We have both Nutch and Solr installed and setup correctly. And Nutch already created crawl data from the seed URL(s). Below are the steps to delegate searching to Solr for links to be searchable:

cp ${NUTCH_RUNTIME_HOME}/conf/schema.xml ${APACHE_SOLR_HOME}/example/solr/conf/

问题是 ${APACHE_SOLR_HOME}/example/solr/conf/ 不存在。 /example/solr/ 只包含

README.txt  
bin
collection1
solr.xml
zoo.cfg

有人知道怎么办吗?我是否应该创建 ./example/solr/conf 目录并将 Nutch 文件复制到该目录?

非常感谢您的帮助。

最佳答案

由于您使用的是 Solr 4.x,您将在 collection1 中拥有 conf,您应该能够执行以下操作:

cp ${NUTCH_RUNTIME_HOME}/conf/schema.xml ${APACHE_SOLR_HOME}/example/solr/collection1/conf/

关于solr - Nutch 和 Solr 入门 : where's Solr's conf/directory?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17582772/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com