If i have solr up and running and do something like this:
query.set("shards", "localhost:8080/solr/core0,localhost: 8080/solr/core1");
I will get the results from both cores, obviously...

But is there a way to do this without using shards and accessing the cores through http? I presume it would/should be possible to do the same thing directly against the cores, but my question is really if this has been implemented already / is it possible?


not implemented...

Check line 384 of SearchHandler.java
  SolrServer server = new CommonsHttpSolrServer(url, client);

it defaults to CommonsHttpSolrServer.

This could easily change to EmbeddedSolrServer, but i'm not sure it is a very common usecase...

why would you have multiple shards on the same machine?

ryan


Reply via email to