[ 
https://issues.apache.org/jira/browse/SOLR-7546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14548193#comment-14548193
 ] 

ASF subversion and git services commented on SOLR-7546:
-------------------------------------------------------

Commit 1680047 from [~ehatcher] in branch 'dev/trunk'
[ https://svn.apache.org/r1680047 ]

SOLR-7546: bin/post (and SimplePostTool in -Dauto=yes mode) now sends rather 
than skips files without a known content type, as application/octet-stream, 
provided it still is in the allowed filetypes setting

> SimplePostTool (and thus bin/post) cannot index files with unknown extensions
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-7546
>                 URL: https://issues.apache.org/jira/browse/SOLR-7546
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 5.0, 5.1
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>             Fix For: 5.2
>
>         Attachments: SOLR-7546.patch
>
>
> With Solr 5.1.0, indexing a png file does not work:
> {code}
> $ bin/post -filetypes png -c test2 docs/images/quickstart-query-screen.png 
> java -classpath /Users/erikhatcher/solr-5.1.0/dist/solr-core-5.1.0.jar 
> -Dauto=yes -Dfiletypes=png -Dc=test2 -Ddata=files 
> org.apache.solr.util.SimplePostTool docs/images/quickstart-query-screen.png
> SimplePostTool version 5.0.0
> Posting files to [base] url http://localhost:8983/solr/test2/update...
> Entering auto mode. File endings considered are png
> SimplePostTool: WARNING: Skipping quickstart-query-screen.png. Unsupported 
> file type for auto mode.
> 1 files indexed.
> COMMITting Solr index changes to http://localhost:8983/solr/test2/update...
> Time spent: 0:00:00.039
> {code}
> "png" is not in SimplePostTool's mimeMap data structure and thus is 
> considered unsupported.
> Instead, when in auto mode, SimplePostTool should send anything it encounters 
> (within the `filetypes` constraint) to Solr.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to