在Apache Solr中索引文件夹及其子文件夹中包含的所有文件 [英] Indexing in Apache Solr of all files contained in a folder and its subfolders

查看:50
本文介绍了在Apache Solr中索引文件夹及其子文件夹中包含的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Apache Solr索引一个文件夹(父)及其子文件夹的所有文件,其中包含所有类型的文件:XML,.json,.pdf,.doc等.

Can Apache Solr be used to index all the files of a folder(Parent) and its subfolders, containing files of all types: XML, .json, .pdf,.doc etc..?

推荐答案

可以使用发布工具

java -Dc = test-递归-Dauto -jar post.jar文件夹

-Dauto用于solr可以处理的所有文件类型

-Dauto for all file types that solr can handle

-Dc指定集合名称

-以递归方式处理文件夹是否在子文件夹中包含文件.

-Drecursive to handle if folder has files inside subfolder.

如果文件夹包含子文件夹,它将在子文件夹中索引文件

if folder has has subfolder it will index files inside subfolder

这篇关于在Apache Solr中索引文件夹及其子文件夹中包含的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