Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SolrNet.Cloud does not work if alias is used instead of collection name #600

Open
fguiet opened this issue Jul 22, 2022 · 0 comments
Open

Comments

@fguiet
Copy link

fguiet commented Jul 22, 2022

Hi,

I want to use an alias instead of a collection name with the following code, but I get the error :

Didn't get 'xxx_alias' collection state from zookeeper

If I use the collection name instead of the alias it works as expected

var zookeeperConnectionString = "srvxxx.xxx.fr:2181,srvxxx.xxx.fr:2181,srvxxx.xxx.fr:2181/solr-rec";
var aliasName = "xxx_alias";

await SolrNet.Cloud.Startup.InitAsync<Product>(new SolrCloudStateProvider(zookeeperConnectionString), aliasName);
var solrCloudMode = ServiceLocator.Current.GetInstance<ISolrOperations<Product>>();
var results = solrCloudMode.Query(new SolrQueryByField("id", "SP2514N"));

Is it possible to make this work with an alias and a collection name?

Tx
fred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant