lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: RAM Directory not Serializable in Lucene 4.4 as well as 5.X
Date Thu, 07 Jan 2016 11:03:53 GMT
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: uwe@thetaphi.de


> -----Original Message-----
> From: Ankit.Murarka@ril.com [mailto:Ankit.Murarka@ril.com]
> Sent: Thursday, January 07, 2016 11:53 AM
> To: java-user@lucene.apache.org
> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message