You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by di...@apache.org on 2009/12/14 09:26:01 UTC

svn commit: r890219 - in /incubator/lucene.net/trunk/C#/src: Lucene.Net/Analysis/ Lucene.Net/Analysis/Standard/ Lucene.Net/Document/ Lucene.Net/Search/ Test/Search/ Test/Search/Spans/

Author: digy
Date: Mon Dec 14 08:26:00 2009
New Revision: 890219

URL: http://svn.apache.org/viewvc?rev=890219&view=rev
Log:
[2] Added Obsolete attribute to deprecated methods/classes of Lucene.Java 2.9.1 

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardTokenizer.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardTokenizerImpl.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Token.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenStream.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenWrapper.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/AbstractField.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/DateField.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/Field.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/FieldSelectorResult.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/Fieldable.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/NumberTools.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/HitCollector.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/JustCompileSearch.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/Spans/JustCompileSearchSpans.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/TestBooleanScorer.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardTokenizer.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/Standard/StandardTokenizer.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardTokenizer.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardTokenizer.cs Mon Dec 14 08:26:00 2009
@@ -78,6 +78,7 @@
 		/// as ACRONYMs. It is deprecated and will be removed in the next
 		/// release.
 		/// </deprecated>
+        [Obsolete("this solves a bug where HOSTs that end with '.' are identified as ACRONYMs. It is deprecated and will be removed in the next release.")]
 		public const int ACRONYM_DEP = 8;
 		
 		/// <summary>String token types that correspond to token type int constants </summary>
@@ -85,6 +86,7 @@
 		
 		/// <deprecated> Please use {@link #TOKEN_TYPES} instead 
 		/// </deprecated>
+        [Obsolete("Please use TOKEN_TYPES instead")]
 		public static readonly System.String[] tokenImage = TOKEN_TYPES;
 		
 		/// <summary> Specifies whether deprecated acronyms should be replaced with HOST type.
@@ -95,6 +97,7 @@
 		/// </summary>
 		/// <deprecated> this should be removed in the next release (3.0).
 		/// </deprecated>
+        [Obsolete("this should be removed in the next release (3.0).")]
 		private bool replaceInvalidAcronym;
 		
 		private int maxTokenLength;
@@ -296,6 +299,7 @@
 		/// <deprecated> Will be removed in Lucene 3.0. This method is final, as it should
 		/// not be overridden. Delegates to the backwards compatibility layer. 
 		/// </deprecated>
+        [Obsolete("Will be removed in Lucene 3.0. This method is final, as it should not be overridden. Delegates to the backwards compatibility layer. ")]
 		public override Token Next(Token reusableToken)
 		{
 			return base.Next(reusableToken);
@@ -304,6 +308,7 @@
 		/// <deprecated> Will be removed in Lucene 3.0. This method is final, as it should
 		/// not be overridden. Delegates to the backwards compatibility layer. 
 		/// </deprecated>
+        [Obsolete("Will be removed in Lucene 3.0. This method is final, as it should not be overridden. Delegates to the backwards compatibility layer. ")]
 		public override Token Next()
 		{
 			return base.Next();
@@ -334,6 +339,7 @@
 		/// </returns>
 		/// <deprecated> Remove in 3.X and make true the only valid value
 		/// </deprecated>
+        [Obsolete("Remove in 3.X and make true the only valid value")]
 		public virtual bool IsReplaceInvalidAcronym()
 		{
 			return replaceInvalidAcronym;
@@ -346,6 +352,7 @@
 		/// 
 		/// See https://issues.apache.org/jira/browse/LUCENE-1068
 		/// </deprecated>
+        [Obsolete("Remove in 3.X and make true the only valid value. See https://issues.apache.org/jira/browse/LUCENE-1068")]
 		public virtual void  SetReplaceInvalidAcronym(bool replaceInvalidAcronym)
 		{
 			this.replaceInvalidAcronym = replaceInvalidAcronym;

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardTokenizerImpl.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/Standard/StandardTokenizerImpl.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardTokenizerImpl.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardTokenizerImpl.cs Mon Dec 14 08:26:00 2009
@@ -249,6 +249,7 @@
 		/// as ACRONYMs. It is deprecated and will be removed in the next
 		/// release.
 		/// </deprecated>
+        [Obsolete("this solves a bug where HOSTs that end with '.' are identified as ACRONYMs. It is deprecated and will be removed in the next release.")]
 		public static readonly int ACRONYM_DEP;
 		
 		public static readonly System.String[] TOKEN_TYPES;

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/StopFilter.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs Mon Dec 14 08:26:00 2009
@@ -265,6 +265,7 @@
 		/// </seealso>
 		/// <deprecated> Please specify this when you create the StopFilter
 		/// </deprecated>
+        [Obsolete("Please specify this when you create the StopFilter")]
 		public static bool GetEnablePositionIncrementsDefault()
 		{
 			return ENABLE_POSITION_INCREMENTS_DEFAULT;
@@ -303,6 +304,7 @@
 		/// </seealso>
 		/// <deprecated> Please specify this when you create the StopFilter
 		/// </deprecated>
+        [Obsolete("Please specify this when you create the StopFilter")]
 		public static void  SetEnablePositionIncrementsDefault(bool defaultValue)
 		{
 			ENABLE_POSITION_INCREMENTS_DEFAULT = defaultValue;

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Token.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/Token.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Token.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Token.cs Mon Dec 14 08:26:00 2009
@@ -144,6 +144,7 @@
 		/// <deprecated> We will remove this when we remove the
 		/// deprecated APIs 
 		/// </deprecated>
+        [Obsolete("We will remove this when we remove the deprecated APIs")]
 		private System.String termText;
 		
 		/// <summary> Characters for the term text.</summary>
@@ -153,30 +154,35 @@
 		/// {@link #SetTermBuffer(String)}, or
 		/// {@link #SetTermBuffer(String, int, int)}
 		/// </deprecated>
+        [Obsolete("This will be made private. Instead, use: TermBuffer(), SetTermBuffer(char[], int, int), SetTermBuffer(String) or SetTermBuffer(String, int, int)")]
 		internal char[] termBuffer;
 		
 		/// <summary> Length of term text in the buffer.</summary>
 		/// <deprecated> This will be made private. Instead, use:
 		/// {@link #TermLength()}, or @{link setTermLength(int)}.
 		/// </deprecated>
+        [Obsolete("This will be made private. Instead, use: TermLength(), or setTermLength(int)")]
 		internal int termLength;
 		
 		/// <summary> Start in source text.</summary>
 		/// <deprecated> This will be made private. Instead, use:
 		/// {@link #StartOffset()}, or @{link setStartOffset(int)}.
 		/// </deprecated>
+        [Obsolete("This will be made private. Instead, use: StartOffset(), or SetStartOffset(int).")]
 		internal int startOffset;
 		
 		/// <summary> End in source text.</summary>
 		/// <deprecated> This will be made private. Instead, use:
 		/// {@link #EndOffset()}, or @{link setEndOffset(int)}.
 		/// </deprecated>
+        [Obsolete("This will be made private. Instead, use: EndOffset(), or SetEndOffset(int).")]
 		internal int endOffset;
 		
 		/// <summary> The lexical type of the token.</summary>
 		/// <deprecated> This will be made private. Instead, use:
 		/// {@link #Type()}, or @{link setType(String)}.
 		/// </deprecated>
+        [Obsolete("This will be made private. Instead, use: Type(), or SetType(String).")]
 		internal System.String type = DEFAULT_TYPE;
 		
 		private int flags;
@@ -184,11 +190,13 @@
 		/// <deprecated> This will be made private. Instead, use:
 		/// {@link #GetPayload()}, or @{link setPayload(Payload)}.
 		/// </deprecated>
+        [Obsolete("This will be made private. Instead, use: GetPayload(), or SetPayload(Payload).")]
 		internal Payload payload;
 		
 		/// <deprecated> This will be made private. Instead, use:
 		/// {@link #GetPositionIncrement()}, or @{link setPositionIncrement(String)}.
 		/// </deprecated>
+        [Obsolete("This will be made private. Instead, use: GetPositionIncrement(), or SetPositionIncrement(String).")]
 		internal int positionIncrement = 1;
 		
 		/// <summary>Constructs a Token will null text. </summary>

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenStream.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/TokenStream.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenStream.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenStream.cs Mon Dec 14 08:26:00 2009
@@ -91,22 +91,27 @@
 		
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private static readonly AttributeFactory DEFAULT_TOKEN_WRAPPER_ATTRIBUTE_FACTORY = new TokenWrapperAttributeFactory(AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY);
 		
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private TokenWrapper tokenWrapper;
 		
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private static bool onlyUseNewAPI = false;
 		
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private MethodSupport supportedMethods;
 		
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private sealed class MethodSupport
 		{
 			internal bool hasIncrementToken;
@@ -139,6 +144,7 @@
 		
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private static readonly System.Collections.Hashtable knownMethodSupport = new System.Collections.Hashtable();
 
         // {{Aroush-2.9 Port issue, need to mimic java's IdentityHashMap
@@ -155,6 +161,7 @@
 
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private static MethodSupport GetSupportedMethods(System.Type clazz)
 		{
 			MethodSupport supportedMethods;
@@ -171,6 +178,7 @@
 		
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private sealed class TokenWrapperAttributeFactory:AttributeFactory
 		{
 			private AttributeFactory delegate_Renamed;
@@ -231,6 +239,7 @@
 		
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private TokenWrapper InitTokenWrapper(AttributeSource input)
 		{
 			if (onlyUseNewAPI)
@@ -260,6 +269,7 @@
 		
 		/// <deprecated> Remove this when old API is removed! 
 		/// </deprecated>
+        [Obsolete("Remove this when old API is removed! ")]
 		private void  Check()
 		{
 			if (onlyUseNewAPI && !supportedMethods.hasIncrementToken)
@@ -299,6 +309,7 @@
 		/// <deprecated> This setting will no longer be needed in Lucene 3.0 as the old
 		/// API will be removed.
 		/// </deprecated>
+        [Obsolete("This setting will no longer be needed in Lucene 3.0 as the old API will be removed.")]
 		public static void  SetOnlyUseNewAPI(bool onlyUseNewAPI)
 		{
 			TokenStream.onlyUseNewAPI = onlyUseNewAPI;
@@ -312,6 +323,7 @@
 		/// <deprecated> This setting will no longer be needed in Lucene 3.0 as
 		/// the old API will be removed.
 		/// </deprecated>
+        [Obsolete("This setting will no longer be needed in Lucene 3.0 as the old API will be removed.")]
 		public static bool GetOnlyUseNewAPI()
 		{
 			return onlyUseNewAPI;
@@ -414,6 +426,7 @@
 		/// <deprecated> The new {@link #IncrementToken()} and {@link AttributeSource}
 		/// APIs should be used instead.
 		/// </deprecated>
+        [Obsolete("The new IncrementToken() and AttributeSource APIs should be used instead.")]
 		public virtual Token Next(Token reusableToken)
 		{
 			System.Diagnostics.Debug.Assert(reusableToken != null);
@@ -441,6 +454,7 @@
 		/// {@link #Next(Token)} or using the new {@link #IncrementToken()}
 		/// method with the new {@link AttributeSource} API.
 		/// </deprecated>
+        [Obsolete("The returned Token is a \"full private copy\" (not re-used across calls to Next()) but will be slower than calling {@link #Next(Token)} or using the new IncrementToken() method with the new AttributeSource API.")]
 		public virtual Token Next()
 		{
 			if (tokenWrapper == null)

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenWrapper.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/TokenWrapper.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenWrapper.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenWrapper.cs Mon Dec 14 08:26:00 2009
@@ -34,6 +34,7 @@
 	/// </summary>
 	/// <deprecated> Will be removed, when old TokenStream API is removed.
 	/// </deprecated>
+    [Obsolete("Will be removed, when old TokenStream API is removed.")]
 	[Serializable]
 	public sealed class TokenWrapper:AttributeImpl, System.ICloneable, TermAttribute, TypeAttribute, PositionIncrementAttribute, FlagsAttribute, OffsetAttribute, PayloadAttribute
 	{

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/AbstractField.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Document/AbstractField.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/AbstractField.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/AbstractField.cs Mon Dec 14 08:26:00 2009
@@ -340,6 +340,7 @@
 		
 		/// <deprecated> Renamed to {@link #getOmitTermFreqAndPositions} 
 		/// </deprecated>
+        [Obsolete("Renamed to GetOmitTermFreqAndPositions")]
 		public virtual bool GetOmitTf()
 		{
 			return omitTermFreqAndPositions;
@@ -364,6 +365,7 @@
 		
 		/// <deprecated> Renamed to {@link #setOmitTermFreqAndPositions} 
 		/// </deprecated>
+        [Obsolete("Renamed to SetOmitTermFreqAndPositions")]
 		public virtual void  SetOmitTf(bool omitTermFreqAndPositions)
 		{
 			this.omitTermFreqAndPositions = omitTermFreqAndPositions;

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/DateField.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Document/DateField.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/DateField.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/DateField.cs Mon Dec 14 08:26:00 2009
@@ -59,6 +59,7 @@
 	/// This class is included for use with existing
 	/// indices and will be removed in a future release.
 	/// </deprecated>
+    [Obsolete("If you build a new index, use DateTools or NumericField instead.This class is included for use with existing indices and will be removed in a future release.")]
 	public class DateField
 	{
 		

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/Field.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Document/Field.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/Field.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/Field.cs Mon Dec 14 08:26:00 2009
@@ -90,6 +90,7 @@
 			
 			/// <deprecated> this has been renamed to {@link #ANALYZED} 
 			/// </deprecated>
+            [Obsolete("this has been renamed to ANALYZED")]
 			public static readonly Index TOKENIZED;
 			
 			/// <summary>Index the field's value without using an Analyzer, so it can be searched.
@@ -100,6 +101,7 @@
 			
 			/// <deprecated> This has been renamed to {@link #NOT_ANALYZED} 
 			/// </deprecated>
+            [Obsolete("This has been renamed to NOT_ANALYZED")]
 			public static readonly Index UN_TOKENIZED;
 			
 			/// <summary>Expert: Index the field's value without an Analyzer,
@@ -122,6 +124,7 @@
 			/// <deprecated> This has been renamed to
 			/// {@link #NOT_ANALYZED_NO_NORMS} 
 			/// </deprecated>
+            [Obsolete("This has been renamed to NOT_ANALYZED_NO_NORMS")]
 			public static readonly Index NO_NORMS;
 			
 			/// <summary>Expert: Index the tokens produced by running the
@@ -212,6 +215,7 @@
 		/// AbstractField#GetBinaryValue()} instead, which simply
 		/// returns the byte[].
 		/// </deprecated>
+        [Obsolete("This method must allocate a new byte[] if the AbstractField.GetBinaryOffset() is non-zero or AbstractField.GetBinaryLength() is not the full length of the byte[]. Please use AbstractField.GetBinaryValue() instead, which simply returns the byte[].")]
 		public override byte[] BinaryValue()
 		{
 			if (!isBinary)

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/FieldSelectorResult.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Document/FieldSelectorResult.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/FieldSelectorResult.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/FieldSelectorResult.cs Mon Dec 14 08:26:00 2009
@@ -70,6 +70,7 @@
 		/// no longer needed now that {@link CompressionTools}
 		/// is used for field compression.
 		/// </deprecated>
+        [Obsolete("This is an internal option only, and is no longer needed now that CompressionTools is used for field compression.")]
 		[NonSerialized]
 		public static readonly FieldSelectorResult LOAD_FOR_MERGE = new FieldSelectorResult(4);
 		

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/Fieldable.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Document/Fieldable.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/Fieldable.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/Fieldable.cs Mon Dec 14 08:26:00 2009
@@ -159,10 +159,12 @@
 		
 		/// <deprecated> Renamed to {@link AbstractField#setOmitTermFreqAndPositions} 
 		/// </deprecated>
+        [Obsolete("Renamed to AbstractField.SetOmitTermFreqAndPositions")]
 		void  SetOmitTf(bool omitTf);
 		
 		/// <deprecated> Renamed to {@link AbstractField#getOmitTermFreqAndPositions} 
 		/// </deprecated>
+        [Obsolete("Renamed to AbstractField.GetOmitTermFreqAndPositions")]
 		bool GetOmitTf();
 		
 		/// <summary> Indicates whether a Field is Lazy or not.  The semantics of Lazy loading are such that if a Field is lazily loaded, retrieving

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/NumberTools.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Document/NumberTools.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/NumberTools.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/NumberTools.cs Mon Dec 14 08:26:00 2009
@@ -46,6 +46,7 @@
 	/// This class is included for use with existing
 	/// indices and will be removed in a future release.
 	/// </deprecated>
+    [Obsolete("For new indexes use NumericUtils instead, which provides a sortable binary representation (prefix encoded) of numeric values. To index and efficiently query numeric values use NumericField and NumericRangeQuery. This class is included for use with existing indices and will be removed in a future release.")]
 	public class NumberTools
 	{
 		

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/HitCollector.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/HitCollector.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/HitCollector.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/HitCollector.cs Mon Dec 14 08:26:00 2009
@@ -32,6 +32,7 @@
 	/// </version>
 	/// <deprecated> Please use {@link Collector} instead.
 	/// </deprecated>
+    [Obsolete("Please use Collector instead.")]
 	public abstract class HitCollector
 	{
 		/// <summary>Called once for every document matching a query, with the document

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/JustCompileSearch.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/JustCompileSearch.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/JustCompileSearch.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/JustCompileSearch.cs Mon Dec 14 08:26:00 2009
@@ -183,6 +183,7 @@
 			
 			/// <deprecated> delete in 3.0 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override int Doc()
 			{
 				throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);
@@ -195,6 +196,7 @@
 			
 			/// <deprecated> delete in 3.0 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override bool Next()
 			{
 				throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);
@@ -202,6 +204,7 @@
 			
 			/// <deprecated> delete in 3.0 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override bool SkipTo(int target)
 			{
 				throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);
@@ -391,6 +394,7 @@
 			
 			/// <deprecated> delete in 3.0 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override int Doc()
 			{
 				throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);
@@ -403,6 +407,7 @@
 			
 			/// <deprecated> delete in 3.0. 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override bool Next()
 			{
 				throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);
@@ -410,6 +415,7 @@
 			
 			/// <deprecated> delete in 3.0. 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override bool SkipTo(int target)
 			{
 				throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);
@@ -525,6 +531,7 @@
 			
 			/// <deprecated> delete in 3.0 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public Scorer Scorer(IndexReader reader)
 			{
 				throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/Spans/JustCompileSearchSpans.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/Spans/JustCompileSearchSpans.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/Spans/JustCompileSearchSpans.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/Spans/JustCompileSearchSpans.cs Mon Dec 14 08:26:00 2009
@@ -92,6 +92,7 @@
 			
 			/// <deprecated> delete in 3.0. 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override System.Collections.ICollection GetTerms()
 			{
 				throw new System.NotSupportedException(Lucene.Net.Search.Spans.JustCompileSearchSpans.UNSUPPORTED_MSG);

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestBooleanScorer.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestBooleanScorer.cs?rev=890219&r1=890218&r2=890219&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestBooleanScorer.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestBooleanScorer.cs Mon Dec 14 08:26:00 2009
@@ -66,6 +66,7 @@
 			}
 			/// <deprecated> delete in 3.0. 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override int Doc()
 			{
 				return 3000;
@@ -76,6 +77,7 @@
 			}
 			/// <deprecated> delete in 3.0 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override bool Next()
 			{
 				return NextDoc() != NO_MORE_DOCS;
@@ -88,6 +90,7 @@
 			
 			/// <deprecated> delete in 3.0 
 			/// </deprecated>
+            [Obsolete("delete in 3.0")]
 			public override bool SkipTo(int target)
 			{
 				return Advance(target) != NO_MORE_DOCS;