有这样一个路径ftp://192.168.10.21/upload/,我想用本地的solr索引该路径下的所有文件。
在data-config.xml中尝试如下配置:
<dataSource name="binary" type="BinFileDataSource" />
<entity name="ftp" processor="TikaEntityProcessor" url="ftp://192.168.10.21/upload/" dataSource="binary" fileName=".*.*" onError="skip" recursive="true">
<field column="title" meta="true" name="fileName"/>
</entity>
在dataimport的过程中会报错,不能成功建立索引,而如果把entity中的url改为某个具体的文件,
如ftp://192.168.10.21/upload/abc.docx,则可以成功索引。
求教各位大神,想要批量索引该目录的所有文件应该如何正确配置