lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Problem with Field.Keyword
Date Thu, 23 May 2002 16:22:11 GMT
> 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", "<>");
> 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


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

View raw message