
rosenm at sirma
Apr 16, 2001, 9:55 AM
Post #2 of 3
(782 views)
Permalink
|
|
Re: How to Delete documet with Term wich text is a number or string+number?
[In reply to]
|
|
10x all analyzer is OK. ID field was Field.Text, i change it to Field.Keyword and everything is OK. 10x all again and sorry for the question ----- Original Message ----- From: "Halacsy Peter" <halacsy.peter [at] axelero> To: "Lucene Users List" <lucene-user [at] jakarta> Sent: Tuesday, April 16, 2002 7:45 PM Subject: RE: How to Delete documet with Term wich text is a number or string+number? > Which analyzer do you use? I think your analyzer filters out numbers > > peter > > > -----Original Message----- > > From: Rosen Marinov [mailto:rosenm [at] sirma] > > Sent: Monday, April 16, 2001 6:25 PM > > To: lucene-user [at] jakarta > > Subject: How to Delete documet with Term wich text is a > > number or string+number? > > > > > > i have one question > > > > I want to delete a document from index. > > > > My index contains lucene Documents with 2 fields > > for exammlpe" > > > > "ID" "12345" > > "CONTENT" "The quick brown ...." > > > > now i wanrt to delete document with id 12345 > > > > create a Term --> t = new Term("ID","12345"); > > IndexReader.delete(t) - doesn't delete the document > > > > if ID is a string from letters it is ok: > > for example "ID" "abcd" > > now with Term("ID","abcd"); > > everything is OK. > > > > how can i delete it in my case ID is a number string? > > > > 10x > > > > -- > To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe [at] jakarta> > For additional commands, e-mail: <mailto:lucene-user-help [at] jakarta> > -- To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe [at] jakarta> For additional commands, e-mail: <mailto:lucene-user-help [at] jakarta>
|