RE: Custom sort/basic question

2005-11-22 Thread Gus Kormeier
Hey John, My understanding is that if you add a field with the same name as a previous field added, you will be overwriting the value stored in the document. So if you add: doc.add(Field.Text("sequence", "1")); doc.add(Field.Text("sequence", "2")); doc.add(Field.Text("sequence", "3")); Af

IndexSearcher

2006-02-22 Thread Gus Kormeier
Maybe too general a question, but is there anything about creating an IndexSearcher( directory) object that would make the instantiation really slow? I have one index where the instantiation is very fast, to the point where I don't need to do any pooling. A new index I have created, takes a very

RE: IndexSearcher

2006-02-22 Thread Gus Kormeier
9:35 AM To: java-user@lucene.apache.org Subject: RE: IndexSearcher This doesn't really address your question, but... Once you have the single indexsearcher, do you need any others? Could your app just use the single instance? -Original Message- From: Gus Kormeier [mailto:[EMAIL P

RE: IndexSearcher

2006-02-22 Thread Gus Kormeier
Thanks Hoss, I did figure out that I was putting about 400 stored fields per document into my new index; more than my prior indexes. Reducing the number of stored fields seems to have helped significantly. I do call writer.optimize() after loading in documents, but not sure how I would se