lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Gerlowski <>
Subject Streaming Expressions (/stream) NPE
Date Wed, 23 Dec 2015 01:45:48 GMT
I'll preface this email by saying that I wasn't sure which mailing list it
belonged on.  It might fit on the dev list (since it involves a potential
Solr bug), but maybe the solr-users list is a better choice (since I'm
probably just misusing Solr).  I settled on the solr-users list.  Sorry if
I chose incorrectly.

Moving on...

I've run into a NullPointerException when trying to use the /stream
handler.  I'm not sure whether I'm doing something wrong with the commands
I'm sending to Solr via curl, or if there's an underlying bug causing this

I'm making the stream request:

curl --data-urlencode 'stream=search(gettingstarted, q="*:*",
fl="title,url", sort="_version_ asc", rows="10")'

Solr responds with:


At this point, I assumed that something was wrong with my command, so I
checked the solr-logs for a hint at the problem.  I found:

ERROR - 2015-12-23 01:32:32.535; [c:gettingstarted s:shard2 r:core_node2
x:gettingstarted_shard2_replica2] org.apache.solr.common.SolrException;

Has anyone seen this behavior before?  Is Solr reacting to something amiss
in my request, or is there maybe a bug here?  I'll admit this is my first
attempt at using the /stream API, so I might be getting something wrong
here.  I consulted the reference guide's examples on using the streaming
when coming up with my curl command, but I might've missed something.

Anyways, I'd appreciate any insight that anyone can offer on this.  If it
helps, I've included reproduction steps below.

1.) Download and compile Solr trunk.
2.) Start Solr using one of the examples (bin/solr start -e cloud).  Accept
default values.
3.) Index some docs (bin/post -c gettingstarted -recursive 1 -delay 1)
4.) Do a search to sanity check the ingestion (curl
5.) Make a /stream request for some docs (curl --data-urlencode
'stream=search(gettingstarted, q="*:*", fl="title,url", sort="_version_
asc", rows="10")' "localhost:8983/solr/gettingstarted/stream")

Thanks again for any ideas/help anyone can give.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message