Deleting documents that meet a query

2003-06-09 Thread Bruce Cota
I need to delete all the documents from an index that satisfy a BooleanQuery. The only methods I can find (in IndexReader) for deleting a document are delete(Term) and delete(int). I tried searching on my Query using IndexSearcher.search(), iterating over each document in the returned Hits, and

Re: Deleting documents that meet a query

2003-06-09 Thread Marie-Hélène Forget
Hi, I confirm to you that delete( hits.id( i ) ) is ok. Hits.id( int ) returns the docnum that you need. MHF :) On Mon, 2003-06-09 at 12:11, Bruce Cota wrote: I need to delete all the documents from an index that satisfy a BooleanQuery. The only methods I can find (in IndexReader) for

Re: Deleting documents that meet a query

2003-06-09 Thread Bruce Cota
Thanks. I will restore that code and try to figure out why it broke :) (Because my alternative solution was way uglier.) Marie-Hélène Forget wrote: Hi, I confirm to you that delete( hits.id( i ) ) is ok. Hits.id( int ) returns the docnum that you need. MHF :) On Mon, 2003-06-09 at 12:11,

Re: High Capacity (Distributed) Crawler

2003-06-09 Thread Otis Gospodnetic
Leo, Have you started this project? Where is it hosted? It would be nice to see a few alternative implementations of a robust and scalable java web crawler with the ability to index whatever it fetches. Thanks, Otis --- Leo Galambos [EMAIL PROTECTED] wrote: Hi. I would like to write $SUBJ

Re: High Capacity (Distributed) Crawler

2003-06-09 Thread Leo Galambos
Hi Otis. The first beta is done (without NIO). It needs, however, further testing. Unfortunatelly, I could not find enough servers which I may hit. I wanted to commit the robot as a part of egothor (it will use it in PULL mode), but we have a nice weather here, so I lost any motivation to

Duplicating a document in the index.

2003-06-09 Thread Victor Hadianto
Hi list, Is there an easy way for duplicating a document in the index? Or can someone point me to the right direction for looking? Thanks, -- Victor Hadianto NUIX Pty Ltd Level 8, 143 York Street, Sydney 2000 Phone: (02) 9283 9010 Fax: (02) 9283 9020 This message is intended only for the