Hello , dear Solr team. I hope you are doing well.
Would you help me with little question. I need separate data by shards when I
do commit with SolrJ.
For example fields of my collection:
phoneNo— +9985612525 , country- UZ
phoneNo — +3809523636 , country- UKR
all UKR goes to Shard 1 of my collection phones
all others goes to Shard 2.
I can separate them logically with Java , but how can I send them to exact
shard with solrJ commit?
CloudSolrClient solr = new CloudHttp2SolrClient.Builder(urls).build();
solr.setDefaultCollection("phones");
solr.addBeans(phoneList);
solr.commit();
I am sorry. I was looking for an answer in internet network several days before
asking you.
I hope for your help. Thank you so much.
----------------------------------------------------------------------
Why do I need this. Because of adding data to collection with default sharding
and then doing facet search we are getting quantity data from only one shard.
We don’t know bag is it or not. That’s why decide to separate data by shards.
Thanks.
----------------------------------------------------------------------
_______________________________
Kind regadrs
Dmitry Prus
Skype: live:31bd8a868323415e
e-mail: [email protected]