lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [47/62] [abbrv] lucenenet git commit: Lucene.Net.Core.Document: Deleted obsolete files that are no longer in use
Date Sat, 01 Apr 2017 01:09:40 GMT
Lucene.Net.Core.Document: Deleted obsolete files that are no longer in use


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

Branch: refs/heads/api-work
Commit: 5816429c6c20d89f9aed62ea1adbc6dae7684412
Parents: 8a97bfc
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Apr 1 04:01:51 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Apr 1 07:52:00 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Document/AbstractField.cs   | 312 -------------------
 src/Lucene.Net.Core/Document/DateField.cs       | 138 --------
 src/Lucene.Net.Core/Document/FieldSelector.cs   |  37 ---
 .../Document/FieldSelectorResult.cs             |  71 -----
 src/Lucene.Net.Core/Document/Fieldable.cs       | 205 ------------
 .../Document/LoadFirstFieldSelector.cs          |  35 ---
 .../Document/MapFieldSelector.cs                |  68 ----
 src/Lucene.Net.Core/Document/NumberTools.cs     | 221 -------------
 src/Lucene.Net.Core/Document/NumericField.cs    | 301 ------------------
 .../Document/SetBasedFieldSelector.cs           |  69 ----
 src/Lucene.Net.Core/project.json                |  18 --
 11 files changed, 1475 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/AbstractField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/AbstractField.cs b/src/Lucene.Net.Core/Document/AbstractField.cs
