Hi, Lucene does not support any serialization out of the box. If you really need to serialize the RAMDirectory, you have to do it on your own using the IndexInputs provided. Lucene 3 accidentally had RAMDirectory be able to be serialized, but it was broken. All of this was removed in 4.0.
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Thursday, January 07, 2016 11:53 AM > To: [email protected] > Subject: RAM Directory not Serializable in Lucene 4.4 as well as 5.X > > Dear Team, > > I am trying to serialize RAM Directory object but it throws an exception every > time. > > MY use case is to serialize the object and store it in Database for reasons > beyond my control. > > Same also for retrieving the object from database and then putting it into > RAM Directory. > > Need your support to understand what can be done to serialize/deserialize > this object. > > Regards, > Ankit Murarka > "Confidentiality Warning: This message and any attachments are intended > only for the use of the intended recipient(s). > are confidential and may be privileged. If you are not the intended recipient. > you are hereby notified that any > review. re-transmission. conversion to hard copy. copying. circulation or > other use of this message and any attachments is > strictly prohibited. If you are not the intended recipient. please notify the > sender immediately by return email. > and delete this message and any attachments from your system. > > Virus Warning: Although the company has taken reasonable precautions to > ensure no viruses are present in this email. > The company cannot accept responsibility for any loss or damage arising from > the use of this email or attachment." --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
