[英]Not able to post Excel or Word Files in Solr 6.3.0, where to change the configuration
While trying to post any Excel/Word/Pdf files, solr responds with 尝试发布任何Excel / Word / Pdf文件时,solr响应为
Unsupported ContentType: application/vnd.ms-excel Not in: [application/xml, application/csv, application/json, text/json, text/csv, text/xml, application/javabin]
What needs to be changed and where 需要更改的内容以及在何处
Use -Dauto
while you posting files. 发布文件时使用
-Dauto
。
Example 例
java -Dauto -Dc=gettingstarted -jar post.jar *
-Dauto
supports all documents which apache tika can hanlde(pdf,html,etc..) -Dauto
支持apache tika可以处理的所有文档(pdf,html等。)
Find out more using help(-h) 使用帮助了解更多信息(-h)
Java -jar post.jar -h
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.