lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Ganyo <scott.ga...@eTapestry.com>
Subject Making Term and Query serializable
Date Tue, 05 Feb 2002 17:11:43 GMT
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;

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