lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sidhant Aggarwal <sidhan...@me.com>
Subject Re: SearcherTaxonomyManager Refreshing
Date Mon, 28 Aug 2017 06:40:54 GMT
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 <jigaronline@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 <sidhant92@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.


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