lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [26/62] [abbrv] [partial] lucenenet git commit: Renamed Lucene.Net.Core folder Lucene.Net because the dotnet.exe pack command doesn't allow creating a NuGet package with a different name than its folder. Working around it with the script was much more co
Date Tue, 04 Apr 2017 17:19:32 GMT
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/IntField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/IntField.cs b/src/Lucene.Net.Core/Document/IntField.cs
deleted file mode 100644
index 0bcaea7..0000000
--- a/src/Lucene.Net.Core/Document/IntField.cs
+++ /dev/null
@@ -1,185 +0,0 @@
-using Lucene.Net.Index;
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <para>
-    /// Field that indexes <see cref="int"/> values
-    /// for efficient range filtering and sorting. Here's an example usage:
-    ///
-    /// <code>
-    ///     document.Add(new Int32Field(name, 6, Field.Store.NO));
-    /// </code>
-    ///
-    /// For optimal performance, re-use the <see cref="Int32Field"/> and
-    /// <see cref="Document"/> instance for more than one document:
-    ///
-    /// <code>
-    ///     Int32Field field = new Int32Field(name, 6, Field.Store.NO);
-    ///     Document document = new Document();
-    ///     document.Add(field);
-    ///
-    ///     for (all documents) 
-    ///     {
-    ///         ...
-    ///         field.SetInt32Value(value)
-    ///         writer.AddDocument(document);
-    ///         ...
-    ///     }
-    /// </code>
-    ///
-    /// See also <see cref="Int64Field"/>, <see cref="SingleField"/>, 
-    /// <see cref="DoubleField"/>.</para>
-    ///
-    /// <para>To perform range querying or filtering against a
-    /// <see cref="Int32Field"/>, use <see cref="Search.NumericRangeQuery{T}"/> or 
-    /// <see cref="Search.NumericRangeFilter{T}"/>.  To sort according to a
-    /// <see cref="Int32Field"/>, use the normal numeric sort types, eg
-    /// <see cref="Lucene.Net.Search.SortFieldType.INT32"/>. <see cref="Int32Field"/>
-    /// values can also be loaded directly from <see cref="Search.IFieldCache"/>.</para>
-    ///
-    /// <para>You may add the same field name as an <see cref="Int32Field"/> to
-    /// the same document more than once.  Range querying and
-    /// filtering will be the logical OR of all values; so a range query
-    /// will hit all documents that have at least one value in
-    /// the range. However sort behavior is not defined.  If you need to sort,
-    /// you should separately index a single-valued <see cref="Int32Field"/>.</para>
-    ///
-    /// <para>An <see cref="Int32Field"/> will consume somewhat more disk space
-    /// in the index than an ordinary single-valued field.
-    /// However, for a typical index that includes substantial
-    /// textual content per document, this increase will likely
-    /// be in the noise. </para>
-    ///
-    /// <para>Within Lucene, each numeric value is indexed as a
-    /// <em>trie</em> structure, where each term is logically
-    /// assigned to larger and larger pre-defined brackets (which
-    /// are simply lower-precision representations of the value).
-    /// The step size between each successive bracket is called the
-    /// <c>precisionStep</c>, measured in bits.  Smaller
-    /// <c>precisionStep</c> values result in larger number
-    /// of brackets, which consumes more disk space in the index
-    /// but may result in faster range search performance.  The
-    /// default value, 4, was selected for a reasonable tradeoff
-    /// of disk space consumption versus performance.  You can
-    /// create a custom <see cref="FieldType"/> and invoke the 
-    /// <see cref="FieldType.NumericPrecisionStep"/> setter if you'd
-    /// like to change the value.  Note that you must also
-    /// specify a congruent value when creating 
-    /// <see cref="Search.NumericRangeQuery{T}"/> or <see cref="Search.NumericRangeFilter{T}"/>.
-    /// For low cardinality fields larger precision steps are good.
-    /// If the cardinality is &lt; 100, it is fair
-    /// to use <see cref="int.MaxValue"/>, which produces one
-    /// term per value.</para>
-    ///
-    /// <para>For more information on the internals of numeric trie
-    /// indexing, including the <see cref="Search.NumericRangeQuery{T}.PrecisionStep"/> <a
-    /// href="../search/NumericRangeQuery.html#precisionStepDesc"><c>precisionStep</c></a>
-    /// configuration, see <see cref="Search.NumericRangeQuery{T}"/>. The format of
-    /// indexed values is described in <see cref="Util.NumericUtils"/>.</para>
-    ///
-    /// <para>If you only need to sort by numeric value, and never
-    /// run range querying/filtering, you can index using a
-    /// <c>precisionStep</c> of <see cref="int.MaxValue"/>.
-    /// this will minimize disk space consumed. </para>
-    ///
-    /// <para>More advanced users can instead use 
-    /// <see cref="Analysis.NumericTokenStream"/> directly, 
-    /// when indexing numbers. this
-    /// class is a wrapper around this token stream type for
-    /// easier, more intuitive usage.</para>
-    /// <para>
-    /// NOTE: This was IntField in Lucene
-    /// </para>
-    /// @since 2.9
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public sealed class Int32Field : Field
-    {
-        /// <summary>
-        /// Type for an <see cref="Int32Field"/> that is not stored:
-        /// normalization factors, frequencies, and positions are omitted.
-        /// </summary>
-        public static readonly FieldType TYPE_NOT_STORED = new FieldType();
-
-        static Int32Field()
-        {
-            TYPE_NOT_STORED.IsIndexed = true;
-            TYPE_NOT_STORED.IsTokenized = true;
-            TYPE_NOT_STORED.OmitNorms = true;
-            TYPE_NOT_STORED.IndexOptions = IndexOptions.DOCS_ONLY;
-            TYPE_NOT_STORED.NumericType = NumericType.INT32;
-            TYPE_NOT_STORED.Freeze();
-
-            TYPE_STORED.IsIndexed = true;
-            TYPE_STORED.IsTokenized = true;
-            TYPE_STORED.OmitNorms = true;
-            TYPE_STORED.IndexOptions = IndexOptions.DOCS_ONLY;
-            TYPE_STORED.NumericType = NumericType.INT32;
-            TYPE_STORED.IsStored = true;
-            TYPE_STORED.Freeze();
-        }
-
-        /// <summary>
-        /// Type for a stored <see cref="Int32Field"/>:
-        /// normalization factors, frequencies, and positions are omitted.
-        /// </summary>
-        public static readonly FieldType TYPE_STORED = new FieldType();
-
-        /// <summary>
-        /// Creates a stored or un-stored <see cref="Int32Field"/> with the provided value
-        /// and default <c>precisionStep</c> 
-        /// <see cref="Util.NumericUtils.PRECISION_STEP_DEFAULT"/> (4). 
-        /// </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> 32-bit <see cref="int"/> value </param>
-        /// <param name="stored"> <see cref="Field.Store.YES"/> if the content should also be stored </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c>. </exception>
-        public Int32Field(string name, int value, Store stored)
-            : base(name, stored == Store.YES ? TYPE_STORED : TYPE_NOT_STORED)
-        {
-            m_fieldsData = Convert.ToInt32(value);
-        }
-
-        /// <summary>
-        /// Expert: allows you to customize the 
-        /// <see cref="FieldType"/>.
-        /// </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> 32-bit <see cref="int"/> value </param>
-        /// <param name="type"> customized field type: must have <see cref="FieldType.NumericType"/>
-        ///         of <see cref="NumericType.INT32"/>. </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> or <paramref name="type"/> is <see cref="NumericType.NONE"/> </exception>
-        /// <exception cref="ArgumentException">if the field type does not have a 
-        ///         <see cref="FieldType.NumericType"/> of <see cref="NumericType.INT32"/> </exception>
-        public Int32Field(string name, int value, FieldType type)
-            : base(name, type)
-        {
-            if (type.NumericType != NumericType.INT32)
-            {
-                throw new System.ArgumentException("type.NumericType must be NumericType.INT32 but got " + type.NumericType);
-            }
-            m_fieldsData = Convert.ToInt32(value);
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/LongDocValuesField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/LongDocValuesField.cs b/src/Lucene.Net.Core/Document/LongDocValuesField.cs
deleted file mode 100644
index fda5495..0000000
--- a/src/Lucene.Net.Core/Document/LongDocValuesField.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <para>
-    /// Field that stores a per-document <see cref="long"/> value for scoring,
-    /// sorting or value retrieval. Here's an example usage:
-    ///
-    /// <code>
-    ///     document.Add(new Int64DocValuesField(name, 22L));
-    /// </code></para>
-    ///
-    /// <para>
-    /// If you also need to store the value, you should add a
-    /// separate <see cref="StoredField"/> instance.</para>
-    /// <para>
-    /// NOTE: This was LongDocValuesField in Lucene
-    /// </para>
-    /// </summary>
-    /// <seealso cref="NumericDocValuesField"/>
-    [Obsolete("Use NumericDocValuesField instead")]
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public class Int64DocValuesField : NumericDocValuesField
-    {
-        /// <summary>
-        /// Creates a new DocValues field with the specified 64-bit <see cref="long"/> value </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> 64-bit <see cref="long"/> value </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public Int64DocValuesField(string name, long value)
-            : base(name, value)
-        {
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/LongField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/LongField.cs b/src/Lucene.Net.Core/Document/LongField.cs
deleted file mode 100644
index 43108f1..0000000
--- a/src/Lucene.Net.Core/Document/LongField.cs
+++ /dev/null
@@ -1,195 +0,0 @@
-using Lucene.Net.Index;
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <para>
-    /// Field that indexes <see cref="long"/> values
-    /// for efficient range filtering and sorting. Here's an example usage:
-    ///
-    /// <code>
-    /// document.Add(new Int64Field(name, 6L, Field.Store.NO));
-    /// </code>
-    ///
-    /// For optimal performance, re-use the <see cref="Int64Field"/> and
-    /// <see cref="Document"/> instance for more than one document:
-    ///
-    /// <code>
-    ///     Int64Field field = new Int64Field(name, 0L, Field.Store.NO);
-    ///     Document document = new Document();
-    ///     document.Add(field);
-    ///
-    ///     for (all documents) {
-    ///         ...
-    ///         field.SetInt64Value(value)
-    ///         writer.AddDocument(document);
-    ///         ...
-    ///     }
-    /// </code>
-    ///
-    /// See also <see cref="Int32Field"/>, <see cref="SingleField"/>, 
-    /// <see cref="DoubleField"/>.
-    /// </para>
-    /// 
-    /// <para>
-    /// Any type that can be converted to long can also be
-    /// indexed.  For example, date/time values represented by a
-    /// <see cref="DateTime"/> can be translated into a long
-    /// value using the <see cref="DateTime.Ticks"/> property.  If you
-    /// don't need millisecond precision, you can quantize the
-    /// value, either by dividing the result of
-    /// <see cref="DateTime.Ticks"/> or using the separate getters
-    /// (for year, month, etc.) to construct an <see cref="int"/> or
-    /// <see cref="long"/> value.</para>
-    ///
-    /// <para>To perform range querying or filtering against a
-    /// <see cref="Int64Field"/>, use <see cref="Search.NumericRangeQuery{T}"/> or 
-    /// <see cref="Search.NumericRangeFilter{T}"/>.  To sort according to a
-    /// <see cref="Int64Field"/>, use the normal numeric sort types, eg
-    /// <see cref="Lucene.Net.Search.SortFieldType.INT64"/>. <see cref="Int64Field"/>
-    /// values can also be loaded directly from <see cref="Search.IFieldCache"/>.</para>
-    ///
-    /// <para>You may add the same field name as an <see cref="Int64Field"/> to
-    /// the same document more than once.  Range querying and
-    /// filtering will be the logical OR of all values; so a range query
-    /// will hit all documents that have at least one value in
-    /// the range. However sort behavior is not defined.  If you need to sort,
-    /// you should separately index a single-valued <see cref="Int64Field"/>.</para>
-    ///
-    /// <para>An <see cref="Int64Field"/> will consume somewhat more disk space
-    /// in the index than an ordinary single-valued field.
-    /// However, for a typical index that includes substantial
-    /// textual content per document, this increase will likely
-    /// be in the noise. </para>
-    ///
-    /// <para>Within Lucene, each numeric value is indexed as a
-    /// <em>trie</em> structure, where each term is logically
-    /// assigned to larger and larger pre-defined brackets (which
-    /// are simply lower-precision representations of the value).
-    /// The step size between each successive bracket is called the
-    /// <c>precisionStep</c>, measured in bits.  Smaller
-    /// <c>precisionStep</c> values result in larger number
-    /// of brackets, which consumes more disk space in the index
-    /// but may result in faster range search performance.  The
-    /// default value, 4, was selected for a reasonable tradeoff
-    /// of disk space consumption versus performance.  You can
-    /// create a custom <see cref="FieldType"/> and invoke the 
-    /// <see cref="FieldType.NumericPrecisionStep"/> setter if you'd
-    /// like to change the value.  Note that you must also
-    /// specify a congruent value when creating 
-    /// <see cref="Search.NumericRangeQuery{T}"/> or <see cref="Search.NumericRangeFilter{T}"/>.
-    /// For low cardinality fields larger precision steps are good.
-    /// If the cardinality is &lt; 100, it is fair
-    /// to use <see cref="int.MaxValue"/>, which produces one
-    /// term per value.</para>
-    ///
-    /// <para>For more information on the internals of numeric trie
-    /// indexing, including the <see cref="Search.NumericRangeQuery{T}.PrecisionStep"/> <a
-    /// href="../search/NumericRangeQuery.html#precisionStepDesc"><c>precisionStep</c></a>
-    /// configuration, see <see cref="Search.NumericRangeQuery{T}"/>. The format of
-    /// indexed values is described in <see cref="Util.NumericUtils"/>.</para>
-    ///
-    /// <para>If you only need to sort by numeric value, and never
-    /// run range querying/filtering, you can index using a
-    /// <c>precisionStep</c> of <see cref="int.MaxValue"/>.
-    /// this will minimize disk space consumed. </para>
-    ///
-    /// <para>More advanced users can instead use 
-    /// <see cref="Analysis.NumericTokenStream"/> directly, 
-    /// when indexing numbers. this
-    /// class is a wrapper around this token stream type for
-    /// easier, more intuitive usage.</para>
-    /// <para>
-    /// NOTE: This was LongField in Lucene
-    /// </para>
-    /// @since 2.9
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public sealed class Int64Field : Field
-    {
-        /// <summary>
-        /// Type for a <see cref="Int64Field"/> that is not stored:
-        /// normalization factors, frequencies, and positions are omitted.
-        /// </summary>
-        public static readonly FieldType TYPE_NOT_STORED = new FieldType();
-
-        static Int64Field()
-        {
-            TYPE_NOT_STORED.IsIndexed = true;
-            TYPE_NOT_STORED.IsTokenized = true;
-            TYPE_NOT_STORED.OmitNorms = true;
-            TYPE_NOT_STORED.IndexOptions = IndexOptions.DOCS_ONLY;
-            TYPE_NOT_STORED.NumericType = NumericType.INT64;
-            TYPE_NOT_STORED.Freeze();
-
-            TYPE_STORED.IsIndexed = true;
-            TYPE_STORED.IsTokenized = true;
-            TYPE_STORED.OmitNorms = true;
-            TYPE_STORED.IndexOptions = IndexOptions.DOCS_ONLY;
-            TYPE_STORED.NumericType = NumericType.INT64;
-            TYPE_STORED.IsStored = true;
-            TYPE_STORED.Freeze();
-        }
-
-        /// <summary>
-        /// Type for a stored <see cref="Int64Field"/>:
-        /// normalization factors, frequencies, and positions are omitted.
-        /// </summary>
-        public static readonly FieldType TYPE_STORED = new FieldType();
-
-        /// <summary>
-        /// Creates a stored or un-stored <see cref="Int64Field"/> with the provided value
-        /// and default <c>precisionStep</c> 
-        /// <see cref="Util.NumericUtils.PRECISION_STEP_DEFAULT"/> (4). 
-        /// </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> 64-bit <see cref="long"/> value </param>
-        /// <param name="stored"> <see cref="Field.Store.YES"/> if the content should also be stored </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c>. </exception>
-        public Int64Field(string name, long value, Store stored)
-            : base(name, stored == Store.YES ? TYPE_STORED : TYPE_NOT_STORED)
-        {
-            m_fieldsData = Convert.ToInt64(value);
-        }
-
-        /// <summary>
-        /// Expert: allows you to customize the <see cref="FieldType"/>. 
-        /// </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> 64-bit <see cref="long"/> value </param>
-        /// <param name="type"> customized field type: must have <see cref="FieldType.NumericType"/>
-        ///         of <see cref="NumericType.INT64"/>. </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> or <paramref name="type"/> is <see cref="NumericType.NONE"/> </exception>
-        /// <exception cref="ArgumentException"> if the field type does not have a 
-        /// <see cref="FieldType.NumericType"/> of <see cref="NumericType.INT64"/> </exception>
-        public Int64Field(string name, long value, FieldType type)
-            : base(name, type)
-        {
-            if (type.NumericType != NumericType.INT64)
-            {
-                throw new System.ArgumentException("type.NumericType must be NumericType.INT64 but got " + type.NumericType);
-            }
-            m_fieldsData = Convert.ToInt64(value);
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/NumericDocValuesField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/NumericDocValuesField.cs b/src/Lucene.Net.Core/Document/NumericDocValuesField.cs
deleted file mode 100644
index 02d79ac..0000000
--- a/src/Lucene.Net.Core/Document/NumericDocValuesField.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-using Lucene.Net.Index;
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// Field that stores a per-document <see cref="long"/> value for scoring,
-    /// sorting or value retrieval. Here's an example usage:
-    ///
-    /// <code>
-    ///     document.Add(new NumericDocValuesField(name, 22L));
-    /// </code>
-    ///
-    /// If you also need to store the value, you should add a
-    /// separate <see cref="StoredField"/> instance.
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public class NumericDocValuesField : Field
-    {
-        /// <summary>
-        /// Type for numeric <see cref="DocValues"/>.
-        /// </summary>
-        public static readonly FieldType TYPE = new FieldType();
-
-        static NumericDocValuesField()
-        {
-            TYPE.DocValueType = DocValuesType.NUMERIC;
-            TYPE.Freeze();
-        }
-
-        /// <summary>
-        /// Creates a new <see cref="DocValues"/> field with the specified 64-bit <see cref="long"/> value </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> 64-bit <see cref="long"/> value </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public NumericDocValuesField(string name, long value)
-            : base(name, TYPE)
-        {
-            m_fieldsData = Convert.ToInt64(value);
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/PackedLongDocValuesField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/PackedLongDocValuesField.cs b/src/Lucene.Net.Core/Document/PackedLongDocValuesField.cs
deleted file mode 100644
index 5bae738..0000000
--- a/src/Lucene.Net.Core/Document/PackedLongDocValuesField.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <para>
-    /// Field that stores a per-document <see cref="long"/> value
-    /// for scoring, sorting or value retrieval. Here's an example usage:
-    ///
-    /// <code>
-    ///     document.Add(new PackedInt64DocValuesField(name, 22L));
-    /// </code>
-    /// </para>
-    ///
-    /// <para>
-    /// If you also need to store the value, you should add a
-    /// separate <see cref="StoredField"/> instance.
-    /// </para>
-    /// <para>
-    /// NOTE: This was PackedLongDocValuesField in Lucene
-    /// </para>
-    /// </summary>
-    /// <seealso cref="NumericDocValuesField"/>
-    [Obsolete("Use NumericDocValuesField instead.")]
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public class PackedInt64DocValuesField : NumericDocValuesField
-    {
-        /// <summary>
-        /// Creates a new <see cref="Index.DocValues"/> field with the specified <see cref="long"/> value </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> 64-bit <see cref="long"/> value </param>
-        /// <exception cref="ArgumentException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public PackedInt64DocValuesField(string name, long value)
-            : base(name, value)
-        {
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/ShortDocValuesField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/ShortDocValuesField.cs b/src/Lucene.Net.Core/Document/ShortDocValuesField.cs
deleted file mode 100644
index 972887f..0000000
--- a/src/Lucene.Net.Core/Document/ShortDocValuesField.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <para>
-    /// Field that stores a per-document <see cref="short"/> value for scoring,
-    /// sorting or value retrieval. Here's an example usage:
-    ///
-    /// <code>
-    ///     document.Add(new Int16DocValuesField(name, (short) 22));
-    /// </code>
-    /// </para>
-    ///
-    /// <para>
-    /// If you also need to store the value, you should add a
-    /// separate <see cref="StoredField"/> instance.
-    /// </para>
-    /// <para>
-    /// NOTE: This was ShortDocValuesField in Lucene
-    /// </para>
-    /// </summary>
-    /// <seealso cref="NumericDocValuesField"/>
-    [Obsolete("Use NumericDocValuesField instead.")]
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public class Int16DocValuesField : NumericDocValuesField
-    {
-        /// <summary>
-        /// Creates a new <see cref="Index.DocValues"/> field with the specified 16-bit <see cref="short"/> value </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> 16-bit <see cref="short"/> value </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public Int16DocValuesField(string name, short value)
-            : base(name, value)
-        {
-        }
-
-        public override void SetInt16Value(short value)
-        {
-            SetInt64Value(value);
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/SortedBytesDocValuesField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/SortedBytesDocValuesField.cs b/src/Lucene.Net.Core/Document/SortedBytesDocValuesField.cs
deleted file mode 100644
index 96c08ce..0000000
--- a/src/Lucene.Net.Core/Document/SortedBytesDocValuesField.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using Lucene.Net.Util;
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <para>
-    /// Field that stores
-    /// a per-document <see cref="BytesRef"/> value, indexed for
-    /// sorting.  Here's an example usage:
-    ///
-    /// <code>
-    ///     document.Add(new SortedBytesDocValuesField(name, new BytesRef("hello")));
-    /// </code>
-    /// </para>
-    ///
-    /// <para>
-    /// If you also need to store the value, you should add a
-    /// separate <see cref="StoredField"/> instance.
-    /// </para>
-    /// </summary>
-    /// <seealso cref="SortedDocValuesField"/>
-    [Obsolete("Use SortedDocValuesField instead.")]
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public class SortedBytesDocValuesField : SortedDocValuesField
-    {
-        /// <summary>
-        /// Type for sorted bytes <see cref="Index.DocValues"/>: all with the same length
-        /// </summary>
-        public static readonly FieldType TYPE_FIXED_LEN = SortedDocValuesField.TYPE;
-
-        /// <summary>
-        /// Type for sorted bytes <see cref="Index.DocValues"/>: can have variable lengths
-        /// </summary>
-        public static readonly FieldType TYPE_VAR_LEN = SortedDocValuesField.TYPE;
-
-        /// <summary>
-        /// Create a new fixed or variable-length sorted <see cref="Index.DocValues"/> field. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="bytes"> binary content </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public SortedBytesDocValuesField(string name, BytesRef bytes)
-            : base(name, bytes)
-        {
-        }
-
-        /// <summary>
-        /// Create a new fixed or variable length sorted <see cref="Index.DocValues"/> field. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="bytes"> binary content </param>
-        /// <param name="isFixedLength"> (ignored) </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public SortedBytesDocValuesField(string name, BytesRef bytes, bool isFixedLength)
-            : base(name, bytes)
-        {
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/SortedDocValuesField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/SortedDocValuesField.cs b/src/Lucene.Net.Core/Document/SortedDocValuesField.cs
deleted file mode 100644
index 645d8f3..0000000
--- a/src/Lucene.Net.Core/Document/SortedDocValuesField.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using Lucene.Net.Index;
-using Lucene.Net.Util;
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <para>
-    /// Field that stores
-    /// a per-document <see cref="BytesRef"/> value, indexed for
-    /// sorting.  Here's an example usage:
-    ///
-    /// <code>
-    ///     document.Add(new SortedDocValuesField(name, new BytesRef("hello")));
-    /// </code></para>
-    ///
-    /// <para>
-    /// If you also need to store the value, you should add a
-    /// separate <see cref="StoredField"/> instance.</para>
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public class SortedDocValuesField : Field
-    {
-        /// <summary>
-        /// Type for sorted bytes <see cref="DocValues"/>
-        /// </summary>
-        public static readonly FieldType TYPE = new FieldType();
-
-        static SortedDocValuesField()
-        {
-            TYPE.DocValueType = DocValuesType.SORTED;
-            TYPE.Freeze();
-        }
-
-        /// <summary>
-        /// Create a new sorted <see cref="DocValues"/> field. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="bytes"> binary content </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public SortedDocValuesField(string name, BytesRef bytes)
-            : base(name, TYPE)
-        {
-            m_fieldsData = bytes;
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/SortedSetDocValuesField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/SortedSetDocValuesField.cs b/src/Lucene.Net.Core/Document/SortedSetDocValuesField.cs
deleted file mode 100644
index 328e32d..0000000
--- a/src/Lucene.Net.Core/Document/SortedSetDocValuesField.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-using Lucene.Net.Index;
-using Lucene.Net.Util;
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <para>
-    /// Field that stores
-    /// a set of per-document <see cref="BytesRef"/> values, indexed for
-    /// faceting,grouping,joining.  Here's an example usage:
-    ///
-    /// <code>
-    ///     document.Add(new SortedSetDocValuesField(name, new BytesRef("hello")));
-    ///     document.Add(new SortedSetDocValuesField(name, new BytesRef("world")));
-    /// </code>
-    /// </para>
-    ///
-    /// <para>
-    /// If you also need to store the value, you should add a
-    /// separate <see cref="StoredField"/> instance.</para>
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public class SortedSetDocValuesField : Field
-    {
-        /// <summary>
-        /// Type for sorted bytes <see cref="DocValues"/>
-        /// </summary>
-        public static readonly FieldType TYPE = new FieldType();
-
-        static SortedSetDocValuesField()
-        {
-            TYPE.DocValueType = DocValuesType.SORTED_SET;
-            TYPE.Freeze();
-        }
-
-        /// <summary>
-        /// Create a new sorted <see cref="DocValues"/> field. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="bytes"> binary content </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public SortedSetDocValuesField(string name, BytesRef bytes)
-            : base(name, TYPE)
-        {
-            m_fieldsData = bytes;
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/StoredField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/StoredField.cs b/src/Lucene.Net.Core/Document/StoredField.cs
deleted file mode 100644
index e881336..0000000
--- a/src/Lucene.Net.Core/Document/StoredField.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-using Lucene.Net.Util;
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// A field whose value is stored so that 
-    /// <see cref="Search.IndexSearcher.Doc(int)"/> and <see cref="Index.IndexReader.Document(int)"/> will
-    /// return the field and its value.
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public sealed class StoredField : Field
-    {
-        /// <summary>
-        /// Type for a stored-only field.
-        /// </summary>
-        public static readonly FieldType TYPE;
-
-        static StoredField()
-        {
-            TYPE = new FieldType {IsStored = true};
-            TYPE.Freeze();
-        }
-
-        /// <summary>
-        /// Create a stored-only field with the given binary value.
-        /// <para>NOTE: the provided <see cref="T:byte[]"/> is not copied so be sure
-        /// not to change it until you're done with this field.</para>
-        /// </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> byte array pointing to binary content (not copied) </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c>. </exception>
-        public StoredField(string name, byte[] value)
-            : base(name, value, TYPE)
-        {
-        }
-
-        /// <summary>
-        /// Create a stored-only field with the given binary value.
-        /// <para>NOTE: the provided <see cref="T:byte[]"/> is not copied so be sure
-        /// not to change it until you're done with this field.</para>
-        /// </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> <see cref="byte"/> array pointing to binary content (not copied) </param>
-        /// <param name="offset"> starting position of the byte array </param>
-        /// <param name="length"> valid length of the byte array </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c>. </exception>
-        public StoredField(string name, byte[] value, int offset, int length)
-            : base(name, value, offset, length, TYPE)
-        {
-        }
-
-        /// <summary>
-        /// Create a stored-only field with the given binary value.
-        /// <para>NOTE: the provided <see cref="BytesRef"/> is not copied so be sure
-        /// not to change it until you're done with this field.</para>
-        /// </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> <see cref="BytesRef"/> pointing to binary content (not copied) </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c>. </exception>
-        public StoredField(string name, BytesRef value)
-            : base(name, value, TYPE)
-        {
-        }
-
-        /// <summary>
-        /// Create a stored-only field with the given <see cref="string"/> value. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> <see cref="string"/> value </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> or <paramref name="value"/> is <c>null</c>. </exception>
-        public StoredField(string name, string value)
-            : base(name, value, TYPE)
-        {
-        }
-
-        // TODO: not great but maybe not a big problem?
-        /// <summary>
-        /// Create a stored-only field with the given <see cref="int"/> value. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> <see cref="int"/> value </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c>. </exception>
-        public StoredField(string name, int value)
-            : base(name, TYPE)
-        {
-            m_fieldsData = value;
-        }
-
-        /// <summary>
-        /// Create a stored-only field with the given <see cref="float"/> value. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> <see cref="float"/> value </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c>. </exception>
-        public StoredField(string name, float value)
-            : base(name, TYPE)
-        {
-            m_fieldsData = value;
-        }
-
-        /// <summary>
-        /// Create a stored-only field with the given <see cref="long"/> value. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> <see cref="long"/> value </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c>. </exception>
-        public StoredField(string name, long value)
-            : base(name, TYPE)
-        {
-            m_fieldsData = value;
-        }
-
-        /// <summary>
-        /// Create a stored-only field with the given <see cref="double"/> value. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> <see cref="double"/> value </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c>. </exception>
-        public StoredField(string name, double value)
-            : base(name, TYPE)
-        {
-            m_fieldsData = value;
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/StraightBytesDocValuesField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/StraightBytesDocValuesField.cs b/src/Lucene.Net.Core/Document/StraightBytesDocValuesField.cs
deleted file mode 100644
index b4706da..0000000
--- a/src/Lucene.Net.Core/Document/StraightBytesDocValuesField.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-using Lucene.Net.Util;
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <para>
-    /// Field that stores
-    /// a per-document <see cref="BytesRef"/> value.  If values may be shared it's
-    /// better to use <see cref="SortedDocValuesField"/>.  Here's an example usage:
-    ///
-    /// <code>
-    ///     document.Add(new StraightBytesDocValuesField(name, new BytesRef("hello")));
-    /// </code></para>
-    ///
-    /// <para>
-    /// If you also need to store the value, you should add a
-    /// separate <see cref="StoredField"/> instance.</para>
-    /// </summary>
-    /// <seealso cref="BinaryDocValuesField"/>
-    [Obsolete("Use BinaryDocValuesField instead.")]
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public class StraightBytesDocValuesField : BinaryDocValuesField
-    {
-        /// <summary>
-        /// Type for direct bytes <see cref="Index.DocValues"/>: all with the same length
-        /// </summary>
-        public static readonly FieldType TYPE_FIXED_LEN = BinaryDocValuesField.fType;
-
-        /// <summary>
-        /// Type for direct bytes <see cref="Index.DocValues"/>: can have variable lengths
-        /// </summary>
-        public static readonly FieldType TYPE_VAR_LEN = BinaryDocValuesField.fType;
-
-        /// <summary>
-        /// Create a new fixed or variable length <see cref="Index.DocValues"/> field. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="bytes"> binary content </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public StraightBytesDocValuesField(string name, BytesRef bytes)
-            : base(name, bytes)
-        {
-        }
-
-        /// <summary>
-        /// Create a new fixed or variable length direct <see cref="Index.DocValues"/> field. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="bytes"> binary content </param>
-        /// <param name="isFixedLength"> (ignored) </param>
-        /// <exception cref="ArgumentNullException"> if the field <paramref name="name"/> is <c>null</c> </exception>
-        public StraightBytesDocValuesField(string name, BytesRef bytes, bool isFixedLength)
-            : base(name, bytes)
-        {
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/StringField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/StringField.cs b/src/Lucene.Net.Core/Document/StringField.cs
deleted file mode 100644
index b59e68e..0000000
--- a/src/Lucene.Net.Core/Document/StringField.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-using Lucene.Net.Index;
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// A field that is indexed but not tokenized: the entire
-    /// <see cref="string"/> value is indexed as a single token.  For example
-    /// this might be used for a 'country' field or an 'id'
-    /// field, or any field that you intend to use for sorting
-    /// or access through the field cache.
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public sealed class StringField : Field
-    {
-        /// <summary>
-        /// Indexed, not tokenized, omits norms, indexes
-        /// <see cref="IndexOptions.DOCS_ONLY"/>, not stored.
-        /// </summary>
-        public static readonly FieldType TYPE_NOT_STORED = new FieldType();
-
-        /// <summary>
-        /// Indexed, not tokenized, omits norms, indexes
-        /// <see cref="IndexOptions.DOCS_ONLY"/>, stored
-        /// </summary>
-        public static readonly FieldType TYPE_STORED = new FieldType();
-
-        static StringField()
-        {
-            TYPE_NOT_STORED.IsIndexed = true;
-            TYPE_NOT_STORED.OmitNorms = true;
-            TYPE_NOT_STORED.IndexOptions = IndexOptions.DOCS_ONLY;
-            TYPE_NOT_STORED.IsTokenized = false;
-            TYPE_NOT_STORED.Freeze();
-
-            TYPE_STORED.IsIndexed = true;
-            TYPE_STORED.OmitNorms = true;
-            TYPE_STORED.IndexOptions = IndexOptions.DOCS_ONLY;
-            TYPE_STORED.IsStored = true;
-            TYPE_STORED.IsTokenized = false;
-            TYPE_STORED.Freeze();
-        }
-
-        /// <summary>
-        /// Creates a new <see cref="StringField"/> (a field that is indexed but not tokenized)
-        /// </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> <see cref="string"/> value </param>
-        /// <param name="stored"> <see cref="Field.Store.YES"/> if the content should also be stored </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> or <paramref name="value"/> is <c>null</c>. </exception>
-        public StringField(string name, string value, Store stored)
-            : base(name, value, stored == Store.YES ? TYPE_STORED : TYPE_NOT_STORED)
-        {
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Document/TextField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/TextField.cs b/src/Lucene.Net.Core/Document/TextField.cs
deleted file mode 100644
index 1fb435a..0000000
--- a/src/Lucene.Net.Core/Document/TextField.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-using Lucene.Net.Analysis;
-using System;
-using System.IO;
-
-namespace Lucene.Net.Documents
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// A field that is indexed and tokenized, without term
-    /// vectors.  For example this would be used on a 'body'
-    /// field, that contains the bulk of a document's text.
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public sealed class TextField : Field
-    {
-        /// <summary>
-        /// Indexed, tokenized, not stored. </summary>
-        public static readonly FieldType TYPE_NOT_STORED = new FieldType();
-
-        /// <summary>
-        /// Indexed, tokenized, stored. </summary>
-        public static readonly FieldType TYPE_STORED = new FieldType();
-
-        static TextField()
-        {
-            TYPE_NOT_STORED.IsIndexed = true;
-            TYPE_NOT_STORED.IsTokenized = true;
-            TYPE_NOT_STORED.Freeze();
-
-            TYPE_STORED.IsIndexed = true;
-            TYPE_STORED.IsTokenized = true;
-            TYPE_STORED.IsStored = true;
-            TYPE_STORED.Freeze();
-        }
-
-        // TODO: add sugar for term vectors...?
-
-        /// <summary>
-        /// Creates a new un-stored <see cref="TextField"/> with <see cref="TextReader"/> value. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="reader"> <see cref="TextReader"/> value </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> or <paramref name="reader"/> is <c>null</c> </exception>
-        public TextField(string name, TextReader reader)
-            : base(name, reader, TYPE_NOT_STORED)
-        {
-        }
-
-        /// <summary>
-        /// Creates a new <see cref="TextField"/> with <see cref="string"/> value. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="value"> <see cref="string"/> value </param>
-        /// <param name="store"> <see cref="Field.Store.YES"/> if the content should also be stored </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> or <paramref name="value"/> is <c>null</c>. </exception>
-        public TextField(string name, string value, Store store)
-            : base(name, value, store == Store.YES ? TYPE_STORED : TYPE_NOT_STORED)
-        {
-        }
-
-        /// <summary>
-        /// Creates a new un-stored <see cref="TextField"/> with <see cref="TokenStream"/> value. </summary>
-        /// <param name="name"> field name </param>
-        /// <param name="stream"> <see cref="TokenStream"/> value </param>
-        /// <exception cref="System.ArgumentNullException"> if the field <paramref name="name"/> or <paramref name="stream"/> is <c>null</c>. </exception>
-        public TextField(string name, TokenStream stream)
-            : base(name, stream, TYPE_NOT_STORED)
-        {
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Index/AtomicReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/AtomicReader.cs b/src/Lucene.Net.Core/Index/AtomicReader.cs
deleted file mode 100644
index b228453..0000000
--- a/src/Lucene.Net.Core/Index/AtomicReader.cs
+++ /dev/null
@@ -1,338 +0,0 @@
-using System.Diagnostics;
-using System;
-
-namespace Lucene.Net.Index
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    // javadocs
-    using IBits = Lucene.Net.Util.IBits;
-
-    /// <summary>
-    /// <see cref="AtomicReader"/> is an abstract class, providing an interface for accessing an
-    /// index.  Search of an index is done entirely through this abstract interface,
-    /// so that any subclass which implements it is searchable. <see cref="IndexReader"/>s implemented
-    /// by this subclass do not consist of several sub-readers,
-    /// they are atomic. They support retrieval of stored fields, doc values, terms,
-    /// and postings.
-    ///
-    /// <para/>For efficiency, in this API documents are often referred to via
-    /// <i>document numbers</i>, non-negative integers which each name a unique
-    /// document in the index.  These document numbers are ephemeral -- they may change
-    /// as documents are added to and deleted from an index.  Clients should thus not
-    /// rely on a given document having the same number between sessions.
-    ///
-    /// <para/>
-    /// <b>NOTE</b>: <see cref="IndexReader"/>
-    /// instances are completely thread
-    /// safe, meaning multiple threads can call any of its methods,
-    /// concurrently.  If your application requires external
-    /// synchronization, you should <b>not</b> synchronize on the
-    /// <see cref="IndexReader"/> instance; use your own
-    /// (non-Lucene) objects instead.
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public abstract class AtomicReader : IndexReader
-    {
-        private void InitializeInstanceFields()
-        {
-            readerContext = new AtomicReaderContext(this);
-        }
-
-        private AtomicReaderContext readerContext;
-
-        /// <summary>
-        /// Sole constructor. (For invocation by subclass
-        /// constructors, typically implicit.)
-        /// </summary>
-        protected AtomicReader()
-            : base()
-        {
-            InitializeInstanceFields();
-        }
-
-        public sealed override IndexReaderContext Context
-        {
-            get
-            {
-                EnsureOpen();
-                return readerContext;
-            }
-        }
-
-        /// <summary>
-        /// LUCENENET specific propety that allows access to
-        /// the context as <see cref="AtomicReaderContext"/>,
-        /// which prevents the need to cast.
-        /// </summary>
-        public AtomicReaderContext AtomicContext
-        {
-            get
-            {
-                EnsureOpen();
-                return readerContext;
-            }
-        }
-
-        /// <summary>
-        /// Returns true if there are norms stored for this <paramref name="field"/>.
-        /// </summary>
-        [Obsolete("(4.0) use FieldInfos and check FieldInfo.HasNorms for the field instead.")]
-        public bool HasNorms(string field)
-        {
-            EnsureOpen();
-            // note: using normValues(field) != null would potentially cause i/o
-            FieldInfo fi = FieldInfos.FieldInfo(field);
-            return fi != null && fi.HasNorms;
-        }
-
-        /// <summary>
-        /// Returns <see cref="Index.Fields"/> for this reader.
-        /// this property may return <c>null</c> if the reader has no
-        /// postings.
-        /// </summary>
-        public abstract Fields Fields { get; }
-
-        public override sealed int DocFreq(Term term)
-        {
-            Fields fields = Fields;
-            if (fields == null)
-            {
-                return 0;
-            }
-            Terms terms = fields.GetTerms(term.Field);
-            if (terms == null)
-            {
-                return 0;
-            }
-            TermsEnum termsEnum = terms.GetIterator(null);
-            if (termsEnum.SeekExact(term.Bytes))
-            {
-                return termsEnum.DocFreq;
-            }
-            else
-            {
-                return 0;
-            }
-        }
-
-        /// <summary>
-        /// Returns the number of documents containing the <paramref name="term"/>. 
-        /// This method returns 0 if the term or
-        /// field does not exist. This method does not take into
-        /// account deleted documents that have not yet been merged
-        /// away.
-        /// </summary>
-        public override sealed long TotalTermFreq(Term term)
-        {
-            Fields fields = Fields;
-            if (fields == null)
-            {
-                return 0;
-            }
-            Terms terms = fields.GetTerms(term.Field);
-            if (terms == null)
-            {
-                return 0;
-            }
-            TermsEnum termsEnum = terms.GetIterator(null);
-            if (termsEnum.SeekExact(term.Bytes))
-            {
-                return termsEnum.TotalTermFreq;
-            }
-            else
-            {
-                return 0;
-            }
-        }
-
-        public override sealed long GetSumDocFreq(string field)
-        {
-            Terms terms = GetTerms(field);
-            if (terms == null)
-            {
-                return 0;
-            }
-            return terms.SumDocFreq;
-        }
-
-        public override sealed int GetDocCount(string field)
-        {
-            Terms terms = GetTerms(field);
-            if (terms == null)
-            {
-                return 0;
-            }
-            return terms.DocCount;
-        }
-
-        public override sealed long GetSumTotalTermFreq(string field)
-        {
-            Terms terms = GetTerms(field);
-            if (terms == null)
-            {
-                return 0;
-            }
-            return terms.SumTotalTermFreq;
-        }
-
-        /// <summary>
-        /// This may return <c>null</c> if the field does not exist. </summary>
-        public Terms GetTerms(string field) // LUCENENET specific: Renamed from Terms()
-        {
-            Fields fields = Fields;
-            if (fields == null)
-            {
-                return null;
-            }
-            return fields.GetTerms(field);
-        }
-
-        /// <summary>
-        /// Returns <see cref="DocsEnum"/> for the specified term.
-        /// This will return <c>null</c> if either the field or
-        /// term does not exist.
-        /// </summary>
-        /// <seealso cref="TermsEnum.Docs(IBits, DocsEnum)"/>
-        public DocsEnum GetTermDocsEnum(Term term) // LUCENENET specific: Renamed from TermDocsEnum()
-        {
-            Debug.Assert(term.Field != null);
-            Debug.Assert(term.Bytes != null);
-            Fields fields = Fields;
-            if (fields != null)
-            {
-                Terms terms = fields.GetTerms(term.Field);
-                if (terms != null)
-                {
-                    TermsEnum termsEnum = terms.GetIterator(null);
-                    if (termsEnum.SeekExact(term.Bytes))
-                    {
-                        return termsEnum.Docs(LiveDocs, null);
-                    }
-                }
-            }
-            return null;
-        }
-
-        /// <summary>
-        /// Returns <see cref="DocsAndPositionsEnum"/> for the specified
-        /// term. This will return <c>null</c> if the
-        /// field or term does not exist or positions weren't indexed. </summary>
-        /// <seealso cref="TermsEnum.DocsAndPositions(IBits, DocsAndPositionsEnum)"/>
-        public DocsAndPositionsEnum GetTermPositionsEnum(Term term) // LUCENENET specific: Renamed from TermPositionsEnum()
-        {
-            Debug.Assert(term.Field != null);
-            Debug.Assert(term.Bytes != null);
-            Fields fields = Fields;
-            if (fields != null)
-            {
-                Terms terms = fields.GetTerms(term.Field);
-                if (terms != null)
-                {
-                    TermsEnum termsEnum = terms.GetIterator(null);
-                    if (termsEnum.SeekExact(term.Bytes))
-                    {
-                        return termsEnum.DocsAndPositions(LiveDocs, null);
-                    }
-                }
-            }
-            return null;
-        }
-
-        /// <summary>
-        /// Returns <see cref="NumericDocValues"/> for this field, or
-        /// null if no <see cref="NumericDocValues"/> were indexed for
-        /// this field. The returned instance should only be
-        /// used by a single thread.
-        /// </summary>
-        public abstract NumericDocValues GetNumericDocValues(string field);
-
-        /// <summary>
-        /// Returns <see cref="BinaryDocValues"/> for this field, or
-        /// <c>null</c> if no <see cref="BinaryDocValues"/> were indexed for
-        /// this field. The returned instance should only be
-        /// used by a single thread.
-        /// </summary>
-        public abstract BinaryDocValues GetBinaryDocValues(string field);
-
-        /// <summary>
-        /// Returns <see cref="SortedDocValues"/> for this field, or
-        /// <c>null</c> if no <see cref="SortedDocValues"/> were indexed for
-        /// this field. The returned instance should only be
-        /// used by a single thread.
-        /// </summary>
-        public abstract SortedDocValues GetSortedDocValues(string field);
-
-        /// <summary>
-        /// Returns <see cref="SortedSetDocValues"/> for this field, or
-        /// <c>null</c> if no <see cref="SortedSetDocValues"/> were indexed for
-        /// this field. The returned instance should only be
-        /// used by a single thread.
-        /// </summary>
-        public abstract SortedSetDocValues GetSortedSetDocValues(string field);
-
-        /// <summary>
-        /// Returns a <see cref="IBits"/> at the size of <c>reader.MaxDoc</c>,
-        /// with turned on bits for each docid that does have a value for this field,
-        /// or <c>null</c> if no <see cref="DocValues"/> were indexed for this field. The
-        /// returned instance should only be used by a single thread.
-        /// </summary>
-        public abstract IBits GetDocsWithField(string field);
-
-        /// <summary>
-        /// Returns <see cref="NumericDocValues"/> representing norms
-        /// for this field, or <c>null</c> if no <see cref="NumericDocValues"/>
-        /// were indexed. The returned instance should only be
-        /// used by a single thread.
-        /// </summary>
-        public abstract NumericDocValues GetNormValues(string field);
-
-        /// <summary>
-        /// Get the <see cref="Index.FieldInfos"/> describing all fields in
-        /// this reader.
-        /// <para/>
-        /// @lucene.experimental
-        /// </summary>
-        public abstract FieldInfos FieldInfos { get; }
-
-        /// <summary>
-        /// Returns the <see cref="IBits"/> representing live (not
-        /// deleted) docs.  A set bit indicates the doc ID has not
-        /// been deleted.  If this method returns <c>null</c> it means
-        /// there are no deleted documents (all documents are
-        /// live).
-        /// <para/>
-        /// The returned instance has been safely published for
-        /// use by multiple threads without additional
-        /// synchronization.
-        /// </summary>
-        public abstract IBits LiveDocs { get; }
-
-        /// <summary>
-        /// Checks consistency of this reader.
-        /// <para/>
-        /// Note that this may be costly in terms of I/O, e.g.
-        /// may involve computing a checksum value against large data files.
-        /// <para/>
-        /// @lucene.internal
-        /// </summary>
-        public abstract void CheckIntegrity();
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a5dc68d0/src/Lucene.Net.Core/Index/AtomicReaderContext.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/AtomicReaderContext.cs b/src/Lucene.Net.Core/Index/AtomicReaderContext.cs
deleted file mode 100644
index fd3a0d2..0000000
--- a/src/Lucene.Net.Core/Index/AtomicReaderContext.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-
-namespace Lucene.Net.Index
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-
-    /// <summary>
-    /// <see cref="IndexReaderContext"/> for <see cref="Index.AtomicReader"/> instances.
-    /// </summary>
-#if FEATURE_SERIALIZABLE
-    [Serializable]
-#endif
-    public sealed class AtomicReaderContext : IndexReaderContext
-    {
-        /// <summary>
-        /// The readers ord in the top-level's leaves array </summary>
-        public int Ord { get; private set; }
-
-        /// <summary>
-        /// The readers absolute doc base </summary>
-        public int DocBase { get; private set; }
-
-        private readonly AtomicReader reader;
-        private readonly IList<AtomicReaderContext> leaves;
-
-        /// <summary>
-        /// Creates a new <see cref="AtomicReaderContext"/>
-        /// </summary>
-        internal AtomicReaderContext(CompositeReaderContext parent, AtomicReader reader, int ord, int docBase, int leafOrd, int leafDocBase)
-            : base(parent, ord, docBase)
-        {
-            this.Ord = leafOrd;
-            this.DocBase = leafDocBase;
-            this.reader = reader;
-            this.leaves = IsTopLevel ? new[] { this } : null;
-        }
-
-        internal AtomicReaderContext(AtomicReader atomicReader)
-            : this(null, atomicReader, 0, 0, 0, 0)
-        {
-        }
-
-        public override IList<AtomicReaderContext> Leaves
-        {
-            get
-            {
-                if (!IsTopLevel)
-                {
-                    throw new System.NotSupportedException("this is not a top-level context.");
-                }
-                Debug.Assert(leaves != null);
-                return leaves;
-            }
-        }
-
-        public override IList<IndexReaderContext> Children
-        {
-            get { return null; }
-        }
-
-        public override IndexReader Reader
-        {
-            get { return reader; }
-        }
-
-        // LUCENENET specific: Can't change return type on override like Java, so adding helper property
-        // to avoid a bunch of casting.
-        public AtomicReader AtomicReader
-        {
-            get
-            {
-                return reader;
-            }
-        }
-    }
-}
\ No newline at end of file


Mime
View raw message