> From: Victor Hadianto
>
> 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.
Sounds like maybe you should add this data in two fields, one a keyword
"id-keyword" field, and the other an analyzed text field named "id-text", or
somesuch. Use the keyword field for deletion and the text field when
searching.
Doug
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>