Hi, I think this will work as long as the fields involved in the search are identical. That's probably not the case with your shards, though.
Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Hadoop ecosystem search :: http://search-hadoop.com/ ----- Original Message ---- > From: JavaGuy84 <bbar...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Thu, March 4, 2010 12:49:31 AM > Subject: Re: Confused with Shards multicore search results > > > Thanks a lot for your reply, I will surely try this.. > > I have a requirement to index 2 diff schema's but need to do a search on > both using a single url. > > Is there a way I can have 2 diff schema's / data config file and do a search > on both the indexes using a single URL (like using Shards?) > > Thanks, > Barani > > Lance Norskog-2 wrote: > > > > "different unique id for each schema.xml file." > > > > All cores should have the same schema file with the same unique id > > field and type. > > > > Did you mean that the documents in both cores have a different value > > for the unique id field? > > > > On Wed, Mar 3, 2010 at 6:45 PM, JavaGuy84 wrote: > >> > >> Hi, > >> > >> I finally got shards work with multicore but now I am facing a different > >> issue. > >> > >> I have 2 seperate schema / data config files for each core. I also have > >> different unique id for each schema.xml file. > >> > >> I indexed both the cores and I was able to successfully search > >> independently > >> on each core but when I used Shards, I didnt get what I expected. For ex: > >> > >> http://localhost:8990/solr/core0/select?q=10000565 returned 1 row > >> http://localhost:8990/solr/core1/select?q=10000565 returned 1 row > >> > >> When I tried this > >> > http://localhost:8990/solr/core0/select/?q=10000565&shards=localhost:8990/solr/core0,localhost:8990/solr/core1 > >> > >> It again returned just one row.. but I would think that it should return > >> 2 > >> rows if I have different unique id for each document. > >> > >> Is there any configuration I need to do in order to make it searchable > >> across multiple indexex? any primary / slave configuration? any help > >> would > >> be of great help to me. > >> > >> Thanks a lot in advance. > >> > >> Thanks, > >> Barani > >> -- > >> View this message in context: > >> > http://old.nabble.com/Confused-with-Shards-multicore-search-results-tp27776478p27776478.html > >> Sent from the Solr - User mailing list archive at Nabble.com. > >> > >> > > > > > > > > -- > > Lance Norskog > > goks...@gmail.com > > > > > > -- > View this message in context: > http://old.nabble.com/Confused-with-Shards-multicore-search-results-tp27776478p27777152.html > Sent from the Solr - User mailing list archive at Nabble.com.