You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Frank Ralf <we...@nakohdo.de> on 2015/06/14 19:01:57 UTC

Re: file index format

Hi,

I face the same problem when trying to index DITA XML files. These are XML
files but have the file extension .dita which Solr ignores.

According to java -jar post.jar -h only the following file extensions are
supported: 

 /-Dfiletypes=<type>[,<type>,...]
 
(default=xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log)/

As a workaround I can change the file extension to .xml but would prefer not
to be forced to do so. As Solr also checks the MIME type the list of allowed
file extensions shouldn't be that rigid.

http://stackoverflow.com/questions/30763161/solr-post-files-with-no-extention/30769088
suggests a simple bash script with a for loop that submits each file
individually and works regardless of the file extension as a workaround.

Kind regards,
Frank





--
View this message in context: http://lucene.472066.n3.nabble.com/file-index-format-tp4199892p4211693.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: file index format

Posted by Frank Ralf <we...@nakohdo.de>.
This issue has also already been discussed in the Tika issue queue:

"Add method get file extension from MimeTypes"
https://issues.apache.org/jira/browse/TIKA-538

And
http://svn.apache.org/repos/asf/tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
does support DITA XML file types.

I will investigate further and report back.

Frank



--
View this message in context: http://lucene.472066.n3.nabble.com/file-index-format-tp4199892p4211738.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: file index format

Posted by Frank Ralf <we...@nakohdo.de>.
Looks like this has been solved recently in the current dev branch:

"SimplePostTool (and thus bin/post) cannot index files with unknown
extensions"
https://issues.apache.org/jira/browse/SOLR-7546



--
View this message in context: http://lucene.472066.n3.nabble.com/file-index-format-tp4199892p4211699.html
Sent from the Solr - User mailing list archive at Nabble.com.