Search multiple SOLR core's and return one result set?

Since Solr 1.3, there's been decent multi-core search capabilities in Solr. Please read the Distributed Search article where it explains how to use the shards parameter to query across multiple cores and return results as one data set.

– Eric Pugh Jan 26 '10 at 17:57 2 Eric - My strategy is to employ a separate core with a merged schema that has a request handler implemented to search multiple shards. That way the client doesn't need to worry about providing the "shards" parameter. – Brian Mansell Jan 26 '10 at 19:47 1 So if I have Core0 with fields documentId,fieldA,fieldB and Core1 with fields documentId,fieldC,fieldD.

Then I create another core, lets say Core3 with fields documentId,fieldA,fieldB,fieldC,fieldD. I will never be importing data into this core? And then create a query handler, that includes the shard parameter.So when I query Core3, it will never really contain indexed data, but because of the shard searching it will fetch the results from the other to cores, and "present" it on the 3rd core?

Thanks for the help! – Rihan Meij Jan 27 '10 at 6:42 Rihan - That's spot on what I'm recommending. – Brian Mansell Jan 28 '10 at 0:34 1 Thanks Brian it worked brilliantly!

– Rihan Meij Jan 28 '10 at 6:11.

There is no way to execute a single query across multiple cores. The Distributed Search mentioned in another answer is to do with shards which is splitting indexes across systems. In fact, multiple cores are really for storing separate and different structures in each and querying multiple cores shouldn't make sense.As some have mentioned in previous comments, you can have an additional core which holds all your fields - though you may have to rename the fields in this new core so that similar named but differently typed fields can both be stored.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions