My guess is that this isn't defined in the solrconfig.xml file for your testcore1/conf..
<requestHandler name="/update/javabin" class="solr.BinaryUpdateRequestHandler" /> If you modeled your testcore1 after the solrconfig.xml files in the example/multicore/core* directories, these are extremely simplified. You might try copying the one from example/solr/conf and removing stuff you don't need..... Best Erick On Mon, Mar 19, 2012 at 3:22 PM, vybe3142 <vybe3...@gmail.com> wrote: > Still No luck.Please help point out what I'm doing wrong. Neither the > (commented out ) first approach (including the content with the request) nor > the 2nd approach seem to work. Nothing seems to be acknowledged at the > tomcat server either. I get the error: > > > Starting SOLR doc indexing client 2 > Exception in thread "main" org.apache.solr.common.SolrException: Not Found > > Not Found > > request: http://localhost:8080/solr/testcore1/update/javabin > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:432) > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:246) > at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > at > com.il.solrclient.SolrJClientIndexDocApp2.main(SolrJClientIndexDocApp2.java:41) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) > > ======================================================== > > > public class SolrJClientIndexDocApp2 { > public static void main(String[] arg) throws Exception, > SolrServerException { > System.out.println("Starting SOLR doc indexing client 2"); > String url = "http://localhost:8080/solr/testcore1"; > CommonsHttpSolrServer server = new CommonsHttpSolrServer(url); > // ContentStreamUpdateRequest req = new > ContentStreamUpdateRequest("/update/extract"); > // req.addFile(new File("C:\\work\\SolrClient\\data\\justin2.txt")); > // //req.setParam(ExtractingParams.EXTRACT_ONLY, "true"); > // > // req.setParam("literal.id", "testid"); > // > // NamedList result = server.request(req); > // server.commit(); > // System.out.println("Result: " + result); > > > server.setRequestWriter(new BinaryRequestWriter()); > UpdateRequest request = new UpdateRequest(); > request.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); > request.setParam("literal.id", "testid1"); > request.setParam("stream.file", > "C:\\work\\SolrClient\\data\\justin2.txt"); > request.process(server); > } > > > } > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Is-there-a-way-for-SOLR-SOLRJ-to-index-files-directly-bypassing-HTTP-streaming-tp3833419p3840068.html > Sent from the Solr - User mailing list archive at Nabble.com.