You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Nagendra Nagarajayya <nn...@transaxtions.com> on 2012/09/11 05:32:02 UTC

Document is not serializable in 4.0

Hi!

Is there a reason why the Document object is no longer serializable in 
4.0 ? Is it because it has become a more complex object as to 3.x 
version ? This is breaking some 3.x lucene code that serialized lucene 
Documents ... (being migrated to 4.0)

Regards,
- NN

RE: Document is not serializable in 4.0

Posted by Uwe Schindler <uw...@thetaphi.de>.
Hi Nagendra,

Lucene 4.0 removes support for (Java's broken and slow) Serializable everywhere, see https://issues.apache.org/jira/browse/LUCENE-2908
If you want to serialize your document, use a more professional and performant serialization framework like Avro, Thrift,...

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de

> -----Original Message-----
> From: Nagendra Nagarajayya [mailto:nnagarajayya@transaxtions.com]
> Sent: Tuesday, September 11, 2012 5:32 AM
> To: java-user@lucene.apache.org
> Subject: Document is not serializable in 4.0
> 
> Hi!
> 
> Is there a reason why the Document object is no longer serializable in
> 4.0 ? Is it because it has become a more complex object as to 3.x version ? This
> is breaking some 3.x lucene code that serialized lucene Documents ... (being
> migrated to 4.0)
> 
> Regards,
> - NN


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org