lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederic Esnault <>
Subject Question about sending solrconfig and schema files with java
Date Fri, 20 Jun 2014 11:16:07 GMT
I know how to send solrconfig.xml and schema.xml files to SolR using curl
But my problem is that i want to send them with java, and i can't find a
way to do so.
I used HttpComponentsand got http headers before the file begins, which SAX
parser does not like at all.

What is the best way to send this files from a java program ?

What i have once i sent the file is something like that :

solr_admin solr_resources resource_value��--9NDJNu2AW4jtIyX6ggQAgEqI3FXp3JpDZ6
Content-Disposition: form-data; name="solrconfig.xml"; filename="solrconfig.xml"
Content-Type: application/xml; charset=ISO-8859-1
Content-Transfer-Encoding:** binary*
<config><!-- In all configuration below, a prefix of "solr." for class names
     is an alias that causes solr to search appropriate packages,
     including org.apache.solr.(search|update|request|core|analysis)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message