SolrJ - How to add a blocked document without child documents

2017-05-13 Thread Jeffery Yuan
Nested documents is quite useful to model structural hierarchy data. Sometimes, we only have parent document which doesn't have child documents yet, we want to add it first, and then later update it: re-add the whole document including the parent documents and its all child documents. But we fou

Re: solr /export handler - behavior during close()

2017-05-13 Thread Susmit Shukla
Thanks Joel Streaming is awesome, just had a huge implementation in my project. I found out a couple more issues with streaming and did local hacks for them, would raise them too. On Sat, May 13, 2017 at 2:09 PM, Joel Bernstein wrote: > Ah, then this is unexpected behavior. Can you open a ticket

Re: solr /export handler - behavior during close()

2017-05-13 Thread Joel Bernstein
Ah, then this is unexpected behavior. Can you open a ticket for this? Joel Bernstein http://joelsolr.blogspot.com/ On Sat, May 13, 2017 at 2:51 PM, Susmit Shukla wrote: > Hi Joel, > > I was using CloudSolrStream for the above test. Below is the call stack. > > at > org.apache.http.impl.io.Chunk

Re: solr /export handler - behavior during close()

2017-05-13 Thread Susmit Shukla
Hi Joel, I was using CloudSolrStream for the above test. Below is the call stack. at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:215) at org.apache.http.impl.io.ChunkedInputStream.close(ChunkedInputStream.java:316) at org.apache.http.impl.execchain.ResponseEntityProxy.

Re: solr /export handler - behavior during close()

2017-05-13 Thread Joel Bernstein
I was just reading the Java docs on the ChunkedInputStream. "Note that this class NEVER closes the underlying stream" In that scenario the /export would indeed continue to send data. I think we can consider this an anti-pattern for the /export handler currently. I would suggest using one of the

Re: solr /export handler - behavior during close()

2017-05-13 Thread Susmit Shukla
Hi Joel, I did not observe that. On calling close() on stream, it cycled through all the hits that /export handler calculated. e.g. with a *:* query and export handler on a 100k document index, I could see the 100kth record printed on the http wire debug log although close was called after reading

d: org.apache.http.ParseException: Invalid content type: - solr distributed search 4.10.4

2017-05-13 Thread Natarajan, Rajeswari
Hi, When doing a distributed query from solr 4.10.4 ,getting below exception org.apache.solr.common.SolrException: org.apache.http.ParseException: Invalid content type: org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:311) org

Re: solr /export handler - behavior during close()

2017-05-13 Thread Joel Bernstein
If the client closes the connection to the export handler then this exception will occur automatically on the server. Joel Bernstein http://joelsolr.blogspot.com/ On Sat, May 13, 2017 at 1:46 AM, Susmit Shukla wrote: > Hi Joel, > > Thanks for the insight. How can this exception be thrown/forced