lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Outar" <>
Subject RE: deleting a document with a term
Date Thu, 15 May 2003 13:45:46 GMT
Could it be a case issue? Try converting to lowercase, when you query the
analyzer takes care of that for you.


-----Original Message-----
From: D-Fuse []
Sent: Thursday, May 15, 2003 9:40 AM
Subject: deleting a document with a term

I succesfully made an index of the content of a database, the document is
constructed as following:

Document doc = new Document();
doc.add(Field.Text("VOORNAAM", voornaam));
doc.add(Field.Text("FAMILIENAAM", familienaam));
doc.add(Field.UnIndexed("ID", Integer.toString(id)));
doc.add(Field.UnStored("FREETEXT", strfreetext));

Searching goes good, but when I try to delete a document as following:

Term term = new Term("ID", Integer.toString(id));
int numberDeleted = indexReader.delete(term);

the document is never deleted, numberDeleted is always zero. I checked the
ID and it exists. I also tried deleting the document by using the Field
VOORNAAM since that is indexed, but that gives the same problem.

Am I doing something wrong?

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message