You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2013/06/06 23:59:38 UTC

git commit: Adding Version for v4

Updated Branches:
  refs/heads/master 6cfc95a4b -> ea1dc3c67


Adding Version for v4


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/ea1dc3c6
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/ea1dc3c6
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/ea1dc3c6

Branch: refs/heads/master
Commit: ea1dc3c6762329eff3f13bbf8540581ff6a555e5
Parents: 6cfc95a
Author: synhershko <sy...@apache.org>
Authored: Fri Jun 7 00:58:47 2013 +0300
Committer: synhershko <sy...@apache.org>
Committed: Fri Jun 7 00:58:47 2013 +0300

----------------------------------------------------------------------
 src/core/Util/Version.cs |  121 +++++++++++++++++++++--------------------
 1 files changed, 62 insertions(+), 59 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ea1dc3c6/src/core/Util/Version.cs
----------------------------------------------------------------------
diff --git a/src/core/Util/Version.cs b/src/core/Util/Version.cs
index fb1082a..432c2d3 100644
--- a/src/core/Util/Version.cs
+++ b/src/core/Util/Version.cs
@@ -19,68 +19,71 @@ using System;
 
 namespace Lucene.Net.Util
 {
-    /// <summary> Use by certain classes to match version compatibility
-    /// across releases of Lucene.
-    ///  <p/>
-    ///  <b>WARNING</b>: When changing the version parameter
-    ///  that you supply to components in Lucene, do not simply
-    ///  change the version at search-time, but instead also adjust
-    ///  your indexing code to match, and re-index.
-    /// </summary>
-    public enum Version
-    {
-        /// <summary>Match settings and bugs in Lucene's 2.0 release.</summary>
-        LUCENE_20,
-        
-        /// <summary>Match settings and bugs in Lucene's 2.1 release. </summary>
-        LUCENE_21,
-        
-        /// <summary>Match settings and bugs in Lucene's 2.2 release. </summary>
-        LUCENE_22,
-        
-        /// <summary>Match settings and bugs in Lucene's 2.3 release.</summary>
-        LUCENE_23,
+	/// <summary> Use by certain classes to match version compatibility
+	/// across releases of Lucene.
+	///  <p/>
+	///  <b>WARNING</b>: When changing the version parameter
+	///  that you supply to components in Lucene, do not simply
+	///  change the version at search-time, but instead also adjust
+	///  your indexing code to match, and re-index.
+	/// </summary>
+	public enum Version
+	{
+		/// <summary>Match settings and bugs in Lucene's 2.0 release.</summary>
+		LUCENE_20,
 
-        /// <summary>Match settings and bugs in Lucene's 2.4 release.</summary>
-        LUCENE_24,
+		/// <summary>Match settings and bugs in Lucene's 2.1 release. </summary>
+		LUCENE_21,
 
-        /// <summary>Match settings and bugs in Lucene's 2.9 release.</summary>
-        LUCENE_29,
+		/// <summary>Match settings and bugs in Lucene's 2.2 release. </summary>
+		LUCENE_22,
 
-        /// <summary>
-        /// Match settings and bugs in Lucene's 3.0 release.
-        /// <para>
-        /// Use this to get the latest and greatest settings, bug fixes,
-        /// etc, for Lucene.
-        /// </para>
-        /// </summary>
-        LUCENE_30,
+		/// <summary>Match settings and bugs in Lucene's 2.3 release.</summary>
+		LUCENE_23,
 
-        // NOTE: Add new constants for later versions **here** to respect order!
-        
-        /// <summary>
-        /// <p/><b>WARNING</b>: if you use this setting, and then
-        /// upgrade to a newer release of Lucene, sizable changes
-        /// may happen.  If precise back compatibility is important
-        /// then you should instead explicitly specify an actual
-        /// version.
-        /// If you use this constant then you may need to
-        /// <b>re-index all of your documents</b> when upgrading
-        /// Lucene, as the way text is indexed may have changed.
-        /// Additionally, you may need to <b>re-test your entire
-        /// application</b> to ensure it behaves as expected, as
-        /// some defaults may have changed and may break functionality
-        /// in your application.
-        /// </summary>
-        [Obsolete("Use an actual version instead.")]
-        LUCENE_CURRENT,
-    }
+		/// <summary>Match settings and bugs in Lucene's 2.4 release.</summary>
+		LUCENE_24,
 
-    public static class VersionEnumExtensions
-    {
-        public static bool OnOrAfter(this Version first, Version other)
-        {
-            return first.CompareTo(other) >= 0;
-        }
-    }
+		/// <summary>Match settings and bugs in Lucene's 2.9 release.</summary>
+		LUCENE_29,
+
+		/// <summary>Match settings and bugs in Lucene's 3.0 release.</summary>
+		LUCENE_30,
+
+		/// <summary>
+		/// Match settings and bugs in Lucene's 4.3 release.
+		/// <para>
+		/// Use this to get the latest and greatest settings, bug fixes,
+		/// etc, for Lucene.
+		/// </para>
+		/// </summary>
+		LUCENE_43,
+
+		// NOTE: Add new constants for later versions **here** to respect order!
+
+		/// <summary>
+		/// <p/><b>WARNING</b>: if you use this setting, and then
+		/// upgrade to a newer release of Lucene, sizable changes
+		/// may happen.  If precise back compatibility is important
+		/// then you should instead explicitly specify an actual
+		/// version.
+		/// If you use this constant then you may need to
+		/// <b>re-index all of your documents</b> when upgrading
+		/// Lucene, as the way text is indexed may have changed.
+		/// Additionally, you may need to <b>re-test your entire
+		/// application</b> to ensure it behaves as expected, as
+		/// some defaults may have changed and may break functionality
+		/// in your application.
+		/// </summary>
+		[Obsolete("Use an actual version instead.")]
+		LUCENE_CURRENT,
+	}
+
+	public static class VersionEnumExtensions
+	{
+		public static bool OnOrAfter(this Version first, Version other)
+		{
+			return first.CompareTo(other) >= 0;
+		}
+	}
 }
\ No newline at end of file