diff --git a/client/java/solrj/src/org/apache/solr/client/solrj/SolrRequest.java b/client/java/solrj/src/org/apache/solr/client/solrj/SolrRequest.java index b7b77f9d7f4..4b442e66c89 100644 --- a/client/java/solrj/src/org/apache/solr/client/solrj/SolrRequest.java +++ b/client/java/solrj/src/org/apache/solr/client/solrj/SolrRequest.java @@ -18,6 +18,7 @@ package org.apache.solr.client.solrj; import java.io.IOException; +import java.io.Serializable; import java.util.Collection; import org.apache.solr.common.params.SolrParams; @@ -28,7 +29,7 @@ import org.apache.solr.common.util.ContentStream; * @version $Id$ * @since solr 1.3 */ -public interface SolrRequest +public interface SolrRequest extends Serializable { public enum METHOD { GET, diff --git a/src/java/org/apache/solr/common/SolrInputDocument.java b/src/java/org/apache/solr/common/SolrInputDocument.java index 21a352f8087..67d5f2ea822 100644 --- a/src/java/org/apache/solr/common/SolrInputDocument.java +++ b/src/java/org/apache/solr/common/SolrInputDocument.java @@ -17,6 +17,7 @@ package org.apache.solr.common; +import java.io.Serializable; import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -30,7 +31,7 @@ import java.util.Collection; * @version $Id$ * @since solr 1.3 */ -public class SolrInputDocument implements Iterable +public class SolrInputDocument implements Iterable, Serializable { private final Map _fields; private float _documentBoost = 1.0f; diff --git a/src/java/org/apache/solr/common/SolrInputField.java b/src/java/org/apache/solr/common/SolrInputField.java index 19466a721d7..5e9102ccdac 100644 --- a/src/java/org/apache/solr/common/SolrInputField.java +++ b/src/java/org/apache/solr/common/SolrInputField.java @@ -17,6 +17,7 @@ package org.apache.solr.common; +import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; @@ -25,7 +26,7 @@ import java.util.Iterator; * @version $Id$ * @since solr 1.3 */ -public class SolrInputField implements Iterable +public class SolrInputField implements Iterable, Serializable { String name; Object value = null; diff --git a/src/java/org/apache/solr/common/params/SolrParams.java b/src/java/org/apache/solr/common/params/SolrParams.java index 7029b7a0913..4b96fb14106 100644 --- a/src/java/org/apache/solr/common/params/SolrParams.java +++ b/src/java/org/apache/solr/common/params/SolrParams.java @@ -17,6 +17,7 @@ package org.apache.solr.common.params; +import java.io.Serializable; import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -29,7 +30,7 @@ import org.apache.solr.common.util.SimpleOrderedMap; * * @version $Id$ */ -public abstract class SolrParams { +public abstract class SolrParams implements Serializable { /** returns the String value of a param, or null if not set */ public abstract String get(String param);