[
https://issues.apache.org/jira/browse/SOLR-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Koji Sekiguchi updated SOLR-3012:
---------------------------------
Attachment: SOLR-3012.patch
New patch. As the clients of SimplePostTool will be needed recompile due to
this change, I added change note in this patch.
I'll commit tonight if nobody objects.
> SimplePostTool: move getProperty(type) out of postData()
> --------------------------------------------------------
>
> Key: SOLR-3012
> URL: https://issues.apache.org/jira/browse/SOLR-3012
> Project: Solr
> Issue Type: Improvement
> Reporter: Koji Sekiguchi
> Priority: Trivial
> Fix For: 3.6, 4.0
>
> Attachments: SOLR-3012.patch, SOLR-3012.patch
>
>
> Now applications that use SimplePostTool can set Content-type, but it has to
> use type system property.
> {code}
> public void postData(InputStream data, Integer length, OutputStream output) {
>
> final String type = System.getProperty("type", DEFAULT_DATA_TYPE);
> :
> }
> {code}
> If the getProperty() is moved to main() and type can be set via an argument
> of the method, the client applications can be flexible.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]