lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rosen Marinov" <ros...@sirma.bg>
Subject Re: Delete document don't work
Date Sun, 10 Nov 2002 12:51:19 GMT
I forget to say that my Field is not Keyword
it is UnIndexed field and i want to know
how can i delete document from index with
this UnUndexed field?


----- Original Message ----- 
From: "Rosen Marinov" <rosenm@sirma.bg>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>
Sent: Sunday, November 10, 2002 2:32 PM
Subject: Delete document don't work


Hello,

I have the problem with deleting documents from index.

please see the my java code, i have in my index document
with field "ID" and value "12345", but this code don't
delete the document from my index.

Please tell me possible reason?

I haven't other opening readers, writers or searches on this index.

10x
--------------------------- Java Code ----------------------


IndexReader reader = IndexReader.open( path );

Term term = new Term("ID", "12345");

reader.delete(term);

reader.close();



--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message