Serializable is only a 'markup interface', isn't it? I don't see why not...
Otis --- Scott Ganyo <[EMAIL PROTECTED]> wrote: > I'm proposing the following changes to Term and Query (just added > "implements java.io.Serializable"). The changes work fine and we've > tested > them in a distributed environment. Any objections? > > Thanks, > Scott > > Index: src/java/org/apache/lucene/index/Term.java > =================================================================== > RCS file: > /home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/index/Term.j > ava,v > retrieving revision 1.1.1.1 > diff -u -b -B -r1.1.1.1 Term.java > --- src/java/org/apache/lucene/index/Term.java 18 Sep 2001 16:29:54 > -00001.1.1. > 1 > +++ src/java/org/apache/lucene/index/Term.java 5 Feb 2002 17:07:00 > -0000 > @@ -62,7 +62,7 @@ > Note that terms may represent more than words from text fields, > but also > things like dates, email addresses, urls, etc. */ > > -public final class Term { > +public final class Term implements java.io.Serializable { > String field; > String text; > > Index: src/java/org/apache/lucene/search/Query.java > =================================================================== > RCS file: > /home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/search/Query > .java,v > retrieving revision 1.2 > diff -u -b -B -r1.2 Query.java > --- src/java/org/apache/lucene/search/Query.java 17 Jan 2002 > 02:00:09 > -00 > 00 1.2 > +++ src/java/org/apache/lucene/search/Query.java 5 Feb 2002 > 17:07:00 > -000 > 0 > @@ -71,7 +71,7 @@ > <li><a > href="doc/lucene.queryParser.QueryParser.html">QueryParser</a> > </ul> > */ > -abstract public class Query { > +abstract public class Query implements java.io.Serializable { > > // query boost factor > protected float boost = 1.0f; > __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>