-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Ghost index
PostPosted: Tue Aug 03, 2010 5:09 pm 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Hi,

I have something that I don't understand and I thought I would throw it out here and see if someone can make sense of it.

I had a Lucene index, generated and updated by Hibernate Search. I just emptied my database, added 5 records, purged the index, reindexed and optimized (using Hibernate) using the Massindexer. When I open the index directory with Luke it shows me an index with 5 records. Fine. However, when I query the index with another Lucene based tool, it gives me back the results based on the old index. Sure enough, the index directory contains a larger cfs file that is older than the other files in the index directory. It looks like purging left an artifact for some reason.

Is there a reason and older index file might still linger?


Top
 Profile  
 
 Post subject: Re: Ghost index
PostPosted: Wed Aug 04, 2010 4:37 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
hello,
the fact that two different tools show different results can only mean that one of them is wrong ;)
after a purgeAll() documents are virtually deleted, to really reclaim disk space and remove the no-longer used file segments you might want to optimize() the index.

I've no clue about why this older tool might be able to read the should-have-ignored segment - that's a bug of the other tool, possibly it's using an old incompatible lucene version.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.