From d2e34a5fb9ea3563f03b8502aaced81ee4fdd843 Mon Sep 17 00:00:00 2001 From: Scott Ganyo Date: Tue, 5 Feb 2002 18:00:18 +0000 Subject: [PATCH] implement Serializable git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149666 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/index/Term.java | 2 +- src/java/org/apache/lucene/search/Query.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;