lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victor Hadianto <vict...@nuix.com.au>
Subject Re: Problem with Field.Keyword
Date Thu, 23 May 2002 05:56:05 GMT
> http://www.mail-archive.com/lucene-user@jakarta.apache.org/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:

<02052309340801.18525@host86.syd.nuix.com.au>
<818623B5FD23D51193200002B32C076103A15698@excsrv44.mayo.edu>
<3D044FA2@mail.totalise.co.uk>

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", "<3D044FA2@mail.totalise.co.uk>");

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:victorh@nuix.com.au]
> 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:
>
> <02052309340801.18525@host86.syd.nuix.com.au>
> <818623B5FD23D51193200002B32C076103A15698@excsrv44.mayo.edu>
> <3D044FA2@mail.totalise.co.uk>
>
> 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:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:lucene-user-help@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:  
> <mailto:lucene-user-unsubscribe@jakarta.apache.org> For additional
> commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>

--
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