简体   繁体   English

Solr 9 Windows:如何用名称中的空格索引目录

[英]Solr 9 Windows: how to index directory with spaces in name

I'm using post.jar (on Windows 10) to index directories.我正在使用 post.jar (在 Windows 10 上)来索引目录。 I cannot figure out the syntax to use for directories with spaces in their names.我无法弄清楚用于名称中带有空格的目录的语法。 Here is an example (using single quotes):这是一个示例(使用单引号):

X:\yada\solr-9.0.0> java -jar -Dc=cd1 -Dauto -Drecursive=5 .\post.jar 'P:\projects\blah\spaces in this dir name\*'

I've tried escaping the spaces, putting the path inside double and single quotes, backticks.我试过 escaping 空格,将路径放在双引号和单引号内,反引号。

Thanks Mark.谢谢马克。 It turns out the directory was a shortcut.原来目录是一个快捷方式。 Testing with other shortcuts to non_space_directories confirmed.已确认使用其他指向 non_space_directories 的快捷方式进行的测试。

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

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