Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/352.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/0/windows/17.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
Java 如何使用Solr索引整个C驱动器_Java_Windows_Solr_Indexing - Fatal编程技术网

Java 如何使用Solr索引整个C驱动器

Java 如何使用Solr索引整个C驱动器,java,windows,solr,indexing,Java,Windows,Solr,Indexing,最近我开始使用Solr,并在Windows7机器上安装了Solr。我可以使用Solr为电脑上的文件夹编制索引,也可以为网络共享编制索引 我的问题如下: 我需要能够在Windows服务器上索引整个c驱动器。在Windows资源管理器地址栏中使用\\[servername]\c$时,我可以看到内容 但使用以下代码不会为c驱动器编制索引: java -Dauto -Drecursive -jar post.jar \\[Servername]\c$ 我没有收到错误消息,但索引文件为零。它甚至在尝试索

最近我开始使用Solr,并在Windows7机器上安装了Solr。我可以使用
Solr
为电脑上的文件夹编制索引,也可以为网络共享编制索引

我的问题如下: 我需要能够在Windows服务器上索引整个c驱动器。在Windows资源管理器地址栏中使用
\\[servername]\c$
时,我可以看到内容

但使用以下代码不会为c驱动器编制索引:

java -Dauto -Drecursive -jar post.jar \\[Servername]\c$
我没有收到错误消息,但索引文件为零。它甚至在尝试索引本地c驱动器时都不起作用


如何为网络上的Windows服务器的C驱动器编制索引

将物理驱动器映射到[服务器]\Share并在该服务器上运行应用程序。
您还可以在批处理文件中使用
popd
pushd
命令将您放入刚刚映射的驱动器中。

我也遇到了这个问题-这绝对是解决问题的方法。映射已经完成。但是当我尝试索引映射时,没有任何内容被索引。下面是我试图写的帖子:C:\Users\Student\Documents\SolrIndex\solr-4.7.1\solr-4.7.1\example\exampledocs>j ava-Dauto-Drecursive-jar post.jar Y:\SimplePostTool版本1.5将文件发布到基本url。。进入自动模式。考虑的文件结尾包括xml、json、csv、pdf、doc、docx、ppt、pp-tx、xls、xlsx、odt、odp、ods、ott、ots、rtf、htm、html、txt、进入递归模式的日志、最大深度=999、延迟=0s 0索引文件。