RE: Index database with SolrJ using xml file directly throws an error

2019-03-04 Thread sami
Thanks James, it works! -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

RE: Index database with SolrJ using xml file directly throws an error

2019-03-01 Thread Dyer, James
Instead of dataConfig=data-config.xml, use config=data-config.xml . From: sami Sent: Friday, March 1, 2019 3:05 AM To: solr-user@lucene.apache.org Subject: RE: Index database with SolrJ using xml file directly throws an error Hi James, Thanks for your reply. I am not absolotuely sure I

RE: Index database with SolrJ using xml file directly throws an error

2019-03-01 Thread sami
Hi James, Thanks for your reply. I am not absolotuely sure I understood everything correctly here. I would like to index my database to start with fresh index. I have already done it with DIH execute function. It works absolutely fine

RE: Index database with SolrJ using xml file directly throws an error

2019-02-28 Thread Dyer, James
The parameter "dataConfig" should hold an actual xml document to override the data-config.xml file you store in zookeeper (cloud) or the configuration directory (standalone). Typically you do not use this parameter. Instead, specify the "config" parameter with the filename (eg. data-config.xml

Re: Index database with SolrJ using xml file directly throws an error

2019-02-28 Thread Erick Erickson
That error usually means there are characters (even spaces) at the _beginning_ of the xml file. DIH may be more forgiving on that front. Basically, anything preceding the opening tag may cause this error. Best, Erick On Thu, Feb 28, 2019 at 8:24 AM sami wrote: > > I would like to index my datab