lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Ganyo <scott.ga...@eTapestry.com>
Subject RE: Making Term and Query serializable
Date Tue, 05 Feb 2002 17:59:40 GMT
Yes, it is only a marker and should have no affect on usage.  I'm just
attempting to follow proper procedure and get a second opinion, especially
as we are nearing a new release.

Thanks,
Scott

> -----Original Message-----
> From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
> Sent: Tuesday, February 05, 2002 12:53 PM
> To: Lucene Developers List
> Subject: Re: Making Term and Query serializable
> 
> 
> Serializable is only a 'markup interface', isn't it?
> I don't see why not...
> 
> Otis
> 
> --- Scott Ganyo <scott.ganyo@eTapestry.com> 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:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message