AnsweredAssumed Answered

SolrException

Question asked by mrgrechkinn on Dec 21, 2011
Latest reply on Feb 15, 2012 by mrgrechkinn
Hello,

I create Java webscript, and use SolrServer.

UpdateRequest request = new UpdateRequest();
SolrInputDocument doc= new SolrInputDocument();
doc.addField("ID", "LEAF-1341");
doc.addField("{http://mynamespace.com/0.1}testF", "test");
request.add(doc);
try {
        solrServer.request(request);
        solrServer.commit();
} catch (Exception e) {
        throw new RuntimeException(e);
}

But it fall down always  with status message.

"org.apache.solr.common.SolrException: Bad Request\n\nBad Request\n\nrequest: https:\/\/localhost:8443\/solr\/update?wt=javabin&version=1"
,"org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)"

What am I doing wrong?

Regards,
Eugene

Outcomes