Re: about RAMDirectory based B/S plantform problem

2010-08-17 Thread xiaoyan Zheng
Hey, Anshum u mean Indexwriter based on RAMdirectory must be a singleton/static, yeah, that works, finally success[?][?][?][?][?], thanks a lot! Regards Hilly 2010/8/17 Anshum > Hi Hilly, > Seems like you are trying to use an already closed writer. Could you keep > the writer open and continu

Re: about RAMDirectory based B/S plantform problem

2010-08-16 Thread Anshum
Hi Hilly, Seems like you are trying to use an already closed writer. Could you keep the writer open and continue writing to the same indexdirectory using a 'shared' indexwriter 'instance'. To put it as pseudo code Something like a singleton/static indexwriter instance.. almost. -- Open indexwriter

Re: about RAMDirectory based B/S plantform problem

2010-08-16 Thread xiaoyan Zheng
the question is like this: when one user is using IndexWirter.addDocument(doc), and another user has already finished adding part and have closed IndexWirter, then, the first user embraces the error "ERROR: this IndexWriter is closed", cause both of them creat the IndexWriter based on RAM by the s