lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Need help with search in multiple indexes
Date Wed, 12 Jun 2013 22:30:02 GMT
Michael's point was that the schema need to be compatible. I mean, if you 
query fields A, B, C, and D, and index1 has fields A and B, while index2 has 
fields C and D, and index3 has fields E and F, what kind of results do you 
think you will get back?!

Whether the schemas must be identical is not absolutely clear, but they at 
least have to include all the fields that queries will use. And... key 
values need to be unique across indexes.

Yes, Solr CAN do it. But to imagine that it would give reasonable query 
results with no coordination between the developers of the separate indexes 
is a little too much.

The bottom line: Somebody needs to coordinate the development of the schemas 
for the separate indexes so that they will be compatible from a query term 
and key value perspective, at a minimum.

-- Jack Krupansky

-----Original Message----- 
From: smanad
Sent: Wednesday, June 12, 2013 5:05 PM
Subject: Re: Need help with search in multiple indexes

Is this a limitation of solr/lucene, should I be considering using other
option like using Elasticsearch (which is also based on lucene)?
But I am sure search in multiple indexes is kind of a common problem.

Also, i as reading this post
in one of the comments it says,
"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! "

Is that what I should be doing? So all the indexing still happens in
separate cores but searching happens in a one single core?

View this message in context:
Sent from the Solr - User mailing list archive at 

View raw message