On 3/31/2011 5:09 AM, Amel Fraisse wrote:
Hi Markus,
Thank you for your response.
In fact, I never used SolrCore before that.
So could you give me an example to ilustrate how I could send a document to
be indexed by both cores?
There is no magic within Solr that would let you issue a single command
and import/post documents to more than one core. The cores are not
linked in any way, even if you have them share config files. You could
have one core replicate to the other, but I don't see much point to
doing that, unless you're testing what will eventually become a
multi-server setup.
Logically speaking, cores are as separate as running Solr on two
different machines, they just happen to live in the same servlet
container on one machine. You must already have some kind of
infrastructure in place to do your indexing, you have to either adjust
that process to do the indexing twice or run two copies of it.
Without cores, the base URL is http://HOST:PORT/solr/ ... with cores, it
becomes http://HOST:PORT/solr/corename/ with corename being the variable
part.
Shawn