Restricting searches to some URLs

2004-09-30 Thread Oscar Picasso
Hi, I use Lucene inside a Cocoon application. The indexed documents URLs are something like domain-name//integer/integer/integer. For example: flowers//1/234/23 flowers//2/23/90 ... animals//1/34/65 animals//21/98/4532 ... The searches are typically done in a subset of all available URLs. For

Closed IndexWriter reuse

2005-01-20 Thread Oscar Picasso
Hi, Is it safe to add documents to an IndexWriter that has been closed? From what I have seen, the close method flush the changes, closes the files but it creates new files allowing to add new documents. Am I right? Thanks. __ Do you Yahoo!?

Re: Closed IndexWriter reuse

2005-01-21 Thread Oscar Picasso
--- Otis Gospodnetic [EMAIL PROTECTED] wrote: No, you can't add documents to an index once you close the IndexWriter. You can re-open the IndexWriter and add more documents, of course. Otis That's what I expected at first, but: 1- It's a disappointment, because such a 'feature' would have

Lucene in Action: Batch indexing by using RAMDirectory

2005-01-22 Thread Oscar Picasso
Hi, On page 52 of Lucene in Action (Indexing Controlling the indexing process Batch indexing by using RAMDirectory as a buffer) I read: A more sophisticated approach would involve keeping track of RAMDirectory's memory consumption, in order to prevent RAMDirectory from growing too large. I've