I use the solrJ to index a pdf file.
                File file = new File("1.pdf");
                        String urlString = constant.getUrl();
                        StreamingUpdateSolrServer solr = new 
StreamingUpdateSolrServer(
                                        urlString, 1, 1);

                        ContentStreamUpdateRequest up = new 
ContentStreamUpdateRequest(
                                        "/update/extract");
                        up.addFile(file);
                        up.setParam("uprefix", "attr_");
                        up.setParam("fmap.content", "attr_content");
                        up.setParam("literal.id", file.getPath());
                        up.setAction(AbstractUpdateRequest.ACTION.COMMIT, 
false, false);
                        solr.request(up);
                        solr.blockUntilFinished();

When I execute the code, I always get the
error:org.apache.solr.common.SolrException: Internal Server Error.

What's wrong? Could anyone help me?


Thanks very much.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/org-apache-solr-common-SolrException-Internal-Server-Error-tp3842862p3842862.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to