diff --git a/src/java/org/apache/lucene/index/Term.java b/src/java/org/apache/lucene/index/Term.java index 2ec6592e72e..a38c129560f 100644 --- a/src/java/org/apache/lucene/index/Term.java +++ b/src/java/org/apache/lucene/index/Term.java @@ -62,7 +62,7 @@ package org.apache.lucene.index; 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; diff --git a/src/java/org/apache/lucene/search/Query.java b/src/java/org/apache/lucene/search/Query.java index 3bf6ba37422..3d79d5bcf85 100644 --- a/src/java/org/apache/lucene/search/Query.java +++ b/src/java/org/apache/lucene/search/Query.java @@ -71,7 +71,7 @@ import org.apache.lucene.index.IndexReader;
  • QueryParser */ -abstract public class Query { +abstract public class Query implements java.io.Serializable { // query boost factor protected float boost = 1.0f;