lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jigar Shah <>
Subject Re: SearcherTaxonomyManager Refreshing
Date Thu, 24 Aug 2017 16:11:02 GMT
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 <> 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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message