I am a little unclear,

When you index do you store

> <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>

Or 

<[EMAIL PROTECTED]>

The reason why I ask is that Keyword does not tokenize (that is what ever
you put into that field is seen as a single term).

So if you want to find it you have to search for exactly what you typed in
(including case sensitive).

Does that help?

--Peter


On 5/22/02 10:56 PM, "Victor Hadianto" <[EMAIL PROTECTED]> wrote:

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


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to