IndexSearch and IndexWriter on 2 CPU's
Hello. I have Dual CPU's box with RH Linux. I run two processes on this box. 1. IndexWriter which adds new documents into index constantly 24/7/365 :) 2. IndexSearcher, which perform searchers from this index. Sometimes writer begins to merge index (this caused by mergeFactor and structure of Lucene index) inside addDocument method. And if merge begins then my writer process takes both CPU's time (180-200% totally). Actually most time time goes to IO operations. When merge operation begins then all searches performed by IndexSearcher on this computer are very-very slowed down b/c all CPU time is under first process. How can I give second process more CPU time or how can I reduce IO time of first process? Maybe I can tweak something about index configuration. I have set writer.mergeFactor = 2 writer.minMergeDocs = 2500 Yura Smolsky. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IndexSearch
Hi All, Can IndexSearcher be persisted? Are there any limitations on index updates while searches are in progress? Any file locking issues? Thanks, Ramon
Re: IndexSearch
You can write to the index and read from it at the same time. You can only have one IndexWriter open at any one time. IndexSearchers will only see documents that were created before they were instantiated, so you need to create new ones periodically to see new documents. On Mon, 8 Nov 2004 14:26:40 -0800, Ramon Aseniero [EMAIL PROTECTED] wrote: Hi All, Can IndexSearcher be persisted? Are there any limitations on index updates while searches are in progress? Any file locking issues? Thanks, Ramon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]