lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Solrj ContentStreamUpdateRequest Slow
Date Mon, 23 Aug 2010 22:36:33 GMT

:     ContentStreamUpdateRequest req = new
: ContentStreamUpdateRequest("/update/extract");
: System.out.println("setting params...");
:     req.setParam("stream.url", fileName);
:     req.setParam("literal.content_id", solrId);

ContentStreamUpdateRequest exists so that you can stream content directly 
from the client to the server -- you aren't doing that, you are asking the 
server t ogo fetch the stream.url itself.

The NullPointerException happens because you've never called 
ContentStreamUpdateRequest.addFile or 
ContentStreamUpdateRequest.addContentStream so it gets into a state where 
it doesn't know what it's doing (admitedely the error message is less then 

If you just use a plain old regular "UpdateRequest" (or even a 
"QueryRequest") instead, your code works as written.


--  ...  October 7-8, Boston      ...  Stump The Chump!

View raw message