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: > https://issues.ap

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 Pu

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 forwarding

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 SolrInputD

Re: API to convert a SolrInputDocument to JSON

2019-01-23 Thread Pushkar Raste
anning to use > > HttpClient and json payload . Is there a convenient API to convert a > > SolrInputDocument to json > > First question: Is this SolrCloud? If so, are both versions running > SolrCloud? > > Second question: What are the old and new Solr versions on the s

Re: API to convert a SolrInputDocument to JSON

2019-01-23 Thread Shawn Heisey
index data. To avoid conflicts with the old and new jars, I am planning to use HttpClient and json payload . Is there a convenient API to convert a SolrInputDocument to json First question: Is this SolrCloud?  If so, are both versions running SolrCloud? Second question: What are the old and

API to convert a SolrInputDocument to JSON

2019-01-23 Thread Pushkar Raste
the old and new jars, I am planning to use HttpClient and json payload . Is there a convenient API to convert a SolrInputDocument to json