lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [20/62] [abbrv] lucenenet git commit: Deleted obsolete Contrib folder
Date Sat, 01 Apr 2017 01:09:13 GMT
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/FieldQuery.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/FieldQuery.cs b/src/contrib/FastVectorHighlighter/FieldQuery.cs
deleted file mode 100644
index 9d5d198..0000000
--- a/src/contrib/FastVectorHighlighter/FieldQuery.cs
+++ /dev/null
@@ -1,489 +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;
-using System.Text;
-
-using Lucene.Net.Search;
-using Lucene.Net.Index;
-using Lucene.Net.Support.Compatibility;
-using TermInfo = Lucene.Net.Search.Vectorhighlight.FieldTermStack.TermInfo;
-
-namespace Lucene.Net.Search.Vectorhighlight
-{
-    public class FieldQuery
-    {
-        bool fieldMatch;
-
-        // fieldMatch==true,  Map<fieldName,QueryPhraseMap>
-        // fieldMatch==false, Map<null,QueryPhraseMap>
-        public HashMap<String, QueryPhraseMap> rootMaps = new HashMap<String, QueryPhraseMap>();
-
-        // fieldMatch==true,  Map<fieldName,setOfTermsInQueries>
-        // fieldMatch==false, Map<null,setOfTermsInQueries>
-        public HashMap<String, List<String>> termSetMap = new HashMap<String, List<String>>();
-
-        int termOrPhraseNumber; // used for colored tag support
-
-        public FieldQuery(Query query, bool phraseHighlight, bool fieldMatch)
-        {
-            this.fieldMatch = fieldMatch;
-            Dictionary<Query, Query> flatQueries = new Dictionary<Query, Query>();
-            flatten(query, flatQueries);
-            SaveTerms(flatQueries);
-            Dictionary<Query, Query> expandQueries = expand(flatQueries);
-
-            foreach (Query flatQuery in expandQueries.Keys)
-            {
-                QueryPhraseMap rootMap = getRootMap(flatQuery);
-                rootMap.Add(flatQuery);
-                if (!phraseHighlight && flatQuery is PhraseQuery)
-                {
-                    PhraseQuery pq = (PhraseQuery)flatQuery;
-                    if (pq.GetTerms().Length > 1)
-                    {
-                        foreach (Term term in pq.GetTerms())
-                            rootMap.AddTerm(term.Text, flatQuery.Boost);
-                    }
-                }
-            }
-        }
-
-        public void flatten(Query sourceQuery, Dictionary<Query, Query> flatQueries)
-        {
-            if (sourceQuery is BooleanQuery)
-            {
-                BooleanQuery bq = (BooleanQuery)sourceQuery;
-                foreach (BooleanClause clause in bq.GetClauses())
-                {
-                    if (!clause.IsProhibited)
-                        flatten(clause.Query, flatQueries);
-                }
-            }
-            else if (sourceQuery is PrefixQuery)
-            {
-                if (!flatQueries.ContainsKey(sourceQuery))
-                    flatQueries.Add(sourceQuery, sourceQuery);
-            }
-            else if (sourceQuery is DisjunctionMaxQuery)
-            {
-                DisjunctionMaxQuery dmq = (DisjunctionMaxQuery)sourceQuery;
-                foreach (Query query in dmq)
-                {
-                    flatten(query, flatQueries);
-                }
-            }
-            else if (sourceQuery is TermQuery)
-            {
-                if (!flatQueries.ContainsKey(sourceQuery))
-                    flatQueries.Add(sourceQuery, sourceQuery);
-            }
-            else if (sourceQuery is PhraseQuery)
-            {
-                if (!flatQueries.ContainsKey(sourceQuery))
-                {
-                    PhraseQuery pq = (PhraseQuery)sourceQuery;
-                    if (pq.GetTerms().Length > 1)
-                        flatQueries.Add(pq, pq);
-                    else if (pq.GetTerms().Length == 1)
-                    {
-                        Query q = new TermQuery(pq.GetTerms()[0]);
-                        flatQueries.Add(q, q);
-                    }
-                }
-            }
-            else
-            {
-                // Fallback to using extracted terms
-                ISet<Term> terms = SetFactory.CreateHashSet<Term>();
-                try
-                {
-                    sourceQuery.ExtractTerms(terms);
-                }
-                catch (NotSupportedException)
-                { // thrown by default impl
-                    return; // ignore error and discard query
-                }
-
-                foreach (var term in terms)
-                {
-                    flatten(new TermQuery(term), flatQueries);
-                }
-            }
-        }
-
-        /*
-         * Create expandQueries from flatQueries.
-         * 
-         * expandQueries := flatQueries + overlapped phrase queries
-         * 
-         * ex1) flatQueries={a,b,c}
-         *      => expandQueries={a,b,c}
-         * ex2) flatQueries={a,"b c","c d"}
-         *      => expandQueries={a,"b c","c d","b c d"}
-         */
-        public Dictionary<Query, Query> expand(Dictionary<Query, Query> flatQueries)
-        {
-            Dictionary<Query, Query> expandQueries = new Dictionary<Query, Query>();
-            foreach (Query query in new Dictionary<Query, Query>(flatQueries).Keys)
-            {
-                //Query query = i.next();
-                flatQueries.Remove(query);
-                expandQueries.Add(query, query);
-                if (!(query is PhraseQuery)) continue;
-                foreach (Query qj in flatQueries.Keys)
-                {
-                    if (!(qj is PhraseQuery)) continue;
-                    CheckOverlap(expandQueries, (PhraseQuery)query, (PhraseQuery)qj);
-                }
-            }
-            return expandQueries;
-        }
-
-        /*
-         * Check if PhraseQuery A and B have overlapped part.
-         * 
-         * ex1) A="a b", B="b c" => overlap; expandQueries={"a b c"}
-         * ex2) A="b c", B="a b" => overlap; expandQueries={"a b c"}
-         * ex3) A="a b", B="c d" => no overlap; expandQueries={}
-         */
-        private void CheckOverlap(Dictionary<Query, Query> expandQueries, PhraseQuery a, PhraseQuery b)
-        {
-            if (a.Slop != b.Slop) return;
-            Term[] ats = a.GetTerms();
-            Term[] bts = b.GetTerms();
-            if (fieldMatch && !ats[0].Field.Equals(bts[0].Field)) return;
-            CheckOverlap(expandQueries, ats, bts, a.Slop, a.Boost);
-            CheckOverlap(expandQueries, bts, ats, b.Slop, b.Boost);
-        }
-
-        /*
-         * Check if src and dest have overlapped part and if it is, create PhraseQueries and add expandQueries.
-         * 
-         * ex1) src="a b", dest="c d"       => no overlap
-         * ex2) src="a b", dest="a b c"     => no overlap
-         * ex3) src="a b", dest="b c"       => overlap; expandQueries={"a b c"}
-         * ex4) src="a b c", dest="b c d"   => overlap; expandQueries={"a b c d"}
-         * ex5) src="a b c", dest="b c"     => no overlap
-         * ex6) src="a b c", dest="b"       => no overlap
-         * ex7) src="a a a a", dest="a a a" => overlap;
-         *                                     expandQueries={"a a a a a","a a a a a a"}
-         * ex8) src="a b c d", dest="b c"   => no overlap
-         */
-        private void CheckOverlap(Dictionary<Query, Query> expandQueries, Term[] src, Term[] dest, int slop, float boost)
-        {
-            // beginning from 1 (not 0) is safe because that the PhraseQuery has multiple terms
-            // is guaranteed in flatten() method (if PhraseQuery has only one term, flatten()
-            // converts PhraseQuery to TermQuery)
-            for (int i = 1; i < src.Length; i++)
-            {
-                bool overlap = true;
-                for (int j = i; j < src.Length; j++)
-                {
-                    if ((j - i) < dest.Length && !src[j].Text.Equals(dest[j - i].Text))
-                    {
-                        overlap = false;
-                        break;
-                    }
-                }
-                if (overlap && src.Length - i < dest.Length)
-                {
-                    PhraseQuery pq = new PhraseQuery();
-                    foreach (Term srcTerm in src)
-                        pq.Add(srcTerm);
-                    for (int k = src.Length - i; k < dest.Length; k++)
-                    {
-                        pq.Add(new Term(src[0].Field, dest[k].Text));
-                    }
-                    pq.Slop = slop;
-                    pq.Boost = boost;
-                    if (!expandQueries.ContainsKey(pq))
-                        expandQueries.Add(pq, pq);
-                }
-            }
-        }
-
-        public QueryPhraseMap getRootMap(Query query)
-        {
-            String key = GetKey(query);
-            QueryPhraseMap map = rootMaps.Get(key);
-            if (map == null)
-            {
-                map = new QueryPhraseMap(this);
-                rootMaps.Put(key, map);
-            }
-            return map;
-        }
-
-        /*
-         * Return 'key' string. 'key' is the field name of the Query.
-         * If not fieldMatch, 'key' will be null.
-         */
-        private String GetKey(Query query)
-        {
-            if (!fieldMatch) return null;
-            if (query is TermQuery)
-                return ((TermQuery)query).Term.Field;
-
-            if (query is PrefixQuery)
-                return ((PrefixQuery)query).Prefix.Field;
-
-            if (query is PhraseQuery)
-            {
-                PhraseQuery pq = (PhraseQuery)query;
-                Term[] terms = pq.GetTerms();
-                return terms[0].Field;
-            }
-
-            throw new ApplicationException("query \"" + query + "\" must be flatten first.");
-        }
-
-        /*
-         * Save the set of terms in the queries to termSetMap.
-         * 
-         * ex1) q=name:john
-         *      - fieldMatch==true
-         *          termSetMap=Map<"name",Set<"john">>
-         *      - fieldMatch==false
-         *          termSetMap=Map<null,Set<"john">>
-         *          
-         * ex2) q=name:john title:manager
-         *      - fieldMatch==true
-         *          termSetMap=Map<"name",Set<"john">,
-         *                         "title",Set<"manager">>
-         *      - fieldMatch==false
-         *          termSetMap=Map<null,Set<"john","manager">>
-         *          
-         * ex3) q=name:"john lennon"
-         *      - fieldMatch==true
-         *          termSetMap=Map<"name",Set<"john","lennon">>
-         *      - fieldMatch==false
-         *          termSetMap=Map<null,Set<"john","lennon">>
-         */
-        void SaveTerms(Dictionary<Query, Query> flatQueries)
-        {
-            foreach (Query query in flatQueries.Keys)
-            {
-                List<String> termSet = GetTermSet(query);
-                if (query is TermQuery)
-                    termSet.Add(((TermQuery)query).Term.Text);
-                else if (query is PrefixQuery)
-                    termSet.Add(((PrefixQuery)query).Prefix.Text + "*");
-                else if (query is PhraseQuery)
-                {
-                    foreach (Term term in ((PhraseQuery)query).GetTerms())
-                        termSet.Add(term.Text);
-                }
-                else
-                    throw new System.ApplicationException("query \"" + query.ToString() + "\" must be flatten first.");
-            }
-        }
-
-        private List<String> GetTermSet(Query query)
-        {
-            String key = GetKey(query);
-            List<String> set = termSetMap.Get(key);
-            if (set == null)
-            {
-                set = new List<String>();
-                termSetMap.Put(key, set);
-            }
-            return set;
-        }
-
-        public List<String> getTermSet(String field)
-        {
-            return termSetMap.Get(fieldMatch ? field : null);
-        }
-
-        /*
-         * 
-         * <param name="fieldName"></param>
-         * <param name="term"></param>
-         * <returns>QueryPhraseMap</returns>
-         */
-        public QueryPhraseMap   GetFieldTermMap(String fieldName, String term)
-        {
-            QueryPhraseMap rootMap = GetRootMap(fieldName);
-            return rootMap == null ? null : RetrieveQueryFromSubMap(rootMap, term);
-        }
-
-        public QueryPhraseMap RetrieveQueryFromSubMap(QueryPhraseMap rootMap, String term)
-        {
-            foreach (var kvp in rootMap.subMap)
-            {
-                if (StringUtils.TermStringMatch(kvp.Key, term))
-                    return kvp.Value;
-            }
-            return null;
-        }
-
-        /*
-         * 
-         * <param name="fieldName"></param>
-         * <param name="phraseCandidate"></param>
-         * <returns>QueryPhraseMap</returns>
-         */
-        public QueryPhraseMap SearchPhrase(String fieldName, List<TermInfo> phraseCandidate)
-        {
-            QueryPhraseMap root = GetRootMap(fieldName);
-            if (root == null) return null;
-            return root.SearchPhrase(phraseCandidate);
-        }
-
-        private QueryPhraseMap GetRootMap(String fieldName)
-        {
-            return rootMaps.Get(fieldMatch ? fieldName : null);
-        }
-
-        int NextTermOrPhraseNumber()
-        {
-            return termOrPhraseNumber++;
-        }
-
-        public class QueryPhraseMap
-        {
-
-            public bool terminal;
-            int slop;   // valid if terminal == true and phraseHighlight == true
-            public float boost;  // valid if terminal == true
-            int termOrPhraseNumber;   // valid if terminal == true
-            FieldQuery fieldQuery;
-            public HashMap<String, QueryPhraseMap> subMap = new HashMap<String, QueryPhraseMap>();
-
-            public QueryPhraseMap(FieldQuery fieldQuery)
-            {
-                this.fieldQuery = fieldQuery;
-            }
-
-            public void AddTerm(String termText, float boost)
-            {
-                QueryPhraseMap map = GetOrNewMap(subMap, termText);
-                map.MarkTerminal(boost);
-            }
-
-            private QueryPhraseMap GetOrNewMap(HashMap<String, QueryPhraseMap> subMap, String term)
-            {
-                QueryPhraseMap map = subMap.Get(term);
-                if (map == null)
-                {
-                    map = new QueryPhraseMap(fieldQuery);
-                    subMap.Put(term, map);
-                }
-                return map;
-            }
-
-            public void Add(Query query)
-            {
-                if (query is TermQuery)
-                {
-                    AddTerm(((TermQuery)query).Term.Text, query.Boost);
-                }
-                else if (query is PrefixQuery)
-                {
-                    AddTerm(((PrefixQuery)query).Prefix.Text + "*", query.Boost);
-                }
-                else if (query is PhraseQuery)
-                {
-                    PhraseQuery pq = (PhraseQuery)query;
-                    Term[] terms = pq.GetTerms();
-                    HashMap<String, QueryPhraseMap> map = subMap;
-                    QueryPhraseMap qpm = null;
-                    foreach (Term term in terms)
-                    {
-                        qpm = GetOrNewMap(map, term.Text);
-                        map = qpm.subMap;
-                    }
-                    qpm.MarkTerminal(pq.Slop, pq.Boost);
-                }
-                else
-                    throw new ApplicationException("query \"" + query.ToString() + "\" must be flatten first.");
-            }
-
-            public QueryPhraseMap GetTermMap(String term)
-            {
-                return subMap.Get(term);
-            }
-
-            private void MarkTerminal(float boost)
-            {
-                MarkTerminal(0, boost);
-            }
-
-            private void MarkTerminal(int slop, float boost)
-            {
-                this.terminal = true;
-                this.slop = slop;
-                this.boost = boost;
-                this.termOrPhraseNumber = fieldQuery.NextTermOrPhraseNumber();
-            }
-
-            public bool IsTerminal
-            {
-                get { return terminal; }
-            }
-
-            public int Slop
-            {
-                get { return slop; }
-            }
-
-            public float Boost
-            {
-                get { return boost; }
-            }
-
-            public int TermOrPhraseNumber
-            {
-                get { return termOrPhraseNumber; }
-            }
-
-            public QueryPhraseMap SearchPhrase(List<TermInfo> phraseCandidate)
-            {
-                QueryPhraseMap currMap = this;
-                foreach (TermInfo ti in phraseCandidate)
-                {
-                    currMap = currMap.subMap[ti.Text];
-                    if (currMap == null) return null;
-                }
-                return currMap.IsValidTermOrPhrase(phraseCandidate) ? currMap : null;
-            }
-
-            public bool IsValidTermOrPhrase(List<TermInfo> phraseCandidate)
-            {
-                // check terminal
-                if (!terminal) return false;
-
-                // if the candidate is a term, it is valid
-                if (phraseCandidate.Count == 1) return true;
-
-                // else check whether the candidate is valid phrase
-                // compare position-gaps between terms to slop
-
-                int pos = phraseCandidate[0].Position;
-                for (int i = 1; i < phraseCandidate.Count; i++)
-                {
-                    int nextPos = phraseCandidate[i].Position;
-                    if (Math.Abs(nextPos - pos - 1) > slop) return false;
-                    pos = nextPos;
-                }
-                return true;
-            }
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/FieldTermStack.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/FieldTermStack.cs b/src/contrib/FastVectorHighlighter/FieldTermStack.cs
deleted file mode 100644
index d3c8220..0000000
--- a/src/contrib/FastVectorHighlighter/FieldTermStack.cs
+++ /dev/null
@@ -1,245 +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;
-using System.Text;
-
-using Lucene.Net.Analysis;
-using Lucene.Net.Documents;
-using Lucene.Net.Search;
-using Lucene.Net.Index;
-using Lucene.Net.QueryParsers;
-using Lucene.Net.Store;
-
-
-namespace Lucene.Net.Search.Vectorhighlight
-{
-   
-   /// <summary>
-   /// <c>FieldTermStack</c> is a stack that keeps query terms in the specified field
-   /// of the document to be highlighted.
-   /// </summary>
-    public class FieldTermStack
-    {
-        private String fieldName;
-        public LinkedList<TermInfo> termList = new LinkedList<TermInfo>();
-
-        public static void Main(String[] args)
-        {
-            Analyzer analyzer = new WhitespaceAnalyzer();
-            QueryParser parser = new QueryParser(Util.Version.LUCENE_CURRENT, "f", analyzer);
-            Query query = parser.Parse("a x:b");
-            FieldQuery fieldQuery = new FieldQuery(query, true, false);
-
-            Directory dir = new RAMDirectory();
-            IndexWriter writer = new IndexWriter(dir, analyzer, IndexWriter.MaxFieldLength.LIMITED);
-            Document doc = new Document();
-            doc.Add(new Field("f", "a a a b b c a b b c d e f", Field.Store.YES, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS));
-            doc.Add(new Field("f", "b a b a f", Field.Store.YES, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS));
-            writer.AddDocument(doc);
-            writer.Close();
-
-            IndexReader reader = IndexReader.Open(dir,true);
-            FieldTermStack ftl = new FieldTermStack(reader, 0, "f", fieldQuery);
-            reader.Close();
-        }
-
-        /// <summary>
-        /// a constructor. 
-        /// </summary>
-        /// <param name="reader">IndexReader of the index</param>
-        /// <param name="docId">document id to be highlighted</param>
-        /// <param name="fieldName">field of the document to be highlighted</param>
-        /// <param name="fieldQuery">FieldQuery object</param>
-#if LUCENENET_350 //Lucene.Net specific code. See https://issues.apache.org/jira/browse/LUCENENET-350
-        public FieldTermStack(IndexReader reader, int docId, String fieldName, FieldQuery fieldQuery)
-        {
-            this.fieldName = fieldName;
-            
-            List<string> termSet = fieldQuery.getTermSet(fieldName);
-
-            // just return to make null snippet if un-matched fieldName specified when fieldMatch == true
-            if (termSet == null) return;
-
-            //TermFreqVector tfv = reader.GetTermFreqVector(docId, fieldName);
-            VectorHighlightMapper tfv = new VectorHighlightMapper(termSet);    
-            reader.GetTermFreqVector(docId, fieldName, tfv);
-                
-            if (tfv.Size==0) return; // just return to make null snippets
-            
-            string[] terms = tfv.GetTerms();
-            foreach (String term in terms)
-            {
-                if (!StringUtils.AnyTermMatch(termSet, term)) continue;
-                int index = tfv.IndexOf(term);
-                TermVectorOffsetInfo[] tvois = tfv.GetOffsets(index);
-                if (tvois == null) return; // just return to make null snippets
-                int[] poss = tfv.GetTermPositions(index);
-                if (poss == null) return; // just return to make null snippets
-                for (int i = 0; i < tvois.Length; i++)
-                    termList.AddLast(new TermInfo(term, tvois[i].StartOffset, tvois[i].EndOffset, poss[i]));
-            }
-            // sort by position
-            //Collections.sort(termList);
-            Sort(termList);
-        }
-#else   //Original Port
-        public FieldTermStack(IndexReader reader, int docId, String fieldName, FieldQuery fieldQuery)
-        {
-            this.fieldName = fieldName;
-
-            TermFreqVector tfv = reader.GetTermFreqVector(docId, fieldName);
-            if (tfv == null) return; // just return to make null snippets
-            TermPositionVector tpv = null;
-            try
-            {
-                tpv = (TermPositionVector)tfv;
-            }
-            catch (InvalidCastException e)
-            {
-                return; // just return to make null snippets
-            }
-
-            List<String> termSet = fieldQuery.getTermSet(fieldName);
-            // just return to make null snippet if un-matched fieldName specified when fieldMatch == true
-            if (termSet == null) return;
-
-            foreach (String term in tpv.GetTerms())
-            {
-                if (!termSet.Contains(term)) continue;
-                int index = tpv.IndexOf(term);
-                TermVectorOffsetInfo[] tvois = tpv.GetOffsets(index);
-                if (tvois == null) return; // just return to make null snippets
-                int[] poss = tpv.GetTermPositions(index);
-                if (poss == null) return; // just return to make null snippets
-                for (int i = 0; i < tvois.Length; i++)
-                    termList.AddLast(new TermInfo(term, tvois[i].GetStartOffset(), tvois[i].GetEndOffset(), poss[i]));
-            }
-
-            // sort by position
-            //Collections.sort(termList);
-            Sort(termList);
-        }
-#endif
-
-        void Sort(LinkedList<TermInfo> linkList)
-        {
-            TermInfo[] arr = new TermInfo[linkList.Count];
-            linkList.CopyTo(arr, 0);
-            Array.Sort(arr, new Comparison<TermInfo>(PosComparer));
-
-            linkList.Clear();
-            foreach (TermInfo t in arr) linkList.AddLast(t);
-        }
-
-        int PosComparer(TermInfo t1,TermInfo t2)
-        {
-            return t1.Position - t2.Position;
-        }
-
-       /// <summary>
-       /// 
-       /// </summary>
-       /// <value> field name </value>
-       public string FieldName
-       {
-           get { return fieldName; }
-       }
-
-       /// <summary>
-        /// 
-        /// </summary>
-        /// <returns>the top TermInfo object of the stack</returns>
-        public TermInfo Pop()
-        {
-            if (termList.Count == 0) return null;
-
-            LinkedListNode<TermInfo> top =  termList.First;
-            termList.RemoveFirst();
-            return top.Value;
-        }
-                
-        /// <summary>
-        /// 
-        /// </summary>
-        /// <param name="termInfo">the TermInfo object to be put on the top of the stack</param>
-        public void Push(TermInfo termInfo)
-        {
-            // termList.push( termInfo );  // avoid Java 1.6 feature
-            termList.AddFirst(termInfo);
-        }
-
-        /// <summary>
-        /// to know whether the stack is empty 
-        /// </summary>
-        /// <returns>true if the stack is empty, false if not</returns>
-        public bool IsEmpty()
-        {
-            return termList == null || termList.Count == 0;
-        }
-
-        public class TermInfo : IComparable<TermInfo>
-        {
-
-            String text;
-            int startOffset;
-            int endOffset;
-            int position;
-
-            public TermInfo(String text, int startOffset, int endOffset, int position)
-            {
-                this.text = text;
-                this.startOffset = startOffset;
-                this.endOffset = endOffset;
-                this.position = position;
-            }
-
-            public string Text
-            {
-                get { return text; }
-            }
-
-            public int StartOffset
-            {
-                get { return startOffset; }
-            }
-
-            public int EndOffset
-            {
-                get { return endOffset; }
-            }
-
-            public int Position
-            {
-                get { return position; }
-            }
-
-            public override string ToString()
-            {
-                StringBuilder sb = new StringBuilder();
-                sb.Append(text).Append('(').Append(startOffset).Append(',').Append(endOffset).Append(',').Append(position).Append(')');
-                return sb.ToString();
-            }
-
-            public int CompareTo(TermInfo o)
-            {
-                return (this.position - o.position);
-            }
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/FragListBuilder.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/FragListBuilder.cs b/src/contrib/FastVectorHighlighter/FragListBuilder.cs
deleted file mode 100644
index d8f18df..0000000
--- a/src/contrib/FastVectorHighlighter/FragListBuilder.cs
+++ /dev/null
@@ -1,39 +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;
-using System.Text;
-
-namespace Lucene.Net.Search.Vectorhighlight
-{
-    /// <summary>
-    /// 
-    /// FragListBuilder is an interface for FieldFragList builder classes.
-    /// A FragListBuilder class can be plugged in to Highlighter.
-     /// </summary>
-    public interface FragListBuilder
-    {
-        /// <summary>
-        /// create a FieldFragList. 
-        /// </summary>
-        /// <param name="fieldPhraseList">FieldPhraseList object</param>
-        /// <param name="fragCharSize">the length (number of chars) of a fragment</param>
-        /// <returns>the created FieldFragList object</returns>
-        FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize);
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/FragmentsBuilder.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/FragmentsBuilder.cs b/src/contrib/FastVectorHighlighter/FragmentsBuilder.cs
deleted file mode 100644
index b9df295..0000000
--- a/src/contrib/FastVectorHighlighter/FragmentsBuilder.cs
+++ /dev/null
@@ -1,56 +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;
-using System.Text;
-
-using Lucene.Net.Documents;
-using Lucene.Net.Search;
-using Lucene.Net.Index;
-
-namespace Lucene.Net.Search.Vectorhighlight
-{
-    /// <summary>
-    /// FragmentsBuilder is an interface for fragments (snippets) builder classes.
-    /// A FragmentsBuilder class can be plugged in to Highlighter.
-    /// </summary>
-    public interface FragmentsBuilder
-    {
-        /// <summary>
-        /// create a fragment.
-        /// </summary>
-        /// <param name="reader">IndexReader of the index</param>
-        /// <param name="docId">document id to be highlighted</param>
-        /// <param name="fieldName">field of the document to be highlighted</param>
-        /// <param name="fieldFragList">FieldFragList object</param>
-        /// <returns>a created fragment or null when no fragment created</returns>
-        String CreateFragment( IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList ) ;
-
-        
-        /// <summary>
-        /// create multiple fragments.
-        /// </summary>
-        /// <param name="reader">IndexReader of the index</param>
-        /// <param name="docId">document id to be highlighted</param>
-        /// <param name="fieldName">field of the document to be highlighted</param>
-        /// <param name="fieldFragList">ieldFragList object</param>
-        /// <param name="maxNumFragments">maximum number of fragments</param>
-        /// <returns>created fragments or null when no fragments created. Size of the array can be less than maxNumFragments</returns>
-        String[] CreateFragments( IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, int maxNumFragments ) ;
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/Properties/AssemblyInfo.cs b/src/contrib/FastVectorHighlighter/Properties/AssemblyInfo.cs
deleted file mode 100644
index e44909c..0000000
--- a/src/contrib/FastVectorHighlighter/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,59 +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.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Security;
-
-// General Information about an assembly is controlled through the following 
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Lucene.Net.Contrib.FastVectorHighlighter")]
-[assembly: AssemblyDescription("FastVectorHighlighter for Lucene.Net")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("The Apache Software Foundation")]
-[assembly: AssemblyProduct("Lucene.Net.Contrib.FastVectorHighlighter")]
-[assembly: AssemblyCopyright("Copyright 2006 - 2011 The Apache Software Foundation")]
-[assembly: AssemblyTrademark("Copyright 2006 - 2011 The Apache Software Foundation")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible 
-// to COM components.  If you need to access a type in this assembly from 
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("502a387b-1b01-4e2a-8754-d4cf9701b70e")]
-
-// Version information for an assembly consists of the following four values:
-//
-//      Major Version
-//      Minor Version 
-//      Build Number
-//      Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers 
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("3.0.3")]
-[assembly: AssemblyFileVersion("3.0.3")]
-
-[assembly: AllowPartiallyTrustedCallers]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/Readme.txt
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/Readme.txt b/src/contrib/FastVectorHighlighter/Readme.txt
deleted file mode 100644
index 9f4876b..0000000
--- a/src/contrib/FastVectorHighlighter/Readme.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-Some internal fields/methods are made "public" to be able to use them in Test project. 
-Those fields/methods (starting with a lowercase char) are not intended to be used in your code.
-
-Rev:916090 25Feb2010
-
-java source: https://svn.apache.org/repos/asf/lucene/java/trunk/contrib/fast-vector-highlighter

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/ScoreOrderFragmentsBuilder.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/ScoreOrderFragmentsBuilder.cs b/src/contrib/FastVectorHighlighter/ScoreOrderFragmentsBuilder.cs
deleted file mode 100644
index 4fda622..0000000
--- a/src/contrib/FastVectorHighlighter/ScoreOrderFragmentsBuilder.cs
+++ /dev/null
@@ -1,76 +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;
-using System.Text;
-
-using WeightedFragInfo = Lucene.Net.Search.Vectorhighlight.FieldFragList.WeightedFragInfo;
-
-namespace Lucene.Net.Search.Vectorhighlight
-{
-    /*
- * An implementation of FragmentsBuilder that outputs score-order fragments.
- */
-    public class ScoreOrderFragmentsBuilder : BaseFragmentsBuilder
-    {
-
-        /// <summary>
-        /// a constructor.
-        /// </summary>
-        public ScoreOrderFragmentsBuilder():base()
-        {
-        }
-
-
-        /// <summary>
-        /// a constructor.
-        /// </summary>
-        /// <param name="preTags">array of pre-tags for markup terms</param>
-        /// <param name="postTags">array of post-tags for markup terms</param>
-        public ScoreOrderFragmentsBuilder(String[] preTags, String[] postTags):  base(preTags, postTags)
-        {
-        }
-
-        /// <summary>
-        /// Sort by score the list of WeightedFragInfo
-        /// </summary>
-        public override List<WeightedFragInfo> GetWeightedFragInfoList(List<WeightedFragInfo> src)
-        {
-            src.Sort(new ScoreComparator());
-            return src;
-        }
-
-        public class ScoreComparator : IComparer<WeightedFragInfo>
-        {  // Comparator<WeightedFragInfo> {
-
-            public int Compare(WeightedFragInfo o1, WeightedFragInfo o2)
-            {
-                if (o1.totalBoost > o2.totalBoost) return -1;
-                else if (o1.totalBoost < o2.totalBoost) return 1;
-                // if same score then check startOffset
-                else
-                {
-                    if (o1.startOffset < o2.startOffset) return -1;
-                    else if (o1.startOffset > o2.startOffset) return 1;
-                }
-                return 0;
-            }
-        }
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/SimpleFragListBuilder.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/SimpleFragListBuilder.cs b/src/contrib/FastVectorHighlighter/SimpleFragListBuilder.cs
deleted file mode 100644
index e090240..0000000
--- a/src/contrib/FastVectorHighlighter/SimpleFragListBuilder.cs
+++ /dev/null
@@ -1,92 +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;
-using System.Text;
-
-using WeightedPhraseInfo = Lucene.Net.Search.Vectorhighlight.FieldPhraseList.WeightedPhraseInfo;
-
-namespace Lucene.Net.Search.Vectorhighlight
-{
-    /// <summary>
-    /// A simple implementation of FragListBuilder.
-    /// </summary>
-    public class SimpleFragListBuilder : FragListBuilder
-    {
-
-        public static int MARGIN = 6;
-        public static int MIN_FRAG_CHAR_SIZE = MARGIN * 3;
-
-        public FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize)
-        {
-            if (fragCharSize < MIN_FRAG_CHAR_SIZE)
-                throw new ArgumentException("fragCharSize(" + fragCharSize + ") is too small. It must be " +
-                    MIN_FRAG_CHAR_SIZE + " or higher.");
-
-            FieldFragList ffl = new FieldFragList(fragCharSize);
-
-            List<WeightedPhraseInfo> wpil = new List<WeightedPhraseInfo>();
-            LinkedList<WeightedPhraseInfo>.Enumerator ite = fieldPhraseList.phraseList.GetEnumerator();
-
-            WeightedPhraseInfo phraseInfo = null;
-            int startOffset = 0;
-            bool taken = false;
-            while (true)
-            {
-                if (!taken)
-                {
-                    if (!ite.MoveNext()) break;
-                    phraseInfo = ite.Current;
-                }
-                taken = false;
-                if (phraseInfo == null) break;
-
-                // if the phrase violates the border of previous fragment, discard it and try next phrase
-                if (phraseInfo.StartOffset < startOffset) continue;
-
-                wpil.Clear();
-                wpil.Add(phraseInfo);
-                int st = phraseInfo.StartOffset - MARGIN < startOffset ?
-                    startOffset : phraseInfo.StartOffset - MARGIN;
-                int en = st + fragCharSize;
-                if (phraseInfo.EndOffset > en)
-                    en = phraseInfo.EndOffset;
-                startOffset = en;
-
-                while (true)
-                {
-                    if (ite.MoveNext())
-                    {
-                        phraseInfo = ite.Current;
-                        taken = true;
-                        if (phraseInfo == null) break;
-                    }
-                    else
-                        break;
-                    if (phraseInfo.EndOffset <= en)
-                        wpil.Add(phraseInfo);
-                    else
-                        break;
-                }
-                ffl.Add(st, en, wpil);
-            }
-            return ffl;
-        }
-
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/SimpleFragmentsBuilder.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/SimpleFragmentsBuilder.cs b/src/contrib/FastVectorHighlighter/SimpleFragmentsBuilder.cs
deleted file mode 100644
index bfc2478..0000000
--- a/src/contrib/FastVectorHighlighter/SimpleFragmentsBuilder.cs
+++ /dev/null
@@ -1,59 +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;
-using System.Text;
-
-using WeightedFragInfo = Lucene.Net.Search.Vectorhighlight.FieldFragList.WeightedFragInfo;
-
-namespace Lucene.Net.Search.Vectorhighlight
-{
-   
-    /// <summary>
-    /// A simple implementation of FragmentsBuilder.
-    /// </summary>
-    public class SimpleFragmentsBuilder : BaseFragmentsBuilder
-    {
-        /// <summary>
-        /// a constructor.
-        /// </summary>
-        public SimpleFragmentsBuilder() : base()
-        {
-        }
-                
-
-        /// <summary>
-        /// a constructor.
-        /// </summary>
-        /// <param name="preTags">array of pre-tags for markup terms</param>
-        /// <param name="postTags">array of post-tags for markup terms</param>
-        public SimpleFragmentsBuilder(String[] preTags, String[] postTags)
-            : base(preTags, postTags)
-        {
-
-        }
-
-        /// <summary>
-        /// do nothing. return the source list.
-        /// </summary>
-        public override List<WeightedFragInfo> GetWeightedFragInfoList(List<WeightedFragInfo> src)
-        {
-            return src;
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/StringUtils.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/StringUtils.cs b/src/contrib/FastVectorHighlighter/StringUtils.cs
deleted file mode 100644
index 995d714..0000000
--- a/src/contrib/FastVectorHighlighter/StringUtils.cs
+++ /dev/null
@@ -1,56 +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.Search.Vectorhighlight
-{
-    public static class StringUtils 
-    {
-        /// <summary>
-        /// Check if the termToMatch is a match for the term, considering the use of a wildcards.
-        /// </summary>
-        public static Boolean TermStringMatch(String term, String termToMatch) 
-        {
-            if (term[0] == '*' || term[0] == '?')
-                throw new NotSupportedException("Unable to do matching with wildcard at the beginning");
-            
-            if (term[term.Length - 1] == '*') 
-            { 
-                //Wildcard at the end
-                if (termToMatch.Length < term.Length - 1) return false;
-                for (int i = 0; i < term.Length - 1; i++)
-                {
-                    if (termToMatch[i] != term[i]) return false;
-                }
-                return true;
-            }
-            return term.Equals(termToMatch);
-        }
-
-        public static Boolean AnyTermMatch(IList<String> terms, String term)
-        {
-            for (int i = 0; i < terms.Count; i++)
-            {
-                if (StringUtils.TermStringMatch(terms[i], term))
-                    return true;
-            }
-            return false;
-        }
-     }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/Support.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/Support.cs b/src/contrib/FastVectorHighlighter/Support.cs
deleted file mode 100644
index 0dfbf43..0000000
--- a/src/contrib/FastVectorHighlighter/Support.cs
+++ /dev/null
@@ -1,73 +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;
-using System.Text;
-
-namespace Lucene.Net.Search.Vectorhighlight
-{
-    public class HashMap<K, V> : Dictionary<K, V>
-    {
-        V _NullKeyValue = default(V);
-
-        public new void Add(K key,V value)
-        {
-            if (key == null)
-                _NullKeyValue = value;
-            else
-                base.Add(key,value);
-        }
-
-        public new int Count
-        {
-            get
-            {
-                return base.Count + (_NullKeyValue!= null ? 1 : 0);
-            }
-        }
-
-        public new V this[K key]
-        {
-            get{
-                return Get(key);
-            }
-            set{
-                Add(key,value);
-            }
-        }
-
-        public V Get(K key)
-        {
-            if (key == null) return _NullKeyValue;
-
-            V v = default(V);
-            base.TryGetValue(key, out v);
-            return v;
-        }
-
-        public void Put(K key, V val) 
-        {
-            Add(key,val);
-        }
-    }
-}
-

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/VectorHighlightMapper.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/VectorHighlightMapper.cs b/src/contrib/FastVectorHighlighter/VectorHighlightMapper.cs
deleted file mode 100644
index c9c6ced..0000000
--- a/src/contrib/FastVectorHighlighter/VectorHighlightMapper.cs
+++ /dev/null
@@ -1,134 +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.
- */
-
-#if LUCENENET_350 //Lucene.Net specific code. See https://issues.apache.org/jira/browse/LUCENENET-350
-
-using System;
-using System.Collections.Generic;
-using Lucene.Net.Index;
-
-namespace Lucene.Net.Search.Vectorhighlight
-{
-    public class VectorHighlightMapper : TermVectorMapper, ITermFreqVector, TermPositionVector
-    {
-        private readonly List<string> _terms;
-        private Dictionary<string, TermVectorOffsetInfo[]> _tvoi;
-        private Dictionary<string, int[]> _positions;
-        private Dictionary<string, int> _frequency;
-        private List<string> _indexMap;
-        private string _field;
-        private bool _storeOffsets;
-        private bool _storePositions;
-
-        public VectorHighlightMapper(List<string> terms)
-        {
-            _terms = terms;
-            _tvoi = new Dictionary<string, TermVectorOffsetInfo[]>();
-            _positions = new Dictionary<string, int[]>();
-            _frequency = new Dictionary<string, int>();
-            _indexMap = new List<string>();
-        }
-
-        public override void SetExpectations(string field, int numTerms, bool storeOffsets, bool storePositions)
-        {
-            _field = field;
-            _storeOffsets = storeOffsets;
-            _storePositions = storePositions;
-            if (_storeOffsets)
-                _tvoi = new Dictionary<string, TermVectorOffsetInfo[]>(numTerms);
-            if (_storePositions)
-                _positions = new Dictionary<string, int[]>(numTerms);
-            _frequency = new Dictionary<string, int>(numTerms);
-            _indexMap = new List<string>(numTerms);
-        }
-
-        public override void Map(string term, int frequency, TermVectorOffsetInfo[] offsets, int[] positions)
-        {
-            if (StringUtils.AnyTermMatch(_terms, term))
-            {
-                _indexMap.Add(term);
-                if (_storeOffsets)
-                    _tvoi.Add(term, offsets);
-                if (_storePositions)
-                    _positions.Add(term, positions);
-                _frequency.Add(term,frequency);
-            }
-        }
-
-        public string Field
-        {
-            get { return _field; }
-        }
-
-        public int Size
-        {
-            get { return _tvoi.Count; }
-        }
-
-        public string[] GetTerms()
-        {
-            string[] result = new string[_tvoi.Count];
-            _tvoi.Keys.CopyTo(result,0);
-            return result;
-        }
-
-        public int[] GetTermFrequencies()
-        {
-            int[] result = new int[_frequency.Count];
-            _frequency.Values.CopyTo(result,0);
-            return result;
-        }
-
-        public int IndexOf(string term)
-        {
-            return _indexMap.IndexOf(term);
-        }
-
-        public int[] IndexesOf(string[] terms, int start, int len)
-        {
-            int[] result = new int[terms.Length];
-            for (int i = 0; i < terms.Length; i++)
-            {
-                string term = terms[i];
-                result[i] = _indexMap.IndexOf(term, start, len);
-            }
-            return result;
-        }
-
-        public int[] GetTermPositions(int index)
-        {
-            if (index<_positions.Count)
-            {
-                string key = _indexMap[index];
-                return _positions[key];
-            }
-            return new int[0];
-        }
-
-        public TermVectorOffsetInfo[] GetOffsets(int index)
-        {
-            if (index < _tvoi.Count)
-            {
-                string key = _indexMap[index];
-                return _tvoi[key];
-            }
-            return new TermVectorOffsetInfo[0];
-        }
-    }
-}
-
-#endif
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/FastVectorHighlighter/package.html
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/package.html b/src/contrib/FastVectorHighlighter/package.html
deleted file mode 100644
index 4c9ae78..0000000
--- a/src/contrib/FastVectorHighlighter/package.html
+++ /dev/null
@@ -1,144 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<!--
- 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.
--->
-<html>
-<body>
-This is an another highlighter implementation.
-
-<h2>Features</h2>
-<ul>
-<li>fast for large docs</li>
-<li>support N-gram fields</li>
-<li>support phrase-unit highlighting with slops</li>
-<li>need Java 1.5</li>
-<li>highlight fields need to be TermVector.WITH_POSITIONS_OFFSETS</li>
-<li>take into account query boost to score fragments</li>
-<li>support colored highlight tags</li>
-<li>pluggable FragListBuilder</li>
-<li>pluggable FragmentsBuilder</li>
-</ul>
-
-<h2>Algorithm</h2>
-<p>To explain the algorithm, let's use the following sample text
- (to be highlighted) and user query:</p>
-
-<table border=1>
-<tr>
-<td><b>Sample Text</b></td>
-<td>Lucene is a search engine library.</td>
-</tr>
-<tr>
-<td><b>User Query</b></td>
-<td>Lucene^2 OR "search library"~1</td>
-</tr>
-</table>
-
-<p>The user query is a BooleanQuery that consists of TermQuery("Lucene") 
-with boost of 2 and PhraseQuery("search library") with slop of 1.</p>
-<p>For your convenience, here is the offsets and positions info of the 
-sample text.</p>
-
-<pre>
-+--------+-----------------------------------+
-|        |          1111111111222222222233333|
-|  offset|01234567890123456789012345678901234|
-+--------+-----------------------------------+
-|document|Lucene is a search engine library. |
-+--------*-----------------------------------+
-|position|0      1  2 3      4      5        |
-+--------*-----------------------------------+
-</pre>
-
-<h3>Step 1.</h3>
-<p>In Step 1, Fast Vector Highlighter generates {@link org.apache.lucene.search.vectorhighlight.FieldQuery.QueryPhraseMap} from the user query.
-<c>QueryPhraseMap</c> consists of the following members:</p>
-<pre>
-public class QueryPhraseMap {
-  boolean terminal;
-  int slop;   // valid if terminal == true and phraseHighlight == true
-  float boost;  // valid if terminal == true
-  Map&lt;String, QueryPhraseMap&gt; subMap;
-} 
-</pre>
-<p><c>QueryPhraseMap</c> has subMap. The key of the subMap is a term 
-text in the user query and the value is a subsequent <c>QueryPhraseMap</c>.
-If the query is a term (not phrase), then the subsequent <c>QueryPhraseMap</c>
-is marked as terminal. If the query is a phrase, then the subsequent <c>QueryPhraseMap</c>
-is not a terminal and it has the next term text in the phrase.</p>
-
-<p>From the sample user query, the following <c>QueryPhraseMap</c> 
-will be generated:</p>
-<pre>
-   QueryPhraseMap
-+--------+-+  +-------+-+
-|"Lucene"|o+->|boost=2|*|  * : terminal
-+--------+-+  +-------+-+
-
-+--------+-+  +---------+-+  +-------+------+-+
-|"search"|o+->|"library"|o+->|boost=1|slop=1|*|
-+--------+-+  +---------+-+  +-------+------+-+
-</pre>
-
-<h3>Step 2.</h3>
-<p>In Step 2, Fast Vector Highlighter generates {@link org.apache.lucene.search.vectorhighlight.FieldTermStack}. Fast Vector Highlighter uses {@link org.apache.lucene.index.TermFreqVector} data
-(must be stored {@link org.apache.lucene.document.Field.TermVector#WITH_POSITIONS_OFFSETS})
-to generate it. <c>FieldTermStack</c> keeps the terms in the user query.
-Therefore, in this sample case, Fast Vector Highlighter generates the following <c>FieldTermStack</c>:</p>
-<pre>
-   FieldTermStack
-+------------------+
-|"Lucene"(0,6,0)   |
-+------------------+
-|"search"(12,18,3) |
-+------------------+
-|"library"(26,33,5)|
-+------------------+
-where : "termText"(startOffset,endOffset,position)
-</pre>
-<h3>Step 3.</h3>
-<p>In Step 3, Fast Vector Highlighter generates {@link org.apache.lucene.search.vectorhighlight.FieldPhraseList}
-by reference to <c>QueryPhraseMap</c> and <c>FieldTermStack</c>.</p>
-<pre>
-   FieldPhraseList
-+----------------+-----------------+---+
-|"Lucene"        |[(0,6)]          |w=2|
-+----------------+-----------------+---+
-|"search library"|[(12,18),(26,33)]|w=1|
-+----------------+-----------------+---+
-</pre>
-<p>The type of each entry is <c>WeightedPhraseInfo</c> that consists of
-an array of terms offsets and weight. The weight (Fast Vector Highlighter uses query boost to
-calculate the weight) will be taken into account when Fast Vector Highlighter creates
-{@link org.apache.lucene.search.vectorhighlight.FieldFragList} in the next step.</p>
-<h3>Step 4.</h3>
-<p>In Step 4, Fast Vector Highlighter creates <c>FieldFragList</c> by reference to
-<c>FieldPhraseList</c>. In this sample case, the following
-<c>FieldFragList</c> will be generated:</p>
-<pre>
-   FieldFragList
-+---------------------------------+
-|"Lucene"[(0,6)]                  |
-|"search library"[(12,18),(26,33)]|
-|totalBoost=3                     |
-+---------------------------------+
-</pre>
-<h3>Step 5.</h3>
-<p>In Step 5, by using <c>FieldFragList</c> and the field stored data,
-Fast Vector Highlighter creates highlighted snippets!</p>
-
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/Highlighter/ABOUT.txt
----------------------------------------------------------------------
diff --git a/src/contrib/Highlighter/ABOUT.txt b/src/contrib/Highlighter/ABOUT.txt
deleted file mode 100644
index 70784f9..0000000
--- a/src/contrib/Highlighter/ABOUT.txt
+++ /dev/null
@@ -1 +0,0 @@
-Highlighter.Net is a port of Java Highlighter to C#.  The port from Java to C# of version 1.4.0 and 2.0 are done primary by George Aroush.  To contact George Aroush please visit http://www.aroush.net/

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/Highlighter/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Highlighter/AssemblyInfo.cs b/src/contrib/Highlighter/AssemblyInfo.cs
deleted file mode 100644
index 487630b..0000000
--- a/src/contrib/Highlighter/AssemblyInfo.cs
+++ /dev/null
@@ -1,85 +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.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Security;
-
-//
-// General Information about an assembly is controlled through the following 
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-//
-[assembly: AssemblyTitle("Lucene.Net.Contrib.Highlighter")]
-[assembly: AssemblyDescription("The Apache Software Foundation Lucene.Net a full-text search engine library")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("The Apache Software Foundation")]
-[assembly: AssemblyProduct("Lucene.Net.Contrib.Highlighter")]
-[assembly: AssemblyCopyright("Copyright 2007 - 2011 The Apache Software Foundation")]
-[assembly: AssemblyTrademark("Copyright 2007 - 2011 The Apache Software Foundation")]
-[assembly: AssemblyDefaultAlias("Lucene.Net.Highlight")]
-[assembly: AssemblyCulture("")]
-
-[assembly: AssemblyInformationalVersionAttribute("3.0.3")]
-
-[assembly: AllowPartiallyTrustedCallers]
-
-
-//
-// Version information for an assembly consists of the following four values:
-//
-//      Major Version
-//      Minor Version 
-//      Build Number
-//      Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers 
-// by using the '*' as shown below:
-
-[assembly: AssemblyVersion("3.0.3")]
-
-
-//
-// In order to sign your assembly you must specify a key to use. Refer to the 
-// Microsoft .NET Framework documentation for more information on assembly signing.
-//
-// Use the attributes below to control which key is used for signing. 
-//
-// Notes: 
-//   (*) If no key is specified, the assembly is not signed.
-//   (*) KeyName refers to a key that has been installed in the Crypto Service
-//       Provider (CSP) on your machine. KeyFile refers to a file which contains
-//       a key.
-//   (*) If the KeyFile and the KeyName values are both specified, the 
-//       following processing occurs:
-//       (1) If the KeyName can be found in the CSP, that key is used.
-//       (2) If the KeyName does not exist and the KeyFile does exist, the key 
-//           in the KeyFile is installed into the CSP and used.
-//   (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
-//       When specifying the KeyFile, the location of the KeyFile should be
-//       relative to the project output directory which is
-//       %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-//       located in the project directory, you would specify the AssemblyKeyFile 
-//       attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
-//   (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
-//       documentation for more information on this.
-//
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-[assembly: AssemblyKeyName("")]
-[assembly: ComVisibleAttribute(false)]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/Highlighter/Contrib.Highlighter.csproj
----------------------------------------------------------------------
diff --git a/src/contrib/Highlighter/Contrib.Highlighter.csproj b/src/contrib/Highlighter/Contrib.Highlighter.csproj
deleted file mode 100644
index eaf07c6..0000000
--- a/src/contrib/Highlighter/Contrib.Highlighter.csproj
+++ /dev/null
@@ -1,266 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
- 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.
-
--->
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
-  <PropertyGroup>
-    <ProjectType>Local</ProjectType>
-    <ProductVersion>8.0.50727</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{901D5415-383C-4AA6-A256-879558841BEA}</ProjectGuid>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ApplicationIcon></ApplicationIcon>
-    <AssemblyKeyContainerName></AssemblyKeyContainerName>
-    <AssemblyName>Lucene.Net.Contrib.Highlighter</AssemblyName>
-    <AssemblyOriginatorKeyFile>Lucene.Net.snk</AssemblyOriginatorKeyFile>
-    <DefaultClientScript>JScript</DefaultClientScript>
-    <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
-    <DefaultTargetSchema>IE50</DefaultTargetSchema>
-    <DelaySign>false</DelaySign>
-    <RootNamespace>Lucene.Net.Search.Highlight</RootNamespace>
-    <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
-    <StartupObject></StartupObject>
-    <FileUpgradeFlags></FileUpgradeFlags>
-    <UpgradeBackupLocation></UpgradeBackupLocation>
-    <OldToolsVersion>2.0</OldToolsVersion>
-    <PublishUrl>publish\</PublishUrl>
-    <Install>true</Install>
-    <InstallFrom>Disk</InstallFrom>
-    <UpdateEnabled>false</UpdateEnabled>
-    <UpdateMode>Foreground</UpdateMode>
-    <UpdateInterval>7</UpdateInterval>
-    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
-    <UpdatePeriodically>false</UpdatePeriodically>
-    <UpdateRequired>false</UpdateRequired>
-    <MapFileExtensions>true</MapFileExtensions>
-    <ApplicationRevision>0</ApplicationRevision>
-    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
-    <IsWebBootstrapper>false</IsWebBootstrapper>
-    <UseApplicationTrust>false</UseApplicationTrust>
-    <BootstrapperEnabled>true</BootstrapperEnabled>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
-    <Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
-    <OutputPath>..\..\..\build\bin\contrib\Highlighter\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
-    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
-    <BaseAddress>285212672</BaseAddress>
-    <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
-    <ConfigurationOverrideFile></ConfigurationOverrideFile>
-    <DefineConstants>DEBUG;TRACE;$(Framework)</DefineConstants>
-    <DocumentationFile></DocumentationFile>
-    <DebugSymbols>true</DebugSymbols>
-    <FileAlignment>4096</FileAlignment>
-    <NoStdLib>false</NoStdLib>
-    <NoWarn>618</NoWarn>
-    <Optimize>false</Optimize>
-    <RegisterForComInterop>false</RegisterForComInterop>
-    <RemoveIntegerChecks>false</RemoveIntegerChecks>
-    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
-    <WarningLevel>4</WarningLevel>
-    <DebugType>full</DebugType>
-    <ErrorReport>prompt</ErrorReport>
-    <OutputType>Library</OutputType>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug35|AnyCPU' ">
-    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
-    <Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
-    <OutputPath>..\..\..\build\bin\contrib\Highlighter\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
-    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
-    <BaseAddress>285212672</BaseAddress>
-    <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
-    <ConfigurationOverrideFile></ConfigurationOverrideFile>
-    <DefineConstants>DEBUG;TRACE;$(Framework)</DefineConstants>
-    <DocumentationFile></DocumentationFile>
-    <DebugSymbols>true</DebugSymbols>
-    <FileAlignment>4096</FileAlignment>
-    <NoStdLib>false</NoStdLib>
-    <NoWarn>618</NoWarn>
-    <Optimize>false</Optimize>
-    <RegisterForComInterop>false</RegisterForComInterop>
-    <RemoveIntegerChecks>false</RemoveIntegerChecks>
-    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
-    <WarningLevel>4</WarningLevel>
-    <DebugType>full</DebugType>
-    <ErrorReport>prompt</ErrorReport>
-    <OutputType>Library</OutputType>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
-    <Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
-    <OutputPath>..\..\..\build\bin\contrib\Highlighter\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
-    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
-    <BaseAddress>285212672</BaseAddress>
-    <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
-    <ConfigurationOverrideFile></ConfigurationOverrideFile>
-    <DefineConstants>TRACE;$(Framework)</DefineConstants>
-    <DocumentationFile>..\..\..build\bin\contrib\Highlighter\$(Configuration.Replace("35", ""))\$(Framework)\Lucene.Net.Contrib.Highlighter.XML</DocumentationFile>
-    <DebugSymbols>true</DebugSymbols>
-    <FileAlignment>4096</FileAlignment>
-    <NoStdLib>false</NoStdLib>
-    <NoWarn>618</NoWarn>
-    <Optimize>true</Optimize>
-    <RegisterForComInterop>false</RegisterForComInterop>
-    <RemoveIntegerChecks>false</RemoveIntegerChecks>
-    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
-    <WarningLevel>4</WarningLevel>
-    <DebugType>pdbonly</DebugType>
-    <ErrorReport>prompt</ErrorReport>
-    <OutputType>Library</OutputType>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release35|AnyCPU' ">
-    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
-    <Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
-    <OutputPath>..\..\..\build\bin\contrib\Highlighter\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
-    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
-    <BaseAddress>285212672</BaseAddress>
-    <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
-    <ConfigurationOverrideFile></ConfigurationOverrideFile>
-    <DefineConstants>TRACE;$(Framework)</DefineConstants>
-    <DocumentationFile>..\..\..build\bin\contrib\Highlighter\$(Configuration.Replace("35", ""))\$(Framework)\Lucene.Net.Contrib.Highlighter.XML</DocumentationFile>
-    <DebugSymbols>true</DebugSymbols>
-    <FileAlignment>4096</FileAlignment>
-    <NoStdLib>false</NoStdLib>
-    <NoWarn>618</NoWarn>
-    <Optimize>true</Optimize>
-    <RegisterForComInterop>false</RegisterForComInterop>
-    <RemoveIntegerChecks>false</RemoveIntegerChecks>
-    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
-    <WarningLevel>4</WarningLevel>
-    <DebugType>pdbonly</DebugType>
-    <ErrorReport>prompt</ErrorReport>
-    <OutputType>Library</OutputType>
-  </PropertyGroup>
-  <PropertyGroup>
-    <SignAssembly>true</SignAssembly>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System">
-      <Name>System</Name>
-    </Reference>
-    <Reference Condition="'$(Framework)' == 'NET35'" Include="System.Core" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="AssemblyInfo.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="DefaultEncoder.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="IEncoder.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="IFormatter.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="IFragmenter.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="GradientFormatter.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="Highlighter.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="InvalidTokenOffsetsException.cs" />
-    <Compile Include="NullFragmenter.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="QueryScorer.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="QueryTermExtractor.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="QueryTermScorer.cs" />
-    <Compile Include="IScorer.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="SimpleFragmenter.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="SimpleHTMLEncoder.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="SimpleHTMLFormatter.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="SimpleSpanFragmenter.cs" />
-    <Compile Include="SpanGradientFormatter.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="TextFragment.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="TokenGroup.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="TokenSources.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="WeightedSpanTerm.cs" />
-    <Compile Include="WeightedSpanTermExtractor.cs" />
-    <Compile Include="WeightedTerm.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Content Include="Package.html" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\Memory\Contrib.Memory.csproj">
-      <Project>{112b9a7c-29cc-4539-8f5a-45669c07cd4d}</Project>
-      <Name>Contrib.Memory</Name>
-    </ProjectReference>
-    <ProjectReference Include="..\..\core\Lucene.Net.csproj">
-      <Project>{5D4AD9BE-1FFB-41AB-9943-25737971BF57}</Project>
-      <Name>Lucene.Net</Name>
-    </ProjectReference>
-  </ItemGroup>
-  <ItemGroup>
-    <BootstrapperPackage Include=".NETFramework,Version=v4.0">
-      <Visible>False</Visible>
-      <ProductName>Microsoft .NET Framework 4 %28x86 and x64%29</ProductName>
-      <Install>true</Install>
-    </BootstrapperPackage>
-    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
-      <Visible>False</Visible>
-      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
-      <Install>false</Install>
-    </BootstrapperPackage>
-    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
-      <Visible>False</Visible>
-      <ProductName>.NET Framework 3.5 SP1</ProductName>
-      <Install>false</Install>
-    </BootstrapperPackage>
-    <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
-      <Visible>False</Visible>
-      <ProductName>Windows Installer 3.1</ProductName>
-      <Install>true</Install>
-    </BootstrapperPackage>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Lucene.Net.snk" />
-  </ItemGroup>
-  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-  <PropertyGroup>
-    <PreBuildEvent></PreBuildEvent>
-    <PostBuildEvent></PostBuildEvent>
-  </PropertyGroup>
-</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02362804/src/contrib/Highlighter/DefaultEncoder.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Highlighter/DefaultEncoder.cs b/src/contrib/Highlighter/DefaultEncoder.cs
deleted file mode 100644
index ff1efb7..0000000
--- a/src/contrib/Highlighter/DefaultEncoder.cs
+++ /dev/null
@@ -1,28 +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.
- */
-
-namespace Lucene.Net.Search.Highlight
-{
-    /// <summary>Simple <see cref="IEncoder"/> implementation that does not modify the output</summary>
-    public class DefaultEncoder : IEncoder
-    {
-        public virtual System.String EncodeText(System.String originalText)
-        {
-            return originalText;
-        }
-    }
-}
\ No newline at end of file


Mime
View raw message