It's actually quite easy to index from a DB to Solr via SolrJ, here's an example.
https://lucidworks.com/2012/02/14/indexing-with-solrj/ On Tue, Jul 10, 2018 at 6:06 AM, Shawn Heisey <apa...@elyograg.org> wrote: > On 7/8/2018 9:44 AM, shruti suri wrote: >> >> I am using solr-6.1.0 version. This is the response I am getting. But >> every >> time I run delta import , it fetches same number of records but didn't >> commit them. >> >> <lst name="statusMessages"> >> <str name="Time Elapsed">0:0:42.255</str> >> <str name="Total Requests made to DataSource">2</str> >> <str name="Total Rows Fetched">10208</str> >> <str name="Total Documents Processed">0</str> >> <str name="Total Documents Skipped">0</str> >> <str name="Delta Dump started">2018-07-08 15:37:31</str> >> <str name="Identifying Delta">2018-07-08 15:37:31</str> >> <str name="Deltas Obtained">2018-07-08 15:38:13</str> >> <str name="Building documents">2018-07-08 15:38:13</str> >> <str name="Total Changed Documents">1</str> >> </lst> > > > The DIH response won't tell you what went wrong. It just contains numbers. > > You're going to need to find and examine the file named solr.log on the > server side, look for ERROR and/or WARN log messages after the point where > the import is started. > > If the logfile has been rotated, which happens by default in 6.x if it > reaches 4MB in size, then there may be more parts to the filename beyond > solr.log. Exactly where this file lives is going to depend on how you > installed and started Solr. Default locations can vary, from a relative > path of "server/logs" to an absolute path of "/var/solr/logs/solr.log". If > defaults have been overridden, then I can't tell you where the file will be > without additional information from you. > > Thanks, > Shawn >