lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin A. Burton" <bur...@newsmonster.org>
Subject Re: can't delete from an index using IndexReader.delete()
Date Tue, 24 Feb 2004 20:25:28 GMT
Dhruba Borthakur wrote:

> Hi folks,
>
> I am using the latest and greatest Lucene jar file and am facing a 
> problem with
> deleting documents from the index. Browsing the mail archive, I found 
> that the
> following email (June 2003) listed the exact problem that I am 
> encountering.
>
> In short: I am using Field.text("id", "value") to mark a document. 
> Then I use
> reader.delete(new Term("id", "value")) to remove the document: this
> call returns 0 and fails to delete the document. The attached sample 
> program
> shows this behaviour.

Agreed... you're values might be indexed... try adding them as Tokens...

Kevin

-- 

Please reply using PGP:

    http://peerfear.org/pubkey.asc    

    NewsMonster - http://www.newsmonster.org/
    
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
       AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
  IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster


Mime
View raw message