Streaming expression only returns JSON. That simplified many aspects of the implementation.
Joel Bernstein http://joelsolr.blogspot.com/ On Thu, Sep 27, 2018 at 12:05 PM Dariusz Wojtas <dwoj...@gmail.com> wrote: > Hi, > > I am working with SOLR 7.4.0 and use streaming expressions. > This works nicely, the result is produced in JSON format. > But I need to have it in XML. > > Simplest query to show the problem: > search(myCollection, > zkHost="localhost:9983", > qt="/select", > q="*:*", > fl="id", > sort="id desc") > > Docs say that I should add 'wt=xml' to parameters, which I add to the URL > created by SOLR -> Admin -> Stream console, but the result is not what I > expected > > *Case 1 - Stream query, no 'wt' param added to URL.* > The result js in JSON format, contains 3 rows, each with an id attribute. > The URL, produced by SOLR Admin -> Stream console: > > > http://localhost:8983/solr/myCollection/stream?_=1538060875379&expr=search(myCollection,%0A++zkHost%3D%22localhost:9983%22,%0A++qt%3D%22%2Fselect%22,%0A++q%3D%22*:*%22,%0A++fl%3D%22id%22,%0A++sort%3D%22id+desc%22) > > > *Case 2 - the same URL, added '&wt=xml' at the end* > I get empty XML resultset. > I am not sure if this will be correctly passed to the mailing list, but > literally the result is literally only a root 'response' element. No > contents inside. > <response></response> > > If I add '&explain=true' then the root element in the XML response contains > valid explanation block. Bot no resulting documents. > > Any hint how to bring XML response to life? > > Best regards, > Darek >