lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: IndexReader.delete problem
Date Wed, 21 May 2003 15:28:40 GMT
This would be a pretty big bug :)
You must be doing something wrong, like creating a new instance of
IndexWriter with the third argument being true or some such.


--- Doug Kirk <> wrote:
> Using 1.3-RC1, I've got an index where a keyword field contains the 
> primary key value of a database row (an int), and when a user updates
> the data for the row, I delete the document from the index and then
> add 
> it back.
> My problem: The search index now only recognizes the document just 
> updated; it seems as if every other document was deleted from the
> index.
> I'm using IndexReader.delete(term), where term prints out as: 
> Term<Event.PKID:153>, which looks okay to me. The field name is 
> "Event.PKID", which is in Torque-generated "table.field" format.
> As a temporary workaround, I recreate the entire index every time 
> somebody submits a change.
> Is this a Lucene bug, or could I be doing something wrong here?
> Thanks!
> -Doug.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

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

View raw message