Re: Sending file to Solr via HTTP POST

2009-11-05 Thread Jay Hill
Here is a brief example of how to use SolrJ with the ExtractingRequestHandler: ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update/extract"); req.addFile(fileToIndex); req.setParam("literal.id", getId(fileToIndex)); req.setParam("literal

Sending file to Solr via HTTP POST

2009-11-03 Thread Caroline Tan
Hi, >From the Solr wiki on ExtractingRequestHandler tutorial, when it comes to the part to post file to Solr, it always uses the curl command, e.g. curl 'http://localhost:8983/*solr*/update/extract?literal.id=doc1&commit=true' -F myfi...@tutorial.html I have never used curl and i was thinking is