> http://www.mail-archive.com/[email protected]/msg00194.html
Hmm not quite my problem here. > if not try explaining your problem in a little bit more detail so > we can help OK .. let me try again ... basically I have a field in the document which I derive from the message id of an email, they look like: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> The problem is that I couldn't search Lucene using this field. If I store this field as Text I can search and find the document but I couldn't delete it using the following: indexReader.delete(new Term("id", "<[EMAIL PROTECTED]>"); This will return 0. If I store the id as a keyword, I couldn't even search the field. -- Victor Hadianto > regards, > > Nader Henein > > -----Original Message----- > From: Victor Hadianto [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 23, 2002 8:49 AM > To: Lucene Users List > Subject: Problem with Field.Keyword > > > > We are developing application that indexes email using Lucene. To index > document we use the message id field of the email as the primary key. > > The message id field looks like: > > <[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> > > We store this message id as Field.Keyword. > > Unfortunately when we are storing the message id, searching and deleting of > documents (very important for us) doesn't work. > > *If* the message id is stored as Field.Text it will work for searching but > not _deletion_. > > I'm 100% the code works because as soon as I substitute the message id into > ordinary number such as 1, 2, 3 everything works as coded :D > > Any suggestions? > > Regards, > > -- > Victor Hadianto > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> For additional > commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
