No i always rebuild the index again and then replace the directories. So its insured that the main index and taxo index are always in sync. Its just that i cant reopen both of them.
On Aug 24, 2017, at 09:11 AM, Jigar Shah <jigaronl...@gmail.com> wrote: Looks like your approach to manage main index and taxonomy index is risky. Main index keeps ordinals of taxonomy index. if you replace directories then taxo reader might have ordinals off-sync from main index. One fact about taxonomy index is on deletes or cleanup of main index, dosen't affect taxonomy index it just keeps building. So swapping taxonomy index is not a good idea in general. On Thu, Aug 24, 2017 at 6:40 AM, Sidhant Aggarwal <sidhan...@me.com> wrote: Hi, To manage my indexes I am using the SearcherTaxonomyManager. But the way in changing the indexes is slightly different. Say i have my main search index in /index directory and my taxonomy index in /taxo directory. So periodically i just replace these two directories with newer indexes. After doing this im calling maybeRefresh() on the SearcherTaxonomyManager. What i notice is that after refreshing when i acquire as searcher and taxo reader pair they are not matching. The searcher is getting refreshed but the taxo reader is not. What could be the reason for it and how do i refresh both? Thanks.