You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Grzegorz Sobczyk (JIRA)" <ji...@apache.org> on 2012/10/08 15:06:02 UTC
[jira] [Updated] (SOLR-3920) CloudSolrServer doesn't allow to index
multiple collections with one instance of server
[ https://issues.apache.org/jira/browse/SOLR-3920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grzegorz Sobczyk updated SOLR-3920:
-----------------------------------
Description:
With one instance of CloudSolrServer I can't add documents to multiple collections, for example:
{code}
CloudSolrServer server = new CloudSolrServer(zkHost);
UpdateRequest updateColl1 = new UpdateRequest();
updateColl1.setAction(ACTION.COMMIT, true, true);
updateColl1.process(server);
UpdateRequest updateColl2 = new UpdateRequest();
updateColl2.setAction(ACTION.COMMIT, true, true);
updateColl2.process(server);
{code}
Second update goes to first collection.
was:
With one instance of CloudSolrServer I can't add documents to multiple collections, for example:
{code}
CloudSolrServer server = new CloudSolrServer(zkHost);
UpdateRequest updateColl1 = new UpdateRequest();
updateColl1.setParam("collection", "collection1");
updateColl1.add(document);
updateColl1.process(server);
UpdateRequest updateColl2 = new UpdateRequest();
updateColl2.setParam("collection", "collection2");
updateColl2.add(document);
updateColl2.process(server);
{code}
Second update goes to first collection.
> CloudSolrServer doesn't allow to index multiple collections with one instance of server
> ---------------------------------------------------------------------------------------
>
> Key: SOLR-3920
> URL: https://issues.apache.org/jira/browse/SOLR-3920
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Affects Versions: 4.0-BETA
> Reporter: Grzegorz Sobczyk
>
> With one instance of CloudSolrServer I can't add documents to multiple collections, for example:
> {code}
> CloudSolrServer server = new CloudSolrServer(zkHost);
> UpdateRequest updateColl1 = new UpdateRequest();
> updateColl1.setAction(ACTION.COMMIT, true, true);
> updateColl1.process(server);
> UpdateRequest updateColl2 = new UpdateRequest();
> updateColl2.setAction(ACTION.COMMIT, true, true);
> updateColl2.process(server);
> {code}
> Second update goes to first collection.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org