Take the 2-minute tour ×

In Solr I have two cores. The schema is the same but they have different documents.

Now I would like to have only one document class and initialize Solr for those two cores using the same document class. For example:

Startup.Init("http://localhost:8983/solr/core1"); Startup.Init("http://localhost:8983/solr/core2");

But I get exception saying the key is already registered.

What is the solution?


share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

From the docs:

The built-in container (Startup) is currently limited to access multiple cores/instances with different mapped types.

So you can either contribute to the project to lift this limit, or switch to Windsor or StructureMap.

share|improve this answer
add comment

Your Answer


