Recall: error when using ContentStreamDataSource in DIH

2019-08-18 Thread Piyush Kumar Nayak
Piyush Kumar Nayak would like to recall the message, "error when using 
ContentStreamDataSource in DIH".
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Recall: error when using ContentStreamDataSource in DIH

2019-08-18 Thread Piyush Kumar Nayak
Piyush Kumar Nayak would like to recall the message, "error when using 
ContentStreamDataSource in DIH".
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



error when using ContentStreamDataSource in DIH

2019-08-18 Thread Piyush Kumar Nayak
Hi,

I am trying to get data import to work with the data source embedded in the 
stream of the current request. I've enabled the dataImport request handler in 
the solrConfig.xml of the bookClub collection I'm testing this on, and reloaded 
the collection.
But I keep running into the error detailed below.

I'm posting the following POST request (in URL encoded format) using an HTTP 
client:

/solr/bookclub/dataimport?_=1565062909538=on=json=full-import=false=false=true=true=bookclub=








=dataimport



However I'm running into the following in the error log:

1186600 [qtp2028017635-21] INFO  
org.apache.solr.update.processor.LogUpdateProcessorFactory  - [bookclub]  
webapp=/solr path=/dataimport 
params={core=bookclub=true=on=true=dataimport=%0a%0a%0a%0a%0a%0a%0a=false=json=full-import&_=1565062909538=false}{}
 0 13
1186601 [qtp2028017635-21] ERROR 
org.apache.solr.handler.dataimport.DataImporter  - Full Import 
failed:java.lang.RuntimeException: java.lang.RuntimeException: 
org.apache.solr.handler.dataimport.DataImportHandlerException: No stream 
available. The request has no body Processing Document # 1
at 
org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:271)
at 
org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:415)
at 
org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:474)
at 
org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:183)
at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:177)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2503)



Would appreciate any suggestions on what I am doing wrong.

Regards,
Piyush.