lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@lucene.com
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", "<3D044FA2@mail.totalise.co.uk>");
> 
> 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:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message