deleted file mode 100644
index 0cfbf5d..0000000
--- a/src/Lucene.Net.Core/Document/AbstractField.cs
+++ /dev/null
@@ -1,312 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-using System.IO;
-using TokenStream = Lucene.Net.Analysis.TokenStream;
-using StringHelper = Lucene.Net.Util.StringHelper;
-using PhraseQuery = Lucene.Net.Search.PhraseQuery;
-using SpanQuery = Lucene.Net.Search.Spans.SpanQuery;
-
-namespace Lucene.Net.Documents
-{
-    /// <summary> 
-    /// 
-    /// 
-    /// </summary>
-    [Serializable]
-    public abstract class AbstractField : IFieldable
-    {
-        
-        protected internal System.String internalName = "body";
-        protected internal bool storeTermVector = false;
-        protected internal bool storeOffsetWithTermVector = false;
-        protected internal bool storePositionWithTermVector = false;
-        protected internal bool internalOmitNorms = false;
-        protected internal bool internalIsStored = false;
-        protected internal bool internalIsIndexed = true;
-        protected internal bool internalIsTokenized = true;
-        protected internal bool internalIsBinary = false;
-        protected internal bool lazy = false;
-        protected internal bool internalOmitTermFreqAndPositions = false;
-        protected internal float internalBoost = 1.0f;
-        // the data object for all different kind of field values
-        protected internal System.Object fieldsData = null;
-        // pre-analyzed tokenStream for indexed fields
-        protected internal TokenStream tokenStream;
-        // length/offset for all primitive types
-        protected internal int internalBinaryLength;
-        protected internal int internalbinaryOffset;
-        
-        protected internal AbstractField()
-        {
-        }
-        
-        protected internal AbstractField(System.String name, Field.Store store, Field.Index index, Field.TermVector termVector)
-        {
-            if (name == null)
-                throw new System.NullReferenceException("name cannot be null");
-            this.internalName = StringHelper.Intern(name); // field names are interned
-
-            this.internalIsStored = store.IsStored();
-            this.internalIsIndexed = index.IsIndexed();
-            this.internalIsTokenized = index.IsAnalyzed();
-            this.internalOmitNorms = index.OmitNorms();
-            
-            this.internalIsBinary = false;
-            
-            SetStoreTermVector(termVector);
-        }
-
-        /// <summary>Gets or sets the boost factor for hits for this field.
-        /// 
-        /// <p/>The default value is 1.0.
-        /// 
-        /// <p/>Note: this value is not stored directly with the document in the index.
-        /// Documents returned from <see cref="Lucene.Net.Index.IndexReader.Document(int)" /> and
-        /// <see cref="Lucene.Net.Search.Searcher.Doc(int)" /> may thus not have the same value present as when
-        /// this field was indexed.
-        /// </summary>
-        public virtual float Boost
-        {
-            get { return internalBoost; }
-            set { this.internalBoost = value; }
-        }
-
-        /// <summary>Returns the name of the field as an interned string.
-        /// For example "date", "title", "body", ...
-        /// </summary>
-        public virtual string Name
-        {
-            get { return internalName; }
-        }
-
-        protected internal virtual void  SetStoreTermVector(Field.TermVector termVector)
-        {
-            this.storeTermVector = termVector.IsStored();
-            this.storePositionWithTermVector = termVector.WithPositions();
-            this.storeOffsetWithTermVector = termVector.WithOffsets();
-        }
-
-        /// <summary>True iff the value of the field is to be stored in the index for return
-        /// with search hits.  It is an error for this to be true if a field is
-        /// Reader-valued. 
-        /// </summary>
-        public bool IsStored
-        {
-            get { return internalIsStored; }
-        }
-
-        /// <summary>True iff the value of the field is to be indexed, so that it may be
-        /// searched on. 
-        /// </summary>
-        public bool IsIndexed
-        {
-            get { return internalIsIndexed; }
-        }
-
-        /// <summary>True iff the value of the field should be tokenized as text prior to
-        /// indexing.  Un-tokenized fields are indexed as a single word and may not be
-        /// Reader-valued. 
-        /// </summary>
-        public bool IsTokenized
-        {
-            get { return internalIsTokenized; }
-        }
-
-        /// <summary>True iff the term or terms used to index this field are stored as a term
-        /// vector, available from <see cref="Lucene.Net.Index.IndexReader.GetTermFreqVector(int,String)" />.
-        /// These methods do not provide access to the original content of the field,
-        /// only to terms used to index it. If the original content must be
-        /// preserved, use the <c>stored</c> attribute instead.
-        /// 
-        /// </summary>
-        /// <seealso cref="Lucene.Net.Index.IndexReader.GetTermFreqVector(int, String)">
-        /// </seealso>
-        public bool IsTermVectorStored
-        {
-            get { return storeTermVector; }
-        }
-
-        /// <summary> True iff terms are stored as term vector together with their offsets 
-        /// (start and end position in source text).
-        /// </summary>
-        public virtual bool IsStoreOffsetWithTermVector
-        {
-            get { return storeOffsetWithTermVector; }
-        }
-
-        /// <summary> True iff terms are stored as term vector together with their token positions.</summary>
-        public virtual bool IsStorePositionWithTermVector
-        {
-            get { return storePositionWithTermVector; }
-        }
-
-        /// <summary>True iff the value of the filed is stored as binary </summary>
-        public bool IsBinary
-        {
-            get { return internalIsBinary; }
-        }
-
-
-        /// <summary> Return the raw byte[] for the binary field.  Note that
-        /// you must also call <see cref="BinaryLength" /> and <see cref="BinaryOffset" />
-        /// to know which range of bytes in this
-        /// returned array belong to the field.
-        /// </summary>
-        /// <returns> reference to the Field value as byte[]. </returns>
-        public virtual byte[] GetBinaryValue()
-        {
-            return GetBinaryValue(null);
-        }
-
-        public virtual byte[] GetBinaryValue(byte[] result)
-        {
-            if (internalIsBinary || fieldsData is byte[])
-                return (byte[]) fieldsData;
-            else
-                return null;
-        }
-
-        /// <summary> Returns length of byte[] segment that is used as value, if Field is not binary
-        /// returned value is undefined
-        /// </summary>
-        /// <value> length of byte[] segment that represents this Field value </value>
-        public virtual int BinaryLength
-        {
-            get
-            {
-                if (internalIsBinary)
-                {
-                    return internalBinaryLength;
-                }
-                return fieldsData is byte[] ? ((byte[]) fieldsData).Length : 0;
-            }
-        }
-
-        /// <summary> Returns offset into byte[] segment that is used as value, if Field is not binary
-        /// returned value is undefined
-        /// </summary>
-        /// <value> index of the first character in byte[] segment that represents this Field value </value>
-        public virtual int BinaryOffset
-        {
-            get { return internalbinaryOffset; }
-        }
-
-        /// <summary>True if norms are omitted for this indexed field </summary>
-        public virtual bool OmitNorms
-        {
-            get { return internalOmitNorms; }
-            set { this.internalOmitNorms = value; }
-        }
-
-        /// <summary>Expert:
-        /// 
-        /// If set, omit term freq, positions and payloads from
-        /// postings for this field.
-        /// 
-        /// <p/><b>NOTE</b>: While this option reduces storage space
-        /// required in the index, it also means any query
-        /// requiring positional information, such as <see cref="PhraseQuery" />
-        /// or <see cref="SpanQuery" /> subclasses will
-        /// silently fail to find results.
-        /// </summary>
-        public virtual bool OmitTermFreqAndPositions
-        {
-            set { this.internalOmitTermFreqAndPositions = value; }
-            get { return internalOmitTermFreqAndPositions; }
-        }
-
-        public virtual bool IsLazy
-        {
-            get { return lazy; }
-        }
-
-        /// <summary>Prints a Field for human consumption. </summary>
-        public override System.String ToString()
-        {
-            System.Text.StringBuilder result = new System.Text.StringBuilder();
-            if (internalIsStored)
-            {
-                result.Append("stored");
-            }
-            if (internalIsIndexed)
-            {
-                if (result.Length > 0)
-                    result.Append(",");
-                result.Append("indexed");
-            }
-            if (internalIsTokenized)
-            {
-                if (result.Length > 0)
-                    result.Append(",");
-                result.Append("tokenized");
-            }
-            if (storeTermVector)
-            {
-                if (result.Length > 0)
-                    result.Append(",");
-                result.Append("termVector");
-            }
-            if (storeOffsetWithTermVector)
-            {
-                if (result.Length > 0)
-                    result.Append(",");
-                result.Append("termVectorOffsets");
-            }
-            if (storePositionWithTermVector)
-            {
-                if (result.Length > 0)
-                    result.Append(",");
-                result.Append("termVectorPosition");
-            }
-            if (internalIsBinary)
-            {
-                if (result.Length > 0)
-                    result.Append(",");
-                result.Append("binary");
-            }
-            if (internalOmitNorms)
-            {
-                result.Append(",omitNorms");
-            }
-            if (internalOmitTermFreqAndPositions)
-            {
-                result.Append(",omitTermFreqAndPositions");
-            }
-            if (lazy)
-            {
-                result.Append(",lazy");
-            }
-            result.Append('<');
-            result.Append(internalName);
-            result.Append(':');
-            
-            if (fieldsData != null && lazy == false)
-            {
-                result.Append(fieldsData);
-            }
-            
-            result.Append('>');
-            return result.ToString();
-        }
-
-        public abstract TokenStream TokenStreamValue { get; }
-        public abstract TextReader ReaderValue { get; }
-        public abstract string StringValue { get; }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/DateField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/DateField.cs b/src/Lucene.Net.Core/Document/DateField.cs
deleted file mode 100644
index 219c7d9..0000000
--- a/src/Lucene.Net.Core/Document/DateField.cs
+++ /dev/null
@@ -1,138 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-using Lucene.Net.Search;
-using Lucene.Net.Support;
-using NumericUtils = Lucene.Net.Util.NumericUtils;
-using PrefixQuery = Lucene.Net.Search.PrefixQuery;
-using TermRangeQuery = Lucene.Net.Search.TermRangeQuery;
-// for javadoc
-
-namespace Lucene.Net.Documents
-{
-    // for javadoc
-    
-    // do not remove in 3.0, needed for reading old indexes!
-    
-    /// <summary> Provides support for converting dates to strings and vice-versa.
-    /// The strings are structured so that lexicographic sorting orders by date,
-    /// which makes them suitable for use as field values and search terms.
-    /// 
-    /// <p/>Note that this class saves dates with millisecond granularity,
-    /// which is bad for <see cref="TermRangeQuery" /> and <see cref="PrefixQuery" />, as those
-    /// queries are expanded to a BooleanQuery with a potentially large number
-    /// of terms when searching. Thus you might want to use
-    /// <see cref="DateTools" /> instead.
-    /// 
-    /// <p/>
-    /// Note: dates before 1970 cannot be used, and therefore cannot be
-    /// indexed when using this class. See <see cref="DateTools" /> for an
-    /// alternative without such a limitation.
-    /// 
-    /// <p/>
-    /// Another approach is <see cref="NumericUtils" />, which provides
-    /// a sortable binary representation (prefix encoded) of numeric values, which
-    /// date/time are.
-    /// For indexing a <see cref="DateTime" />, convert it to unix timestamp as
-    /// <c>long</c> and
-    /// index this as a numeric value with <see cref="NumericField" />
-    /// and use <see cref="NumericRangeQuery{T}" /> to query it.
-    /// 
-    /// </summary>
-    /// <deprecated> If you build a new index, use <see cref="DateTools" /> or 
-    /// <see cref="NumericField" /> instead.
-    /// This class is included for use with existing
-    /// indices and will be removed in a future (possibly Lucene 4.0)
-    /// </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 (possibly Lucene 4.0).")]
-    public class DateField
-    {
-        
-        private DateField()
-        {
-        }
-        
-        // make date strings long enough to last a millenium
-        private static int DATE_LEN = Number.ToString(1000L * 365 * 24 * 60 * 60 * 1000, Number.MAX_RADIX).Length;
-
-        public static System.String MIN_DATE_STRING()
-        {
-            return TimeToString(0);
-        }
-        
-        public static System.String MAX_DATE_STRING()
-        {
-            char[] buffer = new char[DATE_LEN];
-            char c = Character.ForDigit(Character.MAX_RADIX - 1, Character.MAX_RADIX);
-            for (int i = 0; i < DATE_LEN; i++)
-                buffer[i] = c;
-            return new System.String(buffer);
-        }
-        
-        /// <summary> Converts a Date to a string suitable for indexing.</summary>
-        /// <throws>  RuntimeException if the date specified in the </throws>
-        /// <summary> method argument is before 1970
-        /// </summary>
-        public static System.String DateToString(System.DateTime date)
-        {
-            TimeSpan ts = date.Subtract(new DateTime(1970, 1, 1));
-            ts = ts.Subtract(TimeZone.CurrentTimeZone.GetUtcOffset(date));
-            return TimeToString(ts.Ticks / TimeSpan.TicksPerMillisecond);
-        }
-        /// <summary> Converts a millisecond time to a string suitable for indexing.</summary>
-        /// <throws>  RuntimeException if the time specified in the </throws>
-        /// <summary> method argument is negative, that is, before 1970
-        /// </summary>
-        public static System.String TimeToString(long time)
-        {
-            if (time < 0)
-                throw new System.SystemException("time '" + time + "' is too early, must be >= 0");
-
-            System.String s = Number.ToString(time, Character.MAX_RADIX);
-            
-            if (s.Length > DATE_LEN)
-                throw new System.SystemException("time '" + time + "' is too late, length of string " + "representation must be <= " + DATE_LEN);
-            
-            // Pad with leading zeros
-            if (s.Length < DATE_LEN)
-            {
-                System.Text.StringBuilder sb = new System.Text.StringBuilder(s);
-                while (sb.Length < DATE_LEN)
-                    sb.Insert(0, 0);
-                s = sb.ToString();
-            }
-            
-            return s;
-        }
-        
-        /// <summary>Converts a string-encoded date into a millisecond time. </summary>
-        public static long StringToTime(System.String s)
-        {
-            return Number.Parse(s, Number.MAX_RADIX);
-        }
-        /// <summary>Converts a string-encoded date into a Date object. </summary>
-        public static System.DateTime StringToDate(System.String s)
-        {
-            long ticks = StringToTime(s) * TimeSpan.TicksPerMillisecond;
-            System.DateTime date = new System.DateTime(1970, 1, 1);
-            date = date.AddTicks(ticks);
-            date = date.Add(TimeZone.CurrentTimeZone.GetUtcOffset(date));
-            return date;
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/FieldSelector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/FieldSelector.cs b/src/Lucene.Net.Core/Document/FieldSelector.cs
deleted file mode 100644
index 18d2e1c..0000000
--- a/src/Lucene.Net.Core/Document/FieldSelector.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-
-namespace Lucene.Net.Documents
-{
-    /// <summary> Similar to a <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileFilter.html">
-    /// java.io.FileFilter</a>, the FieldSelector allows one to make decisions about
-    /// what Fields get loaded on a <see cref="Document" /> by <see cref="Lucene.Net.Index.IndexReader.Document(int,Lucene.Net.Documents.FieldSelector)" />
-    /// </summary>
-    public interface FieldSelector
-    {
-        
-        /// <summary> </summary>
-        /// <param name="fieldName">the field to accept or reject
-        /// </param>
-        /// <returns> an instance of <see cref="FieldSelectorResult" />
-        /// if the <see cref="Field" /> named <c>fieldName</c> should be loaded.
-        /// </returns>
-        FieldSelectorResult Accept(System.String fieldName);
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/FieldSelectorResult.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/FieldSelectorResult.cs b/src/Lucene.Net.Core/Document/FieldSelectorResult.cs
deleted file mode 100644
index 15c8606..0000000
--- a/src/Lucene.Net.Core/Document/FieldSelectorResult.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-
-using System.Runtime.InteropServices;
-
-namespace Lucene.Net.Documents
-{
-    /// <summary>Provides information about what should be done with this Field</summary>
-    public enum FieldSelectorResult
-    {
-        /// <summary>
-        /// 
-        /// </summary>
-        INVALID, // TODO: This is kinda a kludgy workaround for the fact enums can't be null 
-
-        /// <summary> Load this <see cref="Field" /> every time the <see cref="Document" /> is loaded, reading in the data as it is encountered.
-        /// <see cref="Document.GetField(String)" /> and <see cref="Document.GetFieldable(String)" /> should not return null.
-        /// <p/>
-        /// <see cref="Document.Add(IFieldable)" /> should be called by the Reader.
-        /// </summary>
-        LOAD,
-
-        /// <summary> Lazily load this <see cref="Field" />.  This means the <see cref="Field" /> is valid, but it may not actually contain its data until
-        /// invoked.  <see cref="Document.GetField(String)" /> SHOULD NOT BE USED.  <see cref="Document.GetFieldable(String)" /> is safe to use and should
-        /// return a valid instance of a <see cref="IFieldable" />.
-        /// <p/>
-        /// <see cref="Document.Add(IFieldable)" /> should be called by the Reader.
-        /// </summary>
-        LAZY_LOAD,
-
-        /// <summary> Do not load the <see cref="Field" />.  <see cref="Document.GetField(String)" /> and <see cref="Document.GetFieldable(String)" /> should return null.
-        /// <see cref="Document.Add(IFieldable)" /> is not called.
-        /// <p/>
-        /// <see cref="Document.Add(IFieldable)" /> should not be called by the Reader.
-        /// </summary>
-        NO_LOAD,
-
-        /// <summary> Load this field as in the <see cref="LOAD" /> case, but immediately return from <see cref="Field" /> loading for the <see cref="Document" />.  Thus, the
-        /// Document may not have its complete set of Fields.  <see cref="Document.GetField(String)" /> and <see cref="Document.GetFieldable(String)" /> should
-        /// both be valid for this <see cref="Field" />
-        /// <p/>
-        /// <see cref="Document.Add(IFieldable)" /> should be called by the Reader.
-        /// </summary>
-        LOAD_AND_BREAK,
-
-        /// <summary>Expert:  Load the size of this <see cref="Field" /> rather than its value.
-        /// Size is measured as number of bytes required to store the field == bytes for a binary or any compressed value, and 2*chars for a String value.
-        /// The size is stored as a binary value, represented as an int in a byte[], with the higher order byte first in [0]
-        /// </summary>
-        SIZE,
-
-        /// <summary>Expert: Like <see cref="SIZE" /> but immediately break from the field loading loop, i.e., stop loading further fields, after the size is loaded </summary>         
-        SIZE_AND_BREAK
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/Fieldable.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/Fieldable.cs b/src/Lucene.Net.Core/Document/Fieldable.cs
deleted file mode 100644
index daa47f2..0000000
--- a/src/Lucene.Net.Core/Document/Fieldable.cs
+++ /dev/null
@@ -1,205 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-using System.IO;
-using TokenStream = Lucene.Net.Analysis.TokenStream;
-using FieldInvertState = Lucene.Net.Index.FieldInvertState;
-
-namespace Lucene.Net.Documents
-{
-    /// <summary> Synonymous with <see cref="Field" />.
-    /// 
-    /// <p/><bold>WARNING</bold>: This interface may change within minor versions, despite Lucene's backward compatibility requirements.
-    /// This means new methods may be added from version to version.  This change only affects the Fieldable API; other backwards
-    /// compatibility promises remain intact. For example, Lucene can still
-    /// read and write indices created within the same major version.
-    /// <p/>
-    /// 
-    /// 
-    /// </summary>
-    public interface IFieldable
-    {
-        /// <summary>Gets or sets the boost factor for hits for this field.  This value will be
-        /// multiplied into the score of all hits on this this field of this
-        /// document.
-        /// 
-        /// <p/>The boost is multiplied by <see cref="Lucene.Net.Documents.Document.Boost" /> of the document
-        /// containing this field.  If a document has multiple fields with the same
-        /// name, all such values are multiplied together.  This product is then
-        /// used to compute the norm factor for the field.  By
-        /// default, in the <see cref="Lucene.Net.Search.Similarity.ComputeNorm(String,Lucene.Net.Index.FieldInvertState)"/>
-        /// method, the boost value is multiplied
-        /// by the <see cref="Lucene.Net.Search.Similarity.LengthNorm(String,int)"/>
-        /// and then rounded by <see cref="Lucene.Net.Search.Similarity.EncodeNorm(float)" /> before it is stored in the
-        /// index.  One should attempt to ensure that this product does not overflow
-        /// the range of that encoding.
-        /// 
-        /// <p/>The default value is 1.0.
-        /// 
-        /// <p/>Note: this value is not stored directly with the document in the index.
-        /// Documents returned from <see cref="Lucene.Net.Index.IndexReader.Document(int)" /> and
-        /// <see cref="Lucene.Net.Search.Searcher.Doc(int)" /> may thus not have the same value present as when
-        /// this field was indexed.
-        /// 
-        /// </summary>
-        /// <seealso cref="Lucene.Net.Documents.Document.Boost">
-        /// </seealso>
-        /// <seealso cref="Lucene.Net.Search.Similarity.ComputeNorm(String, FieldInvertState)">
-        /// </seealso>
-        /// <seealso cref="Lucene.Net.Search.Similarity.EncodeNorm(float)">
-        /// </seealso>
-        float Boost { get; set; }
-
-        /// <summary>Returns the name of the field as an interned string.
-        /// For example "date", "title", "body", ...
-        /// </summary>
-        string Name { get; }
-
-        /// <summary>The value of the field as a String, or null.
-        /// <p/>
-        /// For indexing, if isStored()==true, the stringValue() will be used as the stored field value
-        /// unless isBinary()==true, in which case GetBinaryValue() will be used.
-        /// 
-        /// If isIndexed()==true and isTokenized()==false, this String value will be indexed as a single token.
-        /// If isIndexed()==true and isTokenized()==true, then tokenStreamValue() will be used to generate indexed tokens if not null,
-        /// else readerValue() will be used to generate indexed tokens if not null, else stringValue() will be used to generate tokens.
-        /// </summary>
-        string StringValue { get; }
-
-        /// <summary>The value of the field as a Reader, which can be used at index time to generate indexed tokens.</summary>
-        /// <seealso cref="StringValue()">
-        /// </seealso>
-        TextReader ReaderValue { get; }
-
-        /// <summary>The TokenStream for this field to be used when indexing, or null.</summary>
-        /// <seealso cref="StringValue()">
-        /// </seealso>
-        TokenStream TokenStreamValue { get; }
-
-        /// <summary>True if the value of the field is to be stored in the index for return
-        /// with search hits. 
-        /// </summary>
-        bool IsStored { get; }
-
-        /// <summary>True if the value of the field is to be indexed, so that it may be
-        /// searched on. 
-        /// </summary>
-        bool IsIndexed { get; }
-
-        /// <summary>True if the value of the field should be tokenized as text prior to
-        /// indexing.  Un-tokenized fields are indexed as a single word and may not be
-        /// Reader-valued. 
-        /// </summary>
-        bool IsTokenized { get; }
-
-        /// <summary>True if the term or terms used to index this field are stored as a term
-        /// vector, available from <see cref="Lucene.Net.Index.IndexReader.GetTermFreqVector(int,String)" />.
-        /// These methods do not provide access to the original content of the field,
-        /// only to terms used to index it. If the original content must be
-        /// preserved, use the <c>stored</c> attribute instead.
-        /// 
-        /// </summary>
-        /// <seealso cref="Lucene.Net.Index.IndexReader.GetTermFreqVector(int, String)">
-        /// </seealso>
-        bool IsTermVectorStored { get; }
-
-        /// <summary> True if terms are stored as term vector together with their offsets 
-        /// (start and end positon in source text).
-        /// </summary>
-        bool IsStoreOffsetWithTermVector { get; }
-
-        /// <summary> True if terms are stored as term vector together with their token positions.</summary>
-        bool IsStorePositionWithTermVector { get; }
-
-        /// <summary>True if the value of the field is stored as binary </summary>
-        bool IsBinary { get; }
-
-        /// <summary>
-        /// True if norms are omitted for this indexed field.
-        /// <para>
-        /// Expert:
-        /// If set, omit normalization factors associated with this indexed field.
-        /// This effectively disables indexing boosts and length normalization for this field.
-        /// </para>
-        /// </summary>
-        bool OmitNorms { get; set; }
-
-
-        /// <summary> Indicates whether a Field is Lazy or not.  The semantics of Lazy loading are such that if a Field is lazily loaded, retrieving
-        /// it's values via <see cref="StringValue()" /> or <see cref="GetBinaryValue()" /> is only valid as long as the <see cref="Lucene.Net.Index.IndexReader" /> that
-        /// retrieved the <see cref="Document" /> is still open.
-        /// 
-        /// </summary>
-        /// <value> true if this field can be loaded lazily </value>
-        bool IsLazy { get; }
-
-        /// <summary> Returns offset into byte[] segment that is used as value, if Field is not binary
-        /// returned value is undefined
-        /// </summary>
-        /// <value> index of the first character in byte[] segment that represents this Field value </value>
-        int BinaryOffset { get; }
-
-        /// <summary> Returns length of byte[] segment that is used as value, if Field is not binary
-        /// returned value is undefined
-        /// </summary>
-        /// <value> length of byte[] segment that represents this Field value </value>
-        int BinaryLength { get; }
-
-        /// <summary> Return the raw byte[] for the binary field.  Note that
-        /// you must also call <see cref="BinaryLength" /> and <see cref="BinaryOffset" />
-        /// to know which range of bytes in this
-        /// returned array belong to the field.
-        /// </summary>
-        /// <returns> reference to the Field value as byte[]. </returns>
-        byte[] GetBinaryValue();
-
-        /// <summary> Return the raw byte[] for the binary field.  Note that
-        /// you must also call <see cref="BinaryLength" /> and <see cref="BinaryOffset" />
-        /// to know which range of bytes in this
-        /// returned array belong to the field.<p/>
-        /// About reuse: if you pass in the result byte[] and it is
-        /// used, likely the underlying implementation will hold
-        /// onto this byte[] and return it in future calls to
-        /// <see cref="GetBinaryValue()" /> or <see cref="GetBinaryValue()" />.
-        /// So if you subsequently re-use the same byte[] elsewhere
-        /// it will alter this Fieldable's value.
-        /// </summary>
-        /// <param name="result"> User defined buffer that will be used if
-        /// possible.  If this is null or not large enough, a new
-        /// buffer is allocated
-        /// </param>
-        /// <returns> reference to the Field value as byte[].
-        /// </returns>
-        byte[] GetBinaryValue(byte[] result);
-
-        /// Expert:
-        /// <para>
-        /// If set, omit term freq, positions and payloads from
-        /// postings for this field.
-        /// </para>
-        /// <para>
-        /// <b>NOTE</b>: While this option reduces storage space
-        /// required in the index, it also means any query
-        /// requiring positional information, such as
-        /// <see cref="Lucene.Net.Search.PhraseQuery"/> or 
-        /// <see cref="Lucene.Net.Search.Spans.SpanQuery"/> 
-        /// subclasses will silently fail to find results.
-        /// </para>
-        bool OmitTermFreqAndPositions { set; get; }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/LoadFirstFieldSelector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/LoadFirstFieldSelector.cs b/src/Lucene.Net.Core/Document/LoadFirstFieldSelector.cs
deleted file mode 100644
index c6a9dc3..0000000
--- a/src/Lucene.Net.Core/Document/LoadFirstFieldSelector.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-namespace Lucene.Net.Documents
-{
-    
-    /// <summary> Load the First field and break.
-    /// <p/>
-    /// See <see cref="FieldSelectorResult.LOAD_AND_BREAK" />
-    /// </summary>
-    [Serializable]
-    public class LoadFirstFieldSelector : FieldSelector
-    {
-        
-        public virtual FieldSelectorResult Accept(System.String fieldName)
-        {
-            return FieldSelectorResult.LOAD_AND_BREAK;
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/MapFieldSelector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/MapFieldSelector.cs b/src/Lucene.Net.Core/Document/MapFieldSelector.cs
deleted file mode 100644
index 87d91ff..0000000
--- a/src/Lucene.Net.Core/Document/MapFieldSelector.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-using System.Linq;
-using System.Collections.Generic;
-using Lucene.Net.Support;
-
-namespace Lucene.Net.Documents
-{
-    /// <summary>A <see cref="FieldSelector" /> based on a Map of field names to <see cref="FieldSelectorResult" />s</summary>
-    [Serializable]
-    public class MapFieldSelector : FieldSelector
-    {
-        internal IDictionary<string, FieldSelectorResult> fieldSelections;
-        
-        /// <summary>Create a a MapFieldSelector</summary>
-        /// <param name="fieldSelections">maps from field names (String) to <see cref="FieldSelectorResult" />s
-        /// </param>
-        public MapFieldSelector(IDictionary<string, FieldSelectorResult> fieldSelections)
-        {
-            this.fieldSelections = fieldSelections;
-        }
-        
-        /// <summary>Create a a MapFieldSelector</summary>
-        /// <param name="fields">fields to LOAD.  List of Strings.  All other fields are NO_LOAD.
-        /// </param>
-        public MapFieldSelector(IList<string> fields)
-        {
-            fieldSelections = new HashMap<string, FieldSelectorResult>(fields.Count * 5 / 3);
-            foreach(var field in fields)
-                fieldSelections[field] = FieldSelectorResult.LOAD;
-        }
-        
-        /// <summary>Create a a MapFieldSelector</summary>
-        /// <param name="fields">fields to LOAD.  All other fields are NO_LOAD.
-        /// </param>
-        public MapFieldSelector(params System.String[] fields)
-            : this(fields.ToList()) // TODO: this is slow
-        {
-        }
-        
-        /// <summary>Load field according to its associated value in fieldSelections</summary>
-        /// <param name="field">a field name
-        /// </param>
-        /// <returns> the fieldSelections value that field maps to or NO_LOAD if none.
-        /// </returns>
-        public virtual FieldSelectorResult Accept(System.String field)
-        {
-            FieldSelectorResult selection = fieldSelections[field];
-            return selection != FieldSelectorResult.INVALID ? selection : FieldSelectorResult.NO_LOAD; // TODO: See FieldSelectorResult
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/NumberTools.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/NumberTools.cs b/src/Lucene.Net.Core/Document/NumberTools.cs
deleted file mode 100644
index 9a467a7..0000000
--- a/src/Lucene.Net.Core/Document/NumberTools.cs
+++ /dev/null
@@ -1,221 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-using Lucene.Net.Search;
-using NumericUtils = Lucene.Net.Util.NumericUtils;
-
-namespace Lucene.Net.Documents
-{
-    
-    // do not remove this class in 3.0, it may be needed to decode old indexes!
-    
-    /// <summary> Provides support for converting longs to Strings, and back again. The strings
-    /// are structured so that lexicographic sorting order is preserved.
-    /// 
-    /// <p/>
-    /// That is, if l1 is less than l2 for any two longs l1 and l2, then
-    /// NumberTools.longToString(l1) is lexicographically less than
-    /// NumberTools.longToString(l2). (Similarly for "greater than" and "equals".)
-    /// 
-    /// <p/>
-    /// This class handles <b>all</b> long values (unlike
-    /// <see cref="Lucene.Net.Documents.DateField" />).
-    /// 
-    /// </summary>
-    /// <deprecated> For new indexes use <see cref="NumericUtils" /> instead, which
-    /// provides a sortable binary representation (prefix encoded) of numeric
-    /// values.
-    /// To index and efficiently query numeric values use <see cref="NumericField" />
-    /// and <see cref="NumericRangeQuery{T}" />.
-    /// This class is included for use with existing
-    /// indices and will be removed in a future release (possibly Lucene 4.0).
-    /// </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 (possibly Lucene 4.0).")]
-    public class NumberTools
-    {
-        
-        private const int RADIX = 36;
-        
-        private const char NEGATIVE_PREFIX = '-';
-        
-        // NB: NEGATIVE_PREFIX must be < POSITIVE_PREFIX
-        private const char POSITIVE_PREFIX = '0';
-        
-        //NB: this must be less than
-        /// <summary> Equivalent to longToString(Long.MIN_VALUE)</summary>
-#if !PRE_LUCENE_NET_2_0_0_COMPATIBLE
-        public static readonly System.String MIN_STRING_VALUE = NEGATIVE_PREFIX + "0000000000000";
-#else
-        public static readonly System.String MIN_STRING_VALUE = NEGATIVE_PREFIX + "0000000000000000";
-#endif
-        
-        /// <summary> Equivalent to longToString(Long.MAX_VALUE)</summary>
-#if !PRE_LUCENE_NET_2_0_0_COMPATIBLE
-        public static readonly System.String MAX_STRING_VALUE = POSITIVE_PREFIX + "1y2p0ij32e8e7";
-#else
-        public static readonly System.String MAX_STRING_VALUE = POSITIVE_PREFIX + "7fffffffffffffff";
-#endif
-        
-        /// <summary> The length of (all) strings returned by <see cref="LongToString" /></summary>
-        public static readonly int STR_SIZE = MIN_STRING_VALUE.Length;
-        
-        /// <summary> Converts a long to a String suitable for indexing.</summary>
-        public static System.String LongToString(long l)
-        {
-            
-            if (l == System.Int64.MinValue)
-            {
-                // special case, because long is not symmetric around zero
-                return MIN_STRING_VALUE;
-            }
-            
-            System.Text.StringBuilder buf = new System.Text.StringBuilder(STR_SIZE);
-            
-            if (l < 0)
-            {
-                buf.Append(NEGATIVE_PREFIX);
-                l = System.Int64.MaxValue + l + 1;
-            }
-            else
-            {
-                buf.Append(POSITIVE_PREFIX);
-            }
-#if !PRE_LUCENE_NET_2_0_0_COMPATIBLE
-            System.String num = ToString(l);
-#else
-            System.String num = System.Convert.ToString(l, RADIX);
-#endif
-            
-            int padLen = STR_SIZE - num.Length - buf.Length;
-            while (padLen-- > 0)
-            {
-                buf.Append('0');
-            }
-            buf.Append(num);
-            
-            return buf.ToString();
-        }
-        
-        /// <summary> Converts a String that was returned by <see cref="LongToString" /> back to a
-        /// long.
-        /// 
-        /// </summary>
-        /// <throws>  IllegalArgumentException </throws>
-        /// <summary>             if the input is null
-        /// </summary>
-        /// <throws>  NumberFormatException </throws>
-        /// <summary>             if the input does not parse (it was not a String returned by
-        /// longToString()).
-        /// </summary>
-        public static long StringToLong(System.String str)
-        {
-            if (str == null)
-            {
-                throw new System.NullReferenceException("string cannot be null");
-            }
-            if (str.Length != STR_SIZE)
-            {
-                throw new System.FormatException("string is the wrong size");
-            }
-            
-            if (str.Equals(MIN_STRING_VALUE))
-            {
-                return System.Int64.MinValue;
-            }
-            
-            char prefix = str[0];
-#if !PRE_LUCENE_NET_2_0_0_COMPATIBLE
-            long l = ToLong(str.Substring(1));
-#else
-            long l = System.Convert.ToInt64(str.Substring(1), RADIX);
-#endif
-            
-            if (prefix == POSITIVE_PREFIX)
-            {
-                // nop
-            }
-            else if (prefix == NEGATIVE_PREFIX)
-            {
-                l = l - System.Int64.MaxValue - 1;
-            }
-            else
-            {
-                throw new System.FormatException("string does not begin with the correct prefix");
-            }
-            
-            return l;
-        }
-
-#if !PRE_LUCENE_NET_2_0_0_COMPATIBLE
-        #region BASE36 OPS 
-        static System.String digits = "0123456789abcdefghijklmnopqrstuvwxyz";
-        static long[] powersOf36 = 
-            {
-                1L,
-                36L,
-                36L*36L,
-                36L*36L*36L,
-                36L*36L*36L*36L,
-                36L*36L*36L*36L*36L,
-                36L*36L*36L*36L*36L*36L,
-                36L*36L*36L*36L*36L*36L*36L,
-                36L*36L*36L*36L*36L*36L*36L*36L,
-                36L*36L*36L*36L*36L*36L*36L*36L*36L,
-                36L*36L*36L*36L*36L*36L*36L*36L*36L*36L,
-                36L*36L*36L*36L*36L*36L*36L*36L*36L*36L*36L,
-                36L*36L*36L*36L*36L*36L*36L*36L*36L*36L*36L*36L
-            };
-
-        public static System.String ToString(long lval)
-        {
-            if (lval == 0)
-            {
-                return "0";
-            }
-
-            int maxStrLen = powersOf36.Length;
-            long curval = lval;
-
-            char[] tb = new char[maxStrLen];
-            int outpos = 0;
-            for (int i = 0; i < maxStrLen; i++)
-            {
-                long pval = powersOf36[maxStrLen - i - 1];
-                int pos = (int)(curval / pval);
-                tb[outpos++] = digits.Substring(pos, 1).ToCharArray()[0];
-                curval = curval % pval;
-            }
-            if (outpos == 0)
-                tb[outpos++] = '0';
-            return new System.String(tb, 0, outpos).TrimStart('0');
-        }
-
-        public static long ToLong(System.String t)
-        {
-            long ival = 0;
-            char[] tb = t.ToCharArray();
-            for (int i = 0; i < tb.Length; i++)
-            {
-                ival += powersOf36[i] * digits.IndexOf(tb[tb.Length - i - 1]);
-            }
-            return ival;
-        }
-        #endregion
-#endif
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/NumericField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/NumericField.cs b/src/Lucene.Net.Core/Document/NumericField.cs
deleted file mode 100644
index 214f357..0000000
--- a/src/Lucene.Net.Core/Document/NumericField.cs
+++ /dev/null
@@ -1,301 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-using System.Globalization;
-using System.IO;
-using Lucene.Net.Search;
-using NumericTokenStream = Lucene.Net.Analysis.NumericTokenStream;
-using TokenStream = Lucene.Net.Analysis.TokenStream;
-using NumericUtils = Lucene.Net.Util.NumericUtils;
-using FieldCache = Lucene.Net.Search.FieldCache;
-using SortField = Lucene.Net.Search.SortField;
-
-namespace Lucene.Net.Documents
-{
-    // javadocs
-    
-    /// <summary> <p/>This class provides a <see cref="Field" /> that enables indexing
-    /// of numeric values for efficient range filtering and
-    /// sorting.  Here's an example usage, adding an int value:
-    /// <code>
-    /// document.add(new NumericField(name).setIntValue(value));
-    /// </code>
-    /// 
-    /// For optimal performance, re-use the
-    /// <c>NumericField</c> and <see cref="Document" /> instance for more than
-    /// one document:
-    /// 
-    /// <code>
-    /// NumericField field = new NumericField(name);
-    /// Document document = new Document();
-    /// document.add(field);
-    /// 
-    /// for(all documents) {
-    /// ...
-    /// field.setIntValue(value)
-    /// writer.addDocument(document);
-    /// ...
-    /// }
-    /// </code>
-    /// 
-    /// <p/>The .Net native types <c>int</c>, <c>long</c>,
-    /// <c>float</c> and <c>double</c> are
-    /// directly supported.  However, any value that can be
-    /// converted into these native types can also be indexed.
-    /// For example, date/time values represented by a
-    /// <see cref="System.DateTime" /> can be translated into a long
-    /// value using the <c>java.util.Date.getTime</c> method.  If you
-    /// don't need millisecond precision, you can quantize the
-    /// value, either by dividing the result of
-    /// <c>java.util.Date.getTime</c> or using the separate getters
-    /// (for year, month, etc.) to construct an <c>int</c> or
-    /// <c>long</c> value.<p/>
-    /// 
-    /// <p/>To perform range querying or filtering against a
-    /// <c>NumericField</c>, use <see cref="NumericRangeQuery{T}" /> or <see cref="NumericRangeFilter{T}" />
-    ///.  To sort according to a
-    /// <c>NumericField</c>, use the normal numeric sort types, eg
-    /// <see cref="SortField.INT" />  <c>NumericField</c> values
-    /// can also be loaded directly from <see cref="FieldCache" />.<p/>
-    /// 
-    /// <p/>By default, a <c>NumericField</c>'s value is not stored but
-    /// is indexed for range filtering and sorting.  You can use
-    /// the <see cref="NumericField(String,Field.Store,bool)" />
-    /// constructor if you need to change these defaults.<p/>
-    /// 
-    /// <p/>You may add the same field name as a <c>NumericField</c> 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 <c>NumericField</c>.<p/>
-    /// 
-    /// <p/>A <c>NumericField</c> 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. <p/>
-    /// 
-    /// <p/>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
-    /// use the expert constructor <see cref="NumericField(String,int,Field.Store,bool)" />
-    /// if you'd
-    /// like to change the value.  Note that you must also
-    /// specify a congruent value when creating <see cref="NumericRangeQuery{T}" />
-    /// or <see cref="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.
-    /// 
-    /// <p/>For more information on the internals of numeric trie
-    /// indexing, including the <a
-    /// href="../search/NumericRangeQuery.html#precisionStepDesc"><c>precisionStep</c></a>
-    /// configuration, see <see cref="NumericRangeQuery{T}" />. The format of
-    /// indexed values is described in <see cref="NumericUtils" />.
-    /// 
-    /// <p/>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. <p/>
-    /// 
-    /// <p/>More advanced users can instead use <see cref="NumericTokenStream" />
-    /// directly, when indexing numbers. This
-    /// class is a wrapper around this token stream type for
-    /// easier, more intuitive usage.<p/>
-    /// 
-    /// <p/><b>NOTE:</b> This class is only used during
-    /// indexing. When retrieving the stored field value from a
-    /// <see cref="Document" /> instance after search, you will get a
-    /// conventional <see cref="IFieldable" /> instance where the numeric
-    /// values are returned as <see cref="String" />s (according to
-    /// <c>toString(value)</c> of the used data type).
-    /// 
-    /// <p/><font color="red"><b>NOTE:</b> This API is
-    /// experimental and might change in incompatible ways in the
-    /// next release.</font>
-    /// 
-    /// </summary>
-    /// <since> 2.9
-    /// </since>
-    [Serializable]
-    public sealed class NumericField:AbstractField
-    {
-        
-        new private readonly NumericTokenStream tokenStream;
-        
-        /// <summary> Creates a field for numeric values using the default <c>precisionStep</c>
-        /// <see cref="NumericUtils.PRECISION_STEP_DEFAULT" /> (4). The instance is not yet initialized with
-        /// a numeric value, before indexing a document containing this field,
-        /// set a value using the various set<em>???</em>Value() methods.
-        /// This constructor creates an indexed, but not stored field.
-        /// </summary>
-        /// <param name="name">the field name
-        /// </param>
-        public NumericField(System.String name):this(name, NumericUtils.PRECISION_STEP_DEFAULT, Field.Store.NO, true)
-        {
-        }
-        
-        /// <summary> Creates a field for numeric values using the default <c>precisionStep</c>
-        /// <see cref="NumericUtils.PRECISION_STEP_DEFAULT" /> (4). The instance is not yet initialized with
-        /// a numeric value, before indexing a document containing this field,
-        /// set a value using the various set<em>???</em>Value() methods.
-        /// </summary>
-        /// <param name="name">the field name
-        /// </param>
-        /// <param name="store">if the field should be stored in plain text form
-        /// (according to <c>toString(value)</c> of the used data type)
-        /// </param>
-        /// <param name="index">if the field should be indexed using <see cref="NumericTokenStream" />
-        /// </param>
-        public NumericField(System.String name, Field.Store store, bool index):this(name, NumericUtils.PRECISION_STEP_DEFAULT, store, index)
-        {
-        }
-        
-        /// <summary> Creates a field for numeric values with the specified
-        /// <c>precisionStep</c>. The instance is not yet initialized with
-        /// a numeric value, before indexing a document containing this field,
-        /// set a value using the various set<em>???</em>Value() methods.
-        /// This constructor creates an indexed, but not stored field.
-        /// </summary>
-        /// <param name="name">the field name
-        /// </param>
-        /// <param name="precisionStep">the used <a href="../search/NumericRangeQuery.html#precisionStepDesc">precision step</a>
-        /// </param>
-        public NumericField(System.String name, int precisionStep):this(name, precisionStep, Field.Store.NO, true)
-        {
-        }
-        
-        /// <summary> Creates a field for numeric values with the specified
-        /// <c>precisionStep</c>. The instance is not yet initialized with
-        /// a numeric value, before indexing a document containing this field,
-        /// set a value using the various set<em>???</em>Value() methods.
-        /// </summary>
-        /// <param name="name">the field name
-        /// </param>
-        /// <param name="precisionStep">the used <a href="../search/NumericRangeQuery.html#precisionStepDesc">precision step</a>
-        /// </param>
-        /// <param name="store">if the field should be stored in plain text form
-        /// (according to <c>toString(value)</c> of the used data type)
-        /// </param>
-        /// <param name="index">if the field should be indexed using <see cref="NumericTokenStream" />
-        /// </param>
-        public NumericField(System.String name, int precisionStep, Field.Store store, bool index):base(name, store, index?Field.Index.ANALYZED_NO_NORMS:Field.Index.NO, Field.TermVector.NO)
-        {
-            OmitTermFreqAndPositions = true;
-            tokenStream = new NumericTokenStream(precisionStep);
-        }
-
-        /// <summary>Returns a <see cref="NumericTokenStream" /> for indexing the numeric value. </summary>
-        public override TokenStream TokenStreamValue
-        {
-            get { return IsIndexed ? tokenStream : null; }
-        }
-
-        /// <summary>Returns always <c>null</c> for numeric fields </summary>
-        public override byte[] GetBinaryValue(byte[] result)
-        {
-            return null;
-        }
-
-        /// <summary>Returns always <c>null</c> for numeric fields </summary>
-        public override TextReader ReaderValue
-        {
-            get { return null; }
-        }
-
-        /// <summary>Returns the numeric value as a string (how it is stored, when <see cref="Field.Store.YES" /> is chosen). </summary>
-        public override string StringValue
-        {
-            get
-            {
-                if (fieldsData == null) return null;
-                var fd = fieldsData as IConvertible;
-                if (fd != null) return fd.ToString(CultureInfo.InvariantCulture);
-                return fieldsData.ToString();
-            }
-        }
-
-        /// <summary>Returns the current numeric value as a subclass of <see cref="Number" />, <c>null</c> if not yet initialized. </summary>
-        public ValueType NumericValue
-        {
-            get { return (System.ValueType) fieldsData; }
-        }
-
-        /// <summary> Initializes the field with the supplied <c>long</c> value.</summary>
-        /// <param name="value_Renamed">the numeric value
-        /// </param>
-        /// <returns> this instance, because of this you can use it the following way:
-        /// <c>document.add(new NumericField(name, precisionStep).SetLongValue(value))</c>
-        /// </returns>
-        public NumericField SetLongValue(long value_Renamed)
-        {
-            tokenStream.SetLongValue(value_Renamed);
-            fieldsData = value_Renamed;
-            return this;
-        }
-        
-        /// <summary> Initializes the field with the supplied <c>int</c> value.</summary>
-        /// <param name="value_Renamed">the numeric value
-        /// </param>
-        /// <returns> this instance, because of this you can use it the following way:
-        /// <c>document.add(new NumericField(name, precisionStep).setIntValue(value))</c>
-        /// </returns>
-        public NumericField SetIntValue(int value_Renamed)
-        {
-            tokenStream.SetIntValue(value_Renamed);
-            fieldsData = value_Renamed;
-            return this;
-        }
-        
-        /// <summary> Initializes the field with the supplied <c>double</c> value.</summary>
-        /// <param name="value_Renamed">the numeric value
-        /// </param>
-        /// <returns> this instance, because of this you can use it the following way:
-        /// <c>document.add(new NumericField(name, precisionStep).setDoubleValue(value))</c>
-        /// </returns>
-        public NumericField SetDoubleValue(double value_Renamed)
-        {
-            tokenStream.SetDoubleValue(value_Renamed);
-            fieldsData = value_Renamed;
-            return this;
-        }
-        
-        /// <summary> Initializes the field with the supplied <c>float</c> value.</summary>
-        /// <param name="value_Renamed">the numeric value
-        /// </param>
-        /// <returns> this instance, because of this you can use it the following way:
-        /// <c>document.add(new NumericField(name, precisionStep).setFloatValue(value))</c>
-        /// </returns>
-        public NumericField SetFloatValue(float value_Renamed)
-        {
-            tokenStream.SetFloatValue(value_Renamed);
-            fieldsData = value_Renamed;
-            return this;
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/Document/SetBasedFieldSelector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/SetBasedFieldSelector.cs b/src/Lucene.Net.Core/Document/SetBasedFieldSelector.cs
deleted file mode 100644
index f7c2055..0000000
--- a/src/Lucene.Net.Core/Document/SetBasedFieldSelector.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-/* 
- * 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.
- */
-
-using System;
-using System.Collections.Generic;
-
-namespace Lucene.Net.Documents
-{
-    /// <summary> Declare what fields to load normally and what fields to load lazily
-    /// 
-    /// 
-    /// </summary>
-    [Serializable]
-    public class SetBasedFieldSelector : FieldSelector
-    {
-        private ISet<string> fieldsToLoad;
-        private ISet<string> lazyFieldsToLoad;
-        
-        /// <summary> Pass in the Set of <see cref="Field" /> names to load and the Set of <see cref="Field" /> names to load lazily.  If both are null, the
-        /// Document will not have any <see cref="Field" /> on it.  
-        /// </summary>
-        /// <param name="fieldsToLoad">A Set of <see cref="String" /> field names to load.  May be empty, but not null
-        /// </param>
-        /// <param name="lazyFieldsToLoad">A Set of <see cref="String" /> field names to load lazily.  May be empty, but not null  
-        /// </param>
-        public SetBasedFieldSelector(ISet<string> fieldsToLoad, ISet<string> lazyFieldsToLoad)
-        {
-            this.fieldsToLoad = fieldsToLoad;
-            this.lazyFieldsToLoad = lazyFieldsToLoad;
-        }
-
-        /// <summary> Indicate whether to load the field with the given name or not. If the <see cref="AbstractField.Name()" /> is not in either of the 
-        /// initializing Sets, then <see cref="Lucene.Net.Documents.FieldSelectorResult.NO_LOAD" /> is returned.  If a Field name
-        /// is in both <c>fieldsToLoad</c> and <c>lazyFieldsToLoad</c>, lazy has precedence.
-        /// 
-        /// </summary>
-        /// <param name="fieldName">The <see cref="Field" /> name to check
-        /// </param>
-        /// <returns> The <see cref="FieldSelectorResult" />
-        /// </returns>
-        public virtual FieldSelectorResult Accept(System.String fieldName)
-        {
-            FieldSelectorResult result = FieldSelectorResult.NO_LOAD;
-            if (fieldsToLoad.Contains(fieldName) == true)
-            {
-                result = FieldSelectorResult.LOAD;
-            }
-            if (lazyFieldsToLoad.Contains(fieldName) == true)
-            {
-                result = FieldSelectorResult.LAZY_LOAD;
-            }
-            return result;
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5816429c/src/Lucene.Net.Core/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/project.json b/src/Lucene.Net.Core/project.json
index 6c8e54a..cd8e1a3 100644
--- a/src/Lucene.Net.Core/project.json
+++ b/src/Lucene.Net.Core/project.json
@@ -14,7 +14,6 @@
         "define": [ "FEATURE_TASKMERGESCHEDULER", "NETSTANDARD" ],
         "compile": {
           "exclude": [
-            "Document/FieldSelector*.cs",
             "Index/CompoundFile*.cs",
             "Index/DefaultSkipList*.cs",
             "Index/FormatPostings*.cs",
@@ -33,14 +32,6 @@
           ],
           "excludeFiles": [
             "RectangularArrays.cs",
-            "Document/AbstractField.cs",
-            "Document/DateField.cs",
-            "Document/Fieldable.cs",
-            "Document/LoadFirstFieldSelector.cs",
-            "Document/MapFieldSelector.cs",
-            "Document/NumberTools.cs",
-            "Document/NumericField.cs",
-            "Document/SetBasedFieldSelector.cs",
             "Index/AbstractAllTermDocs.cs",
             "Index/AllTermDocs.cs",
             "Index/BufferedDeletes.cs",
@@ -156,7 +147,6 @@
         ],
         "compile": {
           "exclude": [
-            "Document/FieldSelector*.cs",
             "Index/CompoundFile*.cs",
             "Index/DefaultSkipList*.cs",
             "Index/FormatPostings*.cs",
@@ -175,14 +165,6 @@
           ],
           "excludeFiles": [
             "RectangularArrays.cs",
-            "Document/AbstractField.cs",
-            "Document/DateField.cs",
-            "Document/Fieldable.cs",
-            "Document/LoadFirstFieldSelector.cs",
-            "Document/MapFieldSelector.cs",
-            "Document/NumberTools.cs",
-            "Document/NumericField.cs",
-            "Document/SetBasedFieldSelector.cs",
             "Index/AbstractAllTermDocs.cs",
             "Index/AllTermDocs.cs",
             "Index/BufferedDeletes.cs",


Mime
View raw message