Re: API to convert a SolrInputDocument to JSON

2019-01-24 Thread Shawn Heisey
On 1/24/2019 5:06 PM, Pushkar Raste wrote: May be my questions wasn’t clear. By issues I meant will Solrj client for 7.x work to index documents in Solr 4.10 or vice versa. With HttpSolrClient, I would generally expect very good compatibility from 7.x to 4.x. I have done it with no problems.

Re: API to convert a SolrInputDocument to JSON

2019-01-24 Thread Pushkar Raste
May be my questions wasn’t clear. By issues I meant will Solrj client for 7.x work to index documents in Solr 4.10 or vice versa. I am OK to use HttpSolrClient On Wed, Jan 23, 2019 at 9:33 PM Erick Erickson wrote: > Walter: > > Don't know if it helps, but have you looked at: >

Re: API to convert a SolrInputDocument to JSON

2019-01-23 Thread Erick Erickson
Walter: Don't know if it helps, but have you looked at: https://issues.apache.org/jira/browse/SOLR-445 I have _not_ worked with this personally in prod SolrCloud systems, so I can't say much more than it exists. It's only available in Solr 6.1+ Best, Erick On Wed, Jan 23, 2019 at 5:55 PM

Re: API to convert a SolrInputDocument to JSON

2019-01-23 Thread Walter Underwood
Only use CloudSolrClient if you don’t care about the error return from updates. For us, that is a fatal flaw that makes CloudSolrClient unacceptable for prod use. We use HttpSolrClient directed at the load balancer for the cluster and I haven’t noticed any speed issues. I expect that

Re: API to convert a SolrInputDocument to JSON

2019-01-23 Thread Pushkar Raste
You mean I can use SolrJ 7.x for both indexing documents to both Solr 4 and Solr 7 as well as the SolrInputDocument class from Solrj 7.x Wouldn’t there be issues if there are any backwards incompatible changes. On Wed, Jan 23, 2019 at 8:09 PM Shawn Heisey wrote: > On 1/23/2019 5:49 PM, Pushkar

Re: API to convert a SolrInputDocument to JSON

2019-01-23 Thread Shawn Heisey
On 1/23/2019 5:49 PM, Pushkar Raste wrote: Thanks for the quick response Shawn. It is migrating ion from Solr 4.10 master/slave to Solr Cloud 7.x In that case, use SolrJ 7.x, with CloudSolrClient to talk to the new version and HttpSolrClient to talk to the old version. Use the same

Re: API to convert a SolrInputDocument to JSON

2019-01-23 Thread Pushkar Raste
Thanks for the quick response Shawn. It is migrating ion from Solr 4.10 master/slave to Solr Cloud 7.x On Wed, Jan 23, 2019 at 7:41 PM Shawn Heisey wrote: > On 1/23/2019 5:05 PM, Pushkar Raste wrote: > > We are setting up cluster with new version Solr and going to reindex > data. > > However,

Re: API to convert a SolrInputDocument to JSON

2019-01-23 Thread Shawn Heisey
On 1/23/2019 5:05 PM, Pushkar Raste wrote: We are setting up cluster with new version Solr and going to reindex data. However, until all the data is indexed I need keep indexing data in the old cluster as well. We are currently using the Solrj client and constructing SolrInputDocument objects to

API to convert a SolrInputDocument to JSON

2019-01-23 Thread Pushkar Raste
Hi, We are setting up cluster with new version Solr and going to reindex data. However, until all the data is indexed I need keep indexing data in the old cluster as well. We are currently using the Solrj client and constructing SolrInputDocument objects to index data. To avoid conflicts with