Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User
Deleted document terms
 

Index | Next | Previous | View Flat


jdp2000 at gmail

Aug 26, 2008, 12:56 AM


Views: 271
Permalink
Deleted document terms

Hi,

I just discovered some strange behaviour with deleted documents. I do a
search for documents with a certain query and delete one using
IndexWriter.deleteDocuments(Term) using a key for the term. Then I repeat
the search and the document is still there because I use a custom
HitCollector which does not check IndexReader.isDeleted(int). That is all
expected.

But when I try to show the deleted document by searching by key using the
same term it was deleted with, it is not found. So it seems that the term
(id:MYKEY) is removed from the index.

So I was surprised that the term for the id was removed but not the other
terms for document.

But I guess this makes sense and I just need to check
IndexReader.isDeleted()

Does this all sound like correct behaviour?

Thanks,

John
--
View this message in context: http://www.nabble.com/Deleted-document-terms-tp19157027p19157027.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
For additional commands, e-mail: java-user-help[at]lucene.apache.org

Subject User Time
Deleted document terms jdp2000 at gmail Aug 26, 2008, 12:56 AM
    Re: Deleted document terms lucene at mikemccandless Aug 26, 2008, 1:45 AM
    Re: Deleted document terms kalanir at gmail Aug 26, 2008, 2:16 AM
    Re: Deleted document terms jdp2000 at gmail Aug 26, 2008, 2:45 AM
        Re: Deleted document terms lucene at mikemccandless Aug 26, 2008, 3:54 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.