Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用solr post工具为xml编制索引?_Xml_Solr - Fatal编程技术网

如何使用solr post工具为xml编制索引?

如何使用solr post工具为xml编制索引?,xml,solr,Xml,Solr,我尝试执行下面的命令行 java-Dc=films-jarexampledocs/post.jar films/films.xml 但是我犯了这个错误 SimplePostTool:警告:Solr为url返回了一个错误#401(需要身份验证): SimplePostTool:FATAL:看起来Solr已经安全了,不会让我们进去。在'-u'参数中尝试使用其他用户 请问我该怎么修 我还想为xlsx文件编制索引。我如何才能做到这一点?您可以传递用户名和密码 java -Dbasicauth=user:

我尝试执行下面的命令行

java-Dc=films-jarexampledocs/post.jar films/films.xml

但是我犯了这个错误

SimplePostTool:警告:Solr为url返回了一个错误#401(需要身份验证): SimplePostTool:FATAL:看起来Solr已经安全了,不会让我们进去。在'-u'参数中尝试使用其他用户 请问我该怎么修


我还想为xlsx文件编制索引。我如何才能做到这一点?

您可以传递用户名和密码

java -Dbasicauth=user:password -Dtype=text/json -Dc=collectionname -jar post.jar D:\data\data.json

您可以传递用户名和密码

java -Dbasicauth=user:password -Dtype=text/json -Dc=collectionname -jar post.jar D:\data\data.json

看起来您的Solr安装需要身份验证。浏览到
http://localhost:8983/solr/#/films
?如果是这样,您需要通过包含的错误消息中指示的
-u
参数将这些凭据传递给Solr。看起来您的Solr安装需要身份验证。浏览到
http://localhost:8983/solr/#/films
?如果是这样,您需要通过
-u
参数将这些凭证传递给Solr,如您包含的错误消息中所示。