lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ephraim Ofir" <>
Subject RE: Corename after Swap in MultiCore
Date Sun, 07 Nov 2010 16:11:05 GMT
Do you mean has the wrong value after the swap? You
swapped doc-temp so now it's doc and is still doc-temp?
This completely contradicts my experience, what version of solr are you
Why use postCommit? You're running the risk of performing a swap when
you don't mean to.  Are you using DIH? If so, I'd go with querying the
status of the import until it's done and then performing the swap.

Ephraim Ofir

-----Original Message-----
From: sivaram [] 
Sent: Wednesday, November 03, 2010 4:46 PM
Subject: Corename after Swap in MultiCore

Hi everyone,

Long question but please hold on. I'm using a multicore Solr instance to
index different documents from different sources( around 4) and I'm
using a
common config for all the cores. So, for each source I have core and
core like 'doc' and 'doc-temp'. So, everytime I want to get new data, I
dataimport to the temp core and then swap the cores. For swaping I'm
the postCommit event listener to make sure the swap is done after the
completing commit. 

After the first swap when I use on the doc-temp it is
returning doc as its name ( because the commit is done on the doc's data
after the first swap ). How do I get the core name of the doc-temp here
order to swap again with .swap ? 

I'm stuck here. Please help me. Also if anyone know for sure if a
is being done on a core then the next swap query will be executed only
this dataimport is finished?

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

View raw message