Apache Solr open-source search software
LUCENE-1349: Mark Fieldable as changeable
Grant Ingersoll316cfd14dfa0
diff --git a/CHANGES.txt b/CHANGES.txtindex 0f8f199db7a..3494516cf8c 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -1,6 +1,13 @@Lucene Change Log$Id$+NOTE: In a minor change to Lucene's backward compatibility policy, we are now allowing the Fieldable interface to have+changes, within reason, and made on a case-by-case basis. If an application implements it's own Fieldable, please be aware+ of this. Otherwise, no need to be concerned. For more details see https://issues.apache.org/jira/browse/LUCENE-1349.+ This is in effect for all 2.X releases, starting with 2.4. Also note, that in all likelihood, Fieldable will be changed+ in 3.0.++======================= Trunk (not yet released) =======================Changes in runtime behaviordiff --git a/src/java/org/apache/lucene/document/Fieldable.java b/src/java/org/apache/lucene/document/Fieldable.javaindex f6ea323a068..54a5165f82e 100755--- a/src/java/org/apache/lucene/document/Fieldable.java+++ b/src/java/org/apache/lucene/document/Fieldable.java@@ -16,14 +16,20 @@ package org.apache.lucene.document;* limitations under the License.*/+import org.apache.lucene.analysis.TokenStream;+import java.io.Reader;import java.io.Serializable;-import org.apache.lucene.analysis.TokenStream;-/*** Synonymous with {@link Field}.*+ * <p><bold>WARNING</bold>: This interface may change within minor versions, despite Lucene's backward compatibility requirements.+ * This means new methods may be added from version to version. This change only affects the Fieldable API; other backwards+ * compatibility promises remain intact. For example, Lucene can still+ * read and write indices created within the same major version.+ * </p>+ ***/public interface Fieldable extends Serializable {/** Sets the boost factor hits on this field. This value will be