You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2016/12/06 15:11:36 UTC

[01/58] lucenenet git commit: WIP on QueryParsers.Flexible

Repository: lucenenet
Updated Branches:
  refs/heads/master e8735ed96 -> 701b9ed20


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
new file mode 100644
index 0000000..fdf12e7
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -0,0 +1,1443 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.Analysis.Tokenattributes;
+using Lucene.Net.Documents;
+using Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Search;
+using Lucene.Net.Support;
+using Lucene.Net.Util;
+using Lucene.Net.Util.Automaton;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard
+{
+    /// <summary>
+    /// This test case is a copy of the core Lucene query parser test, it was adapted
+    /// to use new QueryParserHelper instead of the old query parser.
+    /// 
+    /// Tests QueryParser.
+    /// </summary>
+    // TODO: really this should extend QueryParserTestBase too!
+    public class TestQPHelper : LuceneTestCase
+    {
+        public static Analyzer qpAnalyzer;
+
+        [TestFixtureSetUp]
+        public static void BeforeClass()
+        {
+            qpAnalyzer = new QPTestAnalyzer();
+        }
+
+        [TestFixtureTearDown]
+        public static void AfterClass()
+        {
+            qpAnalyzer = null;
+        }
+
+        public sealed class QPTestFilter : TokenFilter
+        {
+            private readonly ICharTermAttribute termAtt;
+            private readonly IOffsetAttribute offsetAtt;
+
+            /**
+             * Filter which discards the token 'stop' and which expands the token
+             * 'phrase' into 'phrase1 phrase2'
+             */
+            public QPTestFilter(TokenStream @in)
+                        : base(@in)
+            {
+                termAtt = AddAttribute<ICharTermAttribute>();
+                offsetAtt = AddAttribute<IOffsetAttribute>();
+            }
+
+            private bool inPhrase = false;
+            private int savedStart = 0;
+            private int savedEnd = 0;
+
+
+            public override bool IncrementToken()
+            {
+                if (inPhrase)
+                {
+                    inPhrase = false;
+                    ClearAttributes();
+                    termAtt.SetEmpty().Append("phrase2");
+                    offsetAtt.SetOffset(savedStart, savedEnd);
+                    return true;
+                }
+                else
+                    while (input.IncrementToken())
+                    {
+                        if (termAtt.toString().equals("phrase"))
+                        {
+                            inPhrase = true;
+                            savedStart = offsetAtt.StartOffset();
+                            savedEnd = offsetAtt.EndOffset();
+                            termAtt.SetEmpty().Append("phrase1");
+                            offsetAtt.SetOffset(savedStart, savedEnd);
+                            return true;
+                        }
+                        else if (!termAtt.toString().equals("stop"))
+                            return true;
+                    }
+                return false;
+            }
+
+
+            public override void Reset()
+            {
+                base.Reset();
+                this.inPhrase = false;
+                this.savedStart = 0;
+                this.savedEnd = 0;
+            }
+        }
+
+        public sealed class QPTestAnalyzer : Analyzer
+        {
+
+            /** Filters MockTokenizer with StopFilter. */
+
+            public override sealed TokenStreamComponents CreateComponents(String fieldName, TextReader reader)
+            {
+                Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.SIMPLE, true);
+                return new TokenStreamComponents(tokenizer, new QPTestFilter(tokenizer));
+            }
+        }
+
+        public class QPTestParser : StandardQueryParser
+        {
+            public QPTestParser(Analyzer a)
+            {
+                ((QueryNodeProcessorPipeline)GetQueryNodeProcessor())
+                    .Add(new QPTestParserQueryNodeProcessor());
+                this.Analyzer = (a);
+
+            }
+
+            private class QPTestParserQueryNodeProcessor :
+                QueryNodeProcessorImpl
+            {
+
+
+                protected override IQueryNode PostProcessNode(IQueryNode node)
+                {
+
+                    return node;
+
+                }
+
+
+                protected override IQueryNode PreProcessNode(IQueryNode node)
+                {
+
+                    if (node is WildcardQueryNode || node is FuzzyQueryNode)
+                    {
+
+                        throw new QueryNodeException(new MessageImpl(
+                            QueryParserMessages.EMPTY_MESSAGE));
+
+                    }
+
+                    return node;
+
+                }
+
+
+                protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+                {
+
+                    return children;
+
+                }
+
+            }
+
+        }
+
+        private int originalMaxClauses;
+
+
+        public override void SetUp()
+        {
+            base.SetUp();
+            originalMaxClauses = BooleanQuery.MaxClauseCount;
+        }
+
+        public StandardQueryParser GetParser(Analyzer a)
+        {
+            if (a == null)
+                a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (a);
+
+            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.OR);
+
+            return qp;
+
+        }
+
+        public Query GetQuery(String query, Analyzer a)
+        {
+            return (Query)GetParser(a).Parse(query, "field");
+        }
+
+        public Query GetQueryAllowLeadingWildcard(String query, Analyzer a)
+        {
+            StandardQueryParser parser = GetParser(a);
+            parser.AllowLeadingWildcard = (true);
+            return (Query)parser.Parse(query, "field");
+        }
+
+        public void assertQueryEquals(String query, Analyzer a, String result)
+        {
+            Query q = GetQuery(query, a);
+            String s = q.ToString("field");
+            if (!s.equals(result))
+            {
+                fail("Query /" + query + "/ yielded /" + s + "/, expecting /" + result
+                    + "/");
+            }
+        }
+
+        public void assertQueryEqualsAllowLeadingWildcard(String query, Analyzer a, String result)
+        {
+            Query q = GetQueryAllowLeadingWildcard(query, a);
+            String s = q.ToString("field");
+            if (!s.equals(result))
+            {
+                fail("Query /" + query + "/ yielded /" + s + "/, expecting /" + result
+                    + "/");
+            }
+        }
+
+        public void assertQueryEquals(StandardQueryParser qp, String field,
+            String query, String result)
+        {
+            Query q = (Query)qp.Parse(query, field);
+            String s = q.ToString(field);
+            if (!s.equals(result))
+            {
+                fail("Query /" + query + "/ yielded /" + s + "/, expecting /" + result
+                    + "/");
+            }
+        }
+
+        public void assertEscapedQueryEquals(String query, Analyzer a, String result)
+
+        {
+            String escapedQuery = QueryParserUtil.Escape(query);
+            if (!escapedQuery.equals(result))
+            {
+                fail("Query /" + query + "/ yielded /" + escapedQuery + "/, expecting /"
+                    + result + "/");
+            }
+        }
+
+        public void assertWildcardQueryEquals(String query, bool lowercase,
+            String result, bool allowLeadingWildcard)
+        {
+            StandardQueryParser qp = GetParser(null);
+            qp.LowercaseExpandedTerms = (lowercase);
+            qp.AllowLeadingWildcard = (allowLeadingWildcard);
+            Query q = (Query)qp.Parse(query, "field");
+            String s = q.ToString("field");
+            if (!s.equals(result))
+            {
+                fail("WildcardQuery /" + query + "/ yielded /" + s + "/, expecting /"
+                    + result + "/");
+            }
+        }
+
+        public void assertWildcardQueryEquals(String query, bool lowercase,
+            String result)
+        {
+            assertWildcardQueryEquals(query, lowercase, result, false);
+        }
+
+        public void assertWildcardQueryEquals(String query, String result)
+        {
+            StandardQueryParser qp = GetParser(null);
+            Query q = (Query)qp.Parse(query, "field");
+            String s = q.ToString("field");
+            if (!s.equals(result))
+            {
+                fail("WildcardQuery /" + query + "/ yielded /" + s + "/, expecting /"
+                    + result + "/");
+            }
+        }
+
+        public Query GetQueryDOA(String query, Analyzer a)
+        {
+            if (a == null)
+                a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (a);
+            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+
+            return (Query)qp.Parse(query, "field");
+
+        }
+
+        public void assertQueryEqualsDOA(String query, Analyzer a, String result)
+        {
+            Query q = GetQueryDOA(query, a);
+            String s = q.ToString("field");
+            if (!s.equals(result))
+            {
+                fail("Query /" + query + "/ yielded /" + s + "/, expecting /" + result
+                    + "/");
+            }
+        }
+        [Test]
+        public void testConstantScoreAutoRewrite()
+        {
+            StandardQueryParser qp = new StandardQueryParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
+            Query q = (Query)qp.Parse("foo*bar", "field");
+            assertTrue(q is WildcardQuery);
+            assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((MultiTermQuery)q).GetRewriteMethod());
+
+            q = (Query)qp.Parse("foo*", "field");
+            assertTrue(q is PrefixQuery);
+            assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((MultiTermQuery)q).GetRewriteMethod());
+
+            q = (Query)qp.Parse("[a TO z]", "field");
+            assertTrue(q is TermRangeQuery);
+            assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((MultiTermQuery)q).GetRewriteMethod());
+        }
+        [Test]
+        public void testCJK()
+        {
+            // Test Ideographic Space - As wide as a CJK character cell (fullwidth)
+            // used google to translate the word "term" to japanese -> ??
+            assertQueryEquals("term\u3000term\u3000term", null,
+                "term\u0020term\u0020term");
+            assertQueryEqualsAllowLeadingWildcard("??\u3000??\u3000??", null, "??\u0020??\u0020??");
+        }
+
+        //individual CJK chars as terms, like StandardAnalyzer
+        private sealed class SimpleCJKTokenizer : Tokenizer
+        {
+            private ICharTermAttribute termAtt;
+
+            public SimpleCJKTokenizer(TextReader input)
+                        : base(input)
+            {
+                termAtt = AddAttribute<ICharTermAttribute>();
+            }
+
+
+            public override bool IncrementToken()
+            {
+                int ch = input.Read();
+                if (ch < 0)
+                    return false;
+                ClearAttributes();
+                termAtt.SetEmpty().Append((char)ch);
+                return true;
+            }
+        }
+
+        private class SimpleCJKAnalyzer : Analyzer
+        {
+
+            public override TokenStreamComponents CreateComponents(String fieldName, TextReader reader)
+            {
+                return new TokenStreamComponents(new SimpleCJKTokenizer(reader));
+            }
+        }
+        [Test]
+        public void testCJKTerm()
+        {
+            // individual CJK chars as terms
+            SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
+
+            BooleanQuery expected = new BooleanQuery();
+            expected.Add(new TermQuery(new Term("field", "\u4e2d")), BooleanClause.Occur.SHOULD);
+            expected.Add(new TermQuery(new Term("field", "\u56fd")), BooleanClause.Occur.SHOULD);
+            assertEquals(expected, GetQuery("\u4e2d\u56fd", analyzer));
+
+            expected = new BooleanQuery();
+            expected.Add(new TermQuery(new Term("field", "\u4e2d")), BooleanClause.Occur.MUST);
+            BooleanQuery inner = new BooleanQuery();
+            inner.Add(new TermQuery(new Term("field", "\u4e2d")), BooleanClause.Occur.SHOULD);
+            inner.Add(new TermQuery(new Term("field", "\u56fd")), BooleanClause.Occur.SHOULD);
+            expected.Add(inner, BooleanClause.Occur.MUST);
+            assertEquals(expected, GetQuery("\u4e2d AND \u4e2d\u56fd", new SimpleCJKAnalyzer()));
+
+        }
+        [Test]
+        public void testCJKBoostedTerm()
+        {
+            // individual CJK chars as terms
+            SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
+
+            BooleanQuery expected = new BooleanQuery();
+            expected.Boost = (0.5f);
+            expected.Add(new TermQuery(new Term("field", "\u4e2d")), BooleanClause.Occur.SHOULD);
+            expected.Add(new TermQuery(new Term("field", "\u56fd")), BooleanClause.Occur.SHOULD);
+
+
+            assertEquals(expected, GetQuery("\u4e2d\u56fd^0.5", analyzer));
+        }
+        [Test]
+        public void testCJKPhrase()
+        {
+            // individual CJK chars as terms
+            SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
+
+            PhraseQuery expected = new PhraseQuery();
+            expected.Add(new Term("field", "\u4e2d"));
+            expected.Add(new Term("field", "\u56fd"));
+
+
+            assertEquals(expected, GetQuery("\"\u4e2d\u56fd\"", analyzer));
+        }
+        [Test]
+        public void testCJKBoostedPhrase()
+        {
+            // individual CJK chars as terms
+            SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
+
+            PhraseQuery expected = new PhraseQuery();
+            expected.Boost = (0.5f);
+            expected.Add(new Term("field", "\u4e2d"));
+            expected.Add(new Term("field", "\u56fd"));
+
+
+            assertEquals(expected, GetQuery("\"\u4e2d\u56fd\"^0.5", analyzer));
+        }
+        [Test]
+        public void testCJKSloppyPhrase()
+        {
+            // individual CJK chars as terms
+            SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
+
+            PhraseQuery expected = new PhraseQuery();
+            expected.Slop = (3);
+            expected.Add(new Term("field", "\u4e2d"));
+            expected.Add(new Term("field", "\u56fd"));
+
+
+            assertEquals(expected, GetQuery("\"\u4e2d\u56fd\"~3", analyzer));
+        }
+        [Test]
+        public void testSimple()
+        {
+            assertQueryEquals("field=a", null, "a");
+            assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
+            assertQueryEquals("term term term", null, "term term term");
+            assertQueryEquals("t\ufffdrm term term", new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false),
+                "t\ufffdrm term term");
+            assertQueryEquals("\ufffdmlaut", new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false), "\ufffdmlaut");
+
+            // FIXME: change MockAnalyzer to not extend CharTokenizer for this test
+            //assertQueryEquals("\"\"", new KeywordAnalyzer(), "");
+            //assertQueryEquals("foo:\"\"", new KeywordAnalyzer(), "foo:");
+
+            assertQueryEquals("a AND b", null, "+a +b");
+            assertQueryEquals("(a AND b)", null, "+a +b");
+            assertQueryEquals("c OR (a AND b)", null, "c (+a +b)");
+
+            assertQueryEquals("a AND NOT b", null, "+a -b");
+
+            assertQueryEquals("a AND -b", null, "+a -b");
+
+            assertQueryEquals("a AND !b", null, "+a -b");
+
+            assertQueryEquals("a && b", null, "+a +b");
+
+            assertQueryEquals("a && ! b", null, "+a -b");
+
+            assertQueryEquals("a OR b", null, "a b");
+            assertQueryEquals("a || b", null, "a b");
+
+            assertQueryEquals("a OR !b", null, "a -b");
+
+            assertQueryEquals("a OR ! b", null, "a -b");
+
+            assertQueryEquals("a OR -b", null, "a -b");
+
+            assertQueryEquals("+term -term term", null, "+term -term term");
+            assertQueryEquals("foo:term AND field:anotherTerm", null,
+                "+foo:term +anotherterm");
+            assertQueryEquals("term AND \"phrase phrase\"", null,
+                "+term +\"phrase phrase\"");
+            assertQueryEquals("\"hello there\"", null, "\"hello there\"");
+            assertTrue(GetQuery("a AND b", null) is BooleanQuery);
+            assertTrue(GetQuery("hello", null) is TermQuery);
+            assertTrue(GetQuery("\"hello there\"", null) is PhraseQuery);
+
+            assertQueryEquals("germ term^2.0", null, "germ term^2.0");
+            assertQueryEquals("(term)^2.0", null, "term^2.0");
+            assertQueryEquals("(germ term)^2.0", null, "(germ term)^2.0");
+            assertQueryEquals("term^2.0", null, "term^2.0");
+            assertQueryEquals("term^2", null, "term^2.0");
+            assertQueryEquals("\"germ term\"^2.0", null, "\"germ term\"^2.0");
+            assertQueryEquals("\"term germ\"^2", null, "\"term germ\"^2.0");
+
+            assertQueryEquals("(foo OR bar) AND (baz OR boo)", null,
+                "+(foo bar) +(baz boo)");
+            assertQueryEquals("((a OR b) AND NOT c) OR d", null, "(+(a b) -c) d");
+            assertQueryEquals("+(apple \"steve jobs\") -(foo bar baz)", null,
+                "+(apple \"steve jobs\") -(foo bar baz)");
+            assertQueryEquals("+title:(dog OR cat) -author:\"bob dole\"", null,
+                "+(title:dog title:cat) -author:\"bob dole\"");
+
+        }
+        [Test]
+        public void testPunct()
+        {
+            Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
+            assertQueryEquals("a&b", a, "a&b");
+            assertQueryEquals("a&&b", a, "a&&b");
+            assertQueryEquals(".NET", a, ".NET");
+        }
+        [Test]
+        public void testGroup()
+        {
+            assertQueryEquals("!(a AND b) OR c", null, "-(+a +b) c");
+            assertQueryEquals("!(a AND b) AND c", null, "-(+a +b) +c");
+            assertQueryEquals("((a AND b) AND c)", null, "+(+a +b) +c");
+            assertQueryEquals("(a AND b) AND c", null, "+(+a +b) +c");
+            assertQueryEquals("b !(a AND b)", null, "b -(+a +b)");
+            assertQueryEquals("(a AND b)^4 OR c", null, "((+a +b)^4.0) c");
+        }
+        [Test]
+        public void testSlop()
+        {
+
+            assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
+            assertQueryEquals("\"term germ\"~2 flork", null, "\"term germ\"~2 flork");
+            assertQueryEquals("\"term\"~2", null, "term");
+            assertQueryEquals("\" \"~2 germ", null, "germ");
+            assertQueryEquals("\"term germ\"~2^2", null, "\"term germ\"~2^2.0");
+        }
+        [Test]
+        public void testNumber()
+        {
+            // The numbers go away because SimpleAnalzyer ignores them
+            assertQueryEquals("3", null, "");
+            assertQueryEquals("term 1.0 1 2", null, "term");
+            assertQueryEquals("term term1 term2", null, "term term term");
+
+            Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
+            assertQueryEquals("3", a, "3");
+            assertQueryEquals("term 1.0 1 2", a, "term 1.0 1 2");
+            assertQueryEquals("term term1 term2", a, "term term1 term2");
+        }
+        [Test]
+        public void testWildcard()
+        {
+            assertQueryEquals("term*", null, "term*");
+            assertQueryEquals("term*^2", null, "term*^2.0");
+            assertQueryEquals("term~", null, "term~2");
+            assertQueryEquals("term~0.7", null, "term~1");
+
+            assertQueryEquals("term~^3", null, "term~2^3.0");
+
+            assertQueryEquals("term^3~", null, "term~2^3.0");
+            assertQueryEquals("term*germ", null, "term*germ");
+            assertQueryEquals("term*germ^3", null, "term*germ^3.0");
+
+            assertTrue(GetQuery("term*", null) is PrefixQuery);
+            assertTrue(GetQuery("term*^2", null) is PrefixQuery);
+            assertTrue(GetQuery("term~", null) is FuzzyQuery);
+            assertTrue(GetQuery("term~0.7", null) is FuzzyQuery);
+            FuzzyQuery fq = (FuzzyQuery)GetQuery("term~0.7", null);
+            assertEquals(1, fq.MaxEdits);
+            assertEquals(FuzzyQuery.DefaultPrefixLength, fq.PrefixLength);
+            fq = (FuzzyQuery)GetQuery("term~", null);
+            assertEquals(2, fq.MaxEdits);
+            assertEquals(FuzzyQuery.DefaultPrefixLength, fq.PrefixLength);
+
+            assertQueryNodeException("term~1.1"); // value > 1, throws exception
+
+            assertTrue(GetQuery("term*germ", null) is WildcardQuery);
+
+            /*
+             * Tests to see that wild card terms are (or are not) properly lower-cased
+             * with propery parser configuration
+             */
+            // First prefix queries:
+            // by default, convert to lowercase:
+            assertWildcardQueryEquals("Term*", true, "term*");
+            // explicitly set lowercase:
+            assertWildcardQueryEquals("term*", true, "term*");
+            assertWildcardQueryEquals("Term*", true, "term*");
+            assertWildcardQueryEquals("TERM*", true, "term*");
+            // explicitly disable lowercase conversion:
+            assertWildcardQueryEquals("term*", false, "term*");
+            assertWildcardQueryEquals("Term*", false, "Term*");
+            assertWildcardQueryEquals("TERM*", false, "TERM*");
+            // Then 'full' wildcard queries:
+            // by default, convert to lowercase:
+            assertWildcardQueryEquals("Te?m", "te?m");
+            // explicitly set lowercase:
+            assertWildcardQueryEquals("te?m", true, "te?m");
+            assertWildcardQueryEquals("Te?m", true, "te?m");
+            assertWildcardQueryEquals("TE?M", true, "te?m");
+            assertWildcardQueryEquals("Te?m*gerM", true, "te?m*germ");
+            // explicitly disable lowercase conversion:
+            assertWildcardQueryEquals("te?m", false, "te?m");
+            assertWildcardQueryEquals("Te?m", false, "Te?m");
+            assertWildcardQueryEquals("TE?M", false, "TE?M");
+            assertWildcardQueryEquals("Te?m*gerM", false, "Te?m*gerM");
+            // Fuzzy queries:
+            assertWildcardQueryEquals("Term~", "term~2");
+            assertWildcardQueryEquals("Term~", true, "term~2");
+            assertWildcardQueryEquals("Term~", false, "Term~2");
+            // Range queries:
+
+            // TODO: implement this on QueryParser
+            // Q0002E_INVALID_SYNTAX_CANNOT_PARSE: Syntax Error, cannot parse '[A TO
+            // C]': Lexical error at line 1, column 1. Encountered: "[" (91), after
+            // : ""
+            assertWildcardQueryEquals("[A TO C]", "[a TO c]");
+            assertWildcardQueryEquals("[A TO C]", true, "[a TO c]");
+            assertWildcardQueryEquals("[A TO C]", false, "[A TO C]");
+            // Test suffix queries: first disallow
+            try
+            {
+                assertWildcardQueryEquals("*Term", true, "*term");
+                fail();
+            }
+            catch (QueryNodeException pe)
+            {
+                // expected exception
+            }
+            try
+            {
+                assertWildcardQueryEquals("?Term", true, "?term");
+                fail();
+            }
+            catch (QueryNodeException pe)
+            {
+                // expected exception
+            }
+            // Test suffix queries: then allow
+            assertWildcardQueryEquals("*Term", true, "*term", true);
+            assertWildcardQueryEquals("?Term", true, "?term", true);
+        }
+        [Test]
+        public void testLeadingWildcardType()
+        {
+            StandardQueryParser qp = GetParser(null);
+            qp.AllowLeadingWildcard = (true);
+            assertEquals(typeof(WildcardQuery), qp.Parse("t*erm*", "field").GetType());
+            assertEquals(typeof(WildcardQuery), qp.Parse("?term*", "field").GetType());
+            assertEquals(typeof(WildcardQuery), qp.Parse("*term*", "field").GetType());
+        }
+        [Test]
+        public void testQPA()
+        {
+            assertQueryEquals("term term^3.0 term", qpAnalyzer, "term term^3.0 term");
+            assertQueryEquals("term stop^3.0 term", qpAnalyzer, "term term");
+
+            assertQueryEquals("term term term", qpAnalyzer, "term term term");
+            assertQueryEquals("term +stop term", qpAnalyzer, "term term");
+            assertQueryEquals("term -stop term", qpAnalyzer, "term term");
+
+            assertQueryEquals("drop AND (stop) AND roll", qpAnalyzer, "+drop +roll");
+            assertQueryEquals("term +(stop) term", qpAnalyzer, "term term");
+            assertQueryEquals("term -(stop) term", qpAnalyzer, "term term");
+
+            assertQueryEquals("drop AND stop AND roll", qpAnalyzer, "+drop +roll");
+            assertQueryEquals("term phrase term", qpAnalyzer,
+                "term (phrase1 phrase2) term");
+
+            assertQueryEquals("term AND NOT phrase term", qpAnalyzer,
+                "+term -(phrase1 phrase2) term");
+
+            assertQueryEquals("stop^3", qpAnalyzer, "");
+            assertQueryEquals("stop", qpAnalyzer, "");
+            assertQueryEquals("(stop)^3", qpAnalyzer, "");
+            assertQueryEquals("((stop))^3", qpAnalyzer, "");
+            assertQueryEquals("(stop^3)", qpAnalyzer, "");
+            assertQueryEquals("((stop)^3)", qpAnalyzer, "");
+            assertQueryEquals("(stop)", qpAnalyzer, "");
+            assertQueryEquals("((stop))", qpAnalyzer, "");
+            assertTrue(GetQuery("term term term", qpAnalyzer) is BooleanQuery);
+            assertTrue(GetQuery("term +stop", qpAnalyzer) is TermQuery);
+        }
+        [Test]
+        public void testRange()
+        {
+            assertQueryEquals("[ a TO z]", null, "[a TO z]");
+            assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((TermRangeQuery)GetQuery("[ a TO z]", null)).GetRewriteMethod());
+
+            StandardQueryParser qp = new StandardQueryParser();
+
+            qp.MultiTermRewriteMethod = (MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE);
+            assertEquals(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE, ((TermRangeQuery)qp.Parse("[ a TO z]", "field")).GetRewriteMethod());
+
+            // test open ranges
+            assertQueryEquals("[ a TO * ]", null, "[a TO *]");
+            assertQueryEquals("[ * TO z ]", null, "[* TO z]");
+            assertQueryEquals("[ * TO * ]", null, "[* TO *]");
+
+
+            assertQueryEquals("field>=a", null, "[a TO *]");
+            assertQueryEquals("field>a", null, "{a TO *]");
+            assertQueryEquals("field<=a", null, "[* TO a]");
+            assertQueryEquals("field<a", null, "[* TO a}");
+
+            // mixing exclude and include bounds
+            assertQueryEquals("{ a TO z ]", null, "{a TO z]");
+            assertQueryEquals("[ a TO z }", null, "[a TO z}");
+            assertQueryEquals("{ a TO * ]", null, "{a TO *]");
+            assertQueryEquals("[ * TO z }", null, "[* TO z}");
+
+
+            assertQueryEquals("[ a TO z ]", null, "[a TO z]");
+            assertQueryEquals("{ a TO z}", null, "{a TO z}");
+            assertQueryEquals("{ a TO z }", null, "{a TO z}");
+            assertQueryEquals("{ a TO z }^2.0", null, "{a TO z}^2.0");
+            assertQueryEquals("[ a TO z] OR bar", null, "[a TO z] bar");
+            assertQueryEquals("[ a TO z] AND bar", null, "+[a TO z] +bar");
+            assertQueryEquals("( bar blar { a TO z}) ", null, "bar blar {a TO z}");
+            assertQueryEquals("gack ( bar blar { a TO z}) ", null,
+                "gack (bar blar {a TO z})");
+        }
+
+        /** for testing DateTools support */
+        private String getDate(String s, DateTools.Resolution resolution)
+
+        {
+            // we use the default Locale since LuceneTestCase randomizes it
+            //DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
+            //return getDate(df.parse(s), resolution);
+
+            return getDate(DateTime.Parse(s), resolution); // TODO: Locale...
+        }
+
+        /** for testing DateTools support */
+        private String getDate(DateTime d, DateTools.Resolution resolution)
+        {
+            return DateTools.DateToString(d, resolution);
+        }
+
+        private String escapeDateString(String s)
+        {
+            if (s.Contains(" "))
+            {
+                return "\"" + s + "\"";
+            }
+            else
+            {
+                return s;
+            }
+        }
+
+        private String getLocalizedDate(int year, int month, int day)
+        {
+            DateTime d = new DateTime(year, month, day, 23, 59, 59, 999);
+            return d.ToShortDateString();
+
+            //// we use the default Locale/TZ since LuceneTestCase randomizes it
+            //DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
+            //Calendar calendar = new GregorianCalendar(TimeZone.getDefault(), Locale.getDefault());
+            //calendar.clear();
+            //calendar.set(year, month, day);
+            //calendar.set(Calendar.HOUR_OF_DAY, 23);
+            //calendar.set(Calendar.MINUTE, 59);
+            //calendar.set(Calendar.SECOND, 59);
+            //calendar.set(Calendar.MILLISECOND, 999);
+            //return df.format(calendar.getTime());
+        }
+        [Test]
+        public void testDateRange()
+        {
+            String startDate = getLocalizedDate(2002, 1, 1);
+            String endDate = getLocalizedDate(2002, 1, 4);
+
+            //// we use the default Locale/TZ since LuceneTestCase randomizes it
+            //Calendar endDateExpected = new GregorianCalendar(TimeZone.getDefault(), Locale.getDefault());
+            //endDateExpected.clear();
+            //endDateExpected.set(2002, 1, 4, 23, 59, 59);
+            //endDateExpected.set(Calendar.MILLISECOND, 999);
+
+            // we use the default Locale/TZ since LuceneTestCase randomizes it
+            DateTime endDateExpected = new DateTime(2002, 1, 4, 23, 59, 59, 999, new GregorianCalendar());
+
+            String defaultField = "default";
+            String monthField = "month";
+            String hourField = "hour";
+            StandardQueryParser qp = new StandardQueryParser();
+
+            IDictionary<string, DateTools.Resolution?> dateRes = new Dictionary<string, DateTools.Resolution?>();
+
+            // set a field specific date resolution    
+            dateRes.Put(monthField, DateTools.Resolution.MONTH);
+            qp.SetDateResolution(dateRes);
+
+            // set default date resolution to MILLISECOND
+            qp.SetDateResolution(DateTools.Resolution.MILLISECOND);
+
+            // set second field specific date resolution
+            dateRes.Put(hourField, DateTools.Resolution.HOUR);
+            qp.SetDateResolution(dateRes);
+
+            // for this field no field specific date resolution has been set,
+            // so verify if the default resolution is used
+            assertDateRangeQueryEquals(qp, defaultField, startDate, endDate,
+                endDateExpected/*.getTime()*/, DateTools.Resolution.MILLISECOND);
+
+            // verify if field specific date resolutions are used for these two
+            // fields
+            assertDateRangeQueryEquals(qp, monthField, startDate, endDate,
+                endDateExpected/*.getTime()*/, DateTools.Resolution.MONTH);
+
+            assertDateRangeQueryEquals(qp, hourField, startDate, endDate,
+                endDateExpected/*.getTime()*/, DateTools.Resolution.HOUR);
+        }
+
+        public void assertDateRangeQueryEquals(StandardQueryParser qp,
+            String field, String startDate, String endDate, DateTime endDateInclusive,
+            DateTools.Resolution resolution)
+        {
+            assertQueryEquals(qp, field, field + ":[" + escapeDateString(startDate) + " TO " + escapeDateString(endDate)
+                + "]", "[" + getDate(startDate, resolution) + " TO "
+                + getDate(endDateInclusive, resolution) + "]");
+            assertQueryEquals(qp, field, field + ":{" + escapeDateString(startDate) + " TO " + escapeDateString(endDate)
+                + "}", "{" + getDate(startDate, resolution) + " TO "
+                + getDate(endDate, resolution) + "}");
+        }
+        [Test]
+        public void testEscaped()
+        {
+            Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
+
+            /*
+             * assertQueryEquals("\\[brackets", a, "\\[brackets");
+             * assertQueryEquals("\\[brackets", null, "brackets");
+             * assertQueryEquals("\\\\", a, "\\\\"); assertQueryEquals("\\+blah", a,
+             * "\\+blah"); assertQueryEquals("\\(blah", a, "\\(blah");
+             * 
+             * assertQueryEquals("\\-blah", a, "\\-blah"); assertQueryEquals("\\!blah",
+             * a, "\\!blah"); assertQueryEquals("\\{blah", a, "\\{blah");
+             * assertQueryEquals("\\}blah", a, "\\}blah"); assertQueryEquals("\\:blah",
+             * a, "\\:blah"); assertQueryEquals("\\^blah", a, "\\^blah");
+             * assertQueryEquals("\\[blah", a, "\\[blah"); assertQueryEquals("\\]blah",
+             * a, "\\]blah"); assertQueryEquals("\\\"blah", a, "\\\"blah");
+             * assertQueryEquals("\\(blah", a, "\\(blah"); assertQueryEquals("\\)blah",
+             * a, "\\)blah"); assertQueryEquals("\\~blah", a, "\\~blah");
+             * assertQueryEquals("\\*blah", a, "\\*blah"); assertQueryEquals("\\?blah",
+             * a, "\\?blah"); //assertQueryEquals("foo \\&\\& bar", a,
+             * "foo \\&\\& bar"); //assertQueryEquals("foo \\|| bar", a,
+             * "foo \\|| bar"); //assertQueryEquals("foo \\AND bar", a,
+             * "foo \\AND bar");
+             */
+
+            assertQueryEquals("\\*", a, "*");
+
+
+            assertQueryEquals("\\a", a, "a");
+
+            assertQueryEquals("a\\-b:c", a, "a-b:c");
+            assertQueryEquals("a\\+b:c", a, "a+b:c");
+            assertQueryEquals("a\\:b:c", a, "a:b:c");
+            assertQueryEquals("a\\\\b:c", a, "a\\b:c");
+
+            assertQueryEquals("a:b\\-c", a, "a:b-c");
+            assertQueryEquals("a:b\\+c", a, "a:b+c");
+            assertQueryEquals("a:b\\:c", a, "a:b:c");
+            assertQueryEquals("a:b\\\\c", a, "a:b\\c");
+
+            assertQueryEquals("a:b\\-c*", a, "a:b-c*");
+            assertQueryEquals("a:b\\+c*", a, "a:b+c*");
+            assertQueryEquals("a:b\\:c*", a, "a:b:c*");
+
+            assertQueryEquals("a:b\\\\c*", a, "a:b\\c*");
+
+            assertQueryEquals("a:b\\-?c", a, "a:b-?c");
+            assertQueryEquals("a:b\\+?c", a, "a:b+?c");
+            assertQueryEquals("a:b\\:?c", a, "a:b:?c");
+
+            assertQueryEquals("a:b\\\\?c", a, "a:b\\?c");
+
+            assertQueryEquals("a:b\\-c~", a, "a:b-c~2");
+            assertQueryEquals("a:b\\+c~", a, "a:b+c~2");
+            assertQueryEquals("a:b\\:c~", a, "a:b:c~2");
+            assertQueryEquals("a:b\\\\c~", a, "a:b\\c~2");
+
+            // TODO: implement Range queries on QueryParser
+            assertQueryEquals("[ a\\- TO a\\+ ]", null, "[a- TO a+]");
+            assertQueryEquals("[ a\\: TO a\\~ ]", null, "[a: TO a~]");
+            assertQueryEquals("[ a\\\\ TO a\\* ]", null, "[a\\ TO a*]");
+
+            assertQueryEquals(
+                "[\"c\\:\\\\temp\\\\\\~foo0.txt\" TO \"c\\:\\\\temp\\\\\\~foo9.txt\"]",
+                a, "[c:\\temp\\~foo0.txt TO c:\\temp\\~foo9.txt]");
+
+            assertQueryEquals("a\\\\\\+b", a, "a\\+b");
+
+            assertQueryEquals("a \\\"b c\\\" d", a, "a \"b c\" d");
+            assertQueryEquals("\"a \\\"b c\\\" d\"", a, "\"a \"b c\" d\"");
+            assertQueryEquals("\"a \\+b c d\"", a, "\"a +b c d\"");
+
+            assertQueryEquals("c\\:\\\\temp\\\\\\~foo.txt", a, "c:\\temp\\~foo.txt");
+
+            assertQueryNodeException("XY\\"); // there must be a character after the
+                                              // escape char
+
+            // test unicode escaping
+            assertQueryEquals("a\\u0062c", a, "abc");
+            assertQueryEquals("XY\\u005a", a, "XYZ");
+            assertQueryEquals("XY\\u005A", a, "XYZ");
+            assertQueryEquals("\"a \\\\\\u0028\\u0062\\\" c\"", a, "\"a \\(b\" c\"");
+
+            assertQueryNodeException("XY\\u005G"); // test non-hex character in escaped
+                                                   // unicode sequence
+            assertQueryNodeException("XY\\u005"); // test incomplete escaped unicode
+                                                  // sequence
+
+            // Tests bug LUCENE-800
+            assertQueryEquals("(item:\\\\ item:ABCD\\\\)", a, "item:\\ item:ABCD\\");
+            assertQueryNodeException("(item:\\\\ item:ABCD\\\\))"); // unmatched closing
+                                                                    // paranthesis
+            assertQueryEquals("\\*", a, "*");
+            assertQueryEquals("\\\\", a, "\\"); // escaped backslash
+
+            assertQueryNodeException("\\"); // a backslash must always be escaped
+
+            // LUCENE-1189
+            assertQueryEquals("(\"a\\\\\") or (\"b\")", a, "a\\ or b");
+        }
+        [Test]
+        public void testQueryStringEscaping()
+        {
+            Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
+
+            assertEscapedQueryEquals("a-b:c", a, "a\\-b\\:c");
+            assertEscapedQueryEquals("a+b:c", a, "a\\+b\\:c");
+            assertEscapedQueryEquals("a:b:c", a, "a\\:b\\:c");
+            assertEscapedQueryEquals("a\\b:c", a, "a\\\\b\\:c");
+
+            assertEscapedQueryEquals("a:b-c", a, "a\\:b\\-c");
+            assertEscapedQueryEquals("a:b+c", a, "a\\:b\\+c");
+            assertEscapedQueryEquals("a:b:c", a, "a\\:b\\:c");
+            assertEscapedQueryEquals("a:b\\c", a, "a\\:b\\\\c");
+
+            assertEscapedQueryEquals("a:b-c*", a, "a\\:b\\-c\\*");
+            assertEscapedQueryEquals("a:b+c*", a, "a\\:b\\+c\\*");
+            assertEscapedQueryEquals("a:b:c*", a, "a\\:b\\:c\\*");
+
+            assertEscapedQueryEquals("a:b\\\\c*", a, "a\\:b\\\\\\\\c\\*");
+
+            assertEscapedQueryEquals("a:b-?c", a, "a\\:b\\-\\?c");
+            assertEscapedQueryEquals("a:b+?c", a, "a\\:b\\+\\?c");
+            assertEscapedQueryEquals("a:b:?c", a, "a\\:b\\:\\?c");
+
+            assertEscapedQueryEquals("a:b?c", a, "a\\:b\\?c");
+
+            assertEscapedQueryEquals("a:b-c~", a, "a\\:b\\-c\\~");
+            assertEscapedQueryEquals("a:b+c~", a, "a\\:b\\+c\\~");
+            assertEscapedQueryEquals("a:b:c~", a, "a\\:b\\:c\\~");
+            assertEscapedQueryEquals("a:b\\c~", a, "a\\:b\\\\c\\~");
+
+            assertEscapedQueryEquals("[ a - TO a+ ]", null, "\\[ a \\- TO a\\+ \\]");
+            assertEscapedQueryEquals("[ a : TO a~ ]", null, "\\[ a \\: TO a\\~ \\]");
+            assertEscapedQueryEquals("[ a\\ TO a* ]", null, "\\[ a\\\\ TO a\\* \\]");
+
+            // LUCENE-881
+            assertEscapedQueryEquals("|| abc ||", a, "\\|\\| abc \\|\\|");
+            assertEscapedQueryEquals("&& abc &&", a, "\\&\\& abc \\&\\&");
+        }
+
+        [Test]
+        [Ignore("flexible queryparser shouldn't escape wildcard terms")]
+        public void testEscapedWildcard()
+        {
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
+
+            WildcardQuery q = new WildcardQuery(new Term("field", "foo\\?ba?r"));
+            assertEquals(q, qp.Parse("foo\\?ba?r", "field"));
+        }
+        [Test]
+        public void testTabNewlineCarriageReturn()
+        {
+            assertQueryEqualsDOA("+weltbank +worlbank", null, "+weltbank +worlbank");
+
+            assertQueryEqualsDOA("+weltbank\n+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \n+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \n +worlbank", null, "+weltbank +worlbank");
+
+            assertQueryEqualsDOA("+weltbank\r+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r +worlbank", null, "+weltbank +worlbank");
+
+            assertQueryEqualsDOA("+weltbank\r\n+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r\n+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r\n +worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r \n +worlbank", null,
+                "+weltbank +worlbank");
+
+            assertQueryEqualsDOA("+weltbank\t+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \t+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \t +worlbank", null, "+weltbank +worlbank");
+        }
+        [Test]
+        public void testSimpleDAO()
+        {
+            assertQueryEqualsDOA("term term term", null, "+term +term +term");
+            assertQueryEqualsDOA("term +term term", null, "+term +term +term");
+            assertQueryEqualsDOA("term term +term", null, "+term +term +term");
+            assertQueryEqualsDOA("term +term +term", null, "+term +term +term");
+            assertQueryEqualsDOA("-term term term", null, "-term +term +term");
+        }
+        [Test]
+        public void testBoost()
+        {
+            CharacterRunAutomaton stopSet = new CharacterRunAutomaton(BasicAutomata.MakeString("on"));
+            Analyzer oneStopAnalyzer = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, stopSet);
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (oneStopAnalyzer);
+
+            Query q = (Query)qp.Parse("on^1.0", "field");
+            assertNotNull(q);
+            q = (Query)qp.Parse("\"hello\"^2.0", "field");
+            assertNotNull(q);
+            assertEquals(q.Boost, (float)2.0, (float)0.5);
+            q = (Query)qp.Parse("hello^2.0", "field");
+            assertNotNull(q);
+            assertEquals(q.Boost, (float)2.0, (float)0.5);
+            q = (Query)qp.Parse("\"on\"^1.0", "field");
+            assertNotNull(q);
+
+            StandardQueryParser qp2 = new StandardQueryParser();
+            qp2.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, MockTokenFilter.ENGLISH_STOPSET));
+
+            q = (Query)qp2.Parse("the^3", "field");
+            // "the" is a stop word so the result is an empty query:
+            assertNotNull(q);
+            assertEquals("", q.toString());
+            assertEquals(1.0f, q.Boost, 0.01f);
+        }
+
+        public void assertQueryNodeException(String queryString)
+        {
+            try
+            {
+                GetQuery(queryString, null);
+            }
+            catch (QueryNodeException expected)
+            {
+                return;
+            }
+            fail("ParseException expected, not thrown");
+        }
+        [Test]
+        public void testException()
+        {
+            assertQueryNodeException("*leadingWildcard"); // disallowed by default
+            assertQueryNodeException("\"some phrase");
+            assertQueryNodeException("(foo bar");
+            assertQueryNodeException("foo bar))");
+            assertQueryNodeException("field:term:with:colon some more terms");
+            assertQueryNodeException("(sub query)^5.0^2.0 plus more");
+            assertQueryNodeException("secret AND illegal) AND access:confidential");
+        }
+        [Test]
+        public void testCustomQueryParserWildcard()
+        {
+            try
+            {
+                new QPTestParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false)).Parse("a?t", "contents");
+                fail("Wildcard queries should not be allowed");
+            }
+            catch (QueryNodeException expected)
+            {
+                // expected exception
+            }
+        }
+        [Test]
+        public void testCustomQueryParserFuzzy()
+        {
+            try
+            {
+                new QPTestParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false)).Parse("xunit~", "contents");
+                fail("Fuzzy queries should not be allowed");
+            }
+            catch (QueryNodeException expected)
+            {
+                // expected exception
+            }
+        }
+
+        [Test]
+        public void testBooleanQuery()
+        {
+            BooleanQuery.MaxClauseCount = (2);
+            try
+            {
+                StandardQueryParser qp = new StandardQueryParser();
+                qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
+
+                qp.Parse("one two three", "field");
+                fail("ParseException expected due to too many boolean clauses");
+            }
+            catch (QueryNodeException expected)
+            {
+                // too many boolean clauses, so ParseException is expected
+            }
+        }
+
+        /**
+         * This test differs from TestPrecedenceQueryParser
+         */
+        [Test]
+        public void testPrecedence()
+        {
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
+
+            Query query1 = (Query)qp.Parse("A AND B OR C AND D", "field");
+            Query query2 = (Query)qp.Parse("+A +B +C +D", "field");
+
+            assertEquals(query1, query2);
+        }
+
+        // [Test]
+        // Todo: Convert from DateField to DateUtil
+        //  public void testLocalDateFormat() throws IOException, QueryNodeException {
+        //    Directory ramDir = newDirectory();
+        //    IndexWriter iw = new IndexWriter(ramDir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random, MockTokenizer.WHITESPACE, false)));
+        //    addDateDoc("a", 2005, 12, 2, 10, 15, 33, iw);
+        //    addDateDoc("b", 2005, 12, 4, 22, 15, 00, iw);
+        //    iw.close();
+        //    IndexSearcher is = new IndexSearcher(ramDir, true);
+        //    assertHits(1, "[12/1/2005 TO 12/3/2005]", is);
+        //    assertHits(2, "[12/1/2005 TO 12/4/2005]", is);
+        //    assertHits(1, "[12/3/2005 TO 12/4/2005]", is);
+        //    assertHits(1, "{12/1/2005 TO 12/3/2005}", is);
+        //    assertHits(1, "{12/1/2005 TO 12/4/2005}", is);
+        //    assertHits(0, "{12/3/2005 TO 12/4/2005}", is);
+        //    is.close();
+        //    ramDir.close();
+        //  }
+        //
+        //  private void addDateDoc(String content, int year, int month, int day,
+        //                          int hour, int minute, int second, IndexWriter iw) throws IOException {
+        //    Document d = new Document();
+        //    d.add(newField("f", content, Field.Store.YES, Field.Index.ANALYZED));
+        //    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
+        //    cal.set(year, month - 1, day, hour, minute, second);
+        //    d.add(newField("date", DateField.dateToString(cal.getTime()),
+        //        Field.Store.YES, Field.Index.NOT_ANALYZED));
+        //    iw.addDocument(d);
+        //  }
+
+        [Test]
+        public void testStarParsing()
+        {
+            // final int[] type = new int[1];
+            // StandardQueryParser qp = new StandardQueryParser("field", new
+            // WhitespaceAnalyzer()) {
+            // protected Query getWildcardQuery(String field, String termStr) throws
+            // ParseException {
+            // // override error checking of superclass
+            // type[0]=1;
+            // return new TermQuery(new Term(field,termStr));
+            // }
+            // protected Query getPrefixQuery(String field, String termStr) throws
+            // ParseException {
+            // // override error checking of superclass
+            // type[0]=2;
+            // return new TermQuery(new Term(field,termStr));
+            // }
+            //
+            // protected Query getFieldQuery(String field, String queryText) throws
+            // ParseException {
+            // type[0]=3;
+            // return super.getFieldQuery(field, queryText);
+            // }
+            // };
+            //
+            // TermQuery tq;
+            //
+            // tq = (TermQuery)qp.parse("foo:zoo*");
+            // assertEquals("zoo",tq.getTerm().text());
+            // assertEquals(2,type[0]);
+            //
+            // tq = (TermQuery)qp.parse("foo:zoo*^2");
+            // assertEquals("zoo",tq.getTerm().text());
+            // assertEquals(2,type[0]);
+            // assertEquals(tq.getBoost(),2,0);
+            //
+            // tq = (TermQuery)qp.parse("foo:*");
+            // assertEquals("*",tq.getTerm().text());
+            // assertEquals(1,type[0]); // could be a valid prefix query in the
+            // future too
+            //
+            // tq = (TermQuery)qp.parse("foo:*^2");
+            // assertEquals("*",tq.getTerm().text());
+            // assertEquals(1,type[0]);
+            // assertEquals(tq.getBoost(),2,0);
+            //
+            // tq = (TermQuery)qp.parse("*:foo");
+            // assertEquals("*",tq.getTerm().field());
+            // assertEquals("foo",tq.getTerm().text());
+            // assertEquals(3,type[0]);
+            //
+            // tq = (TermQuery)qp.parse("*:*");
+            // assertEquals("*",tq.getTerm().field());
+            // assertEquals("*",tq.getTerm().text());
+            // assertEquals(1,type[0]); // could be handled as a prefix query in the
+            // future
+            //
+            // tq = (TermQuery)qp.parse("(*:*)");
+            // assertEquals("*",tq.getTerm().field());
+            // assertEquals("*",tq.getTerm().text());
+            // assertEquals(1,type[0]);
+
+        }
+        [Test]
+        public void testRegexps()
+        {
+            StandardQueryParser qp = new StandardQueryParser();
+            String df = "field";
+            RegexpQuery q = new RegexpQuery(new Term("field", "[a-z][123]"));
+            assertEquals(q, qp.Parse("/[a-z][123]/", df));
+            qp.LowercaseExpandedTerms = (true);
+            assertEquals(q, qp.Parse("/[A-Z][123]/", df));
+            q.Boost = (0.5f);
+            assertEquals(q, qp.Parse("/[A-Z][123]/^0.5", df));
+            qp.MultiTermRewriteMethod = (MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE);
+            q.SetRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE); // LUCENENET TODO: Inconsistent API betwen RegexpQuery and StandardQueryParser
+            assertTrue(qp.Parse("/[A-Z][123]/^0.5", df) is RegexpQuery);
+            assertEquals(q, qp.Parse("/[A-Z][123]/^0.5", df));
+            assertEquals(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE, ((RegexpQuery)qp.Parse("/[A-Z][123]/^0.5", df)).GetRewriteMethod());
+            qp.MultiTermRewriteMethod = (MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT);
+
+            Query escaped = new RegexpQuery(new Term("field", "[a-z]\\/[123]"));
+            assertEquals(escaped, qp.Parse("/[a-z]\\/[123]/", df));
+            Query escaped2 = new RegexpQuery(new Term("field", "[a-z]\\*[123]"));
+            assertEquals(escaped2, qp.Parse("/[a-z]\\*[123]/", df));
+
+            BooleanQuery complex = new BooleanQuery();
+            complex.Add(new RegexpQuery(new Term("field", "[a-z]\\/[123]")), BooleanClause.Occur.MUST);
+            complex.Add(new TermQuery(new Term("path", "/etc/init.d/")), BooleanClause.Occur.MUST);
+            complex.Add(new TermQuery(new Term("field", "/etc/init[.]d/lucene/")), BooleanClause.Occur.SHOULD);
+            assertEquals(complex, qp.Parse("/[a-z]\\/[123]/ AND path:\"/etc/init.d/\" OR \"/etc\\/init\\[.\\]d/lucene/\" ", df));
+
+            Query re = new RegexpQuery(new Term("field", "http.*"));
+            assertEquals(re, qp.Parse("field:/http.*/", df));
+            assertEquals(re, qp.Parse("/http.*/", df));
+
+            re = new RegexpQuery(new Term("field", "http~0.5"));
+            assertEquals(re, qp.Parse("field:/http~0.5/", df));
+            assertEquals(re, qp.Parse("/http~0.5/", df));
+
+            re = new RegexpQuery(new Term("field", "boo"));
+            assertEquals(re, qp.Parse("field:/boo/", df));
+            assertEquals(re, qp.Parse("/boo/", df));
+
+
+            assertEquals(new TermQuery(new Term("field", "/boo/")), qp.Parse("\"/boo/\"", df));
+            assertEquals(new TermQuery(new Term("field", "/boo/")), qp.Parse("\\/boo\\/", df));
+
+            BooleanQuery two = new BooleanQuery();
+            two.Add(new RegexpQuery(new Term("field", "foo")), BooleanClause.Occur.SHOULD);
+            two.Add(new RegexpQuery(new Term("field", "bar")), BooleanClause.Occur.SHOULD);
+            assertEquals(two, qp.Parse("field:/foo/ field:/bar/", df));
+            assertEquals(two, qp.Parse("/foo/ /bar/", df));
+        }
+        [Test]
+        public void testStopwords()
+        {
+            StandardQueryParser qp = new StandardQueryParser();
+            CharacterRunAutomaton stopSet = new CharacterRunAutomaton(new RegExp("the|foo").ToAutomaton());
+            qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, stopSet));
+
+            Query result = (Query)qp.Parse("a:the OR a:foo", "a");
+            assertNotNull("result is null and it shouldn't be", result);
+            assertTrue("result is not a BooleanQuery", result is BooleanQuery);
+            assertTrue(((BooleanQuery)result).Clauses.size() + " does not equal: "
+                + 0, ((BooleanQuery)result).Clauses.size() == 0);
+            result = (Query)qp.Parse("a:woo OR a:the", "a");
+            assertNotNull("result is null and it shouldn't be", result);
+            assertTrue("result is not a TermQuery", result is TermQuery);
+            result = (Query)qp.Parse(
+                    "(fieldX:xxxxx OR fieldy:xxxxxxxx)^2 AND (fieldx:the OR fieldy:foo)",
+                    "a");
+            assertNotNull("result is null and it shouldn't be", result);
+            assertTrue("result is not a BooleanQuery", result is BooleanQuery);
+            if (VERBOSE)
+                Console.WriteLine("Result: " + result);
+            assertTrue(((BooleanQuery)result).Clauses.size() + " does not equal: "
+                + 2, ((BooleanQuery)result).Clauses.size() == 2);
+        }
+        [Test]
+        public void testPositionIncrement()
+        {
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (
+                    new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, MockTokenFilter.ENGLISH_STOPSET));
+
+            qp.EnablePositionIncrements = (true);
+
+            String qtxt = "\"the words in poisitions pos02578 are stopped in this phrasequery\"";
+            // 0 2 5 7 8
+            int[] expectedPositions = { 1, 3, 4, 6, 9 };
+            PhraseQuery pq = (PhraseQuery)qp.Parse(qtxt, "a");
+            // System.out.println("Query text: "+qtxt);
+            // System.out.println("Result: "+pq);
+            Term[] t = pq.Terms;
+            int[] pos = pq.Positions;
+            for (int i = 0; i < t.Length; i++)
+            {
+                // System.out.println(i+". "+t[i]+"  pos: "+pos[i]);
+                assertEquals("term " + i + " = " + t[i] + " has wrong term-position!",
+                    expectedPositions[i], pos[i]);
+            }
+        }
+        [Test]
+        public void testMatchAllDocs()
+        {
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
+
+            assertEquals(new MatchAllDocsQuery(), qp.Parse("*:*", "field"));
+            assertEquals(new MatchAllDocsQuery(), qp.Parse("(*:*)", "field"));
+            BooleanQuery bq = (BooleanQuery)qp.Parse("+*:* -*:*", "field");
+            assertTrue(bq.GetClauses()[0].Query is MatchAllDocsQuery);
+            assertTrue(bq.GetClauses()[1].Query is MatchAllDocsQuery);
+        }
+
+        private void assertHits(int expected, String query, IndexSearcher @is)
+        {
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
+            qp.Locale = new CultureInfo("en");//  (Locale.ENGLISH); // LUCENENET TODO: Fix API - we probably don't want to set Culture to a property
+
+            Query q = (Query)qp.Parse(query, "date");
+            ScoreDoc[] hits = @is.Search(q, null, 1000).ScoreDocs;
+            assertEquals(expected, hits.Length);
+        }
+
+
+        public override void TearDown()
+        {
+            BooleanQuery.MaxClauseCount = (originalMaxClauses);
+            base.TearDown();
+        }
+
+        private sealed class CannedTokenizer : Tokenizer
+        {
+            private int upto = 0;
+            private readonly IPositionIncrementAttribute posIncr;
+            private readonly ICharTermAttribute term;
+
+            public CannedTokenizer(TextReader reader)
+                        : base(reader)
+            {
+                posIncr = AddAttribute<IPositionIncrementAttribute>();
+                term = AddAttribute<ICharTermAttribute>();
+            }
+
+
+            public override bool IncrementToken()
+            {
+                ClearAttributes();
+                if (upto == 4)
+                {
+                    return false;
+                }
+                if (upto == 0)
+                {
+                    posIncr.PositionIncrement = (1);
+                    term.SetEmpty().Append("a");
+                }
+                else if (upto == 1)
+                {
+                    posIncr.PositionIncrement = (1);
+                    term.SetEmpty().Append("b");
+                }
+                else if (upto == 2)
+                {
+                    posIncr.PositionIncrement = (0);
+                    term.SetEmpty().Append("c");
+                }
+                else
+                {
+                    posIncr.PositionIncrement = (0);
+                    term.SetEmpty().Append("d");
+                }
+                upto++;
+                return true;
+            }
+
+
+            public override void Reset()
+            {
+                base.Reset();
+                this.upto = 0;
+            }
+        }
+
+        private class CannedAnalyzer : Analyzer
+        {
+
+            public override TokenStreamComponents CreateComponents(String ignored, TextReader alsoIgnored)
+            {
+                return new TokenStreamComponents(new CannedTokenizer(alsoIgnored));
+            }
+        }
+        [Test]
+        public void testMultiPhraseQuery()
+        {
+            Store.Directory dir = NewDirectory();
+            IndexWriter w = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new CannedAnalyzer()));
+            Document doc = new Document();
+            doc.Add(NewTextField("field", "", Field.Store.NO));
+            w.AddDocument(doc);
+            IndexReader r = DirectoryReader.Open(w, true);
+            IndexSearcher s = NewSearcher(r);
+
+            Query q = (Query)new StandardQueryParser(new CannedAnalyzer()).Parse("\"a\"", "field");
+            assertTrue(q is MultiPhraseQuery);
+            assertEquals(1, s.Search(q, 10).TotalHits);
+            r.Dispose();
+            w.Dispose();
+            dir.Dispose();
+        }
+        [Test]
+        public void testRegexQueryParsing()
+        {
+            String[]
+            fields = { "b", "t" };
+
+            StandardQueryParser parser = new StandardQueryParser();
+            parser.SetMultiFields(fields);
+            parser.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            parser.Analyzer = (new MockAnalyzer(Random()));
+
+            BooleanQuery exp = new BooleanQuery();
+            exp.Add(new BooleanClause(new RegexpQuery(new Term("b", "ab.+")), BooleanClause.Occur.SHOULD));//TODO spezification? was "MUST"
+            exp.Add(new BooleanClause(new RegexpQuery(new Term("t", "ab.+")), BooleanClause.Occur.SHOULD));//TODO spezification? was "MUST"
+
+            assertEquals(exp, parser.Parse("/ab.+/", null));
+
+            RegexpQuery regexpQueryexp = new RegexpQuery(new Term("test", "[abc]?[0-9]"));
+
+            assertEquals(regexpQueryexp, parser.Parse("test:/[abc]?[0-9]/", null));
+
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
new file mode 100644
index 0000000..cb9bfe5
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
@@ -0,0 +1,235 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Standard;
+using Lucene.Net.QueryParsers.Util;
+using Lucene.Net.Search;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using static Lucene.Net.Documents.DateTools;
+using static Lucene.Net.QueryParsers.Classic.QueryParserBase;
+using System.IO;
+using Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using NUnit.Framework;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard
+{
+    /// <summary>
+    /// Tests QueryParser.
+    /// </summary>
+    public class TestStandardQP : QueryParserTestBase
+    {
+        public StandardQueryParser GetParser(Analyzer a)
+        {
+            if (a == null) a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
+            StandardQueryParser qp = new StandardQueryParser(a);
+            qp.SetDefaultOperator(Config.Operator.OR);
+
+            return qp;
+        }
+
+        public Query Parse(String query, StandardQueryParser qp)
+        {
+            return (Query)qp.Parse(query, DefaultField);
+        }
+
+
+        public override ICommonQueryParserConfiguration GetParserConfig(Analyzer a)
+        {
+            return GetParser(a);
+        }
+
+
+        public override Query GetQuery(String query, ICommonQueryParserConfiguration cqpC)
+        {
+            Debug.Assert(cqpC != null, "Parameter must not be null");
+            Debug.Assert((cqpC is StandardQueryParser), "Parameter must be instance of StandardQueryParser");
+            StandardQueryParser qp = (StandardQueryParser)cqpC;
+            return Parse(query, qp);
+        }
+
+
+        public override Query GetQuery(String query, Analyzer a)
+        {
+            return Parse(query, GetParser(a));
+        }
+
+
+        public override bool IsQueryParserException(Exception exception)
+        {
+            return exception is QueryNodeException;
+        }
+
+
+        public override void SetDefaultOperatorOR(ICommonQueryParserConfiguration cqpC)
+        {
+            Debug.Assert(cqpC is StandardQueryParser);
+            StandardQueryParser qp = (StandardQueryParser)cqpC;
+            qp.SetDefaultOperator(Config.Operator.OR);
+        }
+
+
+        public override void SetDefaultOperatorAND(ICommonQueryParserConfiguration cqpC)
+        {
+            Debug.Assert(cqpC is StandardQueryParser);
+            StandardQueryParser qp = (StandardQueryParser)cqpC;
+            qp.SetDefaultOperator(Config.Operator.AND);
+        }
+
+
+        public override void SetAnalyzeRangeTerms(ICommonQueryParserConfiguration cqpC,
+            bool value)
+        {
+            throw new NotSupportedException();
+        }
+
+
+        public override void SetAutoGeneratePhraseQueries(ICommonQueryParserConfiguration cqpC,
+            bool value)
+        {
+            throw new NotSupportedException();
+        }
+
+
+        public override void SetDateResolution(ICommonQueryParserConfiguration cqpC,
+            string field, Resolution value)
+        {
+            Debug.Assert(cqpC is StandardQueryParser);
+            StandardQueryParser qp = (StandardQueryParser)cqpC;
+            qp.GetDateResolutionMap().Put(field, value);
+        }
+
+
+        internal class TestOperatorVsWhiteSpaceAnalyzer : Analyzer
+        {
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
+            {
+                return new TokenStreamComponents(new MockTokenizer(reader,
+                    MockTokenizer.WHITESPACE, false));
+            }
+        }
+        [Test]
+        public override void TestOperatorVsWhitespace()
+        {
+            // LUCENE-2566 is not implemented for StandardQueryParser
+            // TODO implement LUCENE-2566 and remove this (override)method
+            Analyzer a = new TestOperatorVsWhiteSpaceAnalyzer();
+            //        Analyzer a = new Analyzer()
+            //    {
+            //        @Override
+            //      public TokenStreamComponents createComponents(String fieldName,
+            //          Reader reader)
+            //    {
+            //        return new TokenStreamComponents(new MockTokenizer(reader,
+            //            MockTokenizer.WHITESPACE, false));
+            //    }
+            //};
+            AssertQueryEquals("a - b", a, "a -b");
+            AssertQueryEquals("a + b", a, "a +b");
+            AssertQueryEquals("a ! b", a, "a -b");
+        }
+
+        [Test]
+        public override void TestRangeWithPhrase()
+        {
+            // StandardSyntaxParser does not differentiate between a term and a
+            // one-term-phrase in a range query.
+            // Is this an issue? Should StandardSyntaxParser mark the text as
+            // wasEscaped=true ?
+            AssertQueryEquals("[\\* TO \"*\"]", null, "[\\* TO *]");
+        }
+
+        [Test]
+        public override void TestEscapedVsQuestionMarkAsWildcard()
+        {
+            Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
+            AssertQueryEquals("a:b\\-?c", a, "a:b-?c");
+            AssertQueryEquals("a:b\\+?c", a, "a:b+?c");
+            AssertQueryEquals("a:b\\:?c", a, "a:b:?c");
+
+
+            AssertQueryEquals("a:b\\\\?c", a, "a:b\\?c");
+        }
+
+        [Test]
+        public override void TestEscapedWildcard()
+        {
+            ICommonQueryParserConfiguration qp = GetParserConfig(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
+            WildcardQuery q = new WildcardQuery(new Term("field", "foo?ba?r"));//TODO not correct!!
+            assertEquals(q, GetQuery("foo\\?ba?r", qp));
+        }
+
+
+        [Test]
+        public override void TestCollatedRange()
+        {
+            try
+            {
+                SetAnalyzeRangeTerms(GetParser(null), true);
+                base.TestCollatedRange();
+            }
+            catch (NotSupportedException e)
+            {
+                // expected
+            }
+        }
+
+        [Test]
+        public override void TestAutoGeneratePhraseQueriesOn()
+        {
+            try
+            {
+                SetAutoGeneratePhraseQueries(GetParser(null), true);
+                base.TestAutoGeneratePhraseQueriesOn();
+            }
+            catch (NotSupportedException e)
+            {
+                // expected
+            }
+        }
+
+        [Test]
+        public override void TestStarParsing()
+        {
+        }
+
+        [Test]
+        public override void TestDefaultOperator()
+        {
+            StandardQueryParser qp = GetParser(new MockAnalyzer(Random()));
+            // make sure OR is the default:
+            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.OR, qp.GetDefaultOperator());
+            SetDefaultOperatorAND(qp);
+            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.AND, qp.GetDefaultOperator());
+            SetDefaultOperatorOR(qp);
+            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.OR, qp.GetDefaultOperator());
+        }
+
+
+        [Test]
+        public override void TestNewFieldQuery()
+        {
+            /** ordinary behavior, synonyms form uncoordinated boolean query */
+            StandardQueryParser dumb = GetParser(new Analyzer1());
+            BooleanQuery expanded = new BooleanQuery(true);
+            expanded.Add(new TermQuery(new Term("field", "dogs")),
+                    BooleanClause.Occur.SHOULD);
+            expanded.Add(new TermQuery(new Term("field", "dog")),
+                BooleanClause.Occur.SHOULD);
+            assertEquals(expanded, dumb.Parse("\"dogs\"", "field"));
+            /** even with the phrase operator the behavior is the same */
+            assertEquals(expanded, dumb.Parse("dogs", "field"));
+
+            /**
+             * custom behavior, the synonyms are expanded, unless you use quote operator
+             */
+            //TODO test something like "SmartQueryParser()"
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj b/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj
index 65b69ec..4ba267d 100644
--- a/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj
+++ b/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj
@@ -50,6 +50,31 @@
     <Compile Include="Ext\ExtensionStub.cs" />
     <Compile Include="Ext\TestExtendableQueryParser.cs" />
     <Compile Include="Ext\TestExtensions.cs" />
+    <Compile Include="Flexible\Core\Builders\TestQueryTreeBuilder.cs" />
+    <Compile Include="Flexible\Core\Nodes\TestQueryNode.cs" />
+    <Compile Include="Flexible\Messages\MessagesTestBundle.cs" />
+    <Compile Include="Flexible\Messages\MessagesTestBundle.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>MessagesTestBundle.resx</DependentUpon>
+    </Compile>
+    <Compile Include="Flexible\Messages\TestNLS.cs" />
+    <Compile Include="Flexible\Precedence\TestPrecedenceQueryParser.cs" />
+    <Compile Include="Flexible\Spans\SpanOrQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Spans\SpansQueryConfigHandler.cs" />
+    <Compile Include="Flexible\Spans\SpansQueryTreeBuilder.cs" />
+    <Compile Include="Flexible\Spans\SpansValidatorQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Spans\SpanTermQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Spans\TestSpanQueryParser.cs" />
+    <Compile Include="Flexible\Spans\TestSpanQueryParserSimpleSample.cs" />
+    <Compile Include="Flexible\Spans\UniqueFieldAttribute.cs" />
+    <Compile Include="Flexible\Spans\UniqueFieldAttributeImpl.cs" />
+    <Compile Include="Flexible\Spans\UniqueFieldQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\TestMultiAnalyzerQPHelper.cs" />
+    <Compile Include="Flexible\Standard\TestMultiFieldQPHelper.cs" />
+    <Compile Include="Flexible\Standard\TestNumericQueryParser.cs" />
+    <Compile Include="Flexible\Standard\TestQPHelper.cs" />
+    <Compile Include="Flexible\Standard\TestStandardQP.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="Classic\TestMultiAnalyzer.cs" />
     <Compile Include="Simple\TestSimpleQueryParser.cs" />
@@ -86,6 +111,16 @@
   <ItemGroup>
     <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
   </ItemGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="Flexible\Messages\MessagesTestBundle.ja-JP.resx">
+      <DependentUpon>MessagesTestBundle.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Flexible\Messages\MessagesTestBundle.resx">
+      <DependentUpon>MessagesTestBundle.cs</DependentUpon>
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>MessagesTestBundle.Designer.cs</LastGenOutput>
+    </EmbeddedResource>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.


[54/58] lucenenet git commit: HACK: (4th) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context.

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs b/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs
index 6b45673..ee990c1 100644
--- a/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs
@@ -33,5 +33,457 @@ namespace Lucene.Net.Search
         {
             CheckHits.CheckNoMatchExplanations(q, FIELD, Searcher, expDocNrs);
         }
+
+
+        #region TestSimpleExplanations
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestT1()
+        {
+            base.TestT1();
+        }
+
+        [Test]
+        public override void TestT2()
+        {
+            base.TestT2();
+        }
+
+        /* MatchAllDocs */
+
+        [Test]
+        public override void TestMA1()
+        {
+            base.TestMA1();
+        }
+
+        [Test]
+        public override void TestMA2()
+        {
+            base.TestMA2();
+        }
+
+        /* some simple phrase tests */
+
+        [Test]
+        public override void TestP1()
+        {
+            base.TestP1();
+        }
+
+        [Test]
+        public override void TestP2()
+        {
+            base.TestP2();
+        }
+
+        [Test]
+        public override void TestP3()
+        {
+            base.TestP3();
+        }
+
+        [Test]
+        public override void TestP4()
+        {
+            base.TestP4();
+        }
+
+        [Test]
+        public override void TestP5()
+        {
+            base.TestP5();
+        }
+
+        [Test]
+        public override void TestP6()
+        {
+            base.TestP6();
+        }
+
+        [Test]
+        public override void TestP7()
+        {
+            base.TestP7();
+        }
+
+        /* some simple filtered query tests */
+
+        [Test]
+        public override void TestFQ1()
+        {
+            base.TestFQ1();
+        }
+
+        [Test]
+        public override void TestFQ2()
+        {
+            base.TestFQ2();
+        }
+
+        [Test]
+        public override void TestFQ3()
+        {
+            base.TestFQ3();
+        }
+
+        [Test]
+        public override void TestFQ4()
+        {
+            base.TestFQ4();
+        }
+
+        [Test]
+        public override void TestFQ6()
+        {
+            base.TestFQ6();
+        }
+
+        /* ConstantScoreQueries */
+
+        [Test]
+        public override void TestCSQ1()
+        {
+            base.TestCSQ1();
+        }
+
+        [Test]
+        public override void TestCSQ2()
+        {
+            base.TestCSQ2();
+        }
+
+        [Test]
+        public override void TestCSQ3()
+        {
+            base.TestCSQ3();
+        }
+
+        /* DisjunctionMaxQuery */
+
+        [Test]
+        public override void TestDMQ1()
+        {
+            base.TestDMQ1();
+        }
+
+        [Test]
+        public override void TestDMQ2()
+        {
+            base.TestDMQ2();
+        }
+
+        [Test]
+        public override void TestDMQ3()
+        {
+            base.TestDMQ3();
+        }
+
+        [Test]
+        public override void TestDMQ4()
+        {
+            base.TestDMQ4();
+        }
+
+        [Test]
+        public override void TestDMQ5()
+        {
+            base.TestDMQ5();
+        }
+
+        [Test]
+        public override void TestDMQ6()
+        {
+            base.TestDMQ6();
+        }
+
+        [Test]
+        public override void TestDMQ7()
+        {
+            base.TestDMQ7();
+        }
+
+        [Test]
+        public override void TestDMQ8()
+        {
+            base.TestDMQ8();
+        }
+
+        [Test]
+        public override void TestDMQ9()
+        {
+            base.TestDMQ9();
+        }
+
+        /* MultiPhraseQuery */
+
+        [Test]
+        public override void TestMPQ1()
+        {
+            base.TestMPQ1();
+        }
+
+        [Test]
+        public override void TestMPQ2()
+        {
+            base.TestMPQ2();
+        }
+
+        [Test]
+        public override void TestMPQ3()
+        {
+            base.TestMPQ3();
+        }
+
+        [Test]
+        public override void TestMPQ4()
+        {
+            base.TestMPQ4();
+        }
+
+        [Test]
+        public override void TestMPQ5()
+        {
+            base.TestMPQ5();
+        }
+
+        [Test]
+        public override void TestMPQ6()
+        {
+            base.TestMPQ6();
+        }
+
+        /* some simple tests of boolean queries containing term queries */
+
+        [Test]
+        public override void TestBQ1()
+        {
+            base.TestBQ1();
+        }
+
+        [Test]
+        public override void TestBQ2()
+        {
+            base.TestBQ2();
+        }
+
+        [Test]
+        public override void TestBQ3()
+        {
+            base.TestBQ3();
+        }
+
+        [Test]
+        public override void TestBQ4()
+        {
+            base.TestBQ4();
+        }
+
+        [Test]
+        public override void TestBQ5()
+        {
+            base.TestBQ5();
+        }
+
+        [Test]
+        public override void TestBQ6()
+        {
+            base.TestBQ6();
+        }
+
+        [Test]
+        public override void TestBQ7()
+        {
+            base.TestBQ7();
+        }
+
+        [Test]
+        public override void TestBQ8()
+        {
+            base.TestBQ8();
+        }
+
+        [Test]
+        public override void TestBQ9()
+        {
+            base.TestBQ9();
+        }
+
+        [Test]
+        public override void TestBQ10()
+        {
+            base.TestBQ10();
+        }
+
+        [Test]
+        public override void TestBQ11()
+        {
+            base.TestBQ11();
+        }
+
+        [Test]
+        public override void TestBQ14()
+        {
+            base.TestBQ14();
+        }
+
+        [Test]
+        public override void TestBQ15()
+        {
+            base.TestBQ15();
+        }
+
+        [Test]
+        public override void TestBQ16()
+        {
+            base.TestBQ16();
+        }
+
+        [Test]
+        public override void TestBQ17()
+        {
+            base.TestBQ17();
+        }
+
+        [Test]
+        public override void TestBQ19()
+        {
+            base.TestBQ19();
+        }
+
+        [Test]
+        public override void TestBQ20()
+        {
+            base.TestBQ20();
+        }
+
+        /* BQ of TQ: using alt so some fields have zero boost and some don't */
+
+        [Test]
+        public override void TestMultiFieldBQ1()
+        {
+            base.TestMultiFieldBQ1();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQ2()
+        {
+            base.TestMultiFieldBQ2();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQ3()
+        {
+            base.TestMultiFieldBQ3();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQ4()
+        {
+            base.TestMultiFieldBQ4();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQ5()
+        {
+            base.TestMultiFieldBQ5();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQ6()
+        {
+            base.TestMultiFieldBQ6();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQ7()
+        {
+            base.TestMultiFieldBQ7();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQ8()
+        {
+            base.TestMultiFieldBQ8();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQ9()
+        {
+            base.TestMultiFieldBQ9();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQ10()
+        {
+            base.TestMultiFieldBQ10();
+        }
+
+        /* BQ of PQ: using alt so some fields have zero boost and some don't */
+
+        [Test]
+        public override void TestMultiFieldBQofPQ1()
+        {
+            base.TestMultiFieldBQofPQ1();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQofPQ2()
+        {
+            base.TestMultiFieldBQofPQ2();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQofPQ3()
+        {
+            base.TestMultiFieldBQofPQ3();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQofPQ4()
+        {
+            base.TestMultiFieldBQofPQ4();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQofPQ5()
+        {
+            base.TestMultiFieldBQofPQ5();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQofPQ6()
+        {
+            base.TestMultiFieldBQofPQ6();
+        }
+
+        [Test]
+        public override void TestMultiFieldBQofPQ7()
+        {
+            base.TestMultiFieldBQofPQ7();
+        }
+
+        #endregion
+
+        #region TestExplanations
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+
+        /// <summary>
+        /// Placeholder: JUnit freaks if you don't have one test ... making
+        /// class abstract doesn't help
+        /// </summary>
+        [Test]
+        public override void TestNoop()
+        {
+            base.TestNoop();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs b/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs
index bb1c4d0..f8c9fb3 100644
--- a/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs
@@ -177,5 +177,19 @@ namespace Lucene.Net.Search
             result = search.Search(q, TermRangeFilter.NewStringRange("rand", maxRP, null, T, F), numDocs).ScoreDocs;
             Assert.AreEqual(1, result.Length, "max,nul,T,T");
         }
+
+
+        #region SorterTestBase
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestPad()
+        {
+            base.TestPad();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs b/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs
index 73875e2..f103307 100644
--- a/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs
+++ b/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs
@@ -355,5 +355,85 @@ namespace Lucene.Net.Support
             dict.Remove(nullTarget);
             Assert.IsFalse(dict.Contains(nullTarget));
         }
+
+
+        #region TestHashMap
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test, LuceneNetSpecific]
+        public override void TestKeyEnumeration()
+        {
+            base.TestKeyEnumeration();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestValueEnumeration()
+        {
+            base.TestValueEnumeration();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestKeyValuePairEnumeration()
+        {
+            base.TestKeyValuePairEnumeration();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestContainsNullKey()
+        {
+            base.TestContainsNullKey();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestContainsKey()
+        {
+            base.TestContainsKey();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestAdd_NoNullKeys_NullValues()
+        {
+            base.TestAdd_NoNullKeys_NullValues();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestAdd_WithNullKeys_NoNullValues()
+        {
+            base.TestAdd_WithNullKeys_NoNullValues();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestGetWithNonExistantKey_EmptyCollection()
+        {
+            base.TestGetWithNonExistantKey_EmptyCollection();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestGetWithNonExistantKey()
+        {
+            base.TestGetWithNonExistantKey();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestAddsUpdate_NotThrowException()
+        {
+            base.TestAddsUpdate_NotThrowException();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestIndexersUpdate_NotThrowException()
+        {
+            base.TestIndexersUpdate_NotThrowException();
+        }
+
+        [Test, LuceneNetSpecific]
+        public override void TestWithValueType()
+        {
+            base.TestWithValueType();
+        }
+
+        #endregion
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs b/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs
index eb92962..264e95c 100644
--- a/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs
+++ b/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs
@@ -529,6 +529,118 @@ namespace Lucene.Net.Support
                 return KeyComparer.GetHashCode(obj.Key) ^ ValueComparer.GetHashCode(obj.Value);
             }
         }
+
+
+        #region TestGenericCollection<TList, TItem>
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test, LuceneNetSpecific]
+        public void TestGenericCollection_TestAddRemove()
+        {
+            base.TestAddRemove();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestGenericCollection_TestAddReverseRemove()
+        {
+            base.TestAddReverseRemove();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestGenericCollection_TestClear()
+        {
+            base.TestClear();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestGenericCollection_TestContains()
+        {
+            base.TestContains();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestGenericCollection_TestCopyTo()
+        {
+            base.TestCopyTo();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestGenericCollection_TestIsReadOnly()
+        {
+            base.TestIsReadOnly();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestGenericCollection_TestGetEnumerator()
+        {
+            base.TestGetEnumerator();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestGenericCollection_TestGetEnumerator2()
+        {
+            base.TestGetEnumerator2();
+        }
+
+        #endregion
+
+        #region TestCollection<TList, TFactory, TItem>
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test, LuceneNetSpecific]
+        public void TestCollection_TestAddRemove()
+        {
+            base.TestAddRemove();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestCollection_TestAddReverseRemove()
+        {
+            base.TestAddReverseRemove();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestCollection_TestClear()
+        {
+            base.TestClear();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestCollection_TestContains()
+        {
+            base.TestContains();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestCollection_TestCopyTo()
+        {
+            base.TestCopyTo();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestCollection_TestIsReadOnly()
+        {
+            base.TestIsReadOnly();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestCollection_TestGetEnumerator()
+        {
+            base.TestGetEnumerator();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestCollection_TestGetEnumerator2()
+        {
+            base.TestGetEnumerator2();
+        }
+
+        #endregion
+
     }
 
     [TestFixture]
@@ -553,6 +665,32 @@ namespace Lucene.Net.Support
             }
             return results.ToArray();
         }
+
+
+        #region TestDictionary<TDictionary, TFactory, TKey, TValue>
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test, LuceneNetSpecific]
+        public void TestDictionary_TestAddRemoveByKey()
+        {
+            base.TestAddRemoveByKey();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestDictionary_TestKeys()
+        {
+            base.TestKeys();
+        }
+
+        [Test, LuceneNetSpecific]
+        public void TestDictionary_TestValues()
+        {
+            base.TestValues();
+        }
+
+        #endregion
     }
 
 
@@ -579,7 +717,7 @@ namespace Lucene.Net.Support
             return list;
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestAddRemove()
         {
             TList list = new TList();
@@ -600,7 +738,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestAddReverseRemove()
         {
             TList list = new TList();
@@ -621,7 +759,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestClear()
         {
             TList list = new TList();
@@ -636,7 +774,7 @@ namespace Lucene.Net.Support
             Assert.AreEqual(0, list.Count);
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestContains()
         {
             TList list = new TList();
@@ -650,7 +788,7 @@ namespace Lucene.Net.Support
                 Assert.IsTrue(list.Contains(item));
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestCopyTo()
         {
             TList list = new TList();
@@ -670,13 +808,13 @@ namespace Lucene.Net.Support
             Assert.AreEqual(0, items.Count);
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestIsReadOnly()
         {
             Assert.IsFalse(new TList().IsReadOnly);
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestGetEnumerator()
         {
             TList list = new TList();
@@ -692,7 +830,7 @@ namespace Lucene.Net.Support
             Assert.AreEqual(0, items.Count);
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestGetEnumerator2()
         {
             TList list = new TList();
@@ -758,7 +896,7 @@ namespace Lucene.Net.Support
         where TDictionary : IDictionary<TKey, TValue>, IDisposable
         where TFactory : IFactory<TDictionary>, new()
     {
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestAddRemoveByKey()
         {
             KeyValuePair<TKey, TValue>[] sample = GetSample();
@@ -780,7 +918,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestKeys()
         {
             KeyValuePair<TKey, TValue>[] sample = GetSample();
@@ -803,7 +941,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestValues()
         {
             KeyValuePair<TKey, TValue>[] sample = GetSample();
@@ -832,7 +970,7 @@ namespace Lucene.Net.Support
 
         protected readonly TFactory Factory = new TFactory();
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestAddRemove()
         {
             using (TList list = Factory.Create())
@@ -855,7 +993,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestAddReverseRemove()
         {
             using (TList list = Factory.Create())
@@ -878,7 +1016,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestClear()
         {
             using (TList list = Factory.Create())
@@ -895,7 +1033,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestContains()
         {
             using (TList list = Factory.Create())
@@ -911,7 +1049,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestCopyTo()
         {
             using (TList list = Factory.Create())
@@ -933,14 +1071,14 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestIsReadOnly()
         {
             using (TList list = Factory.Create())
                 Assert.IsFalse(list.IsReadOnly);
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestGetEnumerator()
         {
             using (TList list = Factory.Create())
@@ -958,7 +1096,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        [Test, LuceneNetSpecific]
+        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestGetEnumerator2()
         {
             using (TList list = Factory.Create())

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs b/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs
index dd31909..51ac7e2 100644
--- a/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs
+++ b/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs
@@ -153,55 +153,55 @@ namespace Lucene.Net.Util
             DoTest(strategy, Random().Next(20000));
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestEmpty()
         {
             SortTest(new Entry[0]);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestOne()
         {
             DoTest(RandomStrategy, 1);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwo()
         {
             DoTest(RandomStrategy, 2);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestRandom()
         {
             DoTest(RandomStrategy);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestRandomLowCardinality()
         {
             DoTest(RandomLowCardinalityStrategy, 2);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestAscending()
         {
             DoTest(AscendingStrategy, 2);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestAscendingSequences()
         {
             DoTest(AscendingSequencesStrategy, 2);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDescending()
         {
             DoTest(DescendingStrategy, 2);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestStrictlyDescendingStrategy()
         {
             DoTest(StrictlyDescendingStrategy, 2);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs b/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs
index 91c7062..38d63a1 100644
--- a/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs
@@ -1,4 +1,5 @@
 using Lucene.Net.Support;
+using NUnit.Framework;
 using System.Collections;
 using System.Diagnostics;
 
@@ -75,5 +76,49 @@ namespace Lucene.Net.Util.Packed
                 return SlowAdvance(target);
             }
         }
+
+
+        #region BaseDocIdSetTestCase<T>
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        /// <summary>
+        /// Test length=0.
+        /// </summary>
+        [Test]
+        public override void TestNoBit()
+        {
+            base.TestNoBit();
+        }
+
+        /// <summary>
+        /// Test length=1.
+        /// </summary>
+        [Test]
+        public override void Test1Bit()
+        {
+            base.Test1Bit();
+        }
+
+        /// <summary>
+        /// Test length=2.
+        /// </summary>
+        [Test]
+        public override void Test2Bits()
+        {
+            base.Test2Bits();
+        }
+
+        /// <summary>
+        /// Compare the content of the set against a <seealso cref="BitSet"/>.
+        /// </summary>
+        [Test]
+        public override void TestAgainstBitSet()
+        {
+            base.TestAgainstBitSet();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs b/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs
index 1294bff..bb779c5 100644
--- a/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs
@@ -1,3 +1,5 @@
+using Lucene.Net.Attributes;
+using NUnit.Framework;
 using System.Collections;
 
 namespace Lucene.Net.Util
@@ -25,5 +27,49 @@ namespace Lucene.Net.Util
         {
             return new DocIdBitSet((BitArray)bs.Clone());
         }
+
+
+        #region BaseDocIdSetTestCase<T>
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        /// <summary>
+        /// Test length=0.
+        /// </summary>
+        [Test]
+        public override void TestNoBit()
+        {
+            base.TestNoBit();
+        }
+
+        /// <summary>
+        /// Test length=1.
+        /// </summary>
+        [Test]
+        public override void Test1Bit()
+        {
+            base.Test1Bit();
+        }
+
+        /// <summary>
+        /// Test length=2.
+        /// </summary>
+        [Test]
+        public override void Test2Bits()
+        {
+            base.Test2Bits();
+        }
+
+        /// <summary>
+        /// Compare the content of the set against a <seealso cref="BitSet"/>.
+        /// </summary>
+        [Test, LongRunningTest, Timeout(150000)]
+        public override void TestAgainstBitSet()
+        {
+            base.TestAgainstBitSet();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs b/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs
index 550b3e1..2f822f9 100644
--- a/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs
@@ -1,4 +1,5 @@
 using System;
+using Lucene.Net.Attributes;
 using Lucene.Net.Randomized.Generators;
 using Lucene.Net.Support;
 using NUnit.Framework;
@@ -510,5 +511,49 @@ namespace Lucene.Net.Util
             Assert.IsTrue(bits.Get(1));
             Assert.IsFalse(newBits.Get(1));
         }
+
+
+        #region BaseDocIdSetTestCase<T>
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        /// <summary>
+        /// Test length=0.
+        /// </summary>
+        [Test]
+        public override void TestNoBit()
+        {
+            base.TestNoBit();
+        }
+
+        /// <summary>
+        /// Test length=1.
+        /// </summary>
+        [Test]
+        public override void Test1Bit()
+        {
+            base.Test1Bit();
+        }
+
+        /// <summary>
+        /// Test length=2.
+        /// </summary>
+        [Test]
+        public override void Test2Bits()
+        {
+            base.Test2Bits();
+        }
+
+        /// <summary>
+        /// Compare the content of the set against a <seealso cref="BitSet"/>.
+        /// </summary>
+        [Test, LongRunningTest, Timeout(150000)]
+        public override void TestAgainstBitSet()
+        {
+            base.TestAgainstBitSet();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs b/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs
index 5c35706..3649531 100644
--- a/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs
@@ -1,3 +1,5 @@
+using NUnit.Framework;
+
 namespace Lucene.Net.Util
 {
     /*
@@ -32,5 +34,67 @@ namespace Lucene.Net.Util
         {
             return new ArrayInPlaceMergeSorter<Entry>(arr, ArrayUtil.naturalComparator<Entry>());
         }
+
+
+        #region BaseSortTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestEmpty()
+        {
+            base.TestEmpty();
+        }
+
+        [Test]
+        public override void TestOne()
+        {
+            base.TestOne();
+        }
+
+        [Test]
+        public override void TestTwo()
+        {
+            base.TestTwo();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        [Test]
+        public override void TestRandomLowCardinality()
+        {
+            base.TestRandomLowCardinality();
+        }
+
+        [Test]
+        public override void TestAscending()
+        {
+            base.TestAscending();
+        }
+
+        [Test]
+        public override void TestAscendingSequences()
+        {
+            base.TestAscendingSequences();
+        }
+
+        [Test]
+        public override void TestDescending()
+        {
+            base.TestDescending();
+        }
+
+        [Test]
+        public override void TestStrictlyDescendingStrategy()
+        {
+            base.TestStrictlyDescendingStrategy();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs b/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs
index c71893a..b2c75f8 100644
--- a/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs
@@ -1,3 +1,5 @@
+using NUnit.Framework;
+
 namespace Lucene.Net.Util
 {
     /*
@@ -28,5 +30,67 @@ namespace Lucene.Net.Util
         {
             return new ArrayIntroSorter<Entry>(arr, ArrayUtil.naturalComparator<Entry>());
         }
+
+
+        #region BaseSortTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestEmpty()
+        {
+            base.TestEmpty();
+        }
+
+        [Test]
+        public override void TestOne()
+        {
+            base.TestOne();
+        }
+
+        [Test]
+        public override void TestTwo()
+        {
+            base.TestTwo();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        [Test]
+        public override void TestRandomLowCardinality()
+        {
+            base.TestRandomLowCardinality();
+        }
+
+        [Test]
+        public override void TestAscending()
+        {
+            base.TestAscending();
+        }
+
+        [Test]
+        public override void TestAscendingSequences()
+        {
+            base.TestAscendingSequences();
+        }
+
+        [Test]
+        public override void TestDescending()
+        {
+            base.TestDescending();
+        }
+
+        [Test]
+        public override void TestStrictlyDescendingStrategy()
+        {
+            base.TestStrictlyDescendingStrategy();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs b/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs
index c72aa45..8144d1c 100644
--- a/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs
@@ -514,5 +514,49 @@ namespace Lucene.Net.Util
             bits.FastSet(bit - 1);
             Assert.IsTrue(bits.FastGet(bit - 1));
         }
+
+
+        #region BaseDocIdSetTestCase<T>
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        /// <summary>
+        /// Test length=0.
+        /// </summary>
+        [Test]
+        public override void TestNoBit()
+        {
+            base.TestNoBit();
+        }
+
+        /// <summary>
+        /// Test length=1.
+        /// </summary>
+        [Test]
+        public override void Test1Bit()
+        {
+            base.Test1Bit();
+        }
+
+        /// <summary>
+        /// Test length=2.
+        /// </summary>
+        [Test]
+        public override void Test2Bits()
+        {
+            base.Test2Bits();
+        }
+
+        /// <summary>
+        /// Compare the content of the set against a <seealso cref="BitSet"/>.
+        /// </summary>
+        [Test, LongRunningTest, Timeout(150000)]
+        public override void TestAgainstBitSet()
+        {
+            base.TestAgainstBitSet();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs b/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs
index 3c92150..b310b7b 100644
--- a/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs
@@ -38,5 +38,49 @@ namespace Lucene.Net.Util
             base.AssertEquals(numBits, ds1, ds2);
             Assert.AreEqual(ds1.Cardinality(), ds2.Cardinality());
         }
+
+
+        #region BaseDocIdSetTestCase<T>
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        /// <summary>
+        /// Test length=0.
+        /// </summary>
+        [Test]
+        public override void TestNoBit()
+        {
+            base.TestNoBit();
+        }
+
+        /// <summary>
+        /// Test length=1.
+        /// </summary>
+        [Test]
+        public override void Test1Bit()
+        {
+            base.Test1Bit();
+        }
+
+        /// <summary>
+        /// Test length=2.
+        /// </summary>
+        [Test]
+        public override void Test2Bits()
+        {
+            base.Test2Bits();
+        }
+
+        /// <summary>
+        /// Compare the content of the set against a <seealso cref="BitSet"/>.
+        /// </summary>
+        [Test]
+        public override void TestAgainstBitSet()
+        {
+            base.TestAgainstBitSet();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs b/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs
index c12b850..8f13308 100644
--- a/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs
@@ -1,3 +1,5 @@
+using NUnit.Framework;
+
 namespace Lucene.Net.Util
 {
     /*
@@ -28,5 +30,67 @@ namespace Lucene.Net.Util
         {
             return new ArrayTimSorter<Entry>(arr, ArrayUtil.naturalComparator<Entry>(), TestUtil.NextInt(Random(), 0, arr.Length));
         }
+
+
+        #region BaseSortTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestEmpty()
+        {
+            base.TestEmpty();
+        }
+
+        [Test]
+        public override void TestOne()
+        {
+            base.TestOne();
+        }
+
+        [Test]
+        public override void TestTwo()
+        {
+            base.TestTwo();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        [Test]
+        public override void TestRandomLowCardinality()
+        {
+            base.TestRandomLowCardinality();
+        }
+
+        [Test]
+        public override void TestAscending()
+        {
+            base.TestAscending();
+        }
+
+        [Test]
+        public override void TestAscendingSequences()
+        {
+            base.TestAscendingSequences();
+        }
+
+        [Test]
+        public override void TestDescending()
+        {
+            base.TestDescending();
+        }
+
+        [Test]
+        public override void TestStrictlyDescendingStrategy()
+        {
+            base.TestStrictlyDescendingStrategy();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs b/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
index 73d338d..b0d3ea0 100644
--- a/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
@@ -106,5 +106,49 @@ namespace Lucene.Net.Util
             }
             AssertEquals(numBits, expected, union);
         }
+
+
+        #region BaseDocIdSetTestCase<T>
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        /// <summary>
+        /// Test length=0.
+        /// </summary>
+        [Test]
+        public override void TestNoBit()
+        {
+            base.TestNoBit();
+        }
+
+        /// <summary>
+        /// Test length=1.
+        /// </summary>
+        [Test]
+        public override void Test1Bit()
+        {
+            base.Test1Bit();
+        }
+
+        /// <summary>
+        /// Test length=2.
+        /// </summary>
+        [Test]
+        public override void Test2Bits()
+        {
+            base.Test2Bits();
+        }
+
+        /// <summary>
+        /// Compare the content of the set against a <seealso cref="BitSet"/>.
+        /// </summary>
+        [Test]
+        public override void TestAgainstBitSet()
+        {
+            base.TestAgainstBitSet();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file


[13/58] lucenenet git commit: Getting TestNumericQueryParser closer to compiling

Posted by ni...@apache.org.
Getting TestNumericQueryParser closer to compiling


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

Branch: refs/heads/master
Commit: 01233db7c2d91a4812f423876276dd7f4b42f6ce
Parents: 94f22c1
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Nov 29 09:55:22 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Nov 29 09:55:22 2016 +0700

----------------------------------------------------------------------
 .../JavaCompatibility/LuceneTestCase.cs         |  12 +
 .../JavaCompatibility/RandomHelpers.cs          |  18 +
 .../Flexible/Standard/TestNumericQueryParser.cs | 898 ++++++++++---------
 3 files changed, 500 insertions(+), 428 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/01233db7/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs b/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs
index f0dc587..88f8f9b 100644
--- a/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs
@@ -4,6 +4,8 @@ using System.Collections.Generic;
 using System.Linq;
 using NUnit.Framework;
 using System.Diagnostics;
+using System.Globalization;
+using Lucene.Net.Randomized.Generators;
 
 namespace Lucene.Net.Util
 {
@@ -241,5 +243,15 @@ namespace Lucene.Net.Util
                 return v1 * multiplier;
             }
         }
+
+        protected virtual CultureInfo randomLocale(Random random)
+        {
+            return RandomInts.RandomFrom(random, CultureInfo.GetCultures(CultureTypes.AllCultures));
+        }
+
+        protected virtual TimeZoneInfo randomTimeZone(Random random)
+        {
+            return RandomInts.RandomFrom(random, TimeZoneInfo.GetSystemTimeZones());
+        }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/01233db7/src/Lucene.Net.TestFramework/JavaCompatibility/RandomHelpers.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/JavaCompatibility/RandomHelpers.cs b/src/Lucene.Net.TestFramework/JavaCompatibility/RandomHelpers.cs
index 5a66516..09d9b96 100644
--- a/src/Lucene.Net.TestFramework/JavaCompatibility/RandomHelpers.cs
+++ b/src/Lucene.Net.TestFramework/JavaCompatibility/RandomHelpers.cs
@@ -9,9 +9,27 @@ namespace Lucene.Net
             return random.Next(maxValue);
         }
 
+        public static int nextInt(this Random random)
+        {
+            return random.Next();
+        }
+
         public static bool nextBoolean(this Random random)
         {
             return (random.Next(1, 100) > 50);
         }
+
+        // http://stackoverflow.com/a/6651656
+        public static long nextLong(this Random random)
+        {
+            byte[] buffer = new byte[8];
+            random.NextBytes(buffer);
+            return BitConverter.ToInt64(buffer, 0);
+        }
+
+        public static float nextFloat(this Random random)
+        {
+            return (float)random.NextDouble();
+        }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/01233db7/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index 04ac847..29f6031 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -1,15 +1,18 @@
-\ufeff// LUCENENET TODO: Complete implementation
-
-//using Lucene.Net;
+\ufeff//using Lucene.Net;
 //using Lucene.Net.Analysis;
+//using Lucene.Net.Documents;
 //using Lucene.Net.Index;
+//using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+//using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 //using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
 //using Lucene.Net.Search;
 //using Lucene.Net.Store;
+//using Lucene.Net.Support;
 //using Lucene.Net.Util;
 //using NUnit.Framework;
 //using System;
 //using System.Collections.Generic;
+//using System.Globalization;
 //using System.Linq;
 //using System.Text;
 //using System.Threading.Tasks;
@@ -18,506 +21,545 @@
 //{
 //    public class TestNumericQueryParser : LuceneTestCase
 //    {
-//        private static enum NumberType
+//        public enum NumberType
 //        {
-//            NEGATIVE, ZERO, POSITIVE;
+//            NEGATIVE, ZERO, POSITIVE
 //        }
 
-//        private readonly static int[] DATE_STYLES = {DateFormat.FULL, DateFormat.LONG,
-//      DateFormat.MEDIUM, DateFormat.SHORT};
+//        /// <summary>
+//        /// LUCENENET specific enum for mimicking the Java DateFormat
+//        /// </summary>
+//        public enum DateFormat
+//        {
+//            FULL, LONG,
+//            MEDIUM, SHORT
+//        }
+
+//        //  private readonly static int[] DATE_STYLES = {DateFormat.FULL, DateFormat.LONG,
+//        //DateFormat.MEDIUM, DateFormat.SHORT};
+//        private readonly static int[] DATE_STYLES = {(int)DateFormat.FULL, (int)DateFormat.LONG,
+//            (int)DateFormat.MEDIUM, (int)DateFormat.SHORT};
 
 //        private readonly static int PRECISION_STEP = 8;
 //        private readonly static String FIELD_NAME = "field";
-//        private static Locale LOCALE;
-//        private static TimeZone TIMEZONE;
-//        private static Map<String, Number> RANDOM_NUMBER_MAP;
-//        private readonly static EscapeQuerySyntax ESCAPER = new EscapeQuerySyntaxImpl();
+//        private static CultureInfo LOCALE;
+//        private static TimeZoneInfo TIMEZONE;
+//        private static IDictionary<String, /*Number*/ object> RANDOM_NUMBER_MAP;
+//        private readonly static IEscapeQuerySyntax ESCAPER = new EscapeQuerySyntaxImpl();
 //        private readonly static String DATE_FIELD_NAME = "date";
 //        private static int DATE_STYLE;
 //        private static int TIME_STYLE;
 
 //        private static Analyzer ANALYZER;
 
-//        private static NumberFormat NUMBER_FORMAT;
+//        private static /*NumberFormat*/ string NUMBER_FORMAT;
 
 //        private static StandardQueryParser qp;
 
-//        private static NumberDateFormat DATE_FORMAT;
+//        private static /*NumberDateFormat*/ string DATE_FORMAT;
 
 //        private static Directory directory = null;
 //        private static IndexReader reader = null;
 //        private static IndexSearcher searcher = null;
 
-//        private static bool checkDateFormatSanity(DateFormat dateFormat, long date)
+//        private static bool checkDateFormatSanity(/*DateFormat*/string dateFormat, long date)
 //        {
-//            try
-//            {
-//                return date == dateFormat.parse(dateFormat.format(new DateTime(date)))
-//                  .getTime();
-//            }
-//            catch (ParseException e)
-//            {
-//                return false;
-//            }
+//            DateTime result;
+//            return DateTime.TryParseExact(new DateTime(date).ToString(dateFormat),
+//                dateFormat, CultureInfo.CurrentCulture, DateTimeStyles.RoundtripKind, out result);
+//            //try
+//            //{
+//            //    return date == dateFormat.parse(dateFormat.format(new DateTime(date)))
+//            //      .getTime();
+//            //}
+//            //catch (ParseException e)
+//            //{
+//            //    return false;
+//            //}
 //        }
 
 //        [TestFixtureSetUp]
-//  public static void beforeClass() 
+//        public void BeforeClass()
 //        {
 //            ANALYZER = new MockAnalyzer(Random());
-    
-//    qp = new StandardQueryParser(ANALYZER);
-
-//        HashMap<String, Number> randomNumberMap = new HashMap<>();
-
-//        SimpleDateFormat dateFormat;
-//        long randomDate;
-//        bool dateFormatSanityCheckPass;
-//        int count = 0;
-//    do {
-//      if (count > 100) {
-//        fail("This test has problems to find a sane random DateFormat/NumberFormat. Stopped trying after 100 iterations.");
-//    }
 
-//    dateFormatSanityCheckPass = true;
-//      LOCALE = randomLocale(Random());
-//      TIMEZONE = randomTimeZone(Random());
-//      DATE_STYLE = randomDateStyle(Random());
-//      TIME_STYLE = randomDateStyle(Random());
-      
-//      // assumes localized date pattern will have at least year, month, day,
-//      // hour, minute
-//      dateFormat = (SimpleDateFormat) DateFormat.getDateTimeInstance(
-//          DATE_STYLE, TIME_STYLE, LOCALE);
-      
-//      // not all date patterns includes era, full year, timezone and second,
-//      // so we add them here
-//      dateFormat.applyPattern(dateFormat.toPattern() + " G s Z yyyy");
-//      dateFormat.setTimeZone(TIMEZONE);
-      
-//      DATE_FORMAT = new NumberDateFormat(dateFormat);
-      
-//      do {
-//        randomDate = Random().nextLong();
-
-//    // prune date value so it doesn't pass in insane values to some
-//    // calendars.
-//    randomDate = randomDate % 3400000000000l;
-        
-//        // truncate to second
-//        randomDate = (randomDate / 1000L) * 1000L;
-        
-//        // only positive values
-//        randomDate = Math.Abs(randomDate);
-//      } while (randomDate == 0L);
-      
-//      dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, randomDate);
-
-//dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, 0);
-
-//dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat,
-//          -randomDate);
-
-//count++;
-//    } while (!dateFormatSanityCheckPass);
-    
-//    NUMBER_FORMAT = NumberFormat.getNumberInstance(LOCALE);
-//    NUMBER_FORMAT.setMaximumFractionDigits((Random().nextInt() & 20) + 1);
-//    NUMBER_FORMAT.setMinimumFractionDigits((Random().nextInt() & 20) + 1);
-//    NUMBER_FORMAT.setMaximumIntegerDigits((Random().nextInt() & 20) + 1);
-//    NUMBER_FORMAT.setMinimumIntegerDigits((Random().nextInt() & 20) + 1);
-    
-//    double randomDouble;
-//long randomLong;
-//int randomInt;
-//float randomFloat;
-    
-//    while ((randomLong = normalizeNumber(Math.abs(Random().nextLong()))
-//        .longValue()) == 0L)
-//      ;
-//    while ((randomDouble = normalizeNumber(Math.abs(Random().nextDouble()))
-//        .doubleValue()) == 0.0)
-//      ;
-//    while ((randomFloat = normalizeNumber(Math.abs(Random().nextFloat()))
-//        .floatValue()) == 0.0f)
-//      ;
-//    while ((randomInt = normalizeNumber(Math.abs(Random().nextInt())).intValue()) == 0)
-//      ;
-    
-//    randomNumberMap.put(NumericType.LONG.name(), randomLong);
-//    randomNumberMap.put(NumericType.INT.name(), randomInt);
-//    randomNumberMap.put(NumericType.FLOAT.name(), randomFloat);
-//    randomNumberMap.put(NumericType.DOUBLE.name(), randomDouble);
-//    randomNumberMap.put(DATE_FIELD_NAME, randomDate);
-    
-//    RANDOM_NUMBER_MAP = Collections.UnmodifiableMap(randomNumberMap);
-    
-//    directory = newDirectory();
-//RandomIndexWriter writer = new RandomIndexWriter(Random(), directory,
-//    newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random()))
-//        .setMaxBufferedDocs(TestUtil.NextInt(Random(), 50, 1000))
-//        .setMergePolicy(newLogMergePolicy()));
-
-//Document doc = new Document();
-//HashMap<String, NumericConfig> numericConfigMap = new HashMap<>();
-//HashMap<String, Field> numericFieldMap = new HashMap<>();
-//qp.setNumericConfigMap(numericConfigMap);
-    
-//    for (NumericType type : NumericType.values()) {
-//      numericConfigMap.put(type.name(), new NumericConfig(PRECISION_STEP,
-//          NUMBER_FORMAT, type));
-
-//      FieldType ft = new FieldType(IntField.TYPE_NOT_STORED);
-//ft.setNumericType(type);
-//      ft.setStored(true);
-//      ft.setNumericPrecisionStep(PRECISION_STEP);
-//      ft.freeze();
-//      final Field field;
-
-//      switch(type) {
-//      case INT:
-//        field = new IntField(type.name(), 0, ft);
-//        break;
-//      case FLOAT:
-//        field = new FloatField(type.name(), 0.0f, ft);
-//        break;
-//      case LONG:
-//        field = new LongField(type.name(), 0l, ft);
-//        break;
-//      case DOUBLE:
-//        field = new DoubleField(type.name(), 0.0, ft);
-//        break;
-//      default:
-//        fail();
-//field = null;
-//      }
-//      numericFieldMap.put(type.name(), field);
-//      doc.add(field);
-//    }
-    
-//    numericConfigMap.put(DATE_FIELD_NAME, new NumericConfig(PRECISION_STEP,
-//        DATE_FORMAT, NumericType.LONG));
-//    FieldType ft = new FieldType(LongField.TYPE_NOT_STORED);
-//ft.setStored(true);
-//    ft.setNumericPrecisionStep(PRECISION_STEP);
-//    LongField dateField = new LongField(DATE_FIELD_NAME, 0l, ft);
-//numericFieldMap.put(DATE_FIELD_NAME, dateField);
-//    doc.add(dateField);
-    
-//    for (NumberType numberType : NumberType.values()) {
-//      setFieldValues(numberType, numericFieldMap);
-//      if (VERBOSE) System.out.println("Indexing document: " + doc);
-//writer.addDocument(doc);
-//    }
-    
-//    reader = writer.getReader();
-//    searcher = newSearcher(reader);
-//writer.close();
-    
-//  }
-  
-//  private static Number getNumberType(NumberType numberType, String fieldName)
-//{
+//            qp = new StandardQueryParser(ANALYZER);
 
-//    if (numberType == null)
-//    {
-//        return null;
-//    }
+//            HashMap<String, /*Number*/object> randomNumberMap = new HashMap<string, object>();
 
-//    switch (numberType)
-//    {
-
-//        case POSITIVE:
-//            return RANDOM_NUMBER_MAP.get(fieldName);
+//            /*SimpleDateFormat*/
+//            string dateFormat;
+//            long randomDate;
+//            bool dateFormatSanityCheckPass;
+//            int count = 0;
+//            do
+//            {
+//                if (count > 100)
+//                {
+//                    fail("This test has problems to find a sane random DateFormat/NumberFormat. Stopped trying after 100 iterations.");
+//                }
+
+//                dateFormatSanityCheckPass = true;
+//                LOCALE = randomLocale(Random());
+//                TIMEZONE = randomTimeZone(Random());
+//                DATE_STYLE = randomDateStyle(Random());
+//                TIME_STYLE = randomDateStyle(Random());
+
+//                //// assumes localized date pattern will have at least year, month, day,
+//                //// hour, minute
+//                //dateFormat = (SimpleDateFormat)DateFormat.getDateTimeInstance(
+//                //    DATE_STYLE, TIME_STYLE, LOCALE);
+
+//                //// not all date patterns includes era, full year, timezone and second,
+//                //// so we add them here
+//                //dateFormat.applyPattern(dateFormat.toPattern() + " G s Z yyyy");
+//                //dateFormat.setTimeZone(TIMEZONE);
+
+//                //DATE_FORMAT = new NumberDateFormat(dateFormat);
+
+
+//                do
+//                {
+//                    randomDate = Random().nextLong();
+
+//                    // prune date value so it doesn't pass in insane values to some
+//                    // calendars.
+//                    randomDate = randomDate % 3400000000000l;
+
+//                    // truncate to second
+//                    randomDate = (randomDate / 1000L) * 1000L;
+
+//                    // only positive values
+//                    randomDate = Math.Abs(randomDate);
+//                } while (randomDate == 0L);
+
+//                dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, randomDate);
+
+//                dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, 0);
+
+//                dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat,
+//                          -randomDate);
+
+//                count++;
+//            } while (!dateFormatSanityCheckPass);
+
+//            NUMBER_FORMAT = NumberFormat.getNumberInstance(LOCALE);
+//            NUMBER_FORMAT.setMaximumFractionDigits((Random().nextInt() & 20) + 1);
+//            NUMBER_FORMAT.setMinimumFractionDigits((Random().nextInt() & 20) + 1);
+//            NUMBER_FORMAT.setMaximumIntegerDigits((Random().nextInt() & 20) + 1);
+//            NUMBER_FORMAT.setMinimumIntegerDigits((Random().nextInt() & 20) + 1);
+
+//            double randomDouble;
+//            long randomLong;
+//            int randomInt;
+//            float randomFloat;
+
+//            while ((randomLong = Convert.ToInt64(normalizeNumber(Math.Abs(Random().nextLong()))
+//                )) == 0L)
+//                ;
+//            while ((randomDouble = Convert.ToDouble(normalizeNumber(Math.Abs(Random().NextDouble()))
+//                )) == 0.0)
+//                ;
+//            while ((randomFloat = Convert.ToSingle(normalizeNumber(Math.Abs(Random().nextFloat()))
+//                )) == 0.0f)
+//                ;
+//            while ((randomInt = Convert.ToInt32(normalizeNumber(Math.Abs(Random().nextInt())))) == 0)
+//                ;
+
+//            randomNumberMap.Put(FieldType.NumericType.LONG.ToString(), randomLong);
+//            randomNumberMap.Put(FieldType.NumericType.INT.ToString(), randomInt);
+//            randomNumberMap.Put(FieldType.NumericType.FLOAT.ToString(), randomFloat);
+//            randomNumberMap.Put(FieldType.NumericType.DOUBLE.ToString(), randomDouble);
+//            randomNumberMap.Put(DATE_FIELD_NAME, randomDate);
+
+//            RANDOM_NUMBER_MAP = Collections.UnmodifiableMap(randomNumberMap);
+
+//            directory = NewDirectory();
+//            RandomIndexWriter writer = new RandomIndexWriter(Random(), directory,
+//                NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random()))
+//                    .SetMaxBufferedDocs(TestUtil.NextInt(Random(), 50, 1000))
+//                    .SetMergePolicy(NewLogMergePolicy()));
+
+//            Document doc = new Document();
+//            HashMap<String, NumericConfig> numericConfigMap = new HashMap<String, NumericConfig>();
+//            HashMap<String, Field> numericFieldMap = new HashMap<String, Field>();
+//            qp.SetNumericConfigMap(numericConfigMap);
+
+//            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
+//            {
+//                numericConfigMap.Put(type.ToString(), new NumericConfig(PRECISION_STEP,
+//                    NUMBER_FORMAT, type));
+
+//                FieldType ft2 = new FieldType(IntField.TYPE_NOT_STORED);
+//                ft2.NumericTypeValue = (type);
+//                ft2.Stored = (true);
+//                ft2.NumericPrecisionStep = (PRECISION_STEP);
+//                ft2.Freeze();
+//                Field field;
+
+//                switch (type)
+//                {
+//                    case FieldType.NumericType.INT:
+//                        field = new IntField(type.ToString(), 0, ft2);
+//                        break;
+//                    case FieldType.NumericType.FLOAT:
+//                        field = new FloatField(type.ToString(), 0.0f, ft2);
+//                        break;
+//                    case FieldType.NumericType.LONG:
+//                        field = new LongField(type.ToString(), 0L, ft2);
+//                        break;
+//                    case FieldType.NumericType.DOUBLE:
+//                        field = new DoubleField(type.ToString(), 0.0, ft2);
+//                        break;
+//                    default:
+//                        fail();
+//                        field = null;
+//                        break;
+//                }
+//                numericFieldMap.Put(type.ToString(), field);
+//                doc.Add(field);
+//            }
 
-//        case NEGATIVE:
-//            Number number = RANDOM_NUMBER_MAP.get(fieldName);
+//            numericConfigMap.Put(DATE_FIELD_NAME, new NumericConfig(PRECISION_STEP,
+//                DATE_FORMAT, FieldType.NumericType.LONG));
+//            FieldType ft = new FieldType(LongField.TYPE_NOT_STORED);
+//            ft.Stored = (true);
+//            ft.NumericPrecisionStep = (PRECISION_STEP);
+//            LongField dateField = new LongField(DATE_FIELD_NAME, 0l, ft);
+//            numericFieldMap.Put(DATE_FIELD_NAME, dateField);
+//            doc.Add(dateField);
 
-//            if (NumericType.LONG.name().equals(fieldName)
-//                || DATE_FIELD_NAME.equals(fieldName))
+//            foreach (NumberType numberType in Enum.GetValues(typeof(NumberType)))
 //            {
-//                number = -number.longValue();
+//                setFieldValues(numberType, numericFieldMap);
+//                if (VERBOSE) Console.WriteLine("Indexing document: " + doc);
+//                writer.AddDocument(doc);
+//            }
+
+//            reader = writer.Reader;
+//            searcher = NewSearcher(reader);
+//            writer.Dispose();
+
+//        }
 
+//        private static /*Number*/ object getNumberType(NumberType? numberType, String fieldName)
+//        {
+
+//            if (numberType == null)
+//            {
+//                return null;
 //            }
-//            else if (NumericType.DOUBLE.name().equals(fieldName))
+
+//            switch (numberType)
 //            {
-//                number = -number.doubleValue();
+
+//                case NumberType.POSITIVE:
+//                    return RANDOM_NUMBER_MAP[fieldName];
+
+//                case NumberType.NEGATIVE:
+//                    /*Number*/
+//                    object number = RANDOM_NUMBER_MAP[fieldName];
+
+//                    if (FieldType.NumericType.LONG.ToString().equals(fieldName)
+//                        || DATE_FIELD_NAME.equals(fieldName))
+//                    {
+//                        number = -Convert.ToInt64(number);
+
+//                    }
+//                    else if (FieldType.NumericType.DOUBLE.ToString().equals(fieldName))
+//                    {
+//                        number = -Convert.ToDouble(number);
+
+//                    }
+//                    else if (FieldType.NumericType.FLOAT.ToString().equals(fieldName))
+//                    {
+//                        number = -Convert.ToSingle(number);
+
+//                    }
+//                    else if (FieldType.NumericType.INT.ToString().equals(fieldName))
+//                    {
+//                        number = -Convert.ToInt32(number);
+
+//                    }
+//                    else
+//                    {
+//                        throw new ArgumentException("field name not found: "
+//                            + fieldName);
+//                    }
+
+//                    return number;
+
+//                default:
+//                    return 0;
 
 //            }
-//            else if (NumericType.FLOAT.name().equals(fieldName))
+
+//        }
+
+//        private static void setFieldValues(NumberType numberType,
+//            HashMap<String, Field> numericFieldMap)
+//        {
+
+//            /*Number*/
+//            object number = getNumberType(numberType, FieldType.NumericType.DOUBLE
+//     .ToString());
+//            numericFieldMap[FieldType.NumericType.DOUBLE.ToString()].DoubleValue = Convert.ToDouble(
+//                number);
+
+//            number = getNumberType(numberType, FieldType.NumericType.INT.ToString());
+//            numericFieldMap[FieldType.NumericType.INT.ToString()].IntValue = Convert.ToInt32(
+//                number);
+
+//            number = getNumberType(numberType, FieldType.NumericType.LONG.ToString());
+//            numericFieldMap[FieldType.NumericType.LONG.ToString()].LongValue = Convert.ToInt64(
+//                number);
+
+//            number = getNumberType(numberType, FieldType.NumericType.FLOAT.ToString());
+//            numericFieldMap[FieldType.NumericType.FLOAT.ToString()].FloatValue = Convert.ToSingle(
+//                number);
+
+//            number = getNumberType(numberType, DATE_FIELD_NAME);
+//            numericFieldMap[DATE_FIELD_NAME].LongValue = Convert.ToInt64(number);
+//        }
+
+//        private static int randomDateStyle(Random random)
+//        {
+//            return DATE_STYLES[random.nextInt(DATE_STYLES.Length)];
+//        }
+
+//        [Test]
+//        public void testInclusiveNumericRange()
+//        {
+//            assertRangeQuery(NumberType.ZERO, NumberType.ZERO, true, true, 1);
+//            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, true, 2);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, true, 2);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, true, 3);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, true, 1);
+//        }
+
+//        [Test]
+//        // test disabled since standard syntax parser does not work with inclusive and
+//        // exclusive at the same time
+//        public void testInclusiveLowerNumericRange()
+//        {
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, true, 1);
+//            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, true, 1);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, true, 2);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, true, 0);
+//        }
+
+//        [Test]
+//        // test disabled since standard syntax parser does not work with inclusive and
+//        // exclusive at the same time
+//        public void testInclusiveUpperNumericRange()
+//        {
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, false, 1);
+//            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, false, 1);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, false, 2);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, false, 0);
+//        }
+
+//        [Test]
+//        public void testExclusiveNumericRange()
+//        {
+//            assertRangeQuery(NumberType.ZERO, NumberType.ZERO, false, false, 0);
+//            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, false, 0);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, false, 0);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, false, 1);
+//            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, false, 0);
+//        }
+
+//        [Test]
+//        public void testOpenRangeNumericQuery()
+//        {
+//            assertOpenRangeQuery(NumberType.ZERO, "<", 1);
+//            assertOpenRangeQuery(NumberType.POSITIVE, "<", 2);
+//            assertOpenRangeQuery(NumberType.NEGATIVE, "<", 0);
+
+//            assertOpenRangeQuery(NumberType.ZERO, "<=", 2);
+//            assertOpenRangeQuery(NumberType.POSITIVE, "<=", 3);
+//            assertOpenRangeQuery(NumberType.NEGATIVE, "<=", 1);
+
+//            assertOpenRangeQuery(NumberType.ZERO, ">", 1);
+//            assertOpenRangeQuery(NumberType.POSITIVE, ">", 0);
+//            assertOpenRangeQuery(NumberType.NEGATIVE, ">", 2);
+
+//            assertOpenRangeQuery(NumberType.ZERO, ">=", 2);
+//            assertOpenRangeQuery(NumberType.POSITIVE, ">=", 1);
+//            assertOpenRangeQuery(NumberType.NEGATIVE, ">=", 3);
+
+//            assertOpenRangeQuery(NumberType.NEGATIVE, "=", 1);
+//            assertOpenRangeQuery(NumberType.ZERO, "=", 1);
+//            assertOpenRangeQuery(NumberType.POSITIVE, "=", 1);
+
+//            assertRangeQuery(NumberType.NEGATIVE, null, true, true, 3);
+//            assertRangeQuery(NumberType.NEGATIVE, null, false, true, 2);
+//            assertRangeQuery(NumberType.POSITIVE, null, true, false, 1);
+//            assertRangeQuery(NumberType.ZERO, null, false, false, 1);
+
+//            assertRangeQuery(null, NumberType.POSITIVE, true, true, 3);
+//            assertRangeQuery(null, NumberType.POSITIVE, true, false, 2);
+//            assertRangeQuery(null, NumberType.NEGATIVE, false, true, 1);
+//            assertRangeQuery(null, NumberType.ZERO, false, false, 1);
+
+//            assertRangeQuery(null, null, false, false, 3);
+//            assertRangeQuery(null, null, true, true, 3);
+
+//        }
+
+//        [Test]
+//        public void testSimpleNumericQuery()
+//        {
+//            assertSimpleQuery(NumberType.ZERO, 1);
+//            assertSimpleQuery(NumberType.POSITIVE, 1);
+//            assertSimpleQuery(NumberType.NEGATIVE, 1);
+//        }
+
+//        public void assertRangeQuery(NumberType? lowerType, NumberType? upperType,
+//            bool lowerInclusive, bool upperInclusive, int expectedDocCount)
+//        {
+
+
+//            StringBuilder sb = new StringBuilder();
+
+//            String lowerInclusiveStr = (lowerInclusive ? "[" : "{");
+//            String upperInclusiveStr = (upperInclusive ? "]" : "}");
+
+//            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
 //            {
-//                number = -number.floatValue();
+//                String lowerStr = numberToString(getNumberType(lowerType, type.ToString()));
+//                String upperStr = numberToString(getNumberType(upperType, type.ToString()));
 
+//                sb.append("+").append(type.ToString()).append(':').append(lowerInclusiveStr)
+//                  .append('"').append(lowerStr).append("\" TO \"").append(upperStr)
+//                  .append('"').append(upperInclusiveStr).append(' ');
 //            }
-//            else if (NumericType.INT.name().equals(fieldName))
+
+//            /*Number*/
+//            object lowerDateNumber = getNumberType(lowerType, DATE_FIELD_NAME);
+//            /*Number*/
+//            object upperDateNumber = getNumberType(upperType, DATE_FIELD_NAME);
+//            String lowerDateStr;
+//            String upperDateStr;
+
+//            if (lowerDateNumber != null)
 //            {
-//                number = -number.intValue();
+//                lowerDateStr = ESCAPER.Escape(
+//                    DATE_FORMAT.format(new DateTime(lowerDateNumber.longValue())), LOCALE,
+//                    EscapeQuerySyntax.Type.STRING).toString();
 
 //            }
 //            else
 //            {
-//                throw new IllegalArgumentException("field name not found: "
-//                    + fieldName);
+//                lowerDateStr = "*";
 //            }
 
-//            return number;
-
-//        default:
-//            return 0;
-
-//    }
-
-//}
-
-//private static void setFieldValues(NumberType numberType,
-//    HashMap<String, Field> numericFieldMap)
-//{
-
-//    Number number = getNumberType(numberType, NumericType.DOUBLE
-//        .name());
-//    numericFieldMap.get(NumericType.DOUBLE.name()).setDoubleValue(
-//        number.doubleValue());
+//            if (upperDateNumber != null)
+//            {
+//                upperDateStr = ESCAPER.Escape(
+//                      DATE_FORMAT.format(new DateTime(upperDateNumber.longValue())), LOCALE,
+//                      EscapeQuerySyntax.Type.STRING).toString();
 
-//    number = getNumberType(numberType, NumericType.INT.name());
-//    numericFieldMap.get(NumericType.INT.name()).setIntValue(
-//        number.intValue());
+//            }
+//            else
+//            {
+//                upperDateStr = "*";
+//            }
 
-//    number = getNumberType(numberType, NumericType.LONG.name());
-//    numericFieldMap.get(NumericType.LONG.name()).setLongValue(
-//        number.longValue());
+//            sb.append("+").append(DATE_FIELD_NAME).append(':')
+//                .append(lowerInclusiveStr).append('"').append(lowerDateStr).append(
+//                    "\" TO \"").append(upperDateStr).append('"').append(
+//                    upperInclusiveStr);
 
-//    number = getNumberType(numberType, NumericType.FLOAT.name());
-//    numericFieldMap.get(NumericType.FLOAT.name()).setFloatValue(
-//        number.floatValue());
 
-//    number = getNumberType(numberType, DATE_FIELD_NAME);
-//    numericFieldMap.get(DATE_FIELD_NAME).setLongValue(number.longValue());
-//}
+//            testQuery(sb.toString(), expectedDocCount);
 
-//private static int randomDateStyle(Random random)
-//{
-//    return DATE_STYLES[random.nextInt(DATE_STYLES.length)];
-//}
+//        }
 
-//@Test
-//  public void testInclusiveNumericRange() throws Exception
-//{
-//    assertRangeQuery(NumberType.ZERO, NumberType.ZERO, true, true, 1);
-//    assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, true, 2);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, true, 2);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, true, 3);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, true, 1);
-//}
+//        public void assertOpenRangeQuery(NumberType boundType, String @operator, int expectedDocCount)
+//        {
 
-//@Test
-//  // test disabled since standard syntax parser does not work with inclusive and
-//  // exclusive at the same time
-//  public void testInclusiveLowerNumericRange() throws Exception
-//{
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, true, 1);
-//    assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, true, 1);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, true, 2);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, true, 0);
-//}
+//            StringBuilder sb = new StringBuilder();
 
-//@Test
-//  // test disabled since standard syntax parser does not work with inclusive and
-//  // exclusive at the same time
-//  public void testInclusiveUpperNumericRange() throws Exception
-//{
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, false, 1);
-//    assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, false, 1);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, false, 2);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, false, 0);
-//}
+//            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
+//            {
+//                String boundStr = numberToString(getNumberType(boundType, type.ToString()));
 
-//@Test
-//  public void testExclusiveNumericRange() throws Exception
-//{
-//    assertRangeQuery(NumberType.ZERO, NumberType.ZERO, false, false, 0);
-//    assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, false, 0);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, false, 0);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, false, 1);
-//    assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, false, 0);
-//}
+//                sb.append("+").append(type.ToString()).append(@operator).append('"').append(boundStr).append('"').append(' ');
+//            }
 
-//@Test
-//  public void testOpenRangeNumericQuery() throws Exception
-//{
-//    assertOpenRangeQuery(NumberType.ZERO, "<", 1);
-//    assertOpenRangeQuery(NumberType.POSITIVE, "<", 2);
-//    assertOpenRangeQuery(NumberType.NEGATIVE, "<", 0);
+//            String boundDateStr = ESCAPER.Escape(
+//                DATE_FORMAT.format(new Date(getNumberType(boundType, DATE_FIELD_NAME)
+//                    .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
 
-//    assertOpenRangeQuery(NumberType.ZERO, "<=", 2);
-//    assertOpenRangeQuery(NumberType.POSITIVE, "<=", 3);
-//    assertOpenRangeQuery(NumberType.NEGATIVE, "<=", 1);
+//            sb.append("+").append(DATE_FIELD_NAME).append(@operator).append('"').append(boundDateStr).append('"');
 
-//    assertOpenRangeQuery(NumberType.ZERO, ">", 1);
-//    assertOpenRangeQuery(NumberType.POSITIVE, ">", 0);
-//    assertOpenRangeQuery(NumberType.NEGATIVE, ">", 2);
 
-//    assertOpenRangeQuery(NumberType.ZERO, ">=", 2);
-//    assertOpenRangeQuery(NumberType.POSITIVE, ">=", 1);
-//    assertOpenRangeQuery(NumberType.NEGATIVE, ">=", 3);
+//            testQuery(sb.toString(), expectedDocCount);
+//        }
 
-//    assertOpenRangeQuery(NumberType.NEGATIVE, "=", 1);
-//    assertOpenRangeQuery(NumberType.ZERO, "=", 1);
-//    assertOpenRangeQuery(NumberType.POSITIVE, "=", 1);
+//        public void assertSimpleQuery(NumberType numberType, int expectedDocCount)
+//        {
+//            StringBuilder sb = new StringBuilder();
 
-//    assertRangeQuery(NumberType.NEGATIVE, null, true, true, 3);
-//    assertRangeQuery(NumberType.NEGATIVE, null, false, true, 2);
-//    assertRangeQuery(NumberType.POSITIVE, null, true, false, 1);
-//    assertRangeQuery(NumberType.ZERO, null, false, false, 1);
+//            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
+//            {
+//                String numberStr = numberToString(getNumberType(numberType, type.ToString()));
+//                sb.append('+').append(type.ToString()).append(":\"").append(numberStr)
+//                          .append("\" ");
+//            }
 
-//    assertRangeQuery(null, NumberType.POSITIVE, true, true, 3);
-//    assertRangeQuery(null, NumberType.POSITIVE, true, false, 2);
-//    assertRangeQuery(null, NumberType.NEGATIVE, false, true, 1);
-//    assertRangeQuery(null, NumberType.ZERO, false, false, 1);
+//            String dateStr = ESCAPER.Escape(
+//                DATE_FORMAT.format(new DateTime(getNumberType(numberType, DATE_FIELD_NAME)
+//                    .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
 
-//    assertRangeQuery(null, null, false, false, 3);
-//    assertRangeQuery(null, null, true, true, 3);
+//            sb.append('+').append(DATE_FIELD_NAME).append(":\"").append(dateStr)
+//                    .append('"');
 
-//}
 
-//@Test
-//  public void testSimpleNumericQuery() throws Exception
-//{
-//    assertSimpleQuery(NumberType.ZERO, 1);
-//    assertSimpleQuery(NumberType.POSITIVE, 1);
-//    assertSimpleQuery(NumberType.NEGATIVE, 1);
-//}
+//            testQuery(sb.toString(), expectedDocCount);
 
-//public void assertRangeQuery(NumberType lowerType, NumberType upperType,
-//    boolean lowerInclusive, boolean upperInclusive, int expectedDocCount)
-//      throws QueryNodeException, IOException {
-    
-//    StringBuilder sb = new StringBuilder();
-
-//String lowerInclusiveStr = (lowerInclusive ? "[" : "{");
-//String upperInclusiveStr = (upperInclusive ? "]" : "}");
-    
-//    for (NumericType type : NumericType.values()) {
-//      String lowerStr = numberToString(getNumberType(lowerType, type.name()));
-//String upperStr = numberToString(getNumberType(upperType, type.name()));
-
-//sb.append("+").append(type.name()).append(':').append(lowerInclusiveStr)
-//          .append('"').append(lowerStr).append("\" TO \"").append(upperStr)
-//          .append('"').append(upperInclusiveStr).append(' ');
-//    }
-    
-//    Number lowerDateNumber = getNumberType(lowerType, DATE_FIELD_NAME);
-//Number upperDateNumber = getNumberType(upperType, DATE_FIELD_NAME);
-//String lowerDateStr;
-//String upperDateStr;
-    
-//    if (lowerDateNumber != null) {
-//      lowerDateStr = ESCAPER.escape(
-//          DATE_FORMAT.format(new Date(lowerDateNumber.longValue())), LOCALE,
-//          EscapeQuerySyntax.Type.STRING).toString();
-      
-//    } else {
-//      lowerDateStr = "*";
-//    }
-    
-//    if (upperDateNumber != null) {
-//    upperDateStr = ESCAPER.escape(
-//          DATE_FORMAT.format(new Date(upperDateNumber.longValue())), LOCALE,
-//          EscapeQuerySyntax.Type.STRING).toString();
-    
-//    } else {
-//      upperDateStr = "*";
-//    }
-    
-//    sb.append("+").append(DATE_FIELD_NAME).append(':')
-//        .append(lowerInclusiveStr).append('"').append(lowerDateStr).append(
-//            "\" TO \"").append(upperDateStr).append('"').append(
-//            upperInclusiveStr);
-
-
-//    testQuery(sb.toString(), expectedDocCount);
-    
-//  }
-  
-//  public void assertOpenRangeQuery(NumberType boundType, String operator, int expectedDocCount)
-//      throws QueryNodeException, IOException {
-
-//    StringBuilder sb = new StringBuilder();
-    
-//    for (NumericType type : NumericType.values()) {
-//      String boundStr = numberToString(getNumberType(boundType, type.name()));
-
-//sb.append("+").append(type.name()).append(operator).append('"').append(boundStr).append('"').append(' ');
-//    }
-    
-//    String boundDateStr = ESCAPER.escape(
-//        DATE_FORMAT.format(new Date(getNumberType(boundType, DATE_FIELD_NAME)
-//            .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
-
-//sb.append("+").append(DATE_FIELD_NAME).append(operator).append('"').append(boundDateStr).append('"');
-
-
-//    testQuery(sb.toString(), expectedDocCount);
-//  }
-  
-//  public void assertSimpleQuery(NumberType numberType, int expectedDocCount)
-//      throws QueryNodeException, IOException {
-//    StringBuilder sb = new StringBuilder();
-    
-//    for (NumericType type : NumericType.values()) {
-//      String numberStr = numberToString(getNumberType(numberType, type.name()));
-//sb.append('+').append(type.name()).append(":\"").append(numberStr)
-//          .append("\" ");
-//    }
-    
-//    String dateStr = ESCAPER.escape(
-//        DATE_FORMAT.format(new Date(getNumberType(numberType, DATE_FIELD_NAME)
-//            .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
+//        }
 
-//sb.append('+').append(DATE_FIELD_NAME).append(":\"").append(dateStr)
-//        .append('"');
+//        [Test]
+//        private void testQuery(String queryStr, int expectedDocCount)
+//        {
+//            if (VERBOSE) Console.WriteLine("Parsing: " + queryStr);
 
+//            Query query = (Query)qp.Parse(queryStr, FIELD_NAME);
+//            if (VERBOSE) Console.WriteLine("Querying: " + query);
+//            TopDocs topDocs = searcher.Search(query, 1000);
 
-//    testQuery(sb.toString(), expectedDocCount);
-    
-//  }
-  
-//  private void testQuery(String queryStr, int expectedDocCount)
-//      throws QueryNodeException, IOException {
-//    if (VERBOSE) System.out.println("Parsing: " + queryStr);
+//            String msg = "Query <" + queryStr + "> retrieved " + topDocs.TotalHits
+//                + " document(s), " + expectedDocCount + " document(s) expected.";
 
-//Query query = qp.parse(queryStr, FIELD_NAME);
-//    if (VERBOSE) System.out.println("Querying: " + query);
-//TopDocs topDocs = searcher.search(query, 1000);
+//            if (VERBOSE) Console.WriteLine(msg);
 
-//String msg = "Query <" + queryStr + "> retrieved " + topDocs.totalHits
-//    + " document(s), " + expectedDocCount + " document(s) expected.";
-    
-//    if (VERBOSE) System.out.println(msg);
 
+//            assertEquals(msg, expectedDocCount, topDocs.TotalHits);
+//        }
 
-//    assertEquals(msg, expectedDocCount, topDocs.totalHits);
-//  }
-  
-//  private static String numberToString(Number number)
-//{
-//    return number == null ? "*" : ESCAPER.escape(NUMBER_FORMAT.format(number),
-//        LOCALE, EscapeQuerySyntax.Type.STRING).toString();
-//}
+//        private static String numberToString(/*Number*/ object number)
+//        {
+//            return number == null ? "*" : ESCAPER.Escape(/*NUMBER_FORMAT.format(number)*/ string.Format(NUMBER_FORMAT, number).ToCharSequence(),
+//                LOCALE, EscapeQuerySyntax.Type.STRING).toString();
+//        }
 
-//private static Number normalizeNumber(Number number) throws ParseException
-//{
-//    return NUMBER_FORMAT.parse(NUMBER_FORMAT.format(number));
-//}
+//        private static /*Number*/ object normalizeNumber(/*Number*/ object number)
+//        {
+//            return decimal.Parse(string.Format(NUMBER_FORMAT, number));
+//            //return NUMBER_FORMAT.parse(NUMBER_FORMAT.format(number));
+//        }
 
-//@AfterClass
-//  public static void afterClass() throws Exception
-//{
-//    searcher = null;
-//    reader.close();
-//    reader = null;
-//    directory.close();
-//    directory = null;
-//    qp = null;
-//}
+//        [TestFixtureTearDown]
+//        public static void afterClass()
+//        {
+//            searcher = null;
+//            reader.Dispose();
+//            reader = null;
+//            directory.Dispose();
+//            directory = null;
+//            qp = null;
+//        }
 //    }
 //}


[34/58] lucenenet git commit: QueryParser.Flexible refactor: Made QueryTreeBuilder abstract class so the static QUERY_TREE_BUILDER_TAGID can be used without referencing the QueryTreeBuilder's generic closing type

Posted by ni...@apache.org.
QueryParser.Flexible refactor: Made QueryTreeBuilder abstract class so the static QUERY_TREE_BUILDER_TAGID can be used without referencing the QueryTreeBuilder<T>'s generic closing type


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

Branch: refs/heads/master
Commit: 330d02773acddaa29b4da0d96aded57376086946
Parents: c5c54ab
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Dec 5 19:43:30 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Dec 5 19:43:30 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Builders/QueryTreeBuilder.cs  | 21 +++++++++++++-------
 .../Standard/Builders/AnyQueryNodeBuilder.cs    |  2 +-
 .../Builders/BooleanQueryNodeBuilder.cs         |  2 +-
 .../Standard/Builders/BoostQueryNodeBuilder.cs  |  2 +-
 .../Standard/Builders/GroupQueryNodeBuilder.cs  |  2 +-
 .../Builders/ModifierQueryNodeBuilder.cs        |  2 +-
 .../Builders/MultiPhraseQueryNodeBuilder.cs     |  2 +-
 .../Standard/Builders/PhraseQueryNodeBuilder.cs |  2 +-
 .../Standard/Builders/SlopQueryNodeBuilder.cs   |  2 +-
 .../Builders/StandardBooleanQueryNodeBuilder.cs |  2 +-
 .../Flexible/Spans/SpanOrQueryNodeBuilder.cs    |  2 +-
 11 files changed, 24 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
index e622c25..65f3798 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
@@ -51,14 +51,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
     /// </para>
     /// <seealso cref="IQueryBuilder"/>
     /// </summary>
-    public class QueryTreeBuilder<TQuery> : IQueryBuilder<TQuery>
+    public class QueryTreeBuilder<TQuery> : QueryTreeBuilder, IQueryBuilder<TQuery>
     {
-        /**
-   * This tag is used to tag the nodes in a query tree with the built objects
-   * produced from their own associated builder.
-   */
-        public static readonly string QUERY_TREE_BUILDER_TAGID = typeof(QueryTreeBuilder<TQuery>).Name;
-
         private IDictionary<Type, IQueryBuilder<TQuery>> queryNodeBuilders;
 
         private IDictionary<string, IQueryBuilder<TQuery>> fieldNameBuilders;
@@ -224,4 +218,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
             return (TQuery)queryNode.GetTag(QUERY_TREE_BUILDER_TAGID);
         }
     }
+
+    /// <summary>
+    /// LUCENENET specific class for accessing static members of <see cref="QueryTreeBuilder{TQuery}"/>
+    /// without referencing its generic closing type.
+    /// </summary>
+    public abstract class QueryTreeBuilder
+    {
+        /// <summary>
+        /// This tag is used to tag the nodes in a query tree with the built objects
+        /// produced from their own associated builder.
+        /// </summary>
+        public static readonly string QUERY_TREE_BUILDER_TAGID = typeof(QueryTreeBuilder).Name;
+    }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
index 56fbab5..e3c09ab 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
@@ -47,7 +47,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             {
                 foreach (IQueryNode child in children)
                 {
-                    object obj = child.GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                    object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
 
                     if (obj != null)
                     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
index 9fc0e34..8f29be5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
@@ -54,7 +54,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             {
                 foreach (IQueryNode child in children)
                 {
-                    object obj = child.GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                    object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
 
                     if (obj != null)
                     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
index 51d9cdb..afa01ab 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
@@ -45,7 +45,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             }
 
             Query query = (Query)child
-                .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
             query.Boost = boostNode.Value;
 
             return query;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
index 66546e1..69490b6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
@@ -38,7 +38,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             GroupQueryNode groupNode = (GroupQueryNode)queryNode;
 
             return (Query)(groupNode).GetChild().GetTag(
-                QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
index 4eb6941..f7f9572 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
@@ -38,7 +38,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             ModifierQueryNode modifierNode = (ModifierQueryNode)queryNode;
 
             return (Query)(modifierNode).GetChild().GetTag(
-                QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
index 0931211..6eb883c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
@@ -51,7 +51,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                 {
                     FieldQueryNode termNode = (FieldQueryNode)child;
                     TermQuery termQuery = (TermQuery)termNode
-                        .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                        .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
 
                     List<Term> termList;
                     if (!positionTermMap.TryGetValue(termNode.PositionIncrement, out termList) || termList == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
index 295c6f6..79f3dba 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
@@ -46,7 +46,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                 foreach (IQueryNode child in children)
                 {
                     TermQuery termQuery = (TermQuery)child
-                        .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                        .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
                     FieldQueryNode termNode = (FieldQueryNode)child;
 
                     phraseQuery.Add(termQuery.Term, termNode.PositionIncrement);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
index 2a32d66..bf3156e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
@@ -39,7 +39,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             SlopQueryNode phraseSlopNode = (SlopQueryNode)queryNode;
 
             Query query = (Query)phraseSlopNode.GetChild().GetTag(
-                QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
 
             if (query is PhraseQuery)
             {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
index b8d92d0..428a75e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
@@ -53,7 +53,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             {
                 foreach (IQueryNode child in children)
                 {
-                    object obj = child.GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                    object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
 
                     if (obj != null)
                     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/330d0277/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
index 518bbd0..fbc5ea7 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
@@ -44,7 +44,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
             foreach (IQueryNode child in children)
             {
                 spanQueries[i++] = (SpanQuery)child
-                    .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
+                    .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
             }
 
             return new SpanOrQuery(spanQueries);


[21/58] lucenenet git commit: QueryParser.Flexible: Fixed support for localized messages to make all TestNLS tests pass

Posted by ni...@apache.org.
QueryParser.Flexible: Fixed support for localized messages to make all TestNLS tests pass


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

Branch: refs/heads/master
Commit: c6ee3d5f4acb779bcd094b2438cb920f573eaea7
Parents: 6e7a733
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Dec 4 17:13:01 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Dec 4 17:13:01 2016 +0700

----------------------------------------------------------------------
 .../QueryParserMessagesBundle.Designer.cs       | 225 +++++++++++++++++++
 .../Messages/QueryParserMessagesBundle.resx     | 177 +++++++++++++++
 .../Flexible/Core/Nodes/QueryNodeImpl.cs        |   5 +-
 .../Flexible/Messages/MessageImpl.cs            |   2 +-
 .../Flexible/Messages/NLS.cs                    |  30 ++-
 .../Lucene.Net.QueryParser.csproj               |  14 +-
 .../Properties/Resources.Designer.cs            | 225 -------------------
 .../Properties/Resources.resx                   | 177 ---------------
 .../Messages/MessagesTestBundle.Designer.cs     |  63 ------
 .../Flexible/Messages/MessagesTestBundle.cs     |  26 ++-
 .../Messages/MessagesTestBundle.ja-JP.resx      | 126 -----------
 .../Flexible/Messages/MessagesTestBundle.resx   | 126 -----------
 .../MessagesTestBundleBundle.Designer.cs        |  81 +++++++
 .../Messages/MessagesTestBundleBundle.ja.resx   | 126 +++++++++++
 .../Messages/MessagesTestBundleBundle.resx      | 126 +++++++++++
 .../Flexible/Messages/TestNLS.cs                | 178 +++++++--------
 .../Lucene.Net.Tests.QueryParser.csproj         |  13 +-
 17 files changed, 886 insertions(+), 834 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessagesBundle.Designer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessagesBundle.Designer.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessagesBundle.Designer.cs
new file mode 100644
index 0000000..2809585
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessagesBundle.Designer.cs
@@ -0,0 +1,225 @@
+\ufeff//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.42000
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Messages {
+    using System;
+    
+    
+    /// <summary>
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
+    /// </summary>
+    // This class was auto-generated by the StronglyTypedResourceBuilder
+    // class via a tool like ResGen or Visual Studio.
+    // To add or remove a member, edit your .ResX file then rerun ResGen
+    // with the /str option, or rebuild your VS project.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class QueryParserMessagesBundle {
+        
+        private static global::System.Resources.ResourceManager resourceMan;
+        
+        private static global::System.Globalization.CultureInfo resourceCulture;
+        
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal QueryParserMessagesBundle() {
+        }
+        
+        /// <summary>
+        ///   Returns the cached ResourceManager instance used by this class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager {
+            get {
+                if (object.ReferenceEquals(resourceMan, null)) {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lucene.Net.QueryParsers.Flexible.Core.Messages.QueryParserMessagesBundle", typeof(QueryParserMessagesBundle).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+        
+        /// <summary>
+        ///   Overrides the current thread's CurrentUICulture property for all
+        ///   resource lookups using this strongly typed resource class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture {
+            get {
+                return resourceCulture;
+            }
+            set {
+                resourceCulture = value;
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Could not parse text &quot;{0}&quot; using {1}.
+        /// </summary>
+        internal static string COULD_NOT_PARSE_NUMBER {
+            get {
+                return ResourceManager.GetString("COULD_NOT_PARSE_NUMBER", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to .
+        /// </summary>
+        internal static string EMPTY_MESSAGE {
+            get {
+                return ResourceManager.GetString("EMPTY_MESSAGE", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Syntax Error: {0}.
+        /// </summary>
+        internal static string INVALID_SYNTAX {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Syntax Error, cannot parse {0}: {1}.
+        /// </summary>
+        internal static string INVALID_SYNTAX_CANNOT_PARSE {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_CANNOT_PARSE", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Term can not end with escape character..
+        /// </summary>
+        internal static string INVALID_SYNTAX_ESCAPE_CHARACTER {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_ESCAPE_CHARACTER", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Non-hex character in Unicode escape sequence: {0}.
+        /// </summary>
+        internal static string INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Truncated unicode escape sequence..
+        /// </summary>
+        internal static string INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Fractional edit distances are not allowed..
+        /// </summary>
+        internal static string INVALID_SYNTAX_FUZZY_EDITS {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_FUZZY_EDITS", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to The similarity value for a fuzzy search must be between 0.0 and 1.0..
+        /// </summary>
+        internal static string INVALID_SYNTAX_FUZZY_LIMITS {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_FUZZY_LIMITS", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Leading wildcard is not allowed: {0}.
+        /// </summary>
+        internal static string LEADING_WILDCARD_NOT_ALLOWED {
+            get {
+                return ResourceManager.GetString("LEADING_WILDCARD_NOT_ALLOWED", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Cannot convert query to lucene syntax: {0} error: {1}.
+        /// </summary>
+        internal static string LUCENE_QUERY_CONVERSION_ERROR {
+            get {
+                return ResourceManager.GetString("LUCENE_QUERY_CONVERSION_ERROR", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to This node does not support this action..
+        /// </summary>
+        internal static string NODE_ACTION_NOT_SUPPORTED {
+            get {
+                return ResourceManager.GetString("NODE_ACTION_NOT_SUPPORTED", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Number class not supported by NumericRangeQueryNode: {0}.
+        /// </summary>
+        internal static string NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY {
+            get {
+                return ResourceManager.GetString("NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Field &quot;{0}&quot; is numeric and cannot have an empty value..
+        /// </summary>
+        internal static string NUMERIC_CANNOT_BE_EMPTY {
+            get {
+                return ResourceManager.GetString("NUMERIC_CANNOT_BE_EMPTY", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Parameter {1} with value {0} not supported..
+        /// </summary>
+        internal static string PARAMETER_VALUE_NOT_SUPPORTED {
+            get {
+                return ResourceManager.GetString("PARAMETER_VALUE_NOT_SUPPORTED", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Too many boolean clauses, the maximum supported is {0}: {1}.
+        /// </summary>
+        internal static string TOO_MANY_BOOLEAN_CLAUSES {
+            get {
+                return ResourceManager.GetString("TOO_MANY_BOOLEAN_CLAUSES", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Unsupported NumericField.DataType: {0}.
+        /// </summary>
+        internal static string UNSUPPORTED_NUMERIC_DATA_TYPE {
+            get {
+                return ResourceManager.GetString("UNSUPPORTED_NUMERIC_DATA_TYPE", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Wildcard is not supported for query: {0}.
+        /// </summary>
+        internal static string WILDCARD_NOT_SUPPORTED {
+            get {
+                return ResourceManager.GetString("WILDCARD_NOT_SUPPORTED", resourceCulture);
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessagesBundle.resx
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessagesBundle.resx b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessagesBundle.resx
new file mode 100644
index 0000000..c6680ce
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessagesBundle.resx
@@ -0,0 +1,177 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="COULD_NOT_PARSE_NUMBER" xml:space="preserve">
+    <value>Could not parse text "{0}" using {1}</value>
+  </data>
+  <data name="EMPTY_MESSAGE" xml:space="preserve">
+    <value />
+  </data>
+  <data name="INVALID_SYNTAX" xml:space="preserve">
+    <value>Syntax Error: {0}</value>
+    <comment>&lt;REPLACEMENT arg="{0}" value="detailed_message"/&gt;</comment>
+  </data>
+  <data name="INVALID_SYNTAX_CANNOT_PARSE" xml:space="preserve">
+    <value>Syntax Error, cannot parse {0}: {1}</value>
+    <comment>&lt;REPLACEMENT arg="{0}" value="invalid_query"/&gt;&lt;REPLACEMENT arg="{1}" value="detailed_message"/&gt;</comment>
+  </data>
+  <data name="INVALID_SYNTAX_ESCAPE_CHARACTER" xml:space="preserve">
+    <value>Term can not end with escape character.</value>
+  </data>
+  <data name="INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE" xml:space="preserve">
+    <value>Non-hex character in Unicode escape sequence: {0}</value>
+  </data>
+  <data name="INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION" xml:space="preserve">
+    <value>Truncated unicode escape sequence.</value>
+  </data>
+  <data name="INVALID_SYNTAX_FUZZY_EDITS" xml:space="preserve">
+    <value>Fractional edit distances are not allowed.</value>
+  </data>
+  <data name="INVALID_SYNTAX_FUZZY_LIMITS" xml:space="preserve">
+    <value>The similarity value for a fuzzy search must be between 0.0 and 1.0.</value>
+  </data>
+  <data name="LEADING_WILDCARD_NOT_ALLOWED" xml:space="preserve">
+    <value>Leading wildcard is not allowed: {0}</value>
+  </data>
+  <data name="LUCENE_QUERY_CONVERSION_ERROR" xml:space="preserve">
+    <value>Cannot convert query to lucene syntax: {0} error: {1}</value>
+    <comment>&lt;REPLACEMENT arg="{0}" value="query"/&gt;&lt;REPLACEMENT arg="{1}" value="error/class"/&gt;</comment>
+  </data>
+  <data name="NODE_ACTION_NOT_SUPPORTED" xml:space="preserve">
+    <value>This node does not support this action.</value>
+  </data>
+  <data name="NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY" xml:space="preserve">
+    <value>Number class not supported by NumericRangeQueryNode: {0}</value>
+  </data>
+  <data name="NUMERIC_CANNOT_BE_EMPTY" xml:space="preserve">
+    <value>Field "{0}" is numeric and cannot have an empty value.</value>
+  </data>
+  <data name="PARAMETER_VALUE_NOT_SUPPORTED" xml:space="preserve">
+    <value>Parameter {1} with value {0} not supported.</value>
+  </data>
+  <data name="TOO_MANY_BOOLEAN_CLAUSES" xml:space="preserve">
+    <value>Too many boolean clauses, the maximum supported is {0}: {1}</value>
+  </data>
+  <data name="UNSUPPORTED_NUMERIC_DATA_TYPE" xml:space="preserve">
+    <value>Unsupported NumericField.DataType: {0}</value>
+  </data>
+  <data name="WILDCARD_NOT_SUPPORTED" xml:space="preserve">
+    <value>Wildcard is not supported for query: {0}</value>
+  </data>
+</root>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
index b7d7c39..9d48fcb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
@@ -6,6 +6,7 @@ using System;
 using System.Collections.Generic;
 using System.Globalization;
 using System.Linq;
+using System.Resources;
 using System.Text;
 using System.Threading.Tasks;
 
@@ -89,7 +90,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 //    .getBundle("org.apache.lucene.queryParser.messages.QueryParserMessages");
                 //String message = bundle.getObject("Q0008E.NODE_ACTION_NOT_SUPPORTED")
                 //    .toString();
-                string message = Lucene.Net.QueryParsers.Properties.Resources.NODE_ACTION_NOT_SUPPORTED;
+                //ResourceManager bundle =  QueryParserMessages.NODE_ACTION_NOT_SUPPORTED;
+                ResourceManager bundle = new ResourceManager(typeof(QueryParserMessagesBundle));
+                string message = bundle.GetString(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED);
 
                 throw new ArgumentException(message);
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
index a26d024..a854af6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
@@ -44,7 +44,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
 
         public virtual string GetLocalizedMessage()
         {
-            return GetLocalizedMessage(CultureInfo.InvariantCulture);
+            return GetLocalizedMessage(CultureInfo.CurrentUICulture);
         }
 
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
index 30f31d8..e1053c1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
@@ -54,18 +54,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         {
             string str = GetLocalizedMessage(key, locale);
 
-            // LUCENENET TODO: Figure out what the equivalent of this is
-            //if (args.Length > 0)
-            //{
-            //    str = MessageFormat.Format(str, args);
-            //}
+            if (args.Length > 0)
+            {
+                //str = MessageFormat.Format(str, args);
+                str = string.Format(locale, str, args);
+            }
 
             return str;
         }
 
         public static string GetLocalizedMessage(string key, params object[] args)
         {
-            return GetLocalizedMessage(key, CultureInfo.InvariantCulture, args);
+            return GetLocalizedMessage(key, CultureInfo.CurrentUICulture, args);
         }
 
         /**
@@ -103,7 +103,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
                 for (IEnumerator<string> it = bundles.Keys.GetEnumerator(); it.MoveNext();)
                 {
                     Type clazz = bundles[it.Current];
-                    ResourceManager resourceBundle = new ResourceManager(clazz);
+                    ResourceManager resourceBundle = new ResourceManager(GetResourceType(clazz));
                     if (resourceBundle != null)
                     {
                         try
@@ -220,7 +220,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
             // Test if the message is present in the resource bundle
             try
             {
-                ResourceManager resourceBundle = new ResourceManager(clazz);
+                ResourceManager resourceBundle = new ResourceManager(GetResourceType(clazz));
                 if (resourceBundle != null)
                 {
                     object obj = resourceBundle.GetObject(key);
@@ -267,6 +267,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
             //}
         }
 
+        /// <summary>
+        /// LUCENENET specific method for converting the NLS type to the .NET resource type.
+        /// In Java, these were one and the same, but in .NET it is not possible to create resources
+        /// in Visual Studio with the same class name as a resource class because the resource generation process already
+        /// creates a backing class with the same name as the resource. So, by convention the resources must be
+        /// named &lt;messages class name&gt;Bundle in order to be found by NLS.
+        /// </summary>
+        /// <param name="clazz">The type of the NLS class where the field strings are located that identify resources.</param>
+        /// <returns>The type of resources (the class name + "Resources" suffix), as a .NET <see cref="Type"/> instance.</returns>
+        private static Type GetResourceType(Type clazz)
+        {
+            return Type.GetType(clazz.Namespace + "." + clazz.Name + "Bundle, " + clazz.Assembly.FullName);
+        }
+
   //      /*
   //       * Make a class field accessible
   //       */

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj b/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj
index db43c85..a264871 100644
--- a/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj
+++ b/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj
@@ -63,6 +63,11 @@
     <Compile Include="Flexible\Core\Config\FieldConfigListener.cs" />
     <Compile Include="Flexible\Core\Config\QueryConfigHandler.cs" />
     <Compile Include="Flexible\Core\Messages\QueryParserMessages.cs" />
+    <Compile Include="Flexible\Core\Messages\QueryParserMessagesBundle.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>QueryParserMessagesBundle.resx</DependentUpon>
+    </Compile>
     <Compile Include="Flexible\Core\Nodes\NoTokenFoundQueryNode.cs" />
     <Compile Include="Flexible\Core\Nodes\AndQueryNode.cs" />
     <Compile Include="Flexible\Core\Nodes\AnyQueryNode.cs" />
@@ -182,11 +187,6 @@
     <Compile Include="Flexible\Standard\QueryParserUtil.cs" />
     <Compile Include="Flexible\Standard\StandardQueryParser.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="Properties\Resources.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DesignTime>True</DesignTime>
-      <DependentUpon>Resources.resx</DependentUpon>
-    </Compile>
     <Compile Include="Simple\SimpleQueryParser.cs" />
     <Compile Include="Surround\Parser\CharStream.cs" />
     <Compile Include="Surround\Parser\FastCharStream.cs" />
@@ -227,9 +227,9 @@
     </ProjectReference>
   </ItemGroup>
   <ItemGroup>
-    <EmbeddedResource Include="Properties\Resources.resx">
+    <EmbeddedResource Include="Flexible\Core\Messages\QueryParserMessagesBundle.resx">
       <Generator>ResXFileCodeGenerator</Generator>
-      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+      <LastGenOutput>QueryParserMessagesBundle.Designer.cs</LastGenOutput>
     </EmbeddedResource>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.QueryParser/Properties/Resources.Designer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Properties/Resources.Designer.cs b/src/Lucene.Net.QueryParser/Properties/Resources.Designer.cs
deleted file mode 100644
index b3a8fe9..0000000
--- a/src/Lucene.Net.QueryParser/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,225 +0,0 @@
-\ufeff//------------------------------------------------------------------------------
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:4.0.30319.42000
-//
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace Lucene.Net.QueryParsers.Properties {
-    using System;
-    
-    
-    /// <summary>
-    ///   A strongly-typed resource class, for looking up localized strings, etc.
-    /// </summary>
-    // This class was auto-generated by the StronglyTypedResourceBuilder
-    // class via a tool like ResGen or Visual Studio.
-    // To add or remove a member, edit your .ResX file then rerun ResGen
-    // with the /str option, or rebuild your VS project.
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
-    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    internal class Resources {
-        
-        private static global::System.Resources.ResourceManager resourceMan;
-        
-        private static global::System.Globalization.CultureInfo resourceCulture;
-        
-        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
-        internal Resources() {
-        }
-        
-        /// <summary>
-        ///   Returns the cached ResourceManager instance used by this class.
-        /// </summary>
-        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Resources.ResourceManager ResourceManager {
-            get {
-                if (object.ReferenceEquals(resourceMan, null)) {
-                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lucene.Net.QueryParsers.Properties.Resources", typeof(Resources).Assembly);
-                    resourceMan = temp;
-                }
-                return resourceMan;
-            }
-        }
-        
-        /// <summary>
-        ///   Overrides the current thread's CurrentUICulture property for all
-        ///   resource lookups using this strongly typed resource class.
-        /// </summary>
-        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Globalization.CultureInfo Culture {
-            get {
-                return resourceCulture;
-            }
-            set {
-                resourceCulture = value;
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Could not parse text &quot;{0}&quot; using {1}.
-        /// </summary>
-        internal static string COULD_NOT_PARSE_NUMBER {
-            get {
-                return ResourceManager.GetString("COULD_NOT_PARSE_NUMBER", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to .
-        /// </summary>
-        internal static string EMPTY_MESSAGE {
-            get {
-                return ResourceManager.GetString("EMPTY_MESSAGE", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Syntax Error: {0}.
-        /// </summary>
-        internal static string INVALID_SYNTAX {
-            get {
-                return ResourceManager.GetString("INVALID_SYNTAX", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Syntax Error, cannot parse {0}: {1}.
-        /// </summary>
-        internal static string INVALID_SYNTAX_CANNOT_PARSE {
-            get {
-                return ResourceManager.GetString("INVALID_SYNTAX_CANNOT_PARSE", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Term can not end with escape character..
-        /// </summary>
-        internal static string INVALID_SYNTAX_ESCAPE_CHARACTER {
-            get {
-                return ResourceManager.GetString("INVALID_SYNTAX_ESCAPE_CHARACTER", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Non-hex character in Unicode escape sequence: {0}.
-        /// </summary>
-        internal static string INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE {
-            get {
-                return ResourceManager.GetString("INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Truncated unicode escape sequence..
-        /// </summary>
-        internal static string INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION {
-            get {
-                return ResourceManager.GetString("INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Fractional edit distances are not allowed..
-        /// </summary>
-        internal static string INVALID_SYNTAX_FUZZY_EDITS {
-            get {
-                return ResourceManager.GetString("INVALID_SYNTAX_FUZZY_EDITS", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to The similarity value for a fuzzy search must be between 0.0 and 1.0..
-        /// </summary>
-        internal static string INVALID_SYNTAX_FUZZY_LIMITS {
-            get {
-                return ResourceManager.GetString("INVALID_SYNTAX_FUZZY_LIMITS", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Leading wildcard is not allowed: {0}.
-        /// </summary>
-        internal static string LEADING_WILDCARD_NOT_ALLOWED {
-            get {
-                return ResourceManager.GetString("LEADING_WILDCARD_NOT_ALLOWED", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Cannot convert query to lucene syntax: {0} error: {1}.
-        /// </summary>
-        internal static string LUCENE_QUERY_CONVERSION_ERROR {
-            get {
-                return ResourceManager.GetString("LUCENE_QUERY_CONVERSION_ERROR", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to This node does not support this action..
-        /// </summary>
-        internal static string NODE_ACTION_NOT_SUPPORTED {
-            get {
-                return ResourceManager.GetString("NODE_ACTION_NOT_SUPPORTED", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Number class not supported by NumericRangeQueryNode: {0}.
-        /// </summary>
-        internal static string NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY {
-            get {
-                return ResourceManager.GetString("NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Field &quot;{0}&quot; is numeric and cannot have an empty value..
-        /// </summary>
-        internal static string NUMERIC_CANNOT_BE_EMPTY {
-            get {
-                return ResourceManager.GetString("NUMERIC_CANNOT_BE_EMPTY", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Parameter {1} with value {0} not supported..
-        /// </summary>
-        internal static string PARAMETER_VALUE_NOT_SUPPORTED {
-            get {
-                return ResourceManager.GetString("PARAMETER_VALUE_NOT_SUPPORTED", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Too many boolean clauses, the maximum supported is {0}: {1}.
-        /// </summary>
-        internal static string TOO_MANY_BOOLEAN_CLAUSES {
-            get {
-                return ResourceManager.GetString("TOO_MANY_BOOLEAN_CLAUSES", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Unsupported NumericField.DataType: {0}.
-        /// </summary>
-        internal static string UNSUPPORTED_NUMERIC_DATA_TYPE {
-            get {
-                return ResourceManager.GetString("UNSUPPORTED_NUMERIC_DATA_TYPE", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Wildcard is not supported for query: {0}.
-        /// </summary>
-        internal static string WILDCARD_NOT_SUPPORTED {
-            get {
-                return ResourceManager.GetString("WILDCARD_NOT_SUPPORTED", resourceCulture);
-            }
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.QueryParser/Properties/Resources.resx
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Properties/Resources.resx b/src/Lucene.Net.QueryParser/Properties/Resources.resx
deleted file mode 100644
index c6680ce..0000000
--- a/src/Lucene.Net.QueryParser/Properties/Resources.resx
+++ /dev/null
@@ -1,177 +0,0 @@
-\ufeff<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" use="required" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <data name="COULD_NOT_PARSE_NUMBER" xml:space="preserve">
-    <value>Could not parse text "{0}" using {1}</value>
-  </data>
-  <data name="EMPTY_MESSAGE" xml:space="preserve">
-    <value />
-  </data>
-  <data name="INVALID_SYNTAX" xml:space="preserve">
-    <value>Syntax Error: {0}</value>
-    <comment>&lt;REPLACEMENT arg="{0}" value="detailed_message"/&gt;</comment>
-  </data>
-  <data name="INVALID_SYNTAX_CANNOT_PARSE" xml:space="preserve">
-    <value>Syntax Error, cannot parse {0}: {1}</value>
-    <comment>&lt;REPLACEMENT arg="{0}" value="invalid_query"/&gt;&lt;REPLACEMENT arg="{1}" value="detailed_message"/&gt;</comment>
-  </data>
-  <data name="INVALID_SYNTAX_ESCAPE_CHARACTER" xml:space="preserve">
-    <value>Term can not end with escape character.</value>
-  </data>
-  <data name="INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE" xml:space="preserve">
-    <value>Non-hex character in Unicode escape sequence: {0}</value>
-  </data>
-  <data name="INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION" xml:space="preserve">
-    <value>Truncated unicode escape sequence.</value>
-  </data>
-  <data name="INVALID_SYNTAX_FUZZY_EDITS" xml:space="preserve">
-    <value>Fractional edit distances are not allowed.</value>
-  </data>
-  <data name="INVALID_SYNTAX_FUZZY_LIMITS" xml:space="preserve">
-    <value>The similarity value for a fuzzy search must be between 0.0 and 1.0.</value>
-  </data>
-  <data name="LEADING_WILDCARD_NOT_ALLOWED" xml:space="preserve">
-    <value>Leading wildcard is not allowed: {0}</value>
-  </data>
-  <data name="LUCENE_QUERY_CONVERSION_ERROR" xml:space="preserve">
-    <value>Cannot convert query to lucene syntax: {0} error: {1}</value>
-    <comment>&lt;REPLACEMENT arg="{0}" value="query"/&gt;&lt;REPLACEMENT arg="{1}" value="error/class"/&gt;</comment>
-  </data>
-  <data name="NODE_ACTION_NOT_SUPPORTED" xml:space="preserve">
-    <value>This node does not support this action.</value>
-  </data>
-  <data name="NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY" xml:space="preserve">
-    <value>Number class not supported by NumericRangeQueryNode: {0}</value>
-  </data>
-  <data name="NUMERIC_CANNOT_BE_EMPTY" xml:space="preserve">
-    <value>Field "{0}" is numeric and cannot have an empty value.</value>
-  </data>
-  <data name="PARAMETER_VALUE_NOT_SUPPORTED" xml:space="preserve">
-    <value>Parameter {1} with value {0} not supported.</value>
-  </data>
-  <data name="TOO_MANY_BOOLEAN_CLAUSES" xml:space="preserve">
-    <value>Too many boolean clauses, the maximum supported is {0}: {1}</value>
-  </data>
-  <data name="UNSUPPORTED_NUMERIC_DATA_TYPE" xml:space="preserve">
-    <value>Unsupported NumericField.DataType: {0}</value>
-  </data>
-  <data name="WILDCARD_NOT_SUPPORTED" xml:space="preserve">
-    <value>Wildcard is not supported for query: {0}</value>
-  </data>
-</root>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.Designer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.Designer.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.Designer.cs
deleted file mode 100644
index 0ce0aa7..0000000
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.Designer.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-\ufeff//------------------------------------------------------------------------------
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:4.0.30319.42000
-//
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace Lucene.Net.QueryParsers.Flexible.Messages {
-    using System;
-    
-    
-    /// <summary>
-    ///   A strongly-typed resource class, for looking up localized strings, etc.
-    /// </summary>
-    // This class was auto-generated by the StronglyTypedResourceBuilder
-    // class via a tool like ResGen or Visual Studio.
-    // To add or remove a member, edit your .ResX file then rerun ResGen
-    // with the /str option, or rebuild your VS project.
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
-    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    internal class MessagesTestBundle {
-        
-        private static global::System.Resources.ResourceManager resourceMan;
-        
-        private static global::System.Globalization.CultureInfo resourceCulture;
-        
-        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
-        internal MessagesTestBundle() {
-        }
-        
-        /// <summary>
-        ///   Returns the cached ResourceManager instance used by this class.
-        /// </summary>
-        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Resources.ResourceManager ResourceManager {
-            get {
-                if (object.ReferenceEquals(resourceMan, null)) {
-                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lucene.Net.QueryParsers.Flexible.Messages.MessagesTestBundle", typeof(MessagesTestBundle).Assembly);
-                    resourceMan = temp;
-                }
-                return resourceMan;
-            }
-        }
-        
-        /// <summary>
-        ///   Overrides the current thread's CurrentUICulture property for all
-        ///   resource lookups using this strongly typed resource class.
-        /// </summary>
-        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Globalization.CultureInfo Culture {
-            get {
-                return resourceCulture;
-            }
-            set {
-                resourceCulture = value;
-            }
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
index a495f3d..c1344e3 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
@@ -6,7 +6,27 @@ using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {
-    //public class MessagesTestBundle
-    //{
-    //}
+    public class MessagesTestBundle : NLS
+    {
+        private static readonly string BUNDLE_NAME = typeof(MessagesTestBundle).Name;
+
+        private MessagesTestBundle()
+        {
+            // should never be instantiated
+        }
+
+        static MessagesTestBundle()
+        {
+            // register all string ids with NLS class and initialize static string
+            // values
+            NLS.InitializeMessages(BUNDLE_NAME, typeof(MessagesTestBundle));
+        }
+
+        // static string must match the strings in the property files.
+        public static String Q0001E_INVALID_SYNTAX;
+        public static String Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION;
+
+        // this message is missing from the properties file
+        public static String Q0005E_MESSAGE_NOT_IN_BUNDLE;
+    }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.ja-JP.resx
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.ja-JP.resx b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.ja-JP.resx
deleted file mode 100644
index 9378bcb..0000000
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.ja-JP.resx
+++ /dev/null
@@ -1,126 +0,0 @@
-\ufeff<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" use="required" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <data name="Q0001E_INVALID_SYNTAX" xml:space="preserve">
-    <value>\u69cb\u6587\u30a8\u30e9\u30fc: {0}</value>
-  </data>
-  <data name="Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION" xml:space="preserve">
-    <value>\u5207\u308a\u6368\u3066\u3089\u308c\u305f\u30e6\u30cb\u30b3\u30fc\u30c9\u30fb\u30a8\u30b9\u30b1\u30fc\u30d7\u30fb\u30b7\u30fc\u30b1\u30f3\u30b9\u3002</value>
-  </data>
-</root>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.resx
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.resx b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.resx
deleted file mode 100644
index 7d4fa31..0000000
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.resx
+++ /dev/null
@@ -1,126 +0,0 @@
-\ufeff<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" use="required" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <data name="Q0001E_INVALID_SYNTAX" xml:space="preserve">
-    <value>Syntax Error: {0}</value>
-  </data>
-  <data name="Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION" xml:space="preserve">
-    <value>Truncated unicode escape sequence.</value>
-  </data>
-</root>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.Designer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.Designer.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.Designer.cs
new file mode 100644
index 0000000..ec703e9
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.Designer.cs
@@ -0,0 +1,81 @@
+\ufeff//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.42000
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Lucene.Net.QueryParsers.Flexible.Messages {
+    using System;
+    
+    
+    /// <summary>
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
+    /// </summary>
+    // This class was auto-generated by the StronglyTypedResourceBuilder
+    // class via a tool like ResGen or Visual Studio.
+    // To add or remove a member, edit your .ResX file then rerun ResGen
+    // with the /str option, or rebuild your VS project.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class MessagesTestBundleBundle {
+        
+        private static global::System.Resources.ResourceManager resourceMan;
+        
+        private static global::System.Globalization.CultureInfo resourceCulture;
+        
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal MessagesTestBundleBundle() {
+        }
+        
+        /// <summary>
+        ///   Returns the cached ResourceManager instance used by this class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager {
+            get {
+                if (object.ReferenceEquals(resourceMan, null)) {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lucene.Net.QueryParsers.Flexible.Messages.MessagesTestBundleBundle", typeof(MessagesTestBundleBundle).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+        
+        /// <summary>
+        ///   Overrides the current thread's CurrentUICulture property for all
+        ///   resource lookups using this strongly typed resource class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture {
+            get {
+                return resourceCulture;
+            }
+            set {
+                resourceCulture = value;
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Syntax Error: {0}.
+        /// </summary>
+        internal static string Q0001E_INVALID_SYNTAX {
+            get {
+                return ResourceManager.GetString("Q0001E_INVALID_SYNTAX", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Truncated unicode escape sequence..
+        /// </summary>
+        internal static string Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION {
+            get {
+                return ResourceManager.GetString("Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION", resourceCulture);
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.ja.resx
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.ja.resx b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.ja.resx
new file mode 100644
index 0000000..0e2fc13
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.ja.resx
@@ -0,0 +1,126 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="Q0001E_INVALID_SYNTAX" xml:space="preserve">
+    <value>\u69cb\u6587\u30a8\u30e9\u30fc: {0}</value>
+  </data>
+  <data name="Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION" xml:space="preserve">
+    <value>\u5207\u308a\u6368\u3066\u3089\u308c\u305f\u30e6\u30cb\u30b3\u30fc\u30c9\u30fb\u30a8\u30b9\u30b1\u30fc\u30d7\u30fb\u30b7\u30fc\u30b1\u30f3\u30b9\u3002</value>
+  </data>
+</root>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.resx
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.resx b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.resx
new file mode 100644
index 0000000..7d4fa31
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundleBundle.resx
@@ -0,0 +1,126 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="Q0001E_INVALID_SYNTAX" xml:space="preserve">
+    <value>Syntax Error: {0}</value>
+  </data>
+  <data name="Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION" xml:space="preserve">
+    <value>Truncated unicode escape sequence.</value>
+  </data>
+</root>
\ No newline at end of file


[33/58] lucenenet git commit: QueryParser.Flexible: License headers

Posted by ni...@apache.org.
QueryParser.Flexible: License headers


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

Branch: refs/heads/master
Commit: c5c54abe56dc7b728367fdc9d2156649bc346603
Parents: 3587073
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Dec 4 22:24:11 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Dec 4 22:27:11 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Config/AbstractQueryConfig.cs    | 17 +++++++++++++++++
 .../Flexible/Core/Config/ConfigurationKey.cs       | 17 +++++++++++++++++
 .../Flexible/Core/Config/FieldConfig.cs            | 17 +++++++++++++++++
 .../Flexible/Core/Config/FieldConfigListener.cs    | 17 +++++++++++++++++
 .../Flexible/Core/Config/QueryConfigHandler.cs     | 17 +++++++++++++++++
 .../Flexible/Core/Messages/QueryParserMessages.cs  | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/AndQueryNode.cs            | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/AnyQueryNode.cs            | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/BooleanQueryNode.cs        | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/BoostQueryNode.cs          | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/DeletedQueryNode.cs        | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/FieldQueryNode.cs          | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/FieldValuePairQueryNode.cs | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/FieldableNode.cs           | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/FuzzyQueryNode.cs          | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/GroupQueryNode.cs          | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/MatchAllDocsQueryNode.cs   | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/MatchNoDocsQueryNode.cs    | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/ModifierQueryNode.cs       | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/NoTokenFoundQueryNode.cs   | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/OpaqueQueryNode.cs         | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/OrQueryNode.cs             | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/PathQueryNode.cs           | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/PhraseSlopQueryNode.cs     | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/ProximityQueryNode.cs      | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/QueryNode.cs               | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/QueryNodeImpl.cs           | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/QuotedFieldQueryNode.cs    | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/RangeQueryNode.cs          | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/SlopQueryNode.cs           | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/TextableQueryNode.cs       | 17 +++++++++++++++++
 .../Core/Nodes/TokenizedPhraseQueryNode.cs         | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/ValueQueryNode.cs          | 17 +++++++++++++++++
 .../Flexible/Core/Parser/EscapeQuerySyntax.cs      | 17 +++++++++++++++++
 .../Flexible/Core/Parser/SyntaxParser.cs           | 17 +++++++++++++++++
 .../NoChildOptimizationQueryNodeProcessor.cs       | 17 +++++++++++++++++
 .../Flexible/Core/Processors/QueryNodeProcessor.cs | 17 +++++++++++++++++
 .../Core/Processors/QueryNodeProcessorImpl.cs      | 17 +++++++++++++++++
 .../Core/Processors/QueryNodeProcessorPipeline.cs  | 17 +++++++++++++++++
 .../Processors/RemoveDeletedQueryNodesProcessor.cs | 17 +++++++++++++++++
 .../Flexible/Core/QueryNodeError.cs                | 17 +++++++++++++++++
 .../Flexible/Core/QueryNodeException.cs            | 17 +++++++++++++++++
 .../Flexible/Core/QueryNodeParseException.cs       | 17 +++++++++++++++++
 .../Flexible/Core/QueryParserHelper.cs             | 17 +++++++++++++++++
 .../Flexible/Core/Util/QueryNodeOperation.cs       | 17 +++++++++++++++++
 .../Flexible/Core/Util/StringUtils.cs              | 17 +++++++++++++++++
 .../Flexible/Core/Util/UnescapedCharSequence.cs    | 17 +++++++++++++++++
 .../Flexible/Messages/Message.cs                   | 17 +++++++++++++++++
 .../Flexible/Messages/MessageImpl.cs               | 17 +++++++++++++++++
 .../Flexible/Messages/NLS.cs                       | 17 +++++++++++++++++
 .../Flexible/Messages/NLSException.cs              | 17 +++++++++++++++++
 .../Flexible/Precedence/PrecedenceQueryParser.cs   | 17 +++++++++++++++++
 .../BooleanModifiersQueryNodeProcessor.cs          | 17 +++++++++++++++++
 .../PrecedenceQueryNodeProcessorPipeline.cs        | 17 +++++++++++++++++
 .../Standard/Builders/AnyQueryNodeBuilder.cs       | 17 +++++++++++++++++
 .../Standard/Builders/BooleanQueryNodeBuilder.cs   | 17 +++++++++++++++++
 .../Standard/Builders/BoostQueryNodeBuilder.cs     | 17 +++++++++++++++++
 .../Standard/Builders/DummyQueryNodeBuilder.cs     | 17 +++++++++++++++++
 .../Standard/Builders/FieldQueryNodeBuilder.cs     | 17 +++++++++++++++++
 .../Standard/Builders/FuzzyQueryNodeBuilder.cs     | 17 +++++++++++++++++
 .../Standard/Builders/GroupQueryNodeBuilder.cs     | 17 +++++++++++++++++
 .../Builders/MatchAllDocsQueryNodeBuilder.cs       | 17 +++++++++++++++++
 .../Builders/MatchNoDocsQueryNodeBuilder.cs        | 17 +++++++++++++++++
 .../Standard/Builders/ModifierQueryNodeBuilder.cs  | 17 +++++++++++++++++
 .../Builders/MultiPhraseQueryNodeBuilder.cs        | 17 +++++++++++++++++
 .../Builders/NumericRangeQueryNodeBuilder.cs       | 17 +++++++++++++++++
 .../Standard/Builders/PhraseQueryNodeBuilder.cs    | 17 +++++++++++++++++
 .../Builders/PrefixWildcardQueryNodeBuilder.cs     | 17 +++++++++++++++++
 .../Standard/Builders/RegexpQueryNodeBuilder.cs    | 17 +++++++++++++++++
 .../Standard/Builders/SlopQueryNodeBuilder.cs      | 17 +++++++++++++++++
 .../Builders/StandardBooleanQueryNodeBuilder.cs    | 17 +++++++++++++++++
 .../Standard/Builders/StandardQueryBuilder.cs      | 17 +++++++++++++++++
 .../Standard/Builders/StandardQueryTreeBuilder.cs  | 17 +++++++++++++++++
 .../Standard/Builders/TermRangeQueryNodeBuilder.cs | 17 +++++++++++++++++
 .../Standard/Builders/WildcardQueryNodeBuilder.cs  | 17 +++++++++++++++++
 .../Standard/Config/FieldBoostMapFCListener.cs     | 17 +++++++++++++++++
 .../Config/FieldDateResolutionFCListener.cs        | 17 +++++++++++++++++
 .../Flexible/Standard/Config/FuzzyConfig.cs        | 17 +++++++++++++++++
 .../Flexible/Standard/Config/NumberDateFormat.cs   | 17 +++++++++++++++++
 .../Flexible/Standard/Config/NumericConfig.cs      | 17 +++++++++++++++++
 .../Standard/Config/NumericFieldConfigListener.cs  | 17 +++++++++++++++++
 .../Standard/Config/StandardQueryConfigHandler.cs  | 17 +++++++++++++++++
 .../Standard/Nodes/AbstractRangeQueryNode.cs       | 17 +++++++++++++++++
 .../Flexible/Standard/Nodes/BooleanModifierNode.cs | 17 +++++++++++++++++
 .../Standard/Nodes/MultiPhraseQueryNode.cs         | 17 +++++++++++++++++
 .../Flexible/Standard/Nodes/NumericQueryNode.cs    | 17 +++++++++++++++++
 .../Standard/Nodes/NumericRangeQueryNode.cs        | 17 +++++++++++++++++
 .../Standard/Nodes/PrefixWildcardQueryNode.cs      | 17 +++++++++++++++++
 .../Flexible/Standard/Nodes/RegexpQueryNode.cs     | 17 +++++++++++++++++
 .../Standard/Nodes/StandardBooleanQueryNode.cs     | 17 +++++++++++++++++
 .../Flexible/Standard/Nodes/TermRangeQueryNode.cs  | 17 +++++++++++++++++
 .../Flexible/Standard/Nodes/WildcardQueryNode.cs   | 17 +++++++++++++++++
 .../Flexible/Standard/Parser/CharStream.cs         | 17 +++++++++++++++++
 .../Standard/Parser/EscapeQuerySyntaxImpl.cs       | 17 +++++++++++++++++
 .../Flexible/Standard/Parser/FastCharStream.cs     | 17 +++++++++++++++++
 .../Flexible/Standard/Parser/ParseException.cs     | 17 +++++++++++++++++
 .../Standard/Parser/StandardSyntaxParser.cs        | 17 +++++++++++++++++
 .../Parser/StandardSyntaxParserConstants.cs        | 17 +++++++++++++++++
 .../Parser/StandardSyntaxParserTokenManager.cs     | 17 +++++++++++++++++
 .../Flexible/Standard/Parser/Token.cs              | 17 +++++++++++++++++
 .../Flexible/Standard/Parser/TokenMgrError.cs      | 17 +++++++++++++++++
 .../Processors/AllowLeadingWildcardProcessor.cs    | 17 +++++++++++++++++
 .../Processors/AnalyzerQueryNodeProcessor.cs       | 17 +++++++++++++++++
 .../BooleanQuery2ModifierNodeProcessor.cs          | 17 +++++++++++++++++
 ...eanSingleChildOptimizationQueryNodeProcessor.cs | 17 +++++++++++++++++
 .../Standard/Processors/BoostQueryNodeProcessor.cs | 17 +++++++++++++++++
 .../DefaultPhraseSlopQueryNodeProcessor.cs         | 17 +++++++++++++++++
 .../Standard/Processors/FuzzyQueryNodeProcessor.cs | 17 +++++++++++++++++
 .../Standard/Processors/GroupQueryNodeProcessor.cs | 17 +++++++++++++++++
 .../LowercaseExpandedTermsQueryNodeProcessor.cs    | 17 +++++++++++++++++
 .../Processors/MatchAllDocsQueryNodeProcessor.cs   | 17 +++++++++++++++++
 .../Processors/MultiFieldQueryNodeProcessor.cs     | 17 +++++++++++++++++
 .../Processors/MultiTermRewriteMethodProcessor.cs  | 17 +++++++++++++++++
 .../Processors/NumericQueryNodeProcessor.cs        | 17 +++++++++++++++++
 .../Processors/NumericRangeQueryNodeProcessor.cs   | 17 +++++++++++++++++
 .../Processors/OpenRangeQueryNodeProcessor.cs      | 17 +++++++++++++++++
 .../Processors/PhraseSlopQueryNodeProcessor.cs     | 17 +++++++++++++++++
 .../RemoveEmptyNonLeafQueryNodeProcessor.cs        | 17 +++++++++++++++++
 .../StandardQueryNodeProcessorPipeline.cs          | 17 +++++++++++++++++
 .../Processors/TermRangeQueryNodeProcessor.cs      | 17 +++++++++++++++++
 .../Processors/WildcardQueryNodeProcessor.cs       | 17 +++++++++++++++++
 .../Flexible/Standard/QueryParserUtil.cs           | 17 +++++++++++++++++
 .../Flexible/Standard/StandardQueryParser.cs       | 17 +++++++++++++++++
 .../Flexible/Core/Builders/TestQueryTreeBuilder.cs | 17 +++++++++++++++++
 .../Flexible/Core/Nodes/TestQueryNode.cs           | 17 +++++++++++++++++
 .../Flexible/Messages/MessagesTestBundle.cs        | 17 +++++++++++++++++
 .../Flexible/Messages/TestNLS.cs                   | 17 +++++++++++++++++
 .../Precedence/TestPrecedenceQueryParser.cs        | 17 +++++++++++++++++
 .../Flexible/Spans/SpanOrQueryNodeBuilder.cs       | 17 +++++++++++++++++
 .../Flexible/Spans/SpanTermQueryNodeBuilder.cs     | 17 +++++++++++++++++
 .../Flexible/Spans/SpansQueryConfigHandler.cs      | 17 +++++++++++++++++
 .../Flexible/Spans/SpansQueryTreeBuilder.cs        | 17 +++++++++++++++++
 .../Spans/SpansValidatorQueryNodeProcessor.cs      | 17 +++++++++++++++++
 .../Flexible/Spans/TestSpanQueryParser.cs          | 17 +++++++++++++++++
 .../Spans/TestSpanQueryParserSimpleSample.cs       | 17 +++++++++++++++++
 .../Flexible/Spans/UniqueFieldAttribute.cs         | 17 +++++++++++++++++
 .../Flexible/Spans/UniqueFieldAttributeImpl.cs     | 17 +++++++++++++++++
 .../Spans/UniqueFieldQueryNodeProcessor.cs         | 17 +++++++++++++++++
 .../Flexible/Standard/TestMultiAnalyzerQPHelper.cs | 17 +++++++++++++++++
 .../Flexible/Standard/TestMultiFieldQPHelper.cs    | 17 +++++++++++++++++
 .../Flexible/Standard/TestNumericQueryParser.cs    | 17 +++++++++++++++++
 .../Flexible/Standard/TestQPHelper.cs              | 17 +++++++++++++++++
 .../Flexible/Standard/TestStandardQP.cs            | 17 +++++++++++++++++
 143 files changed, 2431 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
index 88d7850..ad41267 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This class is the base of {@link QueryConfigHandler} and {@link FieldConfig}.
     /// It has operations to set, unset and get configuration values.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
index 43825fb..a39535e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// An instance of this class represents a key that is used to retrieve a value
     /// from {@link AbstractQueryConfig}. It also holds the value's type, which is

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
index ecc550b..96001e5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This class represents a field configuration.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
index 47cccb2..1e50e32 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This interface should be implemented by classes that wants to listen for
     /// field configuration requests. The implementation receives a

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
index 72cc2f4..629dc76 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This class can be used to hold any query configuration and no field
     /// configuration. For field configuration, it creates an empty

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
index 9f1d137..6a31e4c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Messages
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Flexible Query Parser message bundle class
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
index d317d65..1dd7f32 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
@@ -5,6 +5,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link AndQueryNode} represents an AND boolean operation performed on a
     /// list of nodes.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
index 7435a13..ac04755 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
@@ -4,6 +4,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link AnyQueryNode} represents an ANY operator performed on a list of
     /// nodes.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
index 8a3cd91..2976640 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
@@ -4,6 +4,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link BooleanQueryNode} represents a list of elements which do not have an
     /// explicit boolean operator defined between them. It can be used to express a

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
index 90ca00a..3bd4bc8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
@@ -5,6 +5,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link BoostQueryNode} boosts the QueryNode tree which is under this node.
     /// So, it must only and always have one child.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
index ffaed98..a47ce40 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link DeletedQueryNode} represents a node that was deleted from the query
     /// node tree. It can be removed from the tree using the

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
index ad6e12c..522c783 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
@@ -4,6 +4,23 @@ using System.Globalization;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link FieldQueryNode} represents a element that contains field/text tuple
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
index fe7aa80..799dcfa 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This interface should be implemented by {@link QueryNode} that holds a field
     /// and an arbitrary value.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
index b96821b..a81fa2c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A query node implements {@link FieldableNode} interface to indicate that its
     /// children and itself are associated to a specific field.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
index eef7e98..ae619d9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
@@ -3,6 +3,23 @@ using Lucene.Net.Support;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link FuzzyQueryNode} represents a element that contains
     /// field/text/similarity tuple

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
index aabc4a8..915366e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
@@ -5,6 +5,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link GroupQueryNode} represents a location where the original user typed
     /// real parenthesis on the query string. This class is useful for queries like:

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
index bedc271..6709104 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link MatchAllDocsQueryNode} indicates that a query node tree or subtree
     /// will match all documents if executed in the index.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
index e03b1f0..1b7a4b7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link MatchNoDocsQueryNode} indicates that a query node tree or subtree
     /// will not match any documents if executed in the index.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
index cf34600..5432b0b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
@@ -6,6 +6,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link ModifierQueryNode} indicates the modifier value (+,-,?,NONE) for
     /// each term on the query string. For example "+t1 -t2 t3" will have a tree of:

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
index 24e77c6..7914799 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link NoTokenFoundQueryNode} is used if a term is convert into no tokens
     /// by the tokenizer/lemmatizer/analyzer (null).

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
index 4e30add..9d32332 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link OpaqueQueryNode} is used for specify values that are not supposed to
     /// be parsed by the parser. For example: and XPATH query in the middle of a

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
index 835edfe..93a8e33 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
@@ -5,6 +5,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link OrQueryNode} represents an OR boolean operation performed on a list
     /// of nodes.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
index f813688..0ca1f72 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
@@ -7,6 +7,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link PathQueryNode} is used to store queries like
     /// /company/USA/California /product/shoes/brown. QueryText are objects that

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
index 49d8195..f16a59a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
@@ -4,6 +4,23 @@ using Lucene.Net.QueryParsers.Flexible.Messages;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+
+     */
     /// <summary>
     /// Query node for <see cref="PhraseQuery"/>'s slop factor.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
index 82d6208..ceccf1c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
@@ -7,6 +7,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link ProximityQueryNode} represents a query where the terms should meet
     /// specific distance conditions. (a b c) WITHIN [SENTENCE|PARAGRAPH|NUMBER]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
index 983c66f..a448d10 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link QueryNode} is a interface implemented by all nodes on a QueryNode
     /// tree.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
index 3051d32..b0a08ec 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
@@ -9,6 +9,23 @@ using System.Resources;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link QueryNodeImpl} is the default implementation of the interface
     /// {@link QueryNode}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
index c6afd43..d4d9d8f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
@@ -3,6 +3,23 @@ using Lucene.Net.Support;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link QuotedFieldQueryNode} represents phrase query. Example:
     /// "life is great"

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
index 803054e..697ab3d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This interface should be implemented by a {@link QueryNode} that represents
     /// some kind of range query.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
index 6a4d9da..2edc767 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
@@ -4,6 +4,23 @@ using Lucene.Net.QueryParsers.Flexible.Messages;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link SlopQueryNode} represents phrase query with a slop.
     /// 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
index 201b10a..aa4b802 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Interface for a node that has text as a {@link CharSequence}
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
index 3ccf7fc..e5531f7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
@@ -4,6 +4,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link TokenizedPhraseQueryNode} represents a node created by a code that
     /// tokenizes/lemmatizes/analyzes.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
index d4ff5a9..e1087eb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This interface should be implemented by {@link QueryNode} that holds an
     /// arbitrary value.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
index 9b9cd5e..e29bf50 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
@@ -3,6 +3,23 @@ using System.Globalization;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A parser needs to implement {@link EscapeQuerySyntax} to allow the QueryNode
     /// to escape the queries, when the toQueryString method is called.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
index bc8915f..0f1f778 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A parser needs to implement {@link SyntaxParser} interface
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
index e84db65..c28728a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link NoChildOptimizationQueryNodeProcessor} removes every
     /// BooleanQueryNode, BoostQueryNode, TokenizedPhraseQueryNode or

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
index 7d2663d..2ed96f6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
@@ -3,6 +3,23 @@ using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link QueryNodeProcessor} is an interface for classes that process a
     /// {@link QueryNode} tree.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
index fafb270..b41a07e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
@@ -5,6 +5,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {
+    /*
+     * 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.
+     */
+
     public abstract class QueryNodeProcessorImpl : IQueryNodeProcessor
     {
         private List<ChildrenList> childrenListPool = new List<ChildrenList>();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
index 734fe92..3c6f548 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
@@ -6,6 +6,23 @@ using System.Linq;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {
+    /*
+     * 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.
+     */
+
     public class QueryNodeProcessorPipeline : IQueryNodeProcessor, IList<IQueryNodeProcessor>
     {
         private List<IQueryNodeProcessor> processors = new List<IQueryNodeProcessor>();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
index 44ed0fe..79103e1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link QueryNodeProcessorPipeline} class removes every instance of
     /// {@link DeletedQueryNode} from a query node tree. If the resulting root node

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
index 83661ee..a07c8ed 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
@@ -3,6 +3,23 @@ using System;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Error class with NLS support
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
index 5256f81..3178300 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
@@ -5,6 +5,23 @@ using System.Globalization;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This exception should be thrown if something wrong happens when dealing with
     /// {@link QueryNode}s.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
index 25d47b8..cc88048 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
@@ -4,6 +4,23 @@ using System;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This should be thrown when an exception happens during the query parsing from
     /// string to the query node tree.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
index 11347ab..76f8cf6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
@@ -7,6 +7,23 @@ using System;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This class is a helper for the query parser framework, it does all the three
     /// query parser phrases at once: text parsing, query processing and query

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
index 2476398..dbc470e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Util
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Allow joining 2 QueryNode Trees, into one.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
index 72ca406..6d58adf 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Util
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// String manipulation routines
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
index f90bca1..6b05a60 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
@@ -4,6 +4,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Util
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// CharsSequence with escaped chars information.
     /// </summary>


[57/58] lucenenet git commit: HACK: (4th) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context.

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs
index ace0574..889f963 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs
@@ -35,5 +35,506 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
+
+
+        #region BaseDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestOneNumber()
+        {
+            base.TestOneNumber();
+        }
+
+        [Test]
+        public override void TestOneFloat()
+        {
+            base.TestOneFloat();
+        }
+
+        [Test]
+        public override void TestTwoNumbers()
+        {
+            base.TestTwoNumbers();
+        }
+
+        [Test]
+        public override void TestTwoBinaryValues()
+        {
+            base.TestTwoBinaryValues();
+        }
+
+        [Test]
+        public override void TestTwoFieldsMixed()
+        {
+            base.TestTwoFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed()
+        {
+            base.TestThreeFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed2()
+        {
+            base.TestThreeFieldsMixed2();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsNumeric()
+        {
+            base.TestTwoDocumentsNumeric();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsMerged()
+        {
+            base.TestTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestBigNumericRange()
+        {
+            base.TestBigNumericRange();
+        }
+
+        [Test]
+        public override void TestBigNumericRange2()
+        {
+            base.TestBigNumericRange2();
+        }
+
+        [Test]
+        public override void TestBytes()
+        {
+            base.TestBytes();
+        }
+
+        [Test]
+        public override void TestBytesTwoDocumentsMerged()
+        {
+            base.TestBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedBytes()
+        {
+            base.TestSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocuments()
+        {
+            base.TestSortedBytesTwoDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesThreeDocuments()
+        {
+            base.TestSortedBytesThreeDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocumentsMerged()
+        {
+            base.TestSortedBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedMergeAwayAllValues()
+        {
+            base.TestSortedMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestBytesWithNewline()
+        {
+            base.TestBytesWithNewline();
+        }
+
+        [Test]
+        public override void TestMissingSortedBytes()
+        {
+            base.TestMissingSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedTermsEnum()
+        {
+            base.TestSortedTermsEnum();
+        }
+
+        [Test]
+        public override void TestEmptySortedBytes()
+        {
+            base.TestEmptySortedBytes();
+        }
+
+        [Test]
+        public override void TestEmptyBytes()
+        {
+            base.TestEmptyBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalBytes()
+        {
+            base.TestVeryLargeButLegalBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalSortedBytes()
+        {
+            base.TestVeryLargeButLegalSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytes()
+        {
+            base.TestCodecUsesOwnBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytes()
+        {
+            base.TestCodecUsesOwnSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytesEachTime()
+        {
+            base.TestCodecUsesOwnBytesEachTime();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytesEachTime()
+        {
+            base.TestCodecUsesOwnSortedBytesEachTime();
+        }
+
+        /*
+         * Simple test case to show how to use the API
+         */
+        [Test]
+        public override void TestDocValuesSimple()
+        {
+            base.TestDocValuesSimple();
+        }
+
+        [Test]
+        public override void TestRandomSortedBytes()
+        {
+            base.TestRandomSortedBytes();
+        }
+
+        [Test]
+        public override void TestBooleanNumericsVsStoredFields()
+        {
+            base.TestBooleanNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteNumericsVsStoredFields()
+        {
+            base.TestByteNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteMissingVsFieldCache()
+        {
+            base.TestByteMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestShortNumericsVsStoredFields()
+        {
+            base.TestShortNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestShortMissingVsFieldCache()
+        {
+            base.TestShortMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestIntNumericsVsStoredFields()
+        {
+            base.TestIntNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestIntMissingVsFieldCache()
+        {
+            base.TestIntMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestLongNumericsVsStoredFields()
+        {
+            base.TestLongNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestLongMissingVsFieldCache()
+        {
+            base.TestLongMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestBinaryFixedLengthVsStoredFields()
+        {
+            base.TestBinaryFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestBinaryVariableLengthVsStoredFields()
+        {
+            base.TestBinaryVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsStoredFields()
+        {
+            base.TestSortedFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsFieldCache()
+        {
+            base.TestSortedFixedLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsFieldCache()
+        {
+            base.TestSortedVariableLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsStoredFields()
+        {
+            base.TestSortedVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetOneValue()
+        {
+            base.TestSortedSetOneValue();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoFields()
+        {
+            base.TestSortedSetTwoFields();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsMerged()
+        {
+            base.TestSortedSetTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValues()
+        {
+            base.TestSortedSetTwoValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValuesUnordered()
+        {
+            base.TestSortedSetTwoValuesUnordered();
+        }
+
+        [Test]
+        public override void TestSortedSetThreeValuesTwoDocs()
+        {
+            base.TestSortedSetThreeValuesTwoDocs();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissing()
+        {
+            base.TestSortedSetTwoDocumentsLastMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsLastMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissing()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetMergeAwayAllValues()
+        {
+            base.TestSortedSetMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTermsEnum()
+        {
+            base.TestSortedSetTermsEnum();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsUninvertedField()
+        {
+            base.TestSortedSetFixedLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsUninvertedField()
+        {
+            base.TestSortedSetVariableLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestGCDCompression()
+        {
+            base.TestGCDCompression();
+        }
+
+        [Test]
+        public override void TestZeros()
+        {
+            base.TestZeros();
+        }
+
+        [Test]
+        public override void TestZeroOrMin()
+        {
+            base.TestZeroOrMin();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissing()
+        {
+            base.TestTwoNumbersOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissingWithMerging()
+        {
+            base.TestTwoNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeNumbersOneMissingWithMerging()
+        {
+            base.TestThreeNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissing()
+        {
+            base.TestTwoBytesOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissingWithMerging()
+        {
+            base.TestTwoBytesOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeBytesOneMissingWithMerging()
+        {
+            base.TestThreeBytesOneMissingWithMerging();
+        }
+
+        // LUCENE-4853
+        [Test]
+        public override void TestHugeBinaryValues()
+        {
+            base.TestHugeBinaryValues();
+        }
+
+        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
+        [Test]
+        public override void TestHugeBinaryValueLimit()
+        {
+            base.TestHugeBinaryValueLimit();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads()
+        {
+            base.TestThreads();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (all types + missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads2()
+        {
+            base.TestThreads2();
+        }
+
+        // LUCENE-5218
+        [Test]
+        public override void TestEmptyBinaryValueOnPageSizes()
+        {
+            base.TestEmptyBinaryValueOnPageSizes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs
index 990e29c..0bfd3d7 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs
@@ -36,5 +36,68 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs
index 6f30a01..910584c 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs
@@ -35,5 +35,68 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs
index ddb99c6..eb47d6c 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs
@@ -35,5 +35,68 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs
index cac7e77..7e094fd 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs
@@ -35,5 +35,68 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs
index e9beed4..13afde6 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs
@@ -35,5 +35,68 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs
index 4f65807..33895b1 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs
@@ -40,5 +40,531 @@ namespace Lucene.Net.Codecs.Memory
         {
             return false;
         }
+
+
+        #region BaseCompressingDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestUniqueValuesCompression()
+        {
+            base.TestUniqueValuesCompression();
+        }
+
+        [Test]
+        public override void TestDateCompression()
+        {
+            base.TestDateCompression();
+        }
+
+        [Test]
+        public override void TestSingleBigValueCompression()
+        {
+            base.TestSingleBigValueCompression();
+        }
+
+        #endregion
+
+        #region BaseDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestOneNumber()
+        {
+            base.TestOneNumber();
+        }
+
+        [Test]
+        public override void TestOneFloat()
+        {
+            base.TestOneFloat();
+        }
+
+        [Test]
+        public override void TestTwoNumbers()
+        {
+            base.TestTwoNumbers();
+        }
+
+        [Test]
+        public override void TestTwoBinaryValues()
+        {
+            base.TestTwoBinaryValues();
+        }
+
+        [Test]
+        public override void TestTwoFieldsMixed()
+        {
+            base.TestTwoFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed()
+        {
+            base.TestThreeFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed2()
+        {
+            base.TestThreeFieldsMixed2();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsNumeric()
+        {
+            base.TestTwoDocumentsNumeric();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsMerged()
+        {
+            base.TestTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestBigNumericRange()
+        {
+            base.TestBigNumericRange();
+        }
+
+        [Test]
+        public override void TestBigNumericRange2()
+        {
+            base.TestBigNumericRange2();
+        }
+
+        [Test]
+        public override void TestBytes()
+        {
+            base.TestBytes();
+        }
+
+        [Test]
+        public override void TestBytesTwoDocumentsMerged()
+        {
+            base.TestBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedBytes()
+        {
+            base.TestSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocuments()
+        {
+            base.TestSortedBytesTwoDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesThreeDocuments()
+        {
+            base.TestSortedBytesThreeDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocumentsMerged()
+        {
+            base.TestSortedBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedMergeAwayAllValues()
+        {
+            base.TestSortedMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestBytesWithNewline()
+        {
+            base.TestBytesWithNewline();
+        }
+
+        [Test]
+        public override void TestMissingSortedBytes()
+        {
+            base.TestMissingSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedTermsEnum()
+        {
+            base.TestSortedTermsEnum();
+        }
+
+        [Test]
+        public override void TestEmptySortedBytes()
+        {
+            base.TestEmptySortedBytes();
+        }
+
+        [Test]
+        public override void TestEmptyBytes()
+        {
+            base.TestEmptyBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalBytes()
+        {
+            base.TestVeryLargeButLegalBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalSortedBytes()
+        {
+            base.TestVeryLargeButLegalSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytes()
+        {
+            base.TestCodecUsesOwnBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytes()
+        {
+            base.TestCodecUsesOwnSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytesEachTime()
+        {
+            base.TestCodecUsesOwnBytesEachTime();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytesEachTime()
+        {
+            base.TestCodecUsesOwnSortedBytesEachTime();
+        }
+
+        /*
+         * Simple test case to show how to use the API
+         */
+        [Test]
+        public override void TestDocValuesSimple()
+        {
+            base.TestDocValuesSimple();
+        }
+
+        [Test]
+        public override void TestRandomSortedBytes()
+        {
+            base.TestRandomSortedBytes();
+        }
+
+        [Test]
+        public override void TestBooleanNumericsVsStoredFields()
+        {
+            base.TestBooleanNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteNumericsVsStoredFields()
+        {
+            base.TestByteNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteMissingVsFieldCache()
+        {
+            base.TestByteMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestShortNumericsVsStoredFields()
+        {
+            base.TestShortNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestShortMissingVsFieldCache()
+        {
+            base.TestShortMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestIntNumericsVsStoredFields()
+        {
+            base.TestIntNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestIntMissingVsFieldCache()
+        {
+            base.TestIntMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestLongNumericsVsStoredFields()
+        {
+            base.TestLongNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestLongMissingVsFieldCache()
+        {
+            base.TestLongMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestBinaryFixedLengthVsStoredFields()
+        {
+            base.TestBinaryFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestBinaryVariableLengthVsStoredFields()
+        {
+            base.TestBinaryVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsStoredFields()
+        {
+            base.TestSortedFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsFieldCache()
+        {
+            base.TestSortedFixedLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsFieldCache()
+        {
+            base.TestSortedVariableLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsStoredFields()
+        {
+            base.TestSortedVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetOneValue()
+        {
+            base.TestSortedSetOneValue();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoFields()
+        {
+            base.TestSortedSetTwoFields();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsMerged()
+        {
+            base.TestSortedSetTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValues()
+        {
+            base.TestSortedSetTwoValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValuesUnordered()
+        {
+            base.TestSortedSetTwoValuesUnordered();
+        }
+
+        [Test]
+        public override void TestSortedSetThreeValuesTwoDocs()
+        {
+            base.TestSortedSetThreeValuesTwoDocs();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissing()
+        {
+            base.TestSortedSetTwoDocumentsLastMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsLastMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissing()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetMergeAwayAllValues()
+        {
+            base.TestSortedSetMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTermsEnum()
+        {
+            base.TestSortedSetTermsEnum();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsUninvertedField()
+        {
+            base.TestSortedSetFixedLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsUninvertedField()
+        {
+            base.TestSortedSetVariableLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestGCDCompression()
+        {
+            base.TestGCDCompression();
+        }
+
+        [Test]
+        public override void TestZeros()
+        {
+            base.TestZeros();
+        }
+
+        [Test]
+        public override void TestZeroOrMin()
+        {
+            base.TestZeroOrMin();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissing()
+        {
+            base.TestTwoNumbersOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissingWithMerging()
+        {
+            base.TestTwoNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeNumbersOneMissingWithMerging()
+        {
+            base.TestThreeNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissing()
+        {
+            base.TestTwoBytesOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissingWithMerging()
+        {
+            base.TestTwoBytesOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeBytesOneMissingWithMerging()
+        {
+            base.TestThreeBytesOneMissingWithMerging();
+        }
+
+        // LUCENE-4853
+        [Test]
+        public override void TestHugeBinaryValues()
+        {
+            base.TestHugeBinaryValues();
+        }
+
+        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
+        [Test]
+        public override void TestHugeBinaryValueLimit()
+        {
+            base.TestHugeBinaryValueLimit();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads()
+        {
+            base.TestThreads();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (all types + missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads2()
+        {
+            base.TestThreads2();
+        }
+
+        // LUCENE-5218
+        [Test]
+        public override void TestEmptyBinaryValueOnPageSizes()
+        {
+            base.TestEmptyBinaryValueOnPageSizes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs
index 938ae52..0f35370 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs
@@ -36,5 +36,67 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs
index cd6f9f2..19cd845 100644
--- a/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs
@@ -36,5 +36,68 @@ namespace Lucene.Net.Codecs.Pulsing
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs
index c374053..d1c5f29 100644
--- a/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs
@@ -37,5 +37,67 @@ namespace Lucene.Net.Codecs.Sep
                 return codec;
             }
         }
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
index 497e26f..bdd6d82 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
@@ -42,5 +42,505 @@ namespace Lucene.Net.Codecs.SimpleText
                 return codec;
             }
         }
+
+        #region BaseDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestOneNumber()
+        {
+            base.TestOneNumber();
+        }
+
+        [Test]
+        public override void TestOneFloat()
+        {
+            base.TestOneFloat();
+        }
+
+        [Test]
+        public override void TestTwoNumbers()
+        {
+            base.TestTwoNumbers();
+        }
+
+        [Test]
+        public override void TestTwoBinaryValues()
+        {
+            base.TestTwoBinaryValues();
+        }
+
+        [Test]
+        public override void TestTwoFieldsMixed()
+        {
+            base.TestTwoFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed()
+        {
+            base.TestThreeFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed2()
+        {
+            base.TestThreeFieldsMixed2();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsNumeric()
+        {
+            base.TestTwoDocumentsNumeric();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsMerged()
+        {
+            base.TestTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestBigNumericRange()
+        {
+            base.TestBigNumericRange();
+        }
+
+        [Test]
+        public override void TestBigNumericRange2()
+        {
+            base.TestBigNumericRange2();
+        }
+
+        [Test]
+        public override void TestBytes()
+        {
+            base.TestBytes();
+        }
+
+        [Test]
+        public override void TestBytesTwoDocumentsMerged()
+        {
+            base.TestBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedBytes()
+        {
+            base.TestSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocuments()
+        {
+            base.TestSortedBytesTwoDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesThreeDocuments()
+        {
+            base.TestSortedBytesThreeDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocumentsMerged()
+        {
+            base.TestSortedBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedMergeAwayAllValues()
+        {
+            base.TestSortedMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestBytesWithNewline()
+        {
+            base.TestBytesWithNewline();
+        }
+
+        [Test]
+        public override void TestMissingSortedBytes()
+        {
+            base.TestMissingSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedTermsEnum()
+        {
+            base.TestSortedTermsEnum();
+        }
+
+        [Test]
+        public override void TestEmptySortedBytes()
+        {
+            base.TestEmptySortedBytes();
+        }
+
+        [Test]
+        public override void TestEmptyBytes()
+        {
+            base.TestEmptyBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalBytes()
+        {
+            base.TestVeryLargeButLegalBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalSortedBytes()
+        {
+            base.TestVeryLargeButLegalSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytes()
+        {
+            base.TestCodecUsesOwnBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytes()
+        {
+            base.TestCodecUsesOwnSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytesEachTime()
+        {
+            base.TestCodecUsesOwnBytesEachTime();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytesEachTime()
+        {
+            base.TestCodecUsesOwnSortedBytesEachTime();
+        }
+
+        /*
+         * Simple test case to show how to use the API
+         */
+        [Test]
+        public override void TestDocValuesSimple()
+        {
+            base.TestDocValuesSimple();
+        }
+
+        [Test]
+        public override void TestRandomSortedBytes()
+        {
+            base.TestRandomSortedBytes();
+        }
+
+        [Test]
+        public override void TestBooleanNumericsVsStoredFields()
+        {
+            base.TestBooleanNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteNumericsVsStoredFields()
+        {
+            base.TestByteNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteMissingVsFieldCache()
+        {
+            base.TestByteMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestShortNumericsVsStoredFields()
+        {
+            base.TestShortNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestShortMissingVsFieldCache()
+        {
+            base.TestShortMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestIntNumericsVsStoredFields()
+        {
+            base.TestIntNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestIntMissingVsFieldCache()
+        {
+            base.TestIntMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestLongNumericsVsStoredFields()
+        {
+            base.TestLongNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestLongMissingVsFieldCache()
+        {
+            base.TestLongMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestBinaryFixedLengthVsStoredFields()
+        {
+            base.TestBinaryFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestBinaryVariableLengthVsStoredFields()
+        {
+            base.TestBinaryVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsStoredFields()
+        {
+            base.TestSortedFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsFieldCache()
+        {
+            base.TestSortedFixedLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsFieldCache()
+        {
+            base.TestSortedVariableLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsStoredFields()
+        {
+            base.TestSortedVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetOneValue()
+        {
+            base.TestSortedSetOneValue();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoFields()
+        {
+            base.TestSortedSetTwoFields();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsMerged()
+        {
+            base.TestSortedSetTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValues()
+        {
+            base.TestSortedSetTwoValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValuesUnordered()
+        {
+            base.TestSortedSetTwoValuesUnordered();
+        }
+
+        [Test]
+        public override void TestSortedSetThreeValuesTwoDocs()
+        {
+            base.TestSortedSetThreeValuesTwoDocs();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissing()
+        {
+            base.TestSortedSetTwoDocumentsLastMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsLastMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissing()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetMergeAwayAllValues()
+        {
+            base.TestSortedSetMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTermsEnum()
+        {
+            base.TestSortedSetTermsEnum();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsUninvertedField()
+        {
+            base.TestSortedSetFixedLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsUninvertedField()
+        {
+            base.TestSortedSetVariableLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestGCDCompression()
+        {
+            base.TestGCDCompression();
+        }
+
+        [Test]
+        public override void TestZeros()
+        {
+            base.TestZeros();
+        }
+
+        [Test]
+        public override void TestZeroOrMin()
+        {
+            base.TestZeroOrMin();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissing()
+        {
+            base.TestTwoNumbersOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissingWithMerging()
+        {
+            base.TestTwoNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeNumbersOneMissingWithMerging()
+        {
+            base.TestThreeNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissing()
+        {
+            base.TestTwoBytesOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissingWithMerging()
+        {
+            base.TestTwoBytesOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeBytesOneMissingWithMerging()
+        {
+            base.TestThreeBytesOneMissingWithMerging();
+        }
+
+        // LUCENE-4853
+        [Test]
+        public override void TestHugeBinaryValues()
+        {
+            base.TestHugeBinaryValues();
+        }
+
+        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
+        [Test]
+        public override void TestHugeBinaryValueLimit()
+        {
+            base.TestHugeBinaryValueLimit();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads()
+        {
+            base.TestThreads();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (all types + missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads2()
+        {
+            base.TestThreads2();
+        }
+
+        // LUCENE-5218
+        [Test]
+        public override void TestEmptyBinaryValueOnPageSizes()
+        {
+            base.TestEmptyBinaryValueOnPageSizes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
index a8cb997..96e6cb8 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
@@ -34,5 +34,68 @@ namespace Lucene.Net.Codecs.SimpleText
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
index 5dab469..1d3ae31 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
@@ -31,5 +31,93 @@ namespace Lucene.Net.Codecs.SimpleText
                 return new SimpleTextCodec();
             }
         }
+
+        #region BaseStoredFieldsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestRandomStoredFields()
+        {
+            base.TestRandomStoredFields();
+        }
+
+        [Test]
+        // LUCENE-1727: make sure doc fields are stored in order
+        public override void TestStoredFieldsOrder()
+        {
+            base.TestStoredFieldsOrder();
+        }
+
+        [Test]
+        // LUCENE-1219
+        public override void TestBinaryFieldOffsetLength()
+        {
+            base.TestBinaryFieldOffsetLength();
+        }
+
+        [Test]
+        public override void TestNumericField()
+        {
+            base.TestNumericField();
+        }
+
+        [Test]
+        public override void TestIndexedBit()
+        {
+            base.TestIndexedBit();
+        }
+
+        [Test]
+        public override void TestReadSkip()
+        {
+            base.TestReadSkip();
+        }
+
+        [Test, Timeout(300000)]
+        public override void TestEmptyDocs()
+        {
+            base.TestEmptyDocs();
+        }
+
+        [Test, Timeout(300000)]
+        public override void TestConcurrentReads()
+        {
+            base.TestConcurrentReads();
+        }
+
+        [Test]
+        public override void TestWriteReadMerge()
+        {
+            base.TestWriteReadMerge();
+        }
+
+        [Test, LongRunningTest]
+        public override void TestBigDocuments()
+        {
+            base.TestBigDocuments();
+        }
+
+        [Test]
+        public override void TestBulkMergeWithDeletes()
+        {
+            base.TestBulkMergeWithDeletes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
index a5fe4c5..527deea 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
@@ -30,5 +30,71 @@ namespace Lucene.Net.Codecs.SimpleText
                 return new SimpleTextCodec();
             }
         }
+
+        #region BaseTermVectorsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        // only one doc with vectors
+        public override void TestRareVectors()
+        {
+            base.TestRareVectors();
+        }
+
+        [Test]
+        public override void TestHighFreqs()
+        {
+            base.TestHighFreqs();
+        }
+
+        [Test]
+        public override void TestLotsOfFields()
+        {
+            base.TestLotsOfFields();
+        }
+
+        [Test, Timeout(300000)]
+        // different options for the same field
+        public override void TestMixedOptions()
+        {
+            base.TestMixedOptions();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        [Test]
+        public override void TestMerge()
+        {
+            base.TestMerge();
+        }
+
+        [Test]
+        // run random tests from different threads to make sure the per-thread clones
+        // don't share mutable data
+        public override void TestClone()
+        {
+            base.TestClone();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs
index 164f275..fdc0e95 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs
@@ -87,5 +87,61 @@ namespace Lucene.Net.Index.Sorter
             reader = SlowCompositeReaderWrapper.Wrap(DirectoryReader.Open(dir));
             assertFalse("index should not have deletions", reader.HasDeletions);
         }
+
+
+        #region SorterTestBase
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestBinaryDocValuesField()
+        {
+            base.TestBinaryDocValuesField();
+        }
+
+        [Test]
+        public override void TestDocsAndPositionsEnum()
+        {
+            base.TestDocsAndPositionsEnum();
+        }
+
+        [Test]
+        public override void TestDocsEnum()
+        {
+            base.TestDocsEnum();
+        }
+
+        [Test]
+        public override void TestNormValues()
+        {
+            base.TestNormValues();
+        }
+
+        [Test]
+        public override void TestNumericDocValuesField()
+        {
+            base.TestNumericDocValuesField();
+        }
+
+        [Test]
+        public override void TestSortedDocValuesField()
+        {
+            base.TestSortedDocValuesField();
+        }
+
+        [Test]
+        public override void TestSortedSetDocValuesField()
+        {
+            base.TestSortedSetDocValuesField();
+        }
+
+        [Test]
+        public override void TestTermVectors()
+        {
+            base.TestTermVectors();
+        }
+
+        #endregion
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
index 2cff135..99623ad 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
@@ -230,7 +230,7 @@ namespace Lucene.Net.Index.Sorter
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBinaryDocValuesField()
         {
             BinaryDocValues dv = reader.GetBinaryDocValues(BINARY_DV_FIELD);
@@ -242,7 +242,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDocsAndPositionsEnum()
         {
             TermsEnum termsEnum = reader.Terms(DOC_POSITIONS_FIELD).Iterator(null);
@@ -322,7 +322,7 @@ namespace Lucene.Net.Index.Sorter
             return bits;
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDocsEnum()
         {
             Bits mappedLiveDocs = RandomLiveDocs(reader.MaxDoc);
@@ -369,7 +369,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestNormValues()
         {
             NumericDocValues dv = reader.GetNormValues(NORMS_FIELD);
@@ -380,7 +380,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestNumericDocValuesField()
         {
             NumericDocValues dv = reader.GetNumericDocValues(NUMERIC_DV_FIELD);
@@ -391,7 +391,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedDocValuesField()
         {
             SortedDocValues dv = reader.GetSortedDocValues(SORTED_DV_FIELD);
@@ -404,7 +404,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetDocValuesField()
         {
             AssumeTrue("default codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -423,7 +423,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTermVectors()
         {
             int maxDoc = reader.MaxDoc;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs
index cb2b38e..93b234a 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs
@@ -79,5 +79,61 @@ namespace Lucene.Net.Index.Sorter
                 assertEquals("Cannot sort an index with a Sort that refers to the relevance score", e.Message);
             }
         }
+
+
+        #region SorterTestBase
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestBinaryDocValuesField()
+        {
+            base.TestBinaryDocValuesField();
+        }
+
+        [Test]
+        public override void TestDocsAndPositionsEnum()
+        {
+            base.TestDocsAndPositionsEnum();
+        }
+
+        [Test]
+        public override void TestDocsEnum()
+        {
+            base.TestDocsEnum();
+        }
+
+        [Test]
+        public override void TestNormValues()
+        {
+            base.TestNormValues();
+        }
+
+        [Test]
+        public override void TestNumericDocValuesField()
+        {
+            base.TestNumericDocValuesField();
+        }
+
+        [Test]
+        public override void TestSortedDocValuesField()
+        {
+            base.TestSortedDocValuesField();
+        }
+
+        [Test]
+        public override void TestSortedSetDocValuesField()
+        {
+            base.TestSortedSetDocValuesField();
+        }
+
+        [Test]
+        public override void TestTermVectors()
+        {
+            base.TestTermVectors();
+        }
+
+        #endregion
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs
index 2b71216..577f27b 100644
--- a/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs
@@ -551,5 +551,255 @@ namespace Lucene.Net.QueryParsers.Classic
             assertEquals(expected, qp.Parse("\"\u4e2d\u56fd\"~3^2"));
         }
 
+
+        #region QueryParserTestBase
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestCJK()
+        {
+            base.TestCJK();
+        }
+
+        [Test]
+        public override void TestCJKTerm()
+        {
+            base.TestCJKTerm();
+        }
+
+        [Test]
+        public override void TestCJKBoostedTerm()
+        {
+            base.TestCJKBoostedTerm();
+        }
+
+        [Test]
+        public override void TestCJKPhrase()
+        {
+            base.TestCJKPhrase();
+        }
+
+        [Test]
+        public override void TestCJKBoostedPhrase()
+        {
+            base.TestCJKBoostedPhrase();
+        }
+
+        [Test]
+        public override void TestCJKSloppyPhrase()
+        {
+            base.TestCJKSloppyPhrase();
+        }
+
+        [Test]
+        public override void TestAutoGeneratePhraseQueriesOn()
+        {
+            base.TestAutoGeneratePhraseQueriesOn();
+        }
+
+        [Test]
+        public override void TestSimple()
+        {
+            base.TestSimple();
+        }
+
+        [Test]
+        public override void TestOperatorVsWhitespace()
+        {
+            base.TestOperatorVsWhitespace();
+        }
+
+        [Test]
+        public override void TestPunct()
+        {
+            base.TestPunct();
+        }
+
+        [Test]
+        public override void TestSlop()
+        {
+            base.TestSlop();
+        }
+
+        [Test]
+        public override void TestNumber()
+        {
+            base.TestNumber();
+        }
+
+        [Test]
+        public override void TestWildcard()
+        {
+            base.TestWildcard();
+        }
+
+        [Test]
+        public override void TestLeadingWildcardType()
+        {
+            base.TestLeadingWildcardType();
+        }
+
+        [Test]
+        public override void TestQPA()
+        {
+            base.TestQPA();
+        }
+
+        [Test]
+        public override void TestRange()
+        {
+            base.TestRange();
+        }
+
+        [Test]
+        public override void TestRangeWithPhrase()
+        {
+            base.TestRangeWithPhrase();
+        }
+
+        [Test]
+        public override void TestDateRange()
+        {
+            base.TestDateRange();
+        }
+
+        [Test]
+        public override void TestEscaped()
+        {
+            base.TestEscaped();
+        }
+
+        [Test]
+        public override void TestEscapedVsQuestionMarkAsWildcard()
+        {
+            base.TestEscapedVsQuestionMarkAsWildcard();
+        }
+
+        [Test]
+        public override void TestQueryStringEscaping()
+        {
+            base.TestQueryStringEscaping();
+        }
+
+        [Test]
+        public override void TestTabNewlineCarriageReturn()
+        {
+            base.TestTabNewlineCarriageReturn();
+        }
+
+        [Test]
+        public override void TestSimpleDAO()
+        {
+            base.TestSimpleDAO();
+        }
+
+        [Test]
+        public override void TestBoost()
+        {
+            base.TestBoost();
+        }
+
+        [Test]
+        public override void TestException()
+        {
+            base.TestException();
+        }
+
+        [Test]
+        public override void TestBooleanQuery()
+        {
+            base.TestBooleanQuery();
+        }
+
+        [Test]
+        public override void TestPrecedence()
+        {
+            base.TestPrecedence();
+        }
+
+        [Test]
+        public override void TestEscapedWildcard()
+        {
+            base.TestEscapedWildcard();
+        }
+
+        [Test]
+        public override void TestRegexps()
+        {
+            base.TestRegexps();
+        }
+
+        [Test]
+        public override void TestStopwords()
+        {
+            base.TestStopwords();
+        }
+
+        [Test]
+        public override void TestPositionIncrement()
+        {
+            base.TestPositionIncrement();
+        }
+
+        [Test]
+        public override void TestMatchAllDocs()
+        {
+            base.TestMatchAllDocs();
+        }
+
+        // LUCENE-2002: make sure defaults for StandardAnalyzer's
+        // enableStopPositionIncr & QueryParser's enablePosIncr
+        // "match"
+        [Test]
+        public override void TestPositionIncrements()
+        {
+            base.TestPositionIncrements();
+        }
+
+        [Test]
+        public override void TestCollatedRange()
+        {
+            base.TestCollatedRange();
+        }
+
+        [Test]
+        public override void TestDistanceAsEditsParsing()
+        {
+            base.TestDistanceAsEditsParsing();
+        }
+
+        [Test]
+        public override void TestPhraseQueryToString()
+        {
+            base.TestPhraseQueryToString();
+        }
+
+        [Test]
+        public override void TestParseWildcardAndPhraseQueries()
+        {
+            base.TestParseWildcardAndPhraseQueries();
+        }
+
+        [Test]
+        public override void TestPhraseQueryPositionIncrements()
+        {
+            base.TestPhraseQueryPositionIncrements();
+        }
+
+        [Test]
+        public override void TestMatchAllQueryParsing()
+        {
+            base.TestMatchAllQueryParsing();
+        }
+
+        [Test]
+        public override void TestNestedAndClausesFoo()
+        {
+            base.TestNestedAndClausesFoo();
+        }
+
+        #endregion
     }
 }


[37/58] lucenenet git commit: QueryParser.Flexible refactor: Inherited IRangeQueryNode from IAbstractRangeQueryNode

Posted by ni...@apache.org.
QueryParser.Flexible refactor: Inherited IRangeQueryNode<IFieldableNode> from IAbstractRangeQueryNode


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

Branch: refs/heads/master
Commit: 70725eda60d1c4cd1a9813d82b108a82043c4665
Parents: 1d4a685
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Dec 5 20:06:41 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Dec 5 20:13:47 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Standard/Nodes/AbstractRangeQueryNode.cs            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/70725eda/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
index 8d01e5b..e3170a4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
@@ -28,7 +28,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
     /// This class should be extended by nodes intending to represent range queries.
     /// </summary>
     /// <typeparam name="T">the type of the range query bounds (lower and upper)</typeparam>
-    public class AbstractRangeQueryNode<T> : QueryNodeImpl, IRangeQueryNode<IFieldableNode>, IAbstractRangeQueryNode where T : IFieldableNode /*IFieldValuePairQueryNode<?>*/
+    public class AbstractRangeQueryNode<T> : QueryNodeImpl, IAbstractRangeQueryNode where T : IFieldableNode /*IFieldValuePairQueryNode<?>*/
     { /*IRangeQueryNode<IFieldValuePairQueryNode<?>>*/
 
         private bool lowerInclusive, upperInclusive;
@@ -236,6 +236,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
     /// an AbstractRangeQueryNode without referring to 
     /// its generic closing type
     /// </summary>
-    public interface IAbstractRangeQueryNode
+    public interface IAbstractRangeQueryNode : IRangeQueryNode<IFieldableNode>
     { }
 }


[29/58] lucenenet git commit: QueryParser.Flexible: Remove and sort usings

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
index 0b03046..adbb0b0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
@@ -1,10 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
index f499b83..6d24af3 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
@@ -2,11 +2,6 @@
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.Support;
 using Lucene.Net.Util;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
index e746f8d..05b4e59 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
@@ -1,9 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
index a4a35c1..3aaf388 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
index 622f005..4d7eb54 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
@@ -1,11 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
index 1bedab8..9194e5b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
@@ -1,8 +1,4 @@
 \ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
index 8bddaca..600c60e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
@@ -4,11 +4,8 @@ using Lucene.Net.QueryParsers.Flexible.Core.Util;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.Support;
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
index 4c88c80..4c1f9d8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
@@ -1,9 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+\ufeffusing System.IO;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
index b624728..3839f3c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
@@ -2,10 +2,7 @@
 using Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using System;
-using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
index b1f11dd..323c0a5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
@@ -8,9 +8,6 @@ using System;
 using System.Collections.Generic;
 using System.Globalization;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
index c1d4beb..ae33da4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
     public static class RegexpToken
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
index 04f77ff..12a2e63 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
@@ -1,9 +1,5 @@
 \ufeffusing System;
-using System.Collections.Generic;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
index 58d2e30..14b69b5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
@@ -1,8 +1,4 @@
 \ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
@@ -13,13 +9,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
     public class Token
     {
         /**
-       * The version identifier for this Serializable class.
-       * Increment only if the <i>serialized</i> form of the
-       * class changes.
-       */
-        private static readonly long serialVersionUID = 1L;
-
-        /**
          * An integer that describes the kind of this token.  This numbering
          * system is determined by JavaCCParser, and a table of these numbers is
          * stored in the file ...Constants.java.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
index 9c609a1..b707076 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
@@ -1,9 +1,6 @@
 \ufeffusing Lucene.Net.Support;
 using System;
-using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
index c40f5b2..a350357 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
@@ -7,12 +7,7 @@ using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
-using Lucene.Net.Support;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
index 668282c..58f37c8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
@@ -10,9 +10,6 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
index 090eb76..65dbbba 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
@@ -5,9 +5,6 @@ using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
index 38b7873..a3c2b82 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
@@ -1,11 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
index c9ebf8b..953736f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
@@ -3,11 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Core.Util;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
index 18bc691..34ee4c0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
@@ -3,11 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
index 0c1f20a..1d8eb41 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
@@ -4,9 +4,6 @@ using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
index 9f7f4eb..1d7bd17 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
@@ -6,8 +6,6 @@ using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
index 9a4528e..3b0cbda 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
@@ -4,12 +4,8 @@ using Lucene.Net.QueryParsers.Flexible.Core.Util;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.Support;
-using System;
 using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
index 342b17f..7418afa 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
@@ -1,10 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
index b0443e9..3a0d805 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
@@ -3,9 +3,6 @@ using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
index 3a5c506..0617497 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
@@ -5,9 +5,6 @@ using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.Search;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
index 114aded..51a6334 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
@@ -10,10 +10,6 @@ using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;
-using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
index 81c2849..9bedaa7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
@@ -11,10 +11,6 @@ using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;
-using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
index 2f9ae47..8ba910e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
@@ -3,11 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Core.Util;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.Support;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
index 066807b..ebefea8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
@@ -1,11 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
index d961085..ae32415 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
@@ -1,11 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.Support;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
index 35b4491..96e7ca1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
@@ -1,10 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
index 8590a69..f08618b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
@@ -8,9 +8,6 @@ using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
index 1fd1b5d..b1a4c63 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
@@ -3,11 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Core.Util;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.Support;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
index 0afd0de..16c3574 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
@@ -1,10 +1,7 @@
 \ufeffusing Lucene.Net.Analysis;
 using Lucene.Net.Search;
 using System;
-using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index 2f421d6..76d6d81 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -10,9 +10,6 @@ using Lucene.Net.Search;
 using System;
 using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
index 37e3a83..c6a62d6 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
@@ -4,10 +4,6 @@ using Lucene.Net.QueryParsers.Flexible.Core.Util;
 using Lucene.Net.Util;
 using NUnit.Framework;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
index 103bf37..9b90bb8 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
@@ -2,10 +2,6 @@
 using Lucene.Net.Util;
 using NUnit.Framework;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
index c1344e3..bc341a0 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
@@ -1,8 +1,4 @@
 \ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
index 090adce..e13e451 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
@@ -1,11 +1,7 @@
 \ufeffusing Lucene.Net.Util;
 using NUnit.Framework;
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
index 677582c..76b8c8a 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
@@ -13,9 +13,6 @@ using System;
 using System.Collections.Generic;
 using System.Globalization;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Precedence
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
index aa1f48d..a2d4d31 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
@@ -3,11 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Builders;
 using Lucene.Net.Search;
 using Lucene.Net.Search.Spans;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
index 68870e8..dcb7640 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
@@ -1,14 +1,8 @@
 \ufeffusing Lucene.Net.Index;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Builders;
 using Lucene.Net.Search;
 using Lucene.Net.Search.Spans;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
index 5f034ac..43d7c2c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
index 4d6fd30..f78e573 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
@@ -2,11 +2,6 @@
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Builders;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
index 4086679..fef23ae 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
@@ -3,11 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Messages;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
index a9ca6aa..b396e1f 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
@@ -8,10 +8,6 @@ using Lucene.Net.Search.Spans;
 using Lucene.Net.Util;
 using NUnit.Framework;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
index 75bb404..c5257eb 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
@@ -7,10 +7,6 @@ using Lucene.Net.Search.Spans;
 using Lucene.Net.Util;
 using NUnit.Framework;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
index 90cb2ac..712190b 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.Util;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
index b8e63a8..9c69958 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
@@ -1,8 +1,4 @@
 \ufeffusing Lucene.Net.Util;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
index 5b80585..d109aae 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
@@ -3,9 +3,6 @@ using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
index b91755c..a371710 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
@@ -4,11 +4,7 @@ using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using Lucene.Net.Util;
 using NUnit.Framework;
 using System;
-using System.Collections.Generic;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
index f5ce99c..af80c7c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
@@ -9,10 +9,6 @@ using NUnit.Framework;
 using System;
 using System.Collections.Generic;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using static Lucene.Net.Analysis.Analyzer;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index eaa2482..73227c8 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -1,5 +1,4 @@
-\ufeffusing Lucene.Net;
-using Lucene.Net.Analysis;
+\ufeffusing Lucene.Net.Analysis;
 using Lucene.Net.Documents;
 using Lucene.Net.Index;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
@@ -13,9 +12,7 @@ using NUnit.Framework;
 using System;
 using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
index e50676e..871b2c0 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -18,9 +18,6 @@ using System;
 using System.Collections.Generic;
 using System.Globalization;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
index 3e92fff..59c37c0 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
@@ -1,20 +1,15 @@
 \ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.Documents;
+using Lucene.Net.Index;
 using Lucene.Net.QueryParsers.Flexible.Core;
-using Lucene.Net.QueryParsers.Flexible.Standard;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using Lucene.Net.QueryParsers.Util;
 using Lucene.Net.Search;
 using Lucene.Net.Support;
+using NUnit.Framework;
 using System;
-using System.Collections.Generic;
 using System.Diagnostics;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Lucene.Net.Documents;
 using System.IO;
-using Lucene.Net.Index;
-using Lucene.Net.QueryParsers.Flexible.Standard.Config;
-using NUnit.Framework;
 using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard


[58/58] lucenenet git commit: HACK: (4th) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context.

Posted by ni...@apache.org.
HACK: (4th) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context.


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

Branch: refs/heads/master
Commit: 701b9ed209c3df0344fa8d044a8752b92ccfbc9e
Parents: ee83c39
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Dec 6 21:20:22 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Dec 6 21:26:22 2016 +0700

----------------------------------------------------------------------
 .../BaseCompressingDocValuesFormatTestCase.cs   |   3 +
 .../Index/BaseDocValuesFormatTestCase.cs        | 156 +++---
 .../Index/BaseIndexFileFormatTestCase.cs        |   2 +-
 .../Index/BasePostingsFormatTestCase.cs         |  14 +-
 .../Index/BaseStoredFieldsFormatTestCase.cs     |  22 +-
 .../Index/BaseTermVectorsFormatTestCase.cs      |  14 +-
 .../Util/BaseDocIdSetTestCase.cs                |  10 +-
 .../BlockTerms/TestFixedGapPostingsFormat.cs    |  63 +++
 .../Bloom/TestBloomPostingsFormat.cs            |  63 +++
 .../DiskDv/TestDiskDocValuesFormat.cs           | 526 ++++++++++++++++++
 .../IntBlock/TestFixedIntBlockPostingsFormat.cs |  63 +++
 .../TestVariableIntBlockPostingsFormat.cs       |  63 +++
 .../Memory/TestDirectDocValuesFormat.cs         | 501 ++++++++++++++++++
 .../Memory/TestDirectPostingsFormat.cs          |  63 +++
 .../Memory/TestFSTOrdPostingsFormat.cs          |  63 +++
 .../Memory/TestFSTOrdPulsing41PostingsFormat.cs |  63 +++
 .../Memory/TestFSTPostingsFormat.cs             |  63 +++
 .../Memory/TestFSTPulsing41PostingsFormat.cs    |  63 +++
 .../Memory/TestMemoryDocValuesFormat.cs         | 526 ++++++++++++++++++
 .../Memory/TestMemoryPostingsFormat.cs          |  62 +++
 .../Pulsing/TestPulsingPostingsFormat.cs        |  63 +++
 .../Sep/TestSepPostingsFormat.cs                |  62 +++
 .../SimpleText/TestSimpleTextDocValuesFormat.cs | 500 ++++++++++++++++++
 .../SimpleText/TestSimpleTextPostingsFormat.cs  |  63 +++
 .../TestSimpleTextStoredFieldsFormat.cs         |  88 ++++
 .../TestSimpleTextTermVectorsFormat.cs          |  66 +++
 .../Index/Sorter/IndexSortingTest.cs            |  56 ++
 .../Index/Sorter/SorterTestBase.cs              |  16 +-
 .../Index/Sorter/SortingAtomicReaderTest.cs     |  56 ++
 .../Classic/TestQueryParser.cs                  | 250 +++++++++
 .../Ext/TestExtendableQueryParser.cs            | 369 +++++++++++++
 .../Flexible/Standard/TestStandardQP.cs         | 215 ++++++++
 .../Compressing/AbstractTestCompressionMode.cs  |  14 +-
 .../AbstractTestLZ4CompressionMode.cs           |   8 +-
 .../TestCompressingStoredFieldsFormat.cs        |  89 ++++
 .../TestCompressingTermVectorsFormat.cs         |  67 +++
 .../Compressing/TestFastCompressionMode.cs      |  81 +++
 .../Compressing/TestFastDecompressionMode.cs    |  81 +++
 .../Compressing/TestHighCompressionMode.cs      |  50 ++
 .../Lucene3x/TestLucene3xPostingsFormat.cs      |  63 +++
 .../Lucene3x/TestLucene3xStoredFieldsFormat.cs  |  84 +++
 .../Lucene3x/TestLucene3xTermVectorsFormat.cs   |  67 +++
 .../Lucene40/TestLucene40DocValuesFormat.cs     | 501 ++++++++++++++++++
 .../Lucene40/TestLucene40PostingsFormat.cs      |  63 +++
 .../Lucene40/TestLucene40StoredFieldsFormat.cs  |  89 ++++
 .../Lucene40/TestLucene40TermVectorsFormat.cs   |  67 +++
 .../Codecs/Lucene41/TestBlockPostingsFormat.cs  |  65 +++
 .../Lucene41/TestLucene41StoredFieldsFormat.cs  |  89 ++++
 .../Lucene42/TestLucene42DocValuesFormat.cs     | 526 ++++++++++++++++++
 .../Lucene45/TestLucene45DocValuesFormat.cs     | 527 +++++++++++++++++++
 .../Perfield/TestPerFieldDocValuesFormat.cs     | 501 ++++++++++++++++++
 .../Perfield/TestPerFieldPostingsFormat.cs      |  51 ++
 .../core/Index/TestDocValuesFormat.cs           | 503 ++++++++++++++++++
 .../core/Index/TestLogMergePolicy.cs            |  15 +
 .../core/Index/TestNumericDocValuesUpdates.cs   |   2 +-
 .../TestPersistentSnapshotDeletionPolicy.cs     |  50 ++
 .../core/Index/TestPostingsFormat.cs            |  50 ++
 .../core/Index/TestStoredFieldsFormat.cs        |  83 +++
 .../core/Index/TestTermVectorsFormat.cs         |  55 ++
 .../core/Index/TestTieredMergePolicy.cs         |  14 +
 .../core/Search/BaseTestRangeFilter.cs          |   2 +-
 .../Spans/TestSpanExplanationsOfNonMatches.cs   | 214 ++++++++
 .../TestComplexExplanationsOfNonMatches.cs      | 160 ++++++
 .../core/Search/TestExplanations.cs             |   2 +-
 .../core/Search/TestFieldCacheRangeFilter.cs    |  14 +
 .../core/Search/TestFieldCacheRewriteMethod.cs  |  17 +
 .../core/Search/TestMultiTermConstantScore.cs   |  14 +
 .../core/Search/TestSimpleExplanations.cs       |  19 +
 .../TestSimpleExplanationsOfNonMatches.cs       | 452 ++++++++++++++++
 .../core/Search/TestTermRangeFilter.cs          |  14 +
 .../core/Support/TestLinkedHashMap.cs           |  80 +++
 .../core/Support/TestLurchTable.cs              | 176 ++++++-
 .../core/Util/BaseSortTestCase.cs               |  18 +-
 .../core/Util/Packed/TestEliasFanoDocIdSet.cs   |  45 ++
 .../core/Util/TestDocIdBitSet.cs                |  46 ++
 .../core/Util/TestFixedBitSet.cs                |  45 ++
 .../core/Util/TestInPlaceMergeSorter.cs         |  64 +++
 .../core/Util/TestIntroSorter.cs                |  64 +++
 .../core/Util/TestOpenBitSet.cs                 |  44 ++
 .../core/Util/TestPForDeltaDocIdSet.cs          |  44 ++
 src/Lucene.Net.Tests/core/Util/TestTimSorter.cs |  64 +++
 .../core/Util/TestWAH8DocIdSet.cs               |  44 ++
 82 files changed, 9545 insertions(+), 159 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
index d88ecb4..54d7fd5 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
@@ -45,6 +45,7 @@ namespace Lucene.Net.Index
             return size;
         }
 
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestUniqueValuesCompression()
         {
             Directory dir = new RAMDirectory();
@@ -85,6 +86,7 @@ namespace Lucene.Net.Index
             Assert.IsTrue(size2 < size1 + 8 * 20);
         }
 
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDateCompression()
         {
             Directory dir = new RAMDirectory();
@@ -115,6 +117,7 @@ namespace Lucene.Net.Index
             Assert.IsTrue(size2 < size1 + (PackedInts.BitsRequired(day) * 50) / 8);
         }
 
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSingleBigValueCompression()
         {
             Directory dir = new RAMDirectory();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
index ebc4c19..fa46ef8 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
@@ -84,7 +84,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestOneNumber()
         {
             Directory directory = NewDirectory();
@@ -119,7 +119,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestOneFloat()
         {
             Directory directory = NewDirectory();
@@ -154,7 +154,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwoNumbers()
         {
             Directory directory = NewDirectory();
@@ -192,7 +192,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwoBinaryValues()
         {
             Directory directory = NewDirectory();
@@ -233,7 +233,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwoFieldsMixed()
         {
             Directory directory = NewDirectory();
@@ -273,7 +273,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestThreeFieldsMixed()
         {
             Directory directory = NewDirectory();
@@ -318,7 +318,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestThreeFieldsMixed2()
         {
             Directory directory = NewDirectory();
@@ -363,7 +363,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwoDocumentsNumeric()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -392,7 +392,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwoDocumentsMerged()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -436,7 +436,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBigNumericRange()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -465,7 +465,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBigNumericRange2()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -494,7 +494,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -534,7 +534,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBytesTwoDocumentsMerged()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -580,7 +580,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -620,7 +620,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedBytesTwoDocuments()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -652,7 +652,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedBytesThreeDocuments()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -691,7 +691,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedBytesTwoDocumentsMerged()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -742,7 +742,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedMergeAwayAllValues()
         {
             Directory directory = NewDirectory();
@@ -784,7 +784,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBytesWithNewline()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -810,7 +810,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestMissingSortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -843,7 +843,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedTermsEnum()
         {
             Directory directory = NewDirectory();
@@ -916,7 +916,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestEmptySortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -948,7 +948,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestEmptyBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -980,7 +980,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestVeryLargeButLegalBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1009,7 +1009,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestVeryLargeButLegalSortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1037,7 +1037,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestCodecUsesOwnBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1065,7 +1065,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestCodecUsesOwnSortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1093,7 +1093,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestCodecUsesOwnBytesEachTime()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1128,7 +1128,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestCodecUsesOwnSortedBytesEachTime()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1166,7 +1166,7 @@ namespace Lucene.Net.Index
         /*
          * Simple test case to show how to use the API
          */
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDocValuesSimple()
         {
             Directory dir = NewDirectory();
@@ -1211,7 +1211,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestRandomSortedBytes()
         {
             Directory dir = NewDirectory();
@@ -1488,7 +1488,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBooleanNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1498,7 +1498,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestByteNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1508,7 +1508,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestByteMissingVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1518,7 +1518,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestShortNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1528,7 +1528,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestShortMissingVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1538,7 +1538,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestIntNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1548,7 +1548,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestIntMissingVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1558,7 +1558,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestLongNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1568,7 +1568,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestLongMissingVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1643,7 +1643,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBinaryFixedLengthVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1654,7 +1654,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBinaryVariableLengthVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1788,7 +1788,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedFixedLengthVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1799,7 +1799,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedFixedLengthVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1810,7 +1810,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedVariableLengthVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1820,7 +1820,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedVariableLengthVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1830,7 +1830,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetOneValue()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1858,7 +1858,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetTwoFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1896,7 +1896,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetTwoDocumentsMerged()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1941,7 +1941,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetTwoValues()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1974,7 +1974,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetTwoValuesUnordered()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2007,7 +2007,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetThreeValuesTwoDocs()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2059,7 +2059,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetTwoDocumentsLastMissing()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2094,7 +2094,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetTwoDocumentsLastMissingMerge()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2131,7 +2131,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetTwoDocumentsFirstMissing()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2167,7 +2167,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetTwoDocumentsFirstMissingMerge()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2204,7 +2204,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetMergeAwayAllValues()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2235,7 +2235,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetTermsEnum()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2391,7 +2391,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetFixedLengthVsStoredFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2403,7 +2403,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetVariableLengthVsStoredFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2414,7 +2414,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetFixedLengthSingleValuedVsStoredFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2426,7 +2426,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetVariableLengthSingleValuedVsStoredFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2648,7 +2648,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetFixedLengthVsUninvertedField()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2660,7 +2660,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSortedSetVariableLengthVsUninvertedField()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2671,7 +2671,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestGCDCompression()
         {
             int numIterations = AtLeast(1);
@@ -2704,13 +2704,13 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestZeros()
         {
             DoTestNumericsVsStoredFields(0, 0);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestZeroOrMin()
         {
             // try to make GCD compression fail if the format did not anticipate that
@@ -2738,7 +2738,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwoNumbersOneMissing()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2769,7 +2769,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwoNumbersOneMissingWithMerging()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2801,7 +2801,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestThreeNumbersOneMissingWithMerging()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2839,7 +2839,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwoBytesOneMissing()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2873,7 +2873,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestTwoBytesOneMissingWithMerging()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2908,7 +2908,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestThreeBytesOneMissingWithMerging()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2951,7 +2951,7 @@ namespace Lucene.Net.Index
         }
 
         // LUCENE-4853
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestHugeBinaryValues()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -3072,7 +3072,7 @@ namespace Lucene.Net.Index
         }
 
         // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestHugeBinaryValueLimit()
         {
             // We only test DVFormats that have a limit
@@ -3157,7 +3157,7 @@ namespace Lucene.Net.Index
         /// <summary>
         /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
         /// </summary>
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestThreads()
         {
             Directory dir = NewDirectory();
@@ -3276,7 +3276,7 @@ namespace Lucene.Net.Index
         /// <summary>
         /// Tests dv against stored fields with threads (all types + missing)
         /// </summary>
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestThreads2()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -3466,7 +3466,7 @@ namespace Lucene.Net.Index
         }
 
         // LUCENE-5218
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestEmptyBinaryValueOnPageSizes()
         {
             // Test larger and larger power-of-two sized values,

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
index d65a88b..9a49a6f 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
@@ -90,7 +90,7 @@ namespace Lucene.Net.Index
         /// <summary>
         /// The purpose of this test is to make sure that bulk merge doesn't accumulate useless data over runs.
         /// </summary>
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestMergeStability()
         {
             Directory dir = NewDirectory();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
index b9dfb8b..ffef930 100644
--- a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
@@ -1245,43 +1245,43 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test, Timeout(300000)]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDocsOnly()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_ONLY, false);
         }
 
-        [Test, Timeout(300000)]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDocsAndFreqs()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS, false);
         }
 
-        [Test, Timeout(300000)]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDocsAndFreqsAndPositions()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS, false);
         }
 
-        [Test, Timeout(300000)]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDocsAndFreqsAndPositionsAndPayloads()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS, true);
         }
 
-        [Test, Timeout(300000)]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDocsAndFreqsAndPositionsAndOffsets()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS, false);
         }
 
-        [Test, Timeout(300000)]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS, true);
         }
 
-        [Test, Timeout(300000)]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestRandom()
         {
             int iters = 5;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
index a63eb84..2acb5fa 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
@@ -74,7 +74,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestRandomStoredFields()
         {
             Directory dir = NewDirectory();
@@ -190,7 +190,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         // LUCENE-1727: make sure doc fields are stored in order
         public virtual void TestStoredFieldsOrder()
         {
@@ -227,7 +227,7 @@ namespace Lucene.Net.Index
             d.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         // LUCENE-1219
         public virtual void TestBinaryFieldOffsetLength()
         {
@@ -261,7 +261,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestNumericField()
         {
             Directory dir = NewDirectory();
@@ -346,7 +346,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestIndexedBit()
         {
             Directory dir = NewDirectory();
@@ -365,7 +365,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestReadSkip()
         {
             Directory dir = NewDirectory();
@@ -420,7 +420,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test, Timeout(300000)]
+        // [Test, Timeout(300000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestEmptyDocs()
         {
             Directory dir = NewDirectory();
@@ -449,7 +449,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test, Timeout(300000)]
+        // [Test, Timeout(300000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestConcurrentReads()
         {
             Directory dir = NewDirectory();
@@ -564,7 +564,7 @@ namespace Lucene.Net.Index
             return result;
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestWriteReadMerge()
         {
             // get another codec, other than the default: so we are merging segments across different codecs
@@ -670,7 +670,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test, LongRunningTest, Timeout(int.MaxValue)]
+        // [Test, LongRunningTest, Timeout(int.MaxValue)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBigDocuments()
         {
             // "big" as "much bigger than the chunk size"
@@ -747,7 +747,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestBulkMergeWithDeletes()
         {
             int numDocs = AtLeast(200);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
index 85207ad..5e5b20e 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
@@ -668,7 +668,7 @@ namespace Lucene.Net.Index
             return (new IndexSearcher(reader)).Search(new TermQuery(new Term("id", id)), 1).ScoreDocs[0].Doc;
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         // only one doc with vectors
         public virtual void TestRareVectors()
         {
@@ -715,7 +715,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestHighFreqs()
         {
             RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 3, 5);
@@ -737,7 +737,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test, LongRunningTest, Timeout(int.MaxValue)]
+        // [Test, LongRunningTest, Timeout(int.MaxValue)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestLotsOfFields()
         {
             RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 500, 10);
@@ -755,7 +755,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test, Timeout(300000)]
+        // [Test, Timeout(300000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         // different options for the same field
         public virtual void TestMixedOptions()
         {
@@ -790,7 +790,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestRandom()
         {
             RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 5, 20);
@@ -817,7 +817,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestMerge()
         {
             RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 5, 20);
@@ -866,7 +866,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         // run random tests from different threads to make sure the per-thread clones
         // don't share mutable data
         public virtual void TestClone()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs b/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
index 2cfe630..e69ed7c 100644
--- a/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
@@ -77,7 +77,7 @@ namespace Lucene.Net.Util
         /// <summary>
         /// Test length=0.
         /// </summary>
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestNoBit()
         {
             BitArray bs = new BitArray(1);
@@ -88,7 +88,7 @@ namespace Lucene.Net.Util
         /// <summary>
         /// Test length=1.
         /// </summary>
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void Test1Bit()
         {
             BitArray bs = new BitArray(1);
@@ -103,7 +103,7 @@ namespace Lucene.Net.Util
         /// <summary>
         /// Test length=2.
         /// </summary>
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void Test2Bits()
         {
             BitArray bs = new BitArray(2);
@@ -122,8 +122,8 @@ namespace Lucene.Net.Util
         /// <summary>
         /// Compare the content of the set against a <seealso cref="BitSet"/>.
         /// </summary>
-        [Test, Timeout(150000)]
-        [LongRunningTest]
+        // [Test, Timeout(150000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        //[LongRunningTest]
         public virtual void TestAgainstBitSet()
         {
             int numBits = TestUtil.NextInt(Random(), 100, 1 << 20);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
index a66f96c..6d913b5 100644
--- a/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
@@ -38,5 +38,68 @@ namespace Lucene.Net.Codecs.BlockTerms
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
index d4e1286..d19e11a 100644
--- a/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
@@ -35,5 +35,68 @@ namespace Lucene.Net.Codecs.Bloom
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
index a0b868b..cd69092 100644
--- a/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
@@ -36,5 +36,531 @@ namespace Lucene.Net.Codecs.DiskDV
                 return codec;
             }
         }
+
+
+        #region BaseCompressingDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestUniqueValuesCompression()
+        {
+            base.TestUniqueValuesCompression();
+        }
+
+        [Test]
+        public override void TestDateCompression()
+        {
+            base.TestDateCompression();
+        }
+
+        [Test]
+        public override void TestSingleBigValueCompression()
+        {
+            base.TestSingleBigValueCompression();
+        }
+
+        #endregion
+
+        #region BaseDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestOneNumber()
+        {
+            base.TestOneNumber();
+        }
+
+        [Test]
+        public override void TestOneFloat()
+        {
+            base.TestOneFloat();
+        }
+
+        [Test]
+        public override void TestTwoNumbers()
+        {
+            base.TestTwoNumbers();
+        }
+
+        [Test]
+        public override void TestTwoBinaryValues()
+        {
+            base.TestTwoBinaryValues();
+        }
+
+        [Test]
+        public override void TestTwoFieldsMixed()
+        {
+            base.TestTwoFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed()
+        {
+            base.TestThreeFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed2()
+        {
+            base.TestThreeFieldsMixed2();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsNumeric()
+        {
+            base.TestTwoDocumentsNumeric();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsMerged()
+        {
+            base.TestTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestBigNumericRange()
+        {
+            base.TestBigNumericRange();
+        }
+
+        [Test]
+        public override void TestBigNumericRange2()
+        {
+            base.TestBigNumericRange2();
+        }
+
+        [Test]
+        public override void TestBytes()
+        {
+            base.TestBytes();
+        }
+
+        [Test]
+        public override void TestBytesTwoDocumentsMerged()
+        {
+            base.TestBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedBytes()
+        {
+            base.TestSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocuments()
+        {
+            base.TestSortedBytesTwoDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesThreeDocuments()
+        {
+            base.TestSortedBytesThreeDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocumentsMerged()
+        {
+            base.TestSortedBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedMergeAwayAllValues()
+        {
+            base.TestSortedMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestBytesWithNewline()
+        {
+            base.TestBytesWithNewline();
+        }
+
+        [Test]
+        public override void TestMissingSortedBytes()
+        {
+            base.TestMissingSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedTermsEnum()
+        {
+            base.TestSortedTermsEnum();
+        }
+
+        [Test]
+        public override void TestEmptySortedBytes()
+        {
+            base.TestEmptySortedBytes();
+        }
+
+        [Test]
+        public override void TestEmptyBytes()
+        {
+            base.TestEmptyBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalBytes()
+        {
+            base.TestVeryLargeButLegalBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalSortedBytes()
+        {
+            base.TestVeryLargeButLegalSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytes()
+        {
+            base.TestCodecUsesOwnBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytes()
+        {
+            base.TestCodecUsesOwnSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytesEachTime()
+        {
+            base.TestCodecUsesOwnBytesEachTime();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytesEachTime()
+        {
+            base.TestCodecUsesOwnSortedBytesEachTime();
+        }
+
+        /*
+         * Simple test case to show how to use the API
+         */
+        [Test]
+        public override void TestDocValuesSimple()
+        {
+            base.TestDocValuesSimple();
+        }
+
+        [Test]
+        public override void TestRandomSortedBytes()
+        {
+            base.TestRandomSortedBytes();
+        }
+
+        [Test]
+        public override void TestBooleanNumericsVsStoredFields()
+        {
+            base.TestBooleanNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteNumericsVsStoredFields()
+        {
+            base.TestByteNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteMissingVsFieldCache()
+        {
+            base.TestByteMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestShortNumericsVsStoredFields()
+        {
+            base.TestShortNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestShortMissingVsFieldCache()
+        {
+            base.TestShortMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestIntNumericsVsStoredFields()
+        {
+            base.TestIntNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestIntMissingVsFieldCache()
+        {
+            base.TestIntMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestLongNumericsVsStoredFields()
+        {
+            base.TestLongNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestLongMissingVsFieldCache()
+        {
+            base.TestLongMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestBinaryFixedLengthVsStoredFields()
+        {
+            base.TestBinaryFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestBinaryVariableLengthVsStoredFields()
+        {
+            base.TestBinaryVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsStoredFields()
+        {
+            base.TestSortedFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsFieldCache()
+        {
+            base.TestSortedFixedLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsFieldCache()
+        {
+            base.TestSortedVariableLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsStoredFields()
+        {
+            base.TestSortedVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetOneValue()
+        {
+            base.TestSortedSetOneValue();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoFields()
+        {
+            base.TestSortedSetTwoFields();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsMerged()
+        {
+            base.TestSortedSetTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValues()
+        {
+            base.TestSortedSetTwoValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValuesUnordered()
+        {
+            base.TestSortedSetTwoValuesUnordered();
+        }
+
+        [Test]
+        public override void TestSortedSetThreeValuesTwoDocs()
+        {
+            base.TestSortedSetThreeValuesTwoDocs();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissing()
+        {
+            base.TestSortedSetTwoDocumentsLastMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsLastMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissing()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetMergeAwayAllValues()
+        {
+            base.TestSortedSetMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTermsEnum()
+        {
+            base.TestSortedSetTermsEnum();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsUninvertedField()
+        {
+            base.TestSortedSetFixedLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsUninvertedField()
+        {
+            base.TestSortedSetVariableLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestGCDCompression()
+        {
+            base.TestGCDCompression();
+        }
+
+        [Test]
+        public override void TestZeros()
+        {
+            base.TestZeros();
+        }
+
+        [Test]
+        public override void TestZeroOrMin()
+        {
+            base.TestZeroOrMin();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissing()
+        {
+            base.TestTwoNumbersOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissingWithMerging()
+        {
+            base.TestTwoNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeNumbersOneMissingWithMerging()
+        {
+            base.TestThreeNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissing()
+        {
+            base.TestTwoBytesOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissingWithMerging()
+        {
+            base.TestTwoBytesOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeBytesOneMissingWithMerging()
+        {
+            base.TestThreeBytesOneMissingWithMerging();
+        }
+
+        // LUCENE-4853
+        [Test]
+        public override void TestHugeBinaryValues()
+        {
+            base.TestHugeBinaryValues();
+        }
+
+        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
+        [Test]
+        public override void TestHugeBinaryValueLimit()
+        {
+            base.TestHugeBinaryValueLimit();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads()
+        {
+            base.TestThreads();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (all types + missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads2()
+        {
+            base.TestThreads2();
+        }
+
+        // LUCENE-5218
+        [Test]
+        public override void TestEmptyBinaryValueOnPageSizes()
+        {
+            base.TestEmptyBinaryValueOnPageSizes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
index 1cd9e4b..26b2684 100644
--- a/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
@@ -36,5 +36,68 @@ namespace Lucene.Net.Codecs.IntBlock
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
index 0b74a74..c255c90 100644
--- a/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
@@ -41,5 +41,68 @@ namespace Lucene.Net.Codecs.IntBlock
                 return codec;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file


[52/58] lucenenet git commit: Revert "HACK: (3rd) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context."

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs
index 889f963..ace0574 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs
@@ -35,506 +35,5 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
-
-
-        #region BaseDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestOneNumber()
-        {
-            base.TestOneNumber();
-        }
-
-        [Test]
-        public override void TestOneFloat()
-        {
-            base.TestOneFloat();
-        }
-
-        [Test]
-        public override void TestTwoNumbers()
-        {
-            base.TestTwoNumbers();
-        }
-
-        [Test]
-        public override void TestTwoBinaryValues()
-        {
-            base.TestTwoBinaryValues();
-        }
-
-        [Test]
-        public override void TestTwoFieldsMixed()
-        {
-            base.TestTwoFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed()
-        {
-            base.TestThreeFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed2()
-        {
-            base.TestThreeFieldsMixed2();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsNumeric()
-        {
-            base.TestTwoDocumentsNumeric();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsMerged()
-        {
-            base.TestTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestBigNumericRange()
-        {
-            base.TestBigNumericRange();
-        }
-
-        [Test]
-        public override void TestBigNumericRange2()
-        {
-            base.TestBigNumericRange2();
-        }
-
-        [Test]
-        public override void TestBytes()
-        {
-            base.TestBytes();
-        }
-
-        [Test]
-        public override void TestBytesTwoDocumentsMerged()
-        {
-            base.TestBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedBytes()
-        {
-            base.TestSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocuments()
-        {
-            base.TestSortedBytesTwoDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesThreeDocuments()
-        {
-            base.TestSortedBytesThreeDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocumentsMerged()
-        {
-            base.TestSortedBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedMergeAwayAllValues()
-        {
-            base.TestSortedMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestBytesWithNewline()
-        {
-            base.TestBytesWithNewline();
-        }
-
-        [Test]
-        public override void TestMissingSortedBytes()
-        {
-            base.TestMissingSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedTermsEnum()
-        {
-            base.TestSortedTermsEnum();
-        }
-
-        [Test]
-        public override void TestEmptySortedBytes()
-        {
-            base.TestEmptySortedBytes();
-        }
-
-        [Test]
-        public override void TestEmptyBytes()
-        {
-            base.TestEmptyBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalBytes()
-        {
-            base.TestVeryLargeButLegalBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalSortedBytes()
-        {
-            base.TestVeryLargeButLegalSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytes()
-        {
-            base.TestCodecUsesOwnBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytes()
-        {
-            base.TestCodecUsesOwnSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytesEachTime()
-        {
-            base.TestCodecUsesOwnBytesEachTime();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytesEachTime()
-        {
-            base.TestCodecUsesOwnSortedBytesEachTime();
-        }
-
-        /*
-         * Simple test case to show how to use the API
-         */
-        [Test]
-        public override void TestDocValuesSimple()
-        {
-            base.TestDocValuesSimple();
-        }
-
-        [Test]
-        public override void TestRandomSortedBytes()
-        {
-            base.TestRandomSortedBytes();
-        }
-
-        [Test]
-        public override void TestBooleanNumericsVsStoredFields()
-        {
-            base.TestBooleanNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteNumericsVsStoredFields()
-        {
-            base.TestByteNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteMissingVsFieldCache()
-        {
-            base.TestByteMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestShortNumericsVsStoredFields()
-        {
-            base.TestShortNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestShortMissingVsFieldCache()
-        {
-            base.TestShortMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestIntNumericsVsStoredFields()
-        {
-            base.TestIntNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestIntMissingVsFieldCache()
-        {
-            base.TestIntMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestLongNumericsVsStoredFields()
-        {
-            base.TestLongNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestLongMissingVsFieldCache()
-        {
-            base.TestLongMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestBinaryFixedLengthVsStoredFields()
-        {
-            base.TestBinaryFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestBinaryVariableLengthVsStoredFields()
-        {
-            base.TestBinaryVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsStoredFields()
-        {
-            base.TestSortedFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsFieldCache()
-        {
-            base.TestSortedFixedLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsFieldCache()
-        {
-            base.TestSortedVariableLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsStoredFields()
-        {
-            base.TestSortedVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetOneValue()
-        {
-            base.TestSortedSetOneValue();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoFields()
-        {
-            base.TestSortedSetTwoFields();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsMerged()
-        {
-            base.TestSortedSetTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValues()
-        {
-            base.TestSortedSetTwoValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValuesUnordered()
-        {
-            base.TestSortedSetTwoValuesUnordered();
-        }
-
-        [Test]
-        public override void TestSortedSetThreeValuesTwoDocs()
-        {
-            base.TestSortedSetThreeValuesTwoDocs();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissing()
-        {
-            base.TestSortedSetTwoDocumentsLastMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsLastMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissing()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetMergeAwayAllValues()
-        {
-            base.TestSortedSetMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTermsEnum()
-        {
-            base.TestSortedSetTermsEnum();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsUninvertedField()
-        {
-            base.TestSortedSetFixedLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsUninvertedField()
-        {
-            base.TestSortedSetVariableLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestGCDCompression()
-        {
-            base.TestGCDCompression();
-        }
-
-        [Test]
-        public override void TestZeros()
-        {
-            base.TestZeros();
-        }
-
-        [Test]
-        public override void TestZeroOrMin()
-        {
-            base.TestZeroOrMin();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissing()
-        {
-            base.TestTwoNumbersOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissingWithMerging()
-        {
-            base.TestTwoNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeNumbersOneMissingWithMerging()
-        {
-            base.TestThreeNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissing()
-        {
-            base.TestTwoBytesOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissingWithMerging()
-        {
-            base.TestTwoBytesOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeBytesOneMissingWithMerging()
-        {
-            base.TestThreeBytesOneMissingWithMerging();
-        }
-
-        // LUCENE-4853
-        [Test]
-        public override void TestHugeBinaryValues()
-        {
-            base.TestHugeBinaryValues();
-        }
-
-        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
-        public override void TestHugeBinaryValueLimit()
-        {
-            base.TestHugeBinaryValueLimit();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads()
-        {
-            base.TestThreads();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (all types + missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads2()
-        {
-            base.TestThreads2();
-        }
-
-        // LUCENE-5218
-        [Test]
-        public override void TestEmptyBinaryValueOnPageSizes()
-        {
-            base.TestEmptyBinaryValueOnPageSizes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs
index 0bfd3d7..990e29c 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs
@@ -36,68 +36,5 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs
index 910584c..6f30a01 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs
@@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs
index eb47d6c..ddb99c6 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs
@@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs
index 7e094fd..cac7e77 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs
@@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs
index 13afde6..e9beed4 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs
@@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs
index 33895b1..4f65807 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs
@@ -40,531 +40,5 @@ namespace Lucene.Net.Codecs.Memory
         {
             return false;
         }
-
-
-        #region BaseCompressingDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestUniqueValuesCompression()
-        {
-            base.TestUniqueValuesCompression();
-        }
-
-        [Test]
-        public override void TestDateCompression()
-        {
-            base.TestDateCompression();
-        }
-
-        [Test]
-        public override void TestSingleBigValueCompression()
-        {
-            base.TestSingleBigValueCompression();
-        }
-
-        #endregion
-
-        #region BaseDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestOneNumber()
-        {
-            base.TestOneNumber();
-        }
-
-        [Test]
-        public override void TestOneFloat()
-        {
-            base.TestOneFloat();
-        }
-
-        [Test]
-        public override void TestTwoNumbers()
-        {
-            base.TestTwoNumbers();
-        }
-
-        [Test]
-        public override void TestTwoBinaryValues()
-        {
-            base.TestTwoBinaryValues();
-        }
-
-        [Test]
-        public override void TestTwoFieldsMixed()
-        {
-            base.TestTwoFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed()
-        {
-            base.TestThreeFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed2()
-        {
-            base.TestThreeFieldsMixed2();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsNumeric()
-        {
-            base.TestTwoDocumentsNumeric();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsMerged()
-        {
-            base.TestTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestBigNumericRange()
-        {
-            base.TestBigNumericRange();
-        }
-
-        [Test]
-        public override void TestBigNumericRange2()
-        {
-            base.TestBigNumericRange2();
-        }
-
-        [Test]
-        public override void TestBytes()
-        {
-            base.TestBytes();
-        }
-
-        [Test]
-        public override void TestBytesTwoDocumentsMerged()
-        {
-            base.TestBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedBytes()
-        {
-            base.TestSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocuments()
-        {
-            base.TestSortedBytesTwoDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesThreeDocuments()
-        {
-            base.TestSortedBytesThreeDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocumentsMerged()
-        {
-            base.TestSortedBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedMergeAwayAllValues()
-        {
-            base.TestSortedMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestBytesWithNewline()
-        {
-            base.TestBytesWithNewline();
-        }
-
-        [Test]
-        public override void TestMissingSortedBytes()
-        {
-            base.TestMissingSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedTermsEnum()
-        {
-            base.TestSortedTermsEnum();
-        }
-
-        [Test]
-        public override void TestEmptySortedBytes()
-        {
-            base.TestEmptySortedBytes();
-        }
-
-        [Test]
-        public override void TestEmptyBytes()
-        {
-            base.TestEmptyBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalBytes()
-        {
-            base.TestVeryLargeButLegalBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalSortedBytes()
-        {
-            base.TestVeryLargeButLegalSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytes()
-        {
-            base.TestCodecUsesOwnBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytes()
-        {
-            base.TestCodecUsesOwnSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytesEachTime()
-        {
-            base.TestCodecUsesOwnBytesEachTime();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytesEachTime()
-        {
-            base.TestCodecUsesOwnSortedBytesEachTime();
-        }
-
-        /*
-         * Simple test case to show how to use the API
-         */
-        [Test]
-        public override void TestDocValuesSimple()
-        {
-            base.TestDocValuesSimple();
-        }
-
-        [Test]
-        public override void TestRandomSortedBytes()
-        {
-            base.TestRandomSortedBytes();
-        }
-
-        [Test]
-        public override void TestBooleanNumericsVsStoredFields()
-        {
-            base.TestBooleanNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteNumericsVsStoredFields()
-        {
-            base.TestByteNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteMissingVsFieldCache()
-        {
-            base.TestByteMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestShortNumericsVsStoredFields()
-        {
-            base.TestShortNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestShortMissingVsFieldCache()
-        {
-            base.TestShortMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestIntNumericsVsStoredFields()
-        {
-            base.TestIntNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestIntMissingVsFieldCache()
-        {
-            base.TestIntMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestLongNumericsVsStoredFields()
-        {
-            base.TestLongNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestLongMissingVsFieldCache()
-        {
-            base.TestLongMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestBinaryFixedLengthVsStoredFields()
-        {
-            base.TestBinaryFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestBinaryVariableLengthVsStoredFields()
-        {
-            base.TestBinaryVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsStoredFields()
-        {
-            base.TestSortedFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsFieldCache()
-        {
-            base.TestSortedFixedLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsFieldCache()
-        {
-            base.TestSortedVariableLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsStoredFields()
-        {
-            base.TestSortedVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetOneValue()
-        {
-            base.TestSortedSetOneValue();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoFields()
-        {
-            base.TestSortedSetTwoFields();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsMerged()
-        {
-            base.TestSortedSetTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValues()
-        {
-            base.TestSortedSetTwoValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValuesUnordered()
-        {
-            base.TestSortedSetTwoValuesUnordered();
-        }
-
-        [Test]
-        public override void TestSortedSetThreeValuesTwoDocs()
-        {
-            base.TestSortedSetThreeValuesTwoDocs();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissing()
-        {
-            base.TestSortedSetTwoDocumentsLastMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsLastMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissing()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetMergeAwayAllValues()
-        {
-            base.TestSortedSetMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTermsEnum()
-        {
-            base.TestSortedSetTermsEnum();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsUninvertedField()
-        {
-            base.TestSortedSetFixedLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsUninvertedField()
-        {
-            base.TestSortedSetVariableLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestGCDCompression()
-        {
-            base.TestGCDCompression();
-        }
-
-        [Test]
-        public override void TestZeros()
-        {
-            base.TestZeros();
-        }
-
-        [Test]
-        public override void TestZeroOrMin()
-        {
-            base.TestZeroOrMin();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissing()
-        {
-            base.TestTwoNumbersOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissingWithMerging()
-        {
-            base.TestTwoNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeNumbersOneMissingWithMerging()
-        {
-            base.TestThreeNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissing()
-        {
-            base.TestTwoBytesOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissingWithMerging()
-        {
-            base.TestTwoBytesOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeBytesOneMissingWithMerging()
-        {
-            base.TestThreeBytesOneMissingWithMerging();
-        }
-
-        // LUCENE-4853
-        [Test]
-        public override void TestHugeBinaryValues()
-        {
-            base.TestHugeBinaryValues();
-        }
-
-        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
-        public override void TestHugeBinaryValueLimit()
-        {
-            base.TestHugeBinaryValueLimit();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads()
-        {
-            base.TestThreads();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (all types + missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads2()
-        {
-            base.TestThreads2();
-        }
-
-        // LUCENE-5218
-        [Test]
-        public override void TestEmptyBinaryValueOnPageSizes()
-        {
-            base.TestEmptyBinaryValueOnPageSizes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs
index 0f35370..938ae52 100644
--- a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs
@@ -36,67 +36,5 @@ namespace Lucene.Net.Codecs.Memory
                 return codec;
             }
         }
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs
index 19cd845..cd6f9f2 100644
--- a/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs
@@ -36,68 +36,5 @@ namespace Lucene.Net.Codecs.Pulsing
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs
index d1c5f29..c374053 100644
--- a/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs
@@ -37,67 +37,5 @@ namespace Lucene.Net.Codecs.Sep
                 return codec;
             }
         }
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
index bdd6d82..497e26f 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
@@ -42,505 +42,5 @@ namespace Lucene.Net.Codecs.SimpleText
                 return codec;
             }
         }
-
-        #region BaseDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestOneNumber()
-        {
-            base.TestOneNumber();
-        }
-
-        [Test]
-        public override void TestOneFloat()
-        {
-            base.TestOneFloat();
-        }
-
-        [Test]
-        public override void TestTwoNumbers()
-        {
-            base.TestTwoNumbers();
-        }
-
-        [Test]
-        public override void TestTwoBinaryValues()
-        {
-            base.TestTwoBinaryValues();
-        }
-
-        [Test]
-        public override void TestTwoFieldsMixed()
-        {
-            base.TestTwoFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed()
-        {
-            base.TestThreeFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed2()
-        {
-            base.TestThreeFieldsMixed2();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsNumeric()
-        {
-            base.TestTwoDocumentsNumeric();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsMerged()
-        {
-            base.TestTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestBigNumericRange()
-        {
-            base.TestBigNumericRange();
-        }
-
-        [Test]
-        public override void TestBigNumericRange2()
-        {
-            base.TestBigNumericRange2();
-        }
-
-        [Test]
-        public override void TestBytes()
-        {
-            base.TestBytes();
-        }
-
-        [Test]
-        public override void TestBytesTwoDocumentsMerged()
-        {
-            base.TestBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedBytes()
-        {
-            base.TestSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocuments()
-        {
-            base.TestSortedBytesTwoDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesThreeDocuments()
-        {
-            base.TestSortedBytesThreeDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocumentsMerged()
-        {
-            base.TestSortedBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedMergeAwayAllValues()
-        {
-            base.TestSortedMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestBytesWithNewline()
-        {
-            base.TestBytesWithNewline();
-        }
-
-        [Test]
-        public override void TestMissingSortedBytes()
-        {
-            base.TestMissingSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedTermsEnum()
-        {
-            base.TestSortedTermsEnum();
-        }
-
-        [Test]
-        public override void TestEmptySortedBytes()
-        {
-            base.TestEmptySortedBytes();
-        }
-
-        [Test]
-        public override void TestEmptyBytes()
-        {
-            base.TestEmptyBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalBytes()
-        {
-            base.TestVeryLargeButLegalBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalSortedBytes()
-        {
-            base.TestVeryLargeButLegalSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytes()
-        {
-            base.TestCodecUsesOwnBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytes()
-        {
-            base.TestCodecUsesOwnSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytesEachTime()
-        {
-            base.TestCodecUsesOwnBytesEachTime();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytesEachTime()
-        {
-            base.TestCodecUsesOwnSortedBytesEachTime();
-        }
-
-        /*
-         * Simple test case to show how to use the API
-         */
-        [Test]
-        public override void TestDocValuesSimple()
-        {
-            base.TestDocValuesSimple();
-        }
-
-        [Test]
-        public override void TestRandomSortedBytes()
-        {
-            base.TestRandomSortedBytes();
-        }
-
-        [Test]
-        public override void TestBooleanNumericsVsStoredFields()
-        {
-            base.TestBooleanNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteNumericsVsStoredFields()
-        {
-            base.TestByteNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteMissingVsFieldCache()
-        {
-            base.TestByteMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestShortNumericsVsStoredFields()
-        {
-            base.TestShortNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestShortMissingVsFieldCache()
-        {
-            base.TestShortMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestIntNumericsVsStoredFields()
-        {
-            base.TestIntNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestIntMissingVsFieldCache()
-        {
-            base.TestIntMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestLongNumericsVsStoredFields()
-        {
-            base.TestLongNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestLongMissingVsFieldCache()
-        {
-            base.TestLongMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestBinaryFixedLengthVsStoredFields()
-        {
-            base.TestBinaryFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestBinaryVariableLengthVsStoredFields()
-        {
-            base.TestBinaryVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsStoredFields()
-        {
-            base.TestSortedFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsFieldCache()
-        {
-            base.TestSortedFixedLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsFieldCache()
-        {
-            base.TestSortedVariableLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsStoredFields()
-        {
-            base.TestSortedVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetOneValue()
-        {
-            base.TestSortedSetOneValue();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoFields()
-        {
-            base.TestSortedSetTwoFields();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsMerged()
-        {
-            base.TestSortedSetTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValues()
-        {
-            base.TestSortedSetTwoValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValuesUnordered()
-        {
-            base.TestSortedSetTwoValuesUnordered();
-        }
-
-        [Test]
-        public override void TestSortedSetThreeValuesTwoDocs()
-        {
-            base.TestSortedSetThreeValuesTwoDocs();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissing()
-        {
-            base.TestSortedSetTwoDocumentsLastMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsLastMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissing()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetMergeAwayAllValues()
-        {
-            base.TestSortedSetMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTermsEnum()
-        {
-            base.TestSortedSetTermsEnum();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsUninvertedField()
-        {
-            base.TestSortedSetFixedLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsUninvertedField()
-        {
-            base.TestSortedSetVariableLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestGCDCompression()
-        {
-            base.TestGCDCompression();
-        }
-
-        [Test]
-        public override void TestZeros()
-        {
-            base.TestZeros();
-        }
-
-        [Test]
-        public override void TestZeroOrMin()
-        {
-            base.TestZeroOrMin();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissing()
-        {
-            base.TestTwoNumbersOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissingWithMerging()
-        {
-            base.TestTwoNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeNumbersOneMissingWithMerging()
-        {
-            base.TestThreeNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissing()
-        {
-            base.TestTwoBytesOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissingWithMerging()
-        {
-            base.TestTwoBytesOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeBytesOneMissingWithMerging()
-        {
-            base.TestThreeBytesOneMissingWithMerging();
-        }
-
-        // LUCENE-4853
-        [Test]
-        public override void TestHugeBinaryValues()
-        {
-            base.TestHugeBinaryValues();
-        }
-
-        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
-        public override void TestHugeBinaryValueLimit()
-        {
-            base.TestHugeBinaryValueLimit();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads()
-        {
-            base.TestThreads();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (all types + missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads2()
-        {
-            base.TestThreads2();
-        }
-
-        // LUCENE-5218
-        [Test]
-        public override void TestEmptyBinaryValueOnPageSizes()
-        {
-            base.TestEmptyBinaryValueOnPageSizes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
index 96e6cb8..a8cb997 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
@@ -34,68 +34,5 @@ namespace Lucene.Net.Codecs.SimpleText
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
index 1d3ae31..5dab469 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
@@ -31,93 +31,5 @@ namespace Lucene.Net.Codecs.SimpleText
                 return new SimpleTextCodec();
             }
         }
-
-        #region BaseStoredFieldsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestRandomStoredFields()
-        {
-            base.TestRandomStoredFields();
-        }
-
-        [Test]
-        // LUCENE-1727: make sure doc fields are stored in order
-        public override void TestStoredFieldsOrder()
-        {
-            base.TestStoredFieldsOrder();
-        }
-
-        [Test]
-        // LUCENE-1219
-        public override void TestBinaryFieldOffsetLength()
-        {
-            base.TestBinaryFieldOffsetLength();
-        }
-
-        [Test]
-        public override void TestNumericField()
-        {
-            base.TestNumericField();
-        }
-
-        [Test]
-        public override void TestIndexedBit()
-        {
-            base.TestIndexedBit();
-        }
-
-        [Test]
-        public override void TestReadSkip()
-        {
-            base.TestReadSkip();
-        }
-
-        [Test, Timeout(300000)]
-        public override void TestEmptyDocs()
-        {
-            base.TestEmptyDocs();
-        }
-
-        [Test, Timeout(300000)]
-        public override void TestConcurrentReads()
-        {
-            base.TestConcurrentReads();
-        }
-
-        [Test]
-        public override void TestWriteReadMerge()
-        {
-            base.TestWriteReadMerge();
-        }
-
-        [Test, LongRunningTest]
-        public override void TestBigDocuments()
-        {
-            base.TestBigDocuments();
-        }
-
-        [Test]
-        public override void TestBulkMergeWithDeletes()
-        {
-            base.TestBulkMergeWithDeletes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
index 527deea..a5fe4c5 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
@@ -30,71 +30,5 @@ namespace Lucene.Net.Codecs.SimpleText
                 return new SimpleTextCodec();
             }
         }
-
-        #region BaseTermVectorsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        // only one doc with vectors
-        public override void TestRareVectors()
-        {
-            base.TestRareVectors();
-        }
-
-        [Test]
-        public override void TestHighFreqs()
-        {
-            base.TestHighFreqs();
-        }
-
-        [Test]
-        public override void TestLotsOfFields()
-        {
-            base.TestLotsOfFields();
-        }
-
-        [Test, Timeout(300000)]
-        // different options for the same field
-        public override void TestMixedOptions()
-        {
-            base.TestMixedOptions();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        [Test]
-        public override void TestMerge()
-        {
-            base.TestMerge();
-        }
-
-        [Test]
-        // run random tests from different threads to make sure the per-thread clones
-        // don't share mutable data
-        public override void TestClone()
-        {
-            base.TestClone();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs
index fdc0e95..164f275 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs
@@ -87,61 +87,5 @@ namespace Lucene.Net.Index.Sorter
             reader = SlowCompositeReaderWrapper.Wrap(DirectoryReader.Open(dir));
             assertFalse("index should not have deletions", reader.HasDeletions);
         }
-
-
-        #region SorterTestBase
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestBinaryDocValuesField()
-        {
-            base.TestBinaryDocValuesField();
-        }
-
-        [Test]
-        public override void TestDocsAndPositionsEnum()
-        {
-            base.TestDocsAndPositionsEnum();
-        }
-
-        [Test]
-        public override void TestDocsEnum()
-        {
-            base.TestDocsEnum();
-        }
-
-        [Test]
-        public override void TestNormValues()
-        {
-            base.TestNormValues();
-        }
-
-        [Test]
-        public override void TestNumericDocValuesField()
-        {
-            base.TestNumericDocValuesField();
-        }
-
-        [Test]
-        public override void TestSortedDocValuesField()
-        {
-            base.TestSortedDocValuesField();
-        }
-
-        [Test]
-        public override void TestSortedSetDocValuesField()
-        {
-            base.TestSortedSetDocValuesField();
-        }
-
-        [Test]
-        public override void TestTermVectors()
-        {
-            base.TestTermVectors();
-        }
-
-        #endregion
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
index 99623ad..2cff135 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
@@ -230,7 +230,7 @@ namespace Lucene.Net.Index.Sorter
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBinaryDocValuesField()
         {
             BinaryDocValues dv = reader.GetBinaryDocValues(BINARY_DV_FIELD);
@@ -242,7 +242,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestDocsAndPositionsEnum()
         {
             TermsEnum termsEnum = reader.Terms(DOC_POSITIONS_FIELD).Iterator(null);
@@ -322,7 +322,7 @@ namespace Lucene.Net.Index.Sorter
             return bits;
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestDocsEnum()
         {
             Bits mappedLiveDocs = RandomLiveDocs(reader.MaxDoc);
@@ -369,7 +369,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestNormValues()
         {
             NumericDocValues dv = reader.GetNormValues(NORMS_FIELD);
@@ -380,7 +380,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestNumericDocValuesField()
         {
             NumericDocValues dv = reader.GetNumericDocValues(NUMERIC_DV_FIELD);
@@ -391,7 +391,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedDocValuesField()
         {
             SortedDocValues dv = reader.GetSortedDocValues(SORTED_DV_FIELD);
@@ -404,7 +404,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetDocValuesField()
         {
             AssumeTrue("default codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -423,7 +423,7 @@ namespace Lucene.Net.Index.Sorter
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTermVectors()
         {
             int maxDoc = reader.MaxDoc;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs
index 93b234a..cb2b38e 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs
@@ -79,61 +79,5 @@ namespace Lucene.Net.Index.Sorter
                 assertEquals("Cannot sort an index with a Sort that refers to the relevance score", e.Message);
             }
         }
-
-
-        #region SorterTestBase
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestBinaryDocValuesField()
-        {
-            base.TestBinaryDocValuesField();
-        }
-
-        [Test]
-        public override void TestDocsAndPositionsEnum()
-        {
-            base.TestDocsAndPositionsEnum();
-        }
-
-        [Test]
-        public override void TestDocsEnum()
-        {
-            base.TestDocsEnum();
-        }
-
-        [Test]
-        public override void TestNormValues()
-        {
-            base.TestNormValues();
-        }
-
-        [Test]
-        public override void TestNumericDocValuesField()
-        {
-            base.TestNumericDocValuesField();
-        }
-
-        [Test]
-        public override void TestSortedDocValuesField()
-        {
-            base.TestSortedDocValuesField();
-        }
-
-        [Test]
-        public override void TestSortedSetDocValuesField()
-        {
-            base.TestSortedSetDocValuesField();
-        }
-
-        [Test]
-        public override void TestTermVectors()
-        {
-            base.TestTermVectors();
-        }
-
-        #endregion
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs
index 577f27b..2b71216 100644
--- a/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs
@@ -551,255 +551,5 @@ namespace Lucene.Net.QueryParsers.Classic
             assertEquals(expected, qp.Parse("\"\u4e2d\u56fd\"~3^2"));
         }
 
-
-        #region QueryParserTestBase
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestCJK()
-        {
-            base.TestCJK();
-        }
-
-        [Test]
-        public override void TestCJKTerm()
-        {
-            base.TestCJKTerm();
-        }
-
-        [Test]
-        public override void TestCJKBoostedTerm()
-        {
-            base.TestCJKBoostedTerm();
-        }
-
-        [Test]
-        public override void TestCJKPhrase()
-        {
-            base.TestCJKPhrase();
-        }
-
-        [Test]
-        public override void TestCJKBoostedPhrase()
-        {
-            base.TestCJKBoostedPhrase();
-        }
-
-        [Test]
-        public override void TestCJKSloppyPhrase()
-        {
-            base.TestCJKSloppyPhrase();
-        }
-
-        [Test]
-        public override void TestAutoGeneratePhraseQueriesOn()
-        {
-            base.TestAutoGeneratePhraseQueriesOn();
-        }
-
-        [Test]
-        public override void TestSimple()
-        {
-            base.TestSimple();
-        }
-
-        [Test]
-        public override void TestOperatorVsWhitespace()
-        {
-            base.TestOperatorVsWhitespace();
-        }
-
-        [Test]
-        public override void TestPunct()
-        {
-            base.TestPunct();
-        }
-
-        [Test]
-        public override void TestSlop()
-        {
-            base.TestSlop();
-        }
-
-        [Test]
-        public override void TestNumber()
-        {
-            base.TestNumber();
-        }
-
-        [Test]
-        public override void TestWildcard()
-        {
-            base.TestWildcard();
-        }
-
-        [Test]
-        public override void TestLeadingWildcardType()
-        {
-            base.TestLeadingWildcardType();
-        }
-
-        [Test]
-        public override void TestQPA()
-        {
-            base.TestQPA();
-        }
-
-        [Test]
-        public override void TestRange()
-        {
-            base.TestRange();
-        }
-
-        [Test]
-        public override void TestRangeWithPhrase()
-        {
-            base.TestRangeWithPhrase();
-        }
-
-        [Test]
-        public override void TestDateRange()
-        {
-            base.TestDateRange();
-        }
-
-        [Test]
-        public override void TestEscaped()
-        {
-            base.TestEscaped();
-        }
-
-        [Test]
-        public override void TestEscapedVsQuestionMarkAsWildcard()
-        {
-            base.TestEscapedVsQuestionMarkAsWildcard();
-        }
-
-        [Test]
-        public override void TestQueryStringEscaping()
-        {
-            base.TestQueryStringEscaping();
-        }
-
-        [Test]
-        public override void TestTabNewlineCarriageReturn()
-        {
-            base.TestTabNewlineCarriageReturn();
-        }
-
-        [Test]
-        public override void TestSimpleDAO()
-        {
-            base.TestSimpleDAO();
-        }
-
-        [Test]
-        public override void TestBoost()
-        {
-            base.TestBoost();
-        }
-
-        [Test]
-        public override void TestException()
-        {
-            base.TestException();
-        }
-
-        [Test]
-        public override void TestBooleanQuery()
-        {
-            base.TestBooleanQuery();
-        }
-
-        [Test]
-        public override void TestPrecedence()
-        {
-            base.TestPrecedence();
-        }
-
-        [Test]
-        public override void TestEscapedWildcard()
-        {
-            base.TestEscapedWildcard();
-        }
-
-        [Test]
-        public override void TestRegexps()
-        {
-            base.TestRegexps();
-        }
-
-        [Test]
-        public override void TestStopwords()
-        {
-            base.TestStopwords();
-        }
-
-        [Test]
-        public override void TestPositionIncrement()
-        {
-            base.TestPositionIncrement();
-        }
-
-        [Test]
-        public override void TestMatchAllDocs()
-        {
-            base.TestMatchAllDocs();
-        }
-
-        // LUCENE-2002: make sure defaults for StandardAnalyzer's
-        // enableStopPositionIncr & QueryParser's enablePosIncr
-        // "match"
-        [Test]
-        public override void TestPositionIncrements()
-        {
-            base.TestPositionIncrements();
-        }
-
-        [Test]
-        public override void TestCollatedRange()
-        {
-            base.TestCollatedRange();
-        }
-
-        [Test]
-        public override void TestDistanceAsEditsParsing()
-        {
-            base.TestDistanceAsEditsParsing();
-        }
-
-        [Test]
-        public override void TestPhraseQueryToString()
-        {
-            base.TestPhraseQueryToString();
-        }
-
-        [Test]
-        public override void TestParseWildcardAndPhraseQueries()
-        {
-            base.TestParseWildcardAndPhraseQueries();
-        }
-
-        [Test]
-        public override void TestPhraseQueryPositionIncrements()
-        {
-            base.TestPhraseQueryPositionIncrements();
-        }
-
-        [Test]
-        public override void TestMatchAllQueryParsing()
-        {
-            base.TestMatchAllQueryParsing();
-        }
-
-        [Test]
-        public override void TestNestedAndClausesFoo()
-        {
-            base.TestNestedAndClausesFoo();
-        }
-
-        #endregion
     }
 }


[27/58] lucenenet git commit: QueryParser.Flexible refactor: Formatting, removed commented code, changed some properties

Posted by ni...@apache.org.
QueryParser.Flexible refactor: Formatting, removed commented code, changed some properties


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

Branch: refs/heads/master
Commit: 8e1931b90d662f9912ad8197c5414e90ada51c63
Parents: 19d323c
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Dec 4 21:42:38 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Dec 4 22:00:55 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Builders/QueryBuilder.cs      |   1 -
 .../Flexible/Core/Builders/QueryTreeBuilder.cs  |  24 +-
 .../Flexible/Core/Config/AbstractQueryConfig.cs |   8 -
 .../Flexible/Core/Config/ConfigurationKey.cs    |  17 +-
 .../Flexible/Core/Config/FieldConfig.cs         |   2 -
 .../Core/Messages/QueryParserMessages.cs        |   1 -
 .../Flexible/Core/Nodes/AndQueryNode.cs         |   2 -
 .../Flexible/Core/Nodes/AnyQueryNode.cs         |  24 +-
 .../Flexible/Core/Nodes/BooleanQueryNode.cs     |   6 +-
 .../Flexible/Core/Nodes/BoostQueryNode.cs       |   7 +-
 .../Flexible/Core/Nodes/DeletedQueryNode.cs     |   4 -
 .../Flexible/Core/Nodes/FieldQueryNode.cs       |   3 +-
 .../Flexible/Core/Nodes/FuzzyQueryNode.cs       |   4 +-
 .../Flexible/Core/Nodes/GroupQueryNode.cs       |   5 +-
 .../Core/Nodes/MatchAllDocsQueryNode.cs         |   3 -
 .../Flexible/Core/Nodes/ModifierQueryNode.cs    |   5 +-
 .../Core/Nodes/NoTokenFoundQueryNode.cs         |   3 -
 .../Flexible/Core/Nodes/OpaqueQueryNode.cs      |   6 +-
 .../Flexible/Core/Nodes/OrQueryNode.cs          |   1 -
 .../Flexible/Core/Nodes/PathQueryNode.cs        |   9 -
 .../Flexible/Core/Nodes/PhraseSlopQueryNode.cs  |   6 +-
 .../Flexible/Core/Nodes/ProximityQueryNode.cs   |  35 +-
 .../Flexible/Core/Nodes/QueryNodeImpl.cs        |  36 +-
 .../Flexible/Core/Nodes/QuotedFieldQueryNode.cs |   2 -
 .../Flexible/Core/Nodes/SlopQueryNode.cs        |   6 +-
 .../Core/Nodes/TokenizedPhraseQueryNode.cs      |   4 +-
 .../NoChildOptimizationQueryNodeProcessor.cs    |  12 -
 .../Core/Processors/QueryNodeProcessor.cs       |   1 -
 .../Core/Processors/QueryNodeProcessorImpl.cs   |  15 -
 .../Processors/QueryNodeProcessorPipeline.cs    | 206 +-------
 .../RemoveDeletedQueryNodesProcessor.cs         |  14 -
 .../Flexible/Core/QueryNodeError.cs             |   2 -
 .../Flexible/Core/QueryNodeException.cs         |   5 -
 .../Flexible/Core/QueryParserHelper.cs          |  10 +-
 .../Flexible/Core/Util/QueryNodeOperation.cs    |   8 -
 .../Flexible/Core/Util/UnescapedCharSequence.cs |   1 -
 .../Flexible/Messages/Message.cs                |   2 +-
 .../Flexible/Messages/MessageImpl.cs            |   8 +-
 .../Flexible/Messages/NLS.cs                    | 119 +----
 .../BooleanModifiersQueryNodeProcessor.cs       |  16 -
 .../PrecedenceQueryNodeProcessorPipeline.cs     |   5 -
 .../Standard/Builders/AnyQueryNodeBuilder.cs    |  16 -
 .../Builders/BooleanQueryNodeBuilder.cs         |  23 -
 .../Standard/Builders/BoostQueryNodeBuilder.cs  |   9 -
 .../Standard/Builders/DummyQueryNodeBuilder.cs  |   8 -
 .../Standard/Builders/FieldQueryNodeBuilder.cs  |   9 -
 .../Standard/Builders/FuzzyQueryNodeBuilder.cs  |  11 -
 .../Standard/Builders/GroupQueryNodeBuilder.cs  |  10 -
 .../Builders/MatchAllDocsQueryNodeBuilder.cs    |  11 -
 .../Builders/MatchNoDocsQueryNodeBuilder.cs     |  12 -
 .../Builders/ModifierQueryNodeBuilder.cs        |  10 -
 .../Builders/MultiPhraseQueryNodeBuilder.cs     |  17 -
 .../Builders/NumericRangeQueryNodeBuilder.cs    |  11 -
 .../Standard/Builders/PhraseQueryNodeBuilder.cs |  13 -
 .../Builders/PrefixWildcardQueryNodeBuilder.cs  |  10 -
 .../Standard/Builders/RegexpQueryNodeBuilder.cs |   9 -
 .../Standard/Builders/SlopQueryNodeBuilder.cs   |  11 -
 .../Builders/StandardBooleanQueryNodeBuilder.cs |  21 -
 .../Builders/StandardQueryTreeBuilder.cs        |  10 +-
 .../Builders/TermRangeQueryNodeBuilder.cs       |  10 -
 .../Builders/WildcardQueryNodeBuilder.cs        |   9 -
 .../Standard/Config/FieldBoostMapFCListener.cs  |   8 +-
 .../Config/FieldDateResolutionFCListener.cs     |   4 -
 .../Standard/Config/NumberDateFormat.cs         | 135 +----
 .../Flexible/Standard/Config/NumericConfig.cs   |   3 -
 .../Config/NumericFieldConfigListener.cs        |   5 -
 .../Config/StandardQueryConfigHandler.cs        |   7 +-
 .../Standard/Nodes/AbstractRangeQueryNode.cs    |  36 +-
 .../Standard/Nodes/MultiPhraseQueryNode.cs      |  11 +-
 .../Flexible/Standard/Nodes/NumericQueryNode.cs |  29 +-
 .../Standard/Nodes/NumericRangeQueryNode.cs     |   7 +-
 .../Standard/Nodes/PrefixWildcardQueryNode.cs   |   2 -
 .../Flexible/Standard/Nodes/RegexpQueryNode.cs  |   4 -
 .../Standard/Nodes/WildcardQueryNode.cs         |   2 -
 .../Flexible/Standard/Parser/CharStream.cs      |   1 -
 .../Standard/Parser/EscapeQuerySyntaxImpl.cs    | 103 ----
 .../Flexible/Standard/Parser/FastCharStream.cs  |   6 +-
 .../Flexible/Standard/Parser/ParseException.cs  |  11 +-
 .../Standard/Parser/StandardSyntaxParser.cs     |   1 +
 .../Flexible/Standard/Parser/TokenMgrError.cs   |  13 +-
 .../Processors/AllowLeadingWildcardProcessor.cs |  15 -
 .../Processors/AnalyzerQueryNodeProcessor.cs    |  38 --
 .../BooleanQuery2ModifierNodeProcessor.cs       |  12 +-
 ...SingleChildOptimizationQueryNodeProcessor.cs |  13 -
 .../Processors/BoostQueryNodeProcessor.cs       |  12 -
 .../DefaultPhraseSlopQueryNodeProcessor.cs      |  20 -
 .../Processors/FuzzyQueryNodeProcessor.cs       |  12 -
 .../Processors/GroupQueryNodeProcessor.cs       |  35 --
 .../LowercaseExpandedTermsQueryNodeProcessor.cs |  13 -
 .../MatchAllDocsQueryNodeProcessor.cs           |  12 -
 .../Processors/MultiFieldQueryNodeProcessor.cs  |  27 -
 .../MultiTermRewriteMethodProcessor.cs          |   6 -
 .../Processors/NumericQueryNodeProcessor.cs     |  14 -
 .../NumericRangeQueryNodeProcessor.cs           |  15 -
 .../Processors/OpenRangeQueryNodeProcessor.cs   |   5 -
 .../Processors/PhraseSlopQueryNodeProcessor.cs  |  10 -
 .../RemoveEmptyNonLeafQueryNodeProcessor.cs     |  19 -
 .../Processors/TermRangeQueryNodeProcessor.cs   |  12 -
 .../Processors/WildcardQueryNodeProcessor.cs    |  11 -
 .../Flexible/Standard/QueryParserUtil.cs        |   6 +-
 .../Flexible/Standard/StandardQueryParser.cs    | 515 +++++--------------
 .../Flexible/Messages/TestNLS.cs                |  15 -
 .../Flexible/Spans/SpanOrQueryNodeBuilder.cs    |  13 +-
 .../Flexible/Spans/SpanTermQueryNodeBuilder.cs  |  13 +-
 .../Flexible/Spans/SpansQueryConfigHandler.cs   |   2 +-
 .../Flexible/Spans/SpansQueryTreeBuilder.cs     |  13 -
 .../Spans/SpansValidatorQueryNodeProcessor.cs   |  16 +-
 .../Flexible/Spans/TestSpanQueryParser.cs       |  29 +-
 .../Spans/TestSpanQueryParserSimpleSample.cs    |  28 +-
 .../Flexible/Spans/UniqueFieldAttribute.cs      |   4 +-
 .../Flexible/Spans/UniqueFieldAttributeImpl.cs  |  18 +-
 .../Spans/UniqueFieldQueryNodeProcessor.cs      |  17 +-
 .../Standard/TestMultiAnalyzerQPHelper.cs       |   1 -
 .../Flexible/Standard/TestNumericQueryParser.cs | 234 ++-------
 .../Flexible/Standard/TestQPHelper.cs           | 509 +++++++++---------
 .../Flexible/Standard/TestStandardQP.cs         |  11 -
 116 files changed, 532 insertions(+), 2489 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
index 5407858..520fe01 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
@@ -32,7 +32,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
         /// </summary>
         /// <param name="queryNode">the query tree root node</param>
         /// <returns>some object generated from the query tree</returns>
-        /*object*/
         TQuery Build(IQueryNode queryNode); // LUCENENET specific - made return type generic so we don't need to deal with cast
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
index 26c1989..92dc49a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
@@ -146,20 +146,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
             if (this.fieldNameBuilders != null && node is IFieldableNode)
             {
                 string field = ((IFieldableNode)node).Field;
-
-                //if (field != null)
-                //{
-                //    field = field.ToString();
-                //}
-
-                //builder = this.fieldNameBuilders[field];
                 this.fieldNameBuilders.TryGetValue(field, out builder);
-
             }
 
             if (builder == null && this.queryNodeBuilders != null)
             {
-
                 Type clazz = node.GetType();
 
                 do
@@ -178,30 +169,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
                             {
                                 break;
                             }
-
                         }
-
                     }
-
                 } while (builder == null && (clazz = clazz.BaseType) != null);
-
             }
 
             return builder;
-
         }
 
         private void ProcessNode(IQueryNode node, IQueryBuilder<TQuery> builder)
         {
-
             if (builder == null)
             {
-
                 throw new QueryNodeException(new MessageImpl(
                     QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, node
                         .ToQueryString(new EscapeQuerySyntaxImpl()), node.GetType()
                         .Name));
-
             }
 
             object obj = builder.Build(node);
@@ -215,17 +198,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 
         private IQueryBuilder<TQuery> GetQueryBuilder(Type clazz)
         {
-
             if (typeof(IQueryNode).IsAssignableFrom(clazz))
             {
                 IQueryBuilder<TQuery> result;
                 this.queryNodeBuilders.TryGetValue(clazz, out result);
                 return result;
-                //return this.queryNodeBuilders.get(clazz);
             }
 
             return null;
-
         }
 
         /**
@@ -240,13 +220,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
          *         {@link QueryNodeException} or if there is a node which had no
          *         builder associated to it
          */
-
-        public virtual /*object*/ TQuery Build(IQueryNode queryNode)
+        public virtual TQuery Build(IQueryNode queryNode)
         {
             Process(queryNode);
 
             return (TQuery)queryNode.GetTag(QUERY_TREE_BUILDER_TAGID);
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
index be1d910..204dbf5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
@@ -36,7 +36,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          */
         public virtual T Get<T>(ConfigurationKey<T> key)
         {
-
             if (key == null)
             {
                 throw new ArgumentException("key cannot be null!");
@@ -44,8 +43,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
             object result;
             this.configMap.TryGetValue(key, out result);
             return result == null ? default(T) : (T)result;
-            //return (T)this.configMap.get(key);
-
         }
 
         /**
@@ -57,14 +54,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          */
         public virtual bool Has<T>(ConfigurationKey<T> key)
         {
-
             if (key == null)
             {
                 throw new ArgumentException("key cannot be null!");
             }
 
             return this.configMap.ContainsKey(key);
-
         }
 
         /**
@@ -76,7 +71,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          */
         public virtual void Set<T>(ConfigurationKey<T> key, T value)
         {
-
             if (key == null)
             {
                 throw new ArgumentException("key cannot be null!");
@@ -85,13 +79,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
             if (value == null)
             {
                 Unset(key);
-
             }
             else
             {
                 this.configMap[key] = value;
             }
-
         }
 
         /**

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
index 5a18314..cdcad25 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
@@ -16,18 +16,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
     public sealed class ConfigurationKey<T> : ConfigurationKey
     {
         internal ConfigurationKey() { }
-
-        /**
-         * Creates a new instance.
-         * 
-         * @param <T> the value's type
-         * 
-         * @return a new instance
-         */
-        //public static ConfigurationKey<T> NewInstance()
-        //{
-        //    return new ConfigurationKey<T>();
-        //}
     }
 
     /// <summary>
@@ -37,6 +25,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
     /// </summary>
     public abstract class ConfigurationKey
     {
+        /// <summary>
+        /// Creates a new instance.
+        /// </summary>
+        /// <typeparam name="T">the value's type</typeparam>
+        /// <returns>a new instance</returns>
         public static ConfigurationKey<T> NewInstance<T>()
         {
             return new ConfigurationKey<T>();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
index cd5d124..780e8c8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
@@ -21,14 +21,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          */
         public FieldConfig(string fieldName)
         {
-
             if (fieldName == null)
             {
                 throw new ArgumentException("field name should not be null!");
             }
 
             this.fieldName = fieldName;
-
         }
 
         /**

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
index 7378f45..d3bf105 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
@@ -45,6 +45,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Messages
         public static string NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY;
         public static string UNSUPPORTED_NUMERIC_DATA_TYPE;
         public static string NUMERIC_CANNOT_BE_EMPTY;
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
index 5b6aed2..2510340 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
@@ -27,7 +27,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-
         public override string ToString()
         {
             var children = GetChildren();
@@ -45,7 +44,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return sb.ToString();
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             var children = GetChildren();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
index 72ed581..6f34f31 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
@@ -29,13 +29,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
             if (clauses != null)
             {
-
                 foreach (IQueryNode clause in clauses)
                 {
-
                     if (clause is FieldQueryNode)
                     {
-
                         if (clause is QueryNodeImpl)
                         {
                             ((QueryNodeImpl)clause).toQueryStringIgnoreFields = true;
@@ -45,12 +42,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                         {
                             ((IFieldableNode)clause).Field = field;
                         }
-
                     }
                 }
-
             }
-
         }
 
         public virtual int MinimumMatchingElements
@@ -58,11 +52,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             get { return this.minimumMatchingmElements; }
         }
 
-        /**
-         * returns null if the field was not specified
-         * 
-         * @return the field
-         */
+        /// <summary>
+        /// Gets or sets the field name. Returns null if the field was not specified.
+        /// </summary>
         public virtual string Field
         {
             get { return this.field; }
@@ -85,16 +77,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return this.field.ToString();
         }
 
-        ///**
-        // * @param field
-        // *          - the field to set
-        // */
-        //public virtual void SetField(string field)
-        //{
-        //    this.field = field;
-        //}
-
-
         public override IQueryNode CloneTree()
         {
             AnyQueryNode clone = (AnyQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
index d8b7c66..f466ce5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
@@ -20,12 +20,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         */
         public BooleanQueryNode(IList<IQueryNode> clauses)
         {
-            SetLeaf(false);
+            IsLeaf = false;
             Allocate();
             Set(clauses);
         }
 
-
         public override string ToString()
         {
             var children = GetChildren();
@@ -42,7 +41,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return sb.ToString();
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             var children = GetChildren();
@@ -65,7 +63,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return "( " + sb.ToString() + " )";
         }
 
-
         public override IQueryNode CloneTree()
         {
             BooleanQueryNode clone = (BooleanQueryNode)base.CloneTree();
@@ -74,6 +71,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
             return clone;
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
index f0a0a7f..1aeb847 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
@@ -36,7 +36,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
 
             this.value = value;
-            SetLeaf(false);
+            IsLeaf = false;
             Allocate();
             Add(query);
         }
@@ -59,7 +59,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
                 return children[0];
             }
-
         }
 
         /**
@@ -84,17 +83,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return "" + (long)f;
             else
                 return "" + f.ToString("0.0#######"); // LUCENENET TODO: Culture
-
         }
 
-
         public override string ToString()
         {
             return "<boost value='" + GetValueString() + "'>" + "\n"
                 + Child.ToString() + "\n</boost>";
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             if (Child == null)
@@ -103,7 +99,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 + GetValueString();
         }
 
-
         public override IQueryNode CloneTree()
         {
             BoostQueryNode clone = (BoostQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
index 84694cb..56faef9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
@@ -19,25 +19,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             // empty constructor
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escaper)
         {
             return "[DELETEDCHILD]";
         }
 
-
         public override string ToString()
         {
             return "<deleted/>";
         }
 
-
         public override IQueryNode CloneTree()
         {
             DeletedQueryNode clone = (DeletedQueryNode)base.CloneTree();
 
             return clone;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
index 45161e2..836ef88 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
@@ -73,7 +73,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             this.text = text;
             this.begin = begin;
             this.end = end;
-            this.SetLeaf(true);
+            this.IsLeaf = true;
 
         }
 
@@ -176,7 +176,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             fqn.toQueryStringIgnoreFields = this.toQueryStringIgnoreFields;
 
             return fqn;
-
         }
 
         public virtual string Value

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
index 81b0cb7..991aa1c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
@@ -60,7 +60,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             : base(field, term, begin, end)
         {
             this.similarity = minSimilarity;
-            SetLeaf(true);
+            IsLeaf = true;
         }
 
         public virtual int PrefixLength
@@ -69,7 +69,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             set { this.prefixLength = value; }
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escaper)
         {
             if (IsDefaultField(this.field))
@@ -82,7 +81,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-
         public override string ToString()
         {
             return "<fuzzy field='" + this.field + "' similarity='" + this.similarity

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
index 9dcdbcb..aad3412 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
 
             Allocate();
-            SetLeaf(false);
+            IsLeaf = false;
             Add(query);
         }
 
@@ -39,7 +39,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return GetChildren()[0];
         }
 
-
         public override string ToString()
         {
             return "<group>" + "\n" + GetChild().ToString() + "\n</group>";
@@ -54,7 +53,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return "( " + GetChild().ToQueryString(escapeSyntaxParser) + " )";
         }
 
-
         public override IQueryNode CloneTree()
         {
             GroupQueryNode clone = (GroupQueryNode)base.CloneTree();
@@ -68,6 +66,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             list.Add(child);
             this.Set(list);
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
index 0a0ffa8..c047b28 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
@@ -18,19 +18,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             // empty constructor
         }
 
-
         public override string ToString()
         {
             return "<matchAllDocs field='*' term='*'/>";
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             return "*:*";
         }
 
-
         public override IQueryNode CloneTree()
         {
             MatchAllDocsQueryNode clone = (MatchAllDocsQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
index 9626f2d..c57a861 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
@@ -20,11 +20,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     /// </summary>
     public class ModifierQueryNode : QueryNodeImpl
     {
-        
         // LUCENENET NOTE: Modifier enum moved outside of this class
 
-
-
         private Modifier modifier = Nodes.Modifier.MOD_NONE;
 
         /**
@@ -44,7 +41,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
 
             Allocate();
-            SetLeaf(false);
+            IsLeaf = false;
             Add(query);
             this.modifier = mod;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
index 2152922..48a75e6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
@@ -17,19 +17,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         {
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escaper)
         {
             return "[NTF]";
         }
 
-
         public override string ToString()
         {
             return "<notokenfound/>";
         }
 
-
         public override IQueryNode CloneTree()
         {
             NoTokenFoundQueryNode clone = (NoTokenFoundQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
index ebdb6ec..4afc033 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
@@ -26,26 +26,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          */
         public OpaqueQueryNode(string schema, string value)
         {
-            this.SetLeaf(true);
+            this.IsLeaf = true;
 
             this.schema = schema;
             this.value = value;
-
         }
 
-
         public override string ToString()
         {
             return "<opaque schema='" + this.schema + "' value='" + this.value + "'/>";
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             return "@" + this.schema + ":'" + this.value + "'";
         }
 
-
         public override IQueryNode CloneTree()
         {
             OpaqueQueryNode clone = (OpaqueQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
index b8596f6..faff682 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
@@ -44,7 +44,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return sb.ToString();
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             var children = GetChildren();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
index 4b893f1..92eacd1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
@@ -164,14 +164,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             List<PathQueryNode.QueryText> rValues = new List<PathQueryNode.QueryText>();
             for (int i = startIndex; i < this.values.Count; i++)
             {
-                //try
-                //{
                 rValues.Add((QueryText)this.values[i].Clone());
-                //}
-                //catch (CloneNotSupportedException e)
-                //{
-                //    // this will not happen
-                //}
             }
             return rValues;
         }
@@ -202,7 +195,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return path.ToString();
         }
 
-
         public override string ToString()
         {
             QueryText text = this.values[0];
@@ -211,7 +203,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 + GetPathString() + "'/>";
         }
 
-
         public override IQueryNode CloneTree()
         {
             PathQueryNode clone = (PathQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
index 9cf9042..52d5f03 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
@@ -28,7 +28,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
 
             this.value = value;
-            SetLeaf(false);
+            IsLeaf = false;
             Allocate();
             Add(query);
         }
@@ -50,17 +50,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return "" + (long)f;
             else
                 return "" + f;
-
         }
 
-
         public override string ToString()
         {
             return "<phraseslop value='" + GetValueString() + "'>" + "\n"
                 + GetChild().ToString() + "\n</phraseslop>";
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             if (GetChild() == null)
@@ -69,7 +66,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 + GetValueString();
         }
 
-
         public override IQueryNode CloneTree()
         {
             PhraseSlopQueryNode clone = (PhraseSlopQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
index a825017..f159a88 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
@@ -1,5 +1,4 @@
-\ufeff//using System;
-using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using System;
@@ -22,7 +21,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
    * Distance condition: PARAGRAPH, SENTENCE, or NUMBER
    */
-
         public enum Type
         {
             PARAGRAPH,
@@ -30,28 +28,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             NUMBER
         }
 
-        //        public enum Type
-        //        {
-        //            PARAGRAPH /*{
-        //      @Override
-        //            CharSequence toQueryString() { return "WITHIN PARAGRAPH";
-        //        }
-        //    }*/,
-        //            SENTENCE  /*{ 
-        //      @Override
-        //      CharSequence toQueryString() { return "WITHIN SENTENCE"; }
-        //}*/,
-        //            NUMBER   /* {
-        //      @Override
-        //      CharSequence toQueryString() { return "WITHIN"; }
-        //    };*/
-        //        }
-
-        //    internal abstract string ToQueryString();
-        //}
-
         // LUCENENET NOTE: Moved ProximityType class outside of ProximityQueryNode class to
-        // prevent a naming conflict witht eh ProximityType property.
+        // prevent a naming conflict with the ProximityType property.
 
         private ProximityQueryNode.Type proximityType = ProximityQueryNode.Type.SENTENCE;
         private int distance = -1;
@@ -75,8 +53,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             ProximityQueryNode.Type type, int distance, bool inorder)
             : base(clauses)
         {
-
-            SetLeaf(false);
+            IsLeaf = false;
             this.proximityType = type;
             this.inorder = inorder;
             this.field = field;
@@ -87,13 +64,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                     throw new QueryNodeError(new MessageImpl(
                         QueryParserMessages.PARAMETER_VALUE_NOT_SUPPORTED, "distance",
                         distance));
-
                 }
                 else
                 {
                     this.distance = distance;
                 }
-
             }
             ClearFields(clauses, field);
         }
@@ -113,7 +88,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             ProximityQueryNode.Type type, bool inorder)
             : this(clauses, field, type, -1, inorder)
         {
-
         }
 
         private static void ClearFields(IList<IQueryNode> nodes, string field)
@@ -123,7 +97,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
             foreach (IQueryNode clause in nodes)
             {
-
                 if (clause is FieldQueryNode)
                 {
                     ((FieldQueryNode)clause).toQueryStringIgnoreFields = true;
@@ -159,7 +132,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return sb.ToString();
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             string withinSTR = this.proximityType.ToQueryString()
@@ -192,7 +164,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-
         public override IQueryNode CloneTree()
         {
             ProximityQueryNode clone = (ProximityQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
index 9d48fcb..99d9058 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
@@ -30,22 +30,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         protected virtual void Allocate()
         {
-
             if (this.clauses == null)
             {
                 this.clauses = new List<IQueryNode>();
-
             }
             else
             {
                 this.clauses.Clear();
             }
-
         }
 
         public void Add(IQueryNode child)
         {
-
             if (IsLeaf || this.clauses == null || child == null)
             {
                 throw new ArgumentException(NLS
@@ -54,13 +50,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
             this.clauses.Add(child);
             ((QueryNodeImpl)child).SetParent(this);
-
         }
 
-
         public void Add(IList<IQueryNode> children)
         {
-
             if (IsLeaf || this.clauses == null)
             {
                 throw new ArgumentException(NLS
@@ -71,19 +64,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             {
                 Add(child);
             }
-
         }
 
-
         public virtual bool IsLeaf
         {
             get { return this.isLeaf; }
+            protected set { this.isLeaf = value; }
         }
 
-
         public void Set(IList<IQueryNode> children)
         {
-
             if (IsLeaf || this.clauses == null)
             {
                 //ResourceBundle bundle = ResourceBundle
@@ -95,7 +85,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 string message = bundle.GetString(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED);
 
                 throw new ArgumentException(message);
-
             }
 
             // reset parent value
@@ -119,7 +108,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             Add(children);
         }
 
-
         public virtual IQueryNode CloneTree()
         {
             QueryNodeImpl clone = (QueryNodeImpl)this.MemberwiseClone();
@@ -142,22 +130,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return clone;
         }
 
-
-        public virtual /*IQueryNode*/ object Clone()
+        public virtual object Clone()
         {
             return CloneTree();
         }
 
-        protected virtual void SetLeaf(bool isLeaf)
-        {
-            this.isLeaf = isLeaf;
-        }
-
         /**
          * @return a List for QueryNode object. Returns null, for nodes that do not
          *         contain children. All leaf Nodes return null.
          */
-
         public IList<IQueryNode> GetChildren()
         {
             if (IsLeaf || this.clauses == null)
@@ -167,13 +148,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return new List<IQueryNode>(this.clauses);
         }
 
-
         public virtual void SetTag(string tagName, object value)
         {
             this.tags[tagName.ToLower(CultureInfo.InvariantCulture)] = value;
         }
 
-
         public virtual void UnsetTag(string tagName)
         {
             this.tags.Remove(tagName.ToLower(CultureInfo.InvariantCulture));
@@ -201,7 +180,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-
         public virtual IQueryNode Parent
         {
             get { return this.parent; }
@@ -246,7 +224,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @see org.apache.lucene.queryparser.flexible.core.nodes.QueryNode#toString()
          */
-
         public override string ToString()
         {
             return base.ToString();
@@ -267,15 +244,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             if (this.parent != null)
             {
                 IList<IQueryNode> parentChildren = this.parent.GetChildren();
-                //IEnumerator<IQueryNode> it = parentChildren.GetEnumerator();
-
-                //while (it.MoveNext())
-                //{
-                //    if (it.Current == this)
-                //    {
-                //        it.Remove();
-                //    }
-                //}
 
                 // LUCENENET NOTE: Loop in reverse so we can remove items
                 // without screwing up our iterator.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
index a60597b..db2c9f3 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
@@ -47,7 +47,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         {
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escaper)
         {
             if (IsDefaultField(this.field))
@@ -60,7 +59,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-
         public override string ToString()
         {
             return "<quotedfield start='" + this.begin + "' end='" + this.end

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
index 20daf9f..55ab7d5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
@@ -38,7 +38,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
 
             this.value = value;
-            SetLeaf(false);
+            IsLeaf = false;
             Allocate();
             Add(query);
         }
@@ -60,17 +60,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return "" + (long)f;
             else
                 return "" + f;
-
         }
 
-
         public override string ToString()
         {
             return "<slop value='" + GetValueString() + "'>" + "\n"
                 + GetChild().ToString() + "\n</slop>";
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             if (GetChild() == null)
@@ -111,6 +108,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 }
             }
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
index 58f19ab..de22382 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
@@ -15,11 +15,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     {
         public TokenizedPhraseQueryNode()
         {
-            SetLeaf(false);
+            IsLeaf = false;
             Allocate();
         }
 
-
         public override string ToString()
         {
             var children = GetChildren();
@@ -37,7 +36,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         }
 
         // This text representation is not re-parseable
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             var children = GetChildren();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
index 862ad1f..6792a29 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
@@ -23,46 +23,34 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             // empty constructor
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is BooleanQueryNode || node is BoostQueryNode
                 || node is TokenizedPhraseQueryNode
                 || node is ModifierQueryNode)
             {
-
                 IList<IQueryNode> children = node.GetChildren();
 
                 if (children != null && children.Count > 0)
                 {
-
                     foreach (IQueryNode child in children)
                     {
-
                         if (!(child is DeletedQueryNode))
                         {
                             return node;
                         }
-
                     }
-
                 }
 
                 return new MatchNoDocsQueryNode();
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
index df3a851..00aa4a0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
@@ -56,6 +56,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
          *         otherwise it returns <code>null</code>
          */
         QueryConfigHandler GetQueryConfigHandler();
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
index 23aa179..2dac303 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
@@ -24,7 +24,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             this.queryConfig = queryConfigHandler;
         }
 
-
         public virtual IQueryNode Process(IQueryNode queryTree)
         {
             return ProcessIteration(queryTree);
@@ -39,7 +38,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             queryTree = PostProcessNode(queryTree);
 
             return queryTree;
-
         }
 
         /**
@@ -52,18 +50,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
          */
         protected virtual void ProcessChildren(IQueryNode queryTree)
         {
-
             IList<IQueryNode> children = queryTree.GetChildren();
             ChildrenList newChildren;
 
             if (children != null && children.Count > 0)
             {
-
                 newChildren = AllocateChildrenList();
 
                 try
                 {
-
                     foreach (IQueryNode child in children)
                     {
                         var child2 = ProcessIteration(child);
@@ -75,21 +70,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
                         }
 
                         newChildren.Add(child2);
-
                     }
 
                     IList<IQueryNode> orderedChildrenList = SetChildrenOrder(newChildren);
 
                     queryTree.Set(orderedChildrenList);
-
                 }
                 finally
                 {
                     newChildren.beingUsed = false;
                 }
-
             }
-
         }
 
         private ChildrenList AllocateChildrenList()
@@ -98,29 +89,24 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 
             foreach (ChildrenList auxList in this.childrenListPool)
             {
-
                 if (!auxList.beingUsed)
                 {
                     list = auxList;
                     list.Clear();
 
                     break;
-
                 }
-
             }
 
             if (list == null)
             {
                 list = new ChildrenList();
                 this.childrenListPool.Add(list);
-
             }
 
             list.beingUsed = true;
 
             return list;
-
         }
 
         /**
@@ -133,7 +119,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
          * @see QueryNodeProcessor#getQueryConfigHandler()
          * @see QueryConfigHandler
          */
-
         public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
         {
             this.queryConfig = queryConfigHandler;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
index a19c390..0ea7db3 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
@@ -11,7 +11,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {
     public class QueryNodeProcessorPipeline : IQueryNodeProcessor, IList<IQueryNodeProcessor>
     {
-        //private LinkedList<IQueryNodeProcessor> processors = new LinkedList<IQueryNodeProcessor>();
         private List<IQueryNodeProcessor> processors = new List<IQueryNodeProcessor>();
 
         private QueryConfigHandler queryConfig;
@@ -60,14 +59,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 
         public virtual IQueryNode Process(IQueryNode queryTree)
         {
-
             foreach (IQueryNodeProcessor processor in this.processors)
             {
                 queryTree = processor.Process(queryTree);
             }
 
             return queryTree;
-
         }
 
         /**
@@ -79,7 +76,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
          * @see QueryNodeProcessor#getQueryConfigHandler()
          * @see QueryConfigHandler
          */
-
         public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
         {
             this.queryConfig = queryConfigHandler;
@@ -88,13 +84,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             {
                 processor.SetQueryConfigHandler(this.queryConfig);
             }
-
         }
 
         /**
          * @see List#add(Object)
          */
-
         public virtual bool Add(IQueryNodeProcessor processor)
         {
             this.processors.Add(processor);
@@ -106,58 +100,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             }
 
             return added;
-
         }
 
         /**
-         * @see List#add(int, Object)
-         */
-
-        //public virtual void Add(int index, IQueryNodeProcessor processor)
-        //{
-        //    this.processors.Insert(index, processor);
-        //    processor.SetQueryConfigHandler(this.queryConfig);
-
-        //}
-
-        //      /**
-        //       * @see List#addAll(Collection)
-        //       */
-
-        //public virtual bool AddAll(Collection<? extends QueryNodeProcessor> c)
-        //      {
-        //          boolean anyAdded = this.processors.addAll(c);
-
-        //          for (QueryNodeProcessor processor : c)
-        //          {
-        //              processor.setQueryConfigHandler(this.queryConfig);
-        //          }
-
-        //          return anyAdded;
-
-        //      }
-
-        //      /**
-        //       * @see List#addAll(int, Collection)
-        //       */
-        //      @Override
-        //public boolean addAll(int index, Collection<? extends QueryNodeProcessor> c)
-        //      {
-        //          boolean anyAdded = this.processors.addAll(index, c);
-
-        //          for (QueryNodeProcessor processor : c)
-        //          {
-        //              processor.setQueryConfigHandler(this.queryConfig);
-        //          }
-
-        //          return anyAdded;
-
-        //      }
-
-        /**
          * @see List#clear()
          */
-
         public virtual void Clear()
         {
             this.processors.Clear();
@@ -166,30 +113,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
         /**
          * @see List#contains(Object)
          */
-
         public virtual bool Contains(object o)
         {
             return this.processors.Contains(o);
         }
 
-        //      /**
-        //       * @see List#containsAll(Collection)
-        //       */
-        //      @Override
-        //public boolean containsAll(Collection<?> c)
-        //      {
-        //          return this.processors.containsAll(c);
-        //      }
-
-        //      /**
-        //       * @see List#get(int)
-        //       */
-        //      @Override
-        //public QueryNodeProcessor Get(int index)
-        //      {
-        //          return this.processors.get(index);
-        //      }
-
         public virtual IQueryNodeProcessor this[int index]
         {
             get
@@ -205,130 +133,49 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
                 {
                     value.SetQueryConfigHandler(this.queryConfig);
                 }
-
-                //return oldProcessor;
             }
         }
 
         /**
-         * @see List#indexOf(Object)
-         */
-
-        public virtual int IndexOf(object o)
-        {
-            return this.processors.IndexOf(o as IQueryNodeProcessor);
-        }
-
+        * @see List#indexOf(Object)
+        */
         public virtual int IndexOf(IQueryNodeProcessor o)
         {
             return this.processors.IndexOf(o);
         }
 
-        //      /**
-        //       * @see List#isEmpty()
-        //       */
-        //      @Override
-        //public boolean isEmpty()
-        //      {
-        //          return this.processors.isEmpty();
-        //      }
-
-        //      /**
-        //       * @see List#iterator()
-        //       */
-        //      @Override
-        //public Iterator<QueryNodeProcessor> iterator()
-        //      {
-        //          return this.processors.iterator();
-        //      }
-
+        /**
+         * @see List#iterator()
+         */
         public virtual IEnumerator<IQueryNodeProcessor> GetEnumerator()
         {
             return this.processors.GetEnumerator();
         }
 
-        //      /**
-        //       * @see List#lastIndexOf(Object)
-        //       */
-        //      @Override
-        //public int lastIndexOf(Object o)
-        //      {
-        //          return this.processors.lastIndexOf(o);
-        //      }
-
-        //      /**
-        //       * @see List#listIterator()
-        //       */
-        //      @Override
-        //public ListIterator<QueryNodeProcessor> listIterator()
-        //      {
-        //          return this.processors.listIterator();
-        //      }
-
-        //      /**
-        //       * @see List#listIterator(int)
-        //       */
-        //      @Override
-        //public ListIterator<QueryNodeProcessor> listIterator(int index)
-        //      {
-        //          return this.processors.listIterator(index);
-        //      }
-
         /**
          * @see List#remove(Object)
          */
-
-        //public virtual bool Remove(object o)
-        //{
-        //    return this.processors.Remove(o as IQueryNodeProcessor);
-        //}
-
         public virtual bool Remove(IQueryNodeProcessor o)
         {
             return this.processors.Remove(o);
         }
 
-        //      /**
-        //       * @see List#remove(int)
-        //       */
-        //      @Override
-        //public QueryNodeProcessor remove(int index)
-        //      {
-        //          return this.processors.remove(index);
-        //      }
-
+        /**
+         * @see List#remove(int)
+         */
         public virtual void RemoveAt(int index)
         {
             this.processors.RemoveAt(index);
         }
 
-        //      /**
-        //       * @see List#removeAll(Collection)
-        //       */
-        //      @Override
-        //public boolean removeAll(Collection<?> c)
-        //      {
-        //          return this.processors.removeAll(c);
-        //      }
-
         public virtual void RemoveRange(int index, int count)
         {
             this.processors.RemoveRange(index, count);
         }
 
-        //      /**
-        //       * @see List#retainAll(Collection)
-        //       */
-        //      @Override
-        //public boolean retainAll(Collection<?> c)
-        //      {
-        //          return this.processors.retainAll(c);
-        //      }
-
         /**
          * @see List#set(int, Object)
          */
-
         public virtual IQueryNodeProcessor Set(int index, IQueryNodeProcessor processor)
         {
             IQueryNodeProcessor oldProcessor = this.processors[index];
@@ -340,18 +187,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             }
 
             return oldProcessor;
-
         }
 
-        //      /**
-        //       * @see List#size()
-        //       */
-        //      @Override
-        //public int size()
-        //      {
-        //          return this.processors.size();
-        //      }
-
         public virtual int Count
         {
             get { return this.processors.Count; }
@@ -365,15 +202,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             }
         }
 
-        //      /**
-        //       * @see List#subList(int, int)
-        //       */
-        //      @Override
-        //public List<QueryNodeProcessor> subList(int fromIndex, int toIndex)
-        //      {
-        //          return this.processors.subList(fromIndex, toIndex);
-        //      }
-
         public virtual List<IQueryNodeProcessor> GetRange(int index, int count)
         {
             return this.processors.GetRange(index, count);
@@ -404,23 +232,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
         {
             return GetEnumerator();
         }
-
-        //      /**
-        //       * @see List#toArray(Object[])
-        //       */
-        //      @Override
-        //public <T> T[] toArray(T[] array)
-        //      {
-        //          return this.processors.toArray(array);
-        //      }
-
-        //      /**
-        //       * @see List#toArray()
-        //       */
-        //      @Override
-        //public Object[] toArray()
-        //      {
-        //          return this.processors.toArray();
-        //      }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
index ef3fa43..d029bb6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
@@ -19,7 +19,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             // empty constructor
         }
 
-
         public override IQueryNode Process(IQueryNode queryTree)
         {
             queryTree = base.Process(queryTree);
@@ -27,19 +26,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             if (queryTree is DeletedQueryNode
                 && !(queryTree is MatchNoDocsQueryNode))
             {
-
                 return new MatchNoDocsQueryNode();
-
             }
 
             return queryTree;
-
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (!node.IsLeaf)
             {
                 IList<IQueryNode> children = node.GetChildren();
@@ -48,7 +42,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
                 if (children == null || children.Count == 0)
                 {
                     removeBoolean = true;
-
                 }
                 else
                 {
@@ -61,34 +54,27 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
                         {
                             removeBoolean = false;
                             break;
-
                         }
-
                     }
-
                 }
 
                 if (removeBoolean)
                 {
                     return new DeletedQueryNode();
                 }
-
             }
 
             return node;
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
             for (int i = 0; i < children.Count; i++)
             {
-
                 if (children[i] is DeletedQueryNode)
                 {
                     children.RemoveAt(i--);
                 }
-
             }
 
             return children;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
index e92e399..94342c2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
@@ -47,7 +47,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             : base(message.Key, throwable)
         {
             this.message = message;
-
         }
 
         /*
@@ -55,7 +54,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * 
          * @see org.apache.lucene.messages.NLSException#getMessageObject()
          */
-
         public virtual IMessage MessageObject
         {
             get { return this.message; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
index 1a6accd..5362a80 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
@@ -29,7 +29,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             : base(message.Key)
         {
             this.message = message;
-
         }
 
         public QueryNodeException(Exception throwable)
@@ -43,19 +42,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             this.message = message;
         }
 
-
         public virtual IMessage MessageObject
         {
             get { return this.message; }
         }
 
-
         public override string Message
         {
             get { return GetLocalizedMessage(); }
         }
 
-
         public virtual string GetLocalizedMessage()
         {
             return GetLocalizedMessage(CultureInfo.InvariantCulture);
@@ -66,7 +62,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             return this.message.GetLocalizedMessage(locale);
         }
 
-
         public override string ToString()
         {
             return this.message.Key + ": " + GetLocalizedMessage();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
index 73e582b..beb7218 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
@@ -65,7 +65,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             {
                 processor.SetQueryConfigHandler(queryConfigHandler);
             }
-
         }
 
         /**
@@ -101,7 +100,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
         {
             this.processor = processor;
             this.processor.SetQueryConfigHandler(QueryConfigHandler);
-
         }
 
         /**
@@ -116,14 +114,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          */
         public virtual void SetSyntaxParser(ISyntaxParser syntaxParser)
         {
-
             if (syntaxParser == null)
             {
                 throw new ArgumentException("textParser should not be null!");
             }
 
             this.syntaxParser = syntaxParser;
-
         }
 
         /**
@@ -138,14 +134,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          */
         public virtual void SetQueryBuilder(IQueryBuilder<TQuery> queryBuilder)
         {
-
             if (queryBuilder == null)
             {
                 throw new ArgumentException("queryBuilder should not be null!");
             }
 
             this.builder = queryBuilder;
-
         }
 
         /**
@@ -214,7 +208,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             {
                 processor.SetQueryConfigHandler(config);
             }
-
         }
 
         /**
@@ -242,7 +235,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @throws QueryNodeException
          *           if something wrong happens along the three phases
          */
-        public virtual /*object*/ TQuery Parse(string query, string defaultField)
+        public virtual TQuery Parse(string query, string defaultField)
         {
             IQueryNode queryTree = SyntaxParser.Parse(query, defaultField);
 
@@ -254,7 +247,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             }
 
             return QueryBuilder.Build(queryTree);
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
index 9dc37b1..384a614 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
@@ -48,8 +48,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
             else
                 op = ANDOperation.NONE;
 
-            //try
-            //{
             IQueryNode result = null;
             switch (op)
             {
@@ -72,14 +70,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
                     result.Add(q2.CloneTree().GetChildren());
                     return result;
             }
-            //}
-            //catch (CloneNotSupportedException e)
-            //{
-            //    throw new QueryNodeError(e);
-            //}
 
             return null;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
index c2c61a6..2212ef4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
@@ -99,7 +99,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
                 newLength);
         }
 
-
         public override string ToString()
         {
             return new string(this.chars);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
index c383704..d86d1d6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
@@ -14,7 +14,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
     public interface IMessage
     {
         string Key { get; }
-        object[] Arguments { get; }
+        object[] GetArguments();
         string GetLocalizedMessage();
         string GetLocalizedMessage(CultureInfo locale);
     }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
index a854af6..b34e90c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
@@ -30,9 +30,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         }
 
 
-        public virtual object[] Arguments
+        public virtual object[] GetArguments()
         {
-            get { return this.arguments; }
+            return this.arguments;
         }
 
 
@@ -50,13 +50,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
 
         public virtual string GetLocalizedMessage(CultureInfo locale)
         {
-            return NLS.GetLocalizedMessage(Key, locale, Arguments);
+            return NLS.GetLocalizedMessage(Key, locale, GetArguments());
         }
 
 
         public override string ToString()
         {
-            object[] args = Arguments;
+            object[] args = GetArguments();
             StringBuilder sb = new StringBuilder(Key);
             if (args != null)
             {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
index e1053c1..b7505d3 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
@@ -56,7 +56,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
 
             if (args.Length > 0)
             {
-                //str = MessageFormat.Format(str, args);
                 str = string.Format(locale, str, args);
             }
 
@@ -97,7 +96,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
             // Set the UI culture to the passed in locale.
             using (var culture = new CultureContext(locale, locale))
             {
-
                 // slow resource checking
                 // need to loop thru all registered resource bundles
                 for (IEnumerator<string> it = bundles.Keys.GetEnumerator(); it.MoveNext();)
@@ -117,23 +115,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
                             // just continue it might be on the next resource bundle
                         }
                     }
-
-
-                    //ResourceBundle resourceBundle = ResourceBundle.getBundle(clazz.Name,
-                    //    locale);
-                    //if (resourceBundle != null)
-                    //{
-                    //    try
-                    //    {
-                    //        object obj = resourceBundle.getObject(messageKey);
-                    //        if (obj != null)
-                    //            return obj;
-                    //    }
-                    //    catch (MissingResourceException e)
-                    //    {
-                    //        // just continue it might be on the next resource bundle
-                    //    }
-                    //}
                 }
                 // if resource is not found
                 return null;
@@ -144,15 +125,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         {
             FieldInfo[] fieldArray = clazz.GetFields();
 
-            //bool isFieldAccessible = (clazz.getModifiers() & Modifier.PUBLIC) != 0;
-
             // build a map of field names to Field objects
             int len = fieldArray.Length;
             IDictionary<string, FieldInfo> fields = new Dictionary<string, FieldInfo>(len * 2);
             for (int i = 0; i < len; i++)
             {
                 fields[fieldArray[i].Name] = fieldArray[i];
-                LoadFieldValue(fieldArray[i], /*isFieldAccessible,*/ clazz);
+                LoadFieldValue(fieldArray[i], clazz);
             }
         }
 
@@ -160,57 +139,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         {
             field.SetValue(null, field.Name);
             ValidateMessage(field.Name, clazz);
-
-
-            //int MOD_EXPECTED = Modifier.PUBLIC | Modifier.STATIC;
-            //int MOD_MASK = MOD_EXPECTED | Modifier.FINAL;
-            //if ((field.getModifiers() & MOD_MASK) != MOD_EXPECTED)
-            //    return;
-
-            //// Set a value for this empty field.
-            //if (!isFieldAccessible)
-            //    MakeAccessible(field);
-            //try
-            //{
-            //    field.SetValue(null, field.Name);
-            //    ValidateMessage(field.Name, clazz);
-            //}
-            //catch (ArgumentException e)
-            //{
-            //    // should not happen
-            //}
-            ////catch (IllegalAccessException e)
-            ////{
-            ////    // should not happen
-            ////}
         }
 
-        //private static void loadfieldValue(FieldInfo field, bool isFieldAccessible,
-        //    Type clazz)
-        //{
-        //    int MOD_EXPECTED = Modifier.PUBLIC | Modifier.STATIC;
-        //    int MOD_MASK = MOD_EXPECTED | Modifier.FINAL;
-        //    if ((field.getModifiers() & MOD_MASK) != MOD_EXPECTED)
-        //        return;
-
-        //    // Set a value for this empty field.
-        //    if (!isFieldAccessible)
-        //        MakeAccessible(field);
-        //    try
-        //    {
-        //        field.SetValue(null, field.Name);
-        //        ValidateMessage(field.Name, clazz);
-        //    }
-        //    catch (ArgumentException e)
-        //    {
-        //        // should not happen
-        //    }
-        //    //catch (IllegalAccessException e)
-        //    //{
-        //    //    // should not happen
-        //    //}
-        //}
-
         /**
          * @param key
          *          - Message Key
@@ -240,31 +170,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
                 // since this code is just a test to see if the message is present on the
                 // system
             }
-
-            //// Test if the message is present in the resource bundle
-            //try
-            //{
-            //    ResourceBundle resourceBundle = ResourceBundle.getBundle(clazz.Name,
-            //        CultureInfo.InvariantCulture);
-            //    if (resourceBundle != null)
-            //    {
-            //        Object obj = resourceBundle.getObject(key);
-            //        //if (obj == null)
-            //        //  System.err.println("WARN: Message with key:" + key + " and locale: "
-            //        //      + Locale.getDefault() + " not found.");
-            //    }
-            //}
-            //catch (MissingResourceException e)
-            //{
-            //    //System.err.println("WARN: Message with key:" + key + " and locale: "
-            //    //    + Locale.getDefault() + " not found.");
-            //}
-            //catch (Exception e)
-            //{
-            //    // ignore all other errors and exceptions
-            //    // since this code is just a test to see if the message is present on the
-            //    // system
-            //}
         }
 
         /// <summary>
@@ -280,27 +185,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         {
             return Type.GetType(clazz.Namespace + "." + clazz.Name + "Bundle, " + clazz.Assembly.FullName);
         }
-
-  //      /*
-  //       * Make a class field accessible
-  //       */
-  //      private static void MakeAccessible(FieldInfo field)
-  //      {
-  //          if (System.getSecurityManager() == null)
-  //          {
-  //              field.setAccessible(true);
-  //          }
-  //          else
-  //          {
-  //              AccessController.doPrivileged(new PrivilegedAction<Void>() {
-  //      @Override
-  //      public Void run()
-  //      {
-  //          field.setAccessible(true);
-  //          return null;
-  //      }
-  //  });
-  //  }
-  //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
index a08a580..d1c7b85 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
@@ -33,7 +33,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
             // empty constructor
         }
 
-
         public override IQueryNode Process(IQueryNode queryTree)
         {
             Operator? op = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);
@@ -47,13 +46,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
             this.usingAnd = Operator.AND == op;
 
             return base.Process(queryTree);
-
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is AndQueryNode)
             {
                 this.childrenBuffer.Clear();
@@ -65,12 +61,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
                 }
 
                 node.Set(this.childrenBuffer);
-
             }
             else if (this.usingAnd && node is BooleanQueryNode
                 && !(node is OrQueryNode))
             {
-
                 this.childrenBuffer.Clear();
                 IList<IQueryNode> children = node.GetChildren();
 
@@ -80,21 +74,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
                 }
 
                 node.Set(this.childrenBuffer);
-
             }
 
             return node;
-
         }
 
         private IQueryNode ApplyModifier(IQueryNode node, Modifier mod)
         {
-
             // check if modifier is not already defined and is default
             if (!(node is ModifierQueryNode))
             {
                 return new ModifierQueryNode(node, mod);
-
             }
             else
             {
@@ -104,25 +94,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
                 {
                     return new ModifierQueryNode(modNode.GetChild(), mod);
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
             return node;
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
index c8bc616..36a2e36 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
@@ -29,18 +29,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
         {
             for (int i = 0; i < Count; i++)
             {
-
                 if (this[i].GetType().Equals(typeof(BooleanQuery2ModifierNodeProcessor)))
                 {
                     RemoveAt(i--);
                 }
-
             }
 
-
             Add(new BooleanModifiersQueryNodeProcessor());
-
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
index d30a524..b9f8f70 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
@@ -23,7 +23,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             AnyQueryNode andNode = (AnyQueryNode)queryNode;
@@ -33,7 +32,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             if (children != null)
             {
-
                 foreach (IQueryNode child in children)
                 {
                     object obj = child.GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
@@ -48,33 +46,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                         }
                         catch (BooleanQuery.TooManyClauses ex)
                         {
-
                             throw new QueryNodeException(new MessageImpl(
                                /*
                                 * IQQQ.Q0028E_TOO_MANY_BOOLEAN_CLAUSES,
                                 * BooleanQuery.getMaxClauseCount()
                                 */QueryParserMessages.EMPTY_MESSAGE), ex);
-
                         }
-
                     }
-
                 }
-
             }
 
             bQuery.MinimumNumberShouldMatch = andNode.MinimumMatchingElements;
 
             return bQuery;
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }


[31/58] lucenenet git commit: QueryParser.Flexible: License headers

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
index 14b69b5..5a59a3b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Describes the input token stream.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
index b707076..2d29471 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
@@ -4,6 +4,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Token Manager Error.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
index a350357..d117bca 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
@@ -11,6 +11,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor verifies if
     /// {@link ConfigurationKeys#ALLOW_LEADING_WILDCARD} is defined in the

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
index 58f37c8..5f8f414 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
@@ -14,6 +14,23 @@ using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryC
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor verifies if {@link ConfigurationKeys#ANALYZER}
     /// is defined in the {@link QueryConfigHandler}. If it is and the analyzer is

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
index 65dbbba..500e629 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
@@ -9,6 +9,23 @@ using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryC
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor is used to apply the correct {@link ModifierQueryNode} to
     /// {@link BooleanQueryNode}s children. This is a variant of

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
index a3c2b82..2d10381 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
@@ -5,6 +5,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor removes every {@link BooleanQueryNode} that contains only one
     /// child and returns this child. If this child is {@link ModifierQueryNode} that

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
index 953736f..43b2582 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
@@ -7,6 +7,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor iterates the query node tree looking for every
     /// {@link FieldableNode} that has {@link ConfigurationKeys#BOOST} in its

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
index 34ee4c0..3694d73 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
@@ -7,6 +7,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor verifies if {@link ConfigurationKeys#PHRASE_SLOP}
     /// is defined in the {@link QueryConfigHandler}. If it is, it looks for every

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
index 1d8eb41..5096f09 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
@@ -7,6 +7,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor iterates the query node tree looking for every
     /// {@link FuzzyQueryNode}, when this kind of node is found, it checks on the

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
index 1d7bd17..aa43ec1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
@@ -10,6 +10,23 @@ using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryC
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// The {@link SyntaxParser}
     /// generates query node trees that consider the boolean operator precedence, but

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
index 3b0cbda..f145498 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
@@ -9,6 +9,23 @@ using System.Globalization;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor verifies if 
     /// {@link ConfigurationKeys#LOWERCASE_EXPANDED_TERMS} is defined in the

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
index 7418afa..8c5c61c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
@@ -4,6 +4,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor converts every {@link WildcardQueryNode} that is "*:*" to
     /// {@link MatchAllDocsQueryNode}.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
index 3a0d805..7694d01 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
@@ -6,6 +6,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor is used to expand terms so the query looks for the same term
     /// in different fields. It also boosts a query based on its field.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
index 0617497..f5e4d3e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
@@ -8,6 +8,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor instates the default
     /// {@link org.apache.lucene.search.MultiTermQuery.RewriteMethod},

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
index 51a6334..b518b5d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
@@ -13,6 +13,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor is used to convert {@link FieldQueryNode}s to
     /// {@link NumericRangeQueryNode}s. It looks for

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
index 9bedaa7..9388144 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
@@ -14,6 +14,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor is used to convert {@link TermRangeQueryNode}s to
     /// {@link NumericRangeQueryNode}s. It looks for

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
index 8ba910e..4ee5d58 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
@@ -7,6 +7,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Processes {@link TermRangeQuery}s with open ranges.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
index ebefea8..728abeb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
@@ -5,6 +5,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor removes invalid {@link SlopQueryNode} objects in the query
     /// node tree. A {@link SlopQueryNode} is invalid if its child is neither a

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
index ae32415..fdb87bb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
@@ -5,6 +5,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor removes every {@link QueryNode} that is not a leaf and has not
     /// children. If after processing the entire tree the root node is not a leaf and

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
index 96e7ca1..e0e4907 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
@@ -3,6 +3,23 @@ using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This pipeline has all the processors needed to process a query node tree,
     /// generated by {@link StandardSyntaxParser}, already assembled.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
index f08618b..3e8752f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
@@ -11,6 +11,23 @@ using System.Globalization;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processors process {@link TermRangeQueryNode}s. It reads the lower and
     /// upper bounds value from the {@link TermRangeQueryNode} object and try

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
index b1a4c63..3faecc6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
@@ -7,6 +7,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// The {@link StandardSyntaxParser} creates {@link PrefixWildcardQueryNode} nodes which
     /// have values containing the prefixed wildcard. However, Lucene

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
index 16c3574..1d9ef50 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
@@ -5,6 +5,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This class defines utility methods to (help) parse query strings into
     /// {@link Query} objects.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index 76d6d81..592bfc3 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -14,6 +14,23 @@ using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryC
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
+    /*
+     * 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.
+     */
+
     public class StandardQueryParser : QueryParserHelper<Query>, ICommonQueryParserConfiguration
     {
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
index c6a62d6..554c202 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
@@ -7,6 +7,23 @@ using System;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 {
+    /*
+     * 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.
+     */
+
     public class TestQueryTreeBuilder : LuceneTestCase
     {
         [Test]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
index 9b90bb8..4a3d425 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
@@ -5,6 +5,23 @@ using System;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
+    /*
+     * 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.
+     */
+
     public class TestQueryNode : LuceneTestCase
     {
         /* LUCENE-2227 bug in QueryNodeImpl.add() */

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
index bc341a0..748a60a 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {
+    /*
+     * 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.
+     */
+
     public class MessagesTestBundle : NLS
     {
         private static readonly string BUNDLE_NAME = typeof(MessagesTestBundle).Name;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
index e13e451..6425edc 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
@@ -5,6 +5,23 @@ using System.Globalization;
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {
+    /*
+     * 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.
+     */
+
     public class TestNLS : LuceneTestCase
     {
         [Test]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
index 76b8c8a..266869a 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
@@ -16,6 +16,23 @@ using System.IO;
 
 namespace Lucene.Net.QueryParsers.Flexible.Precedence
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This test case tests {@link PrecedenceQueryParser}.
     /// <para/>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
index a2d4d31..518bbd0 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
@@ -7,6 +7,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This builder creates <see cref="SpanOrQuery"/>s from a <see cref="BooleanQueryNode"/>.
     /// <para/>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
index dcb7640..61af93e 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
@@ -6,6 +6,23 @@ using Lucene.Net.Search.Spans;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This builder creates <see cref="SpanTermQuery"/>s from a <see cref="FieldQueryNode"/>
     /// object.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
index 43d7c2c..d30b299 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This query config handler only adds the <see cref="IUniqueFieldAttribute"/> to it.
     /// <para/>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
index f78e573..bb44233 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
@@ -5,6 +5,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Sets up a query tree builder to build a span query tree from a query node
     /// tree.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
index fef23ae..83e6c2c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
@@ -7,6 +7,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Validates every query node in a query node tree. This processor will pass
     /// fine if the query nodes are only <see cref="BooleanQueryNode"/>s,

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
index b396e1f..5511a0a 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
@@ -11,6 +11,23 @@ using System;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This test case demonstrates how the new query parser can be used.
     /// <para/>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
index c5257eb..224cb5b 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
@@ -10,6 +10,23 @@ using System;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This test case demonstrates how the new query parser can be used.
     /// <para/>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
index 712190b..7f32c8e 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This attribute is used by the <see cref="UniqueFieldQueryNodeProcessor"/>
     /// processor. It holds a value that defines which is the unique field name that

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
index 9c69958..7d42ecc 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This attribute is used by the <see cref="UniqueFieldQueryNodeProcessor"/>
     /// processor. It holds a value that defines which is the unique field name that

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
index d109aae..dfb6fbc 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
@@ -6,6 +6,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor changes every field name of each <see cref="IFieldableNode"/> query
     /// node contained in the query tree to the field name defined in the

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
index a371710..c7318a6 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
@@ -8,6 +8,23 @@ using System.IO;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This test case is a copy of the core Lucene query parser test, it was adapted
     /// to use new QueryParserHelper instead of the old query parser.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
index af80c7c..6902ee3 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
@@ -12,6 +12,23 @@ using System.IO;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This test case is a copy of the core Lucene query parser test, it was adapted
     /// to use new QueryParserHelper instead of the old query parser.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index 73227c8..8f1c4dc 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -16,6 +16,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
+    /*
+     * 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.
+     */
+
     public class TestNumericQueryParser : LuceneTestCase
     {
         public enum NumberType

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
index 871b2c0..8d4f434 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -21,6 +21,23 @@ using System.IO;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This test case is a copy of the core Lucene query parser test, it was adapted
     /// to use new QueryParserHelper instead of the old query parser.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
index 59c37c0..6fdbb54 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
@@ -14,6 +14,23 @@ using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryC
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Tests QueryParser.
     /// </summary>


[42/58] lucenenet git commit: QueryParser.Flexible: Documentation comments

Posted by ni...@apache.org.
QueryParser.Flexible: Documentation comments


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

Branch: refs/heads/master
Commit: c6696fe8a36aed83a9476013736ad13dca89c0ba
Parents: 0700747
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Dec 5 19:18:10 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Dec 5 20:25:29 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Builders/QueryTreeBuilder.cs  |  60 ++---
 .../Flexible/Core/Config/AbstractQueryConfig.cs |  60 +++--
 .../Flexible/Core/Config/ConfigurationKey.cs    |   4 +-
 .../Flexible/Core/Config/FieldConfig.cs         |  19 +-
 .../Flexible/Core/Config/FieldConfigListener.cs |   4 +-
 .../Flexible/Core/Config/QueryConfigHandler.cs  |  46 ++--
 .../Flexible/Core/Nodes/AndQueryNode.cs         |  10 +-
 .../Flexible/Core/Nodes/AnyQueryNode.cs         |  22 +-
 .../Flexible/Core/Nodes/BooleanQueryNode.cs     |  10 +-
 .../Flexible/Core/Nodes/BoostQueryNode.cs       |  40 ++--
 .../Flexible/Core/Nodes/DeletedQueryNode.cs     |   4 +-
 .../Flexible/Core/Nodes/FieldQueryNode.cs       |  82 ++++---
 .../Core/Nodes/FieldValuePairQueryNode.cs       |   2 +-
 .../Flexible/Core/Nodes/FieldableNode.cs        |   2 +-
 .../Flexible/Core/Nodes/FuzzyQueryNode.cs       |  54 ++---
 .../Flexible/Core/Nodes/GroupQueryNode.cs       |   8 +-
 .../Core/Nodes/MatchAllDocsQueryNode.cs         |   2 +-
 .../Flexible/Core/Nodes/MatchNoDocsQueryNode.cs |   2 +-
 .../Flexible/Core/Nodes/ModifierQueryNode.cs    |  24 +-
 .../Core/Nodes/NoTokenFoundQueryNode.cs         |   2 +-
 .../Flexible/Core/Nodes/OpaqueQueryNode.cs      |  25 +--
 .../Flexible/Core/Nodes/OrQueryNode.cs          |  10 +-
 .../Flexible/Core/Nodes/PathQueryNode.cs        |  99 ++++-----
 .../Flexible/Core/Nodes/PhraseSlopQueryNode.cs  |  11 +-
 .../Flexible/Core/Nodes/ProximityQueryNode.cs   |  80 +++----
 .../Flexible/Core/Nodes/QueryNode.cs            |  77 ++++---
 .../Flexible/Core/Nodes/QueryNodeImpl.cs        |  58 ++---
 .../Flexible/Core/Nodes/QuotedFieldQueryNode.cs |  36 ++-
 .../Flexible/Core/Nodes/RangeQueryNode.cs       |   2 +-
 .../Flexible/Core/Nodes/SlopQueryNode.cs        |  13 +-
 .../Flexible/Core/Nodes/TextableQueryNode.cs    |   2 +-
 .../Core/Nodes/TokenizedPhraseQueryNode.cs      |   2 +-
 .../Flexible/Core/Nodes/ValueQueryNode.cs       |   4 +-
 .../Flexible/Core/Parser/EscapeQuerySyntax.cs   |   8 +-
 .../Flexible/Core/Parser/SyntaxParser.cs        |   2 +-
 .../NoChildOptimizationQueryNodeProcessor.cs    |   2 +-
 .../Core/Processors/QueryNodeProcessor.cs       |  49 ++--
 .../Core/Processors/QueryNodeProcessorImpl.cs   | 143 ++++++------
 .../Processors/QueryNodeProcessorPipeline.cs    | 141 +++++++-----
 .../RemoveDeletedQueryNodesProcessor.cs         |   6 +-
 .../Flexible/Core/QueryNodeError.cs             |  39 ++--
 .../Flexible/Core/QueryNodeException.cs         |   8 +-
 .../Flexible/Core/QueryNodeParseException.cs    |  30 ++-
 .../Flexible/Core/QueryParserHelper.cs          | 222 ++++++++-----------
 .../Flexible/Core/Util/QueryNodeOperation.cs    |  18 +-
 .../Flexible/Core/Util/UnescapedCharSequence.cs |  47 ++--
 .../Flexible/Messages/MessageImpl.cs            |   5 -
 .../Flexible/Messages/NLS.cs                    |  24 +-
 .../Precedence/PrecedenceQueryParser.cs         |  18 +-
 .../BooleanModifiersQueryNodeProcessor.cs       |  15 +-
 .../PrecedenceQueryNodeProcessorPipeline.cs     |  12 +-
 .../Standard/Builders/AnyQueryNodeBuilder.cs    |  10 +-
 .../Builders/BooleanQueryNodeBuilder.cs         |  10 +-
 .../Standard/Builders/BoostQueryNodeBuilder.cs  |   8 +-
 .../Standard/Builders/DummyQueryNodeBuilder.cs  |   6 +-
 .../Standard/Builders/FieldQueryNodeBuilder.cs  |   2 +-
 .../Standard/Builders/FuzzyQueryNodeBuilder.cs  |   2 +-
 .../Standard/Builders/GroupQueryNodeBuilder.cs  |   6 +-
 .../Builders/MatchAllDocsQueryNodeBuilder.cs    |   4 +-
 .../Builders/MatchNoDocsQueryNodeBuilder.cs     |   4 +-
 .../Builders/ModifierQueryNodeBuilder.cs        |   6 +-
 .../Builders/MultiPhraseQueryNodeBuilder.cs     |   2 +-
 .../Builders/NumericRangeQueryNodeBuilder.cs    |   8 +-
 .../Standard/Builders/PhraseQueryNodeBuilder.cs |   2 +-
 .../Builders/PrefixWildcardQueryNodeBuilder.cs  |   2 +-
 .../Standard/Builders/RegexpQueryNodeBuilder.cs |   2 +-
 .../Standard/Builders/SlopQueryNodeBuilder.cs   |   8 +-
 .../Builders/StandardBooleanQueryNodeBuilder.cs |   6 +-
 .../Standard/Builders/StandardQueryBuilder.cs   |   4 +-
 .../Builders/StandardQueryTreeBuilder.cs        |   6 +-
 .../Builders/TermRangeQueryNodeBuilder.cs       |   2 +-
 .../Builders/WildcardQueryNodeBuilder.cs        |   2 +-
 .../Standard/CommonQueryParserConfiguration.cs  |  30 +--
 .../Standard/Config/FieldBoostMapFCListener.cs  |  10 +-
 .../Config/FieldDateResolutionFCListener.cs     |   6 +-
 .../Flexible/Standard/Config/FuzzyConfig.cs     |   2 +-
 .../Standard/Config/NumberDateFormat.cs         |  24 +-
 .../Flexible/Standard/Config/NumericConfig.cs   |  60 ++---
 .../Config/NumericFieldConfigListener.cs        |  21 +-
 .../Config/StandardQueryConfigHandler.cs        | 185 +++++++---------
 .../Standard/Nodes/AbstractRangeQueryNode.cs    |  83 ++++---
 .../Standard/Nodes/BooleanModifierNode.cs       |   6 +-
 .../Standard/Nodes/MultiPhraseQueryNode.cs      |   4 +-
 .../Flexible/Standard/Nodes/NumericQueryNode.cs |  61 +++--
 .../Standard/Nodes/NumericRangeQueryNode.cs     |  54 ++---
 .../Standard/Nodes/PrefixWildcardQueryNode.cs   |  36 ++-
 .../Flexible/Standard/Nodes/RegexpQueryNode.cs  |  38 ++--
 .../Standard/Nodes/StandardBooleanQueryNode.cs  |   8 +-
 .../Standard/Nodes/TermRangeQueryNode.cs        |  19 +-
 .../Standard/Nodes/WildcardQueryNode.cs         |  36 ++-
 .../Flexible/Standard/Parser/CharStream.cs      | 134 +++++------
 .../Standard/Parser/EscapeQuerySyntaxImpl.cs    |  55 +++--
 .../Flexible/Standard/Parser/FastCharStream.cs  |   8 +-
 .../Flexible/Standard/Parser/ParseException.cs  |  98 ++++----
 .../Standard/Parser/StandardSyntaxParser.cs     |  37 ++--
 .../Parser/StandardSyntaxParserConstants.cs     |   3 +
 .../Parser/StandardSyntaxParserTokenManager.cs  |  22 +-
 .../Flexible/Standard/Parser/Token.cs           | 128 +++++------
 .../Flexible/Standard/Parser/TokenMgrError.cs   | 102 ++++-----
 .../Processors/AllowLeadingWildcardProcessor.cs |   8 +-
 .../Processors/AnalyzerQueryNodeProcessor.cs    |  22 +-
 .../BooleanQuery2ModifierNodeProcessor.cs       |  26 +--
 ...SingleChildOptimizationQueryNodeProcessor.cs |   6 +-
 .../Processors/BoostQueryNodeProcessor.cs       |   6 +-
 .../DefaultPhraseSlopQueryNodeProcessor.cs      |  12 +-
 .../Processors/FuzzyQueryNodeProcessor.cs       |  10 +-
 .../Processors/GroupQueryNodeProcessor.cs       |   6 +-
 .../LowercaseExpandedTermsQueryNodeProcessor.cs |  10 +-
 .../MatchAllDocsQueryNodeProcessor.cs           |   6 +-
 .../Processors/MultiFieldQueryNodeProcessor.cs  |  14 +-
 .../MultiTermRewriteMethodProcessor.cs          |   4 +-
 .../Processors/NumericQueryNodeProcessor.cs     |  30 +--
 .../NumericRangeQueryNodeProcessor.cs           |  22 +-
 .../Processors/OpenRangeQueryNodeProcessor.cs   |   2 +-
 .../Processors/PhraseSlopQueryNodeProcessor.cs  |   6 +-
 .../RemoveEmptyNonLeafQueryNodeProcessor.cs     |   8 +-
 .../StandardQueryNodeProcessorPipeline.cs       |  14 +-
 .../Processors/TermRangeQueryNodeProcessor.cs   |  22 +-
 .../Processors/WildcardQueryNodeProcessor.cs    |   8 +-
 .../Flexible/Standard/QueryParserUtil.cs        | 170 ++++++--------
 .../Flexible/Standard/StandardQueryParser.cs    |  79 ++++++-
 .../Flexible/Spans/SpanOrQueryNodeBuilder.cs    |   1 -
 122 files changed, 1709 insertions(+), 1820 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
index 65f3798..3c9e392 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
@@ -45,11 +45,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
     /// </para>
     /// <para>
     /// The children are usually built before the parent node. However, if a builder
-    /// associated to a node is an instance of <see cref="QueryTreeBuilder"/>, the node is
+    /// associated to a node is an instance of <see cref="QueryTreeBuilder{TQuery}"/>, the node is
     /// delegated to this builder and it's responsible to build the node and its
     /// children.
     /// </para>
-    /// <seealso cref="IQueryBuilder"/>
+    /// <seealso cref="IQueryBuilder{TQuery}"/>
     /// </summary>
     public class QueryTreeBuilder<TQuery> : QueryTreeBuilder, IQueryBuilder<TQuery>
     {
@@ -57,20 +57,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 
         private IDictionary<string, IQueryBuilder<TQuery>> fieldNameBuilders;
 
-        /**
-         * {@link QueryTreeBuilder} constructor.
-         */
+        /// <summary>
+        /// <see cref="QueryTreeBuilder{TQuery}"/> constructor.
+        /// </summary>
         public QueryTreeBuilder()
         {
             // empty constructor
         }
 
-        /**
-         * Associates a field name with a builder.
-         * 
-         * @param fieldName the field name
-         * @param builder the builder to be associated
-         */
+        /// <summary>
+        /// Associates a field name with a builder.
+        /// </summary>
+        /// <param name="fieldName">the field name</param>
+        /// <param name="builder">the builder to be associated</param>
         public virtual void SetBuilder(string fieldName, IQueryBuilder<TQuery> builder)
         {
 
@@ -82,28 +81,24 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
             this.fieldNameBuilders[fieldName] = builder;
         }
 
-        /**
-         * Associates a class with a builder
-         * 
-         * @param queryNodeClass the class
-         * @param builder the builder to be associated
-         */
+        /// <summary>
+        /// Associates a <see cref="Type">class</see> (that implements <see cref="IQueryNode"/>) with a builder
+        /// </summary>
+        /// <param name="queryNodeClass">The type (a class that implements <see cref="IQueryNode"/>)</param>
+        /// <param name="builder">the builder to be associated</param>
         public virtual void SetBuilder(Type queryNodeClass,
             IQueryBuilder<TQuery> builder)
         {
-
             if (this.queryNodeBuilders == null)
             {
                 this.queryNodeBuilders = new Dictionary<Type, IQueryBuilder<TQuery>>();
             }
 
             this.queryNodeBuilders[queryNodeClass] = builder;
-
         }
 
         private void Process(IQueryNode node)
         {
-
             if (node != null)
             {
                 IQueryBuilder<TQuery> builder = GetBuilder(node);
@@ -119,15 +114,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
                         {
                             Process(child);
                         }
-
                     }
-
                 }
 
                 ProcessNode(node, builder);
-
             }
-
         }
 
         private IQueryBuilder<TQuery> GetBuilder(IQueryNode node)
@@ -199,18 +190,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
             return null;
         }
 
-        /**
-         * Builds some kind of object from a query tree. Each node in the query tree
-         * is built using an specific builder associated to it.
-         * 
-         * @param queryNode the query tree root node
-         * 
-         * @return the built object
-         * 
-         * @throws QueryNodeException if some node builder throws a
-         *         {@link QueryNodeException} or if there is a node which had no
-         *         builder associated to it
-         */
+        /// <summary>
+        /// Builds some kind of object from a query tree. Each node in the query tree
+        /// is built using an specific builder associated to it.
+        /// </summary>
+        /// <param name="queryNode">the query tree root node</param>
+        /// <returns>the built object</returns>
+        /// <exception cref="QueryNodeException">if some node builder throws a 
+        /// <see cref="QueryNodeException"/> or if there is a node which had no
+        /// builder associated to it</exception>
         public virtual TQuery Build(IQueryNode queryNode)
         {
             Process(queryNode);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
index ad41267..7cdcd09 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
@@ -21,13 +21,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
      */
 
     /// <summary>
-    /// This class is the base of {@link QueryConfigHandler} and {@link FieldConfig}.
+    /// This class is the base of <see cref="QueryConfigHandler"/> and <see cref="FieldConfig"/>.
     /// It has operations to set, unset and get configuration values.
     /// <para>
     /// Each configuration is is a key->value pair. The key should be an unique
-    /// {@link ConfigurationKey} instance and it also holds the value's type.
+    /// <see cref="ConfigurationKey{T}"/> instance and it also holds the value's type.
     /// </para>
-    /// <seealso cref="ConfigurationKey"/>
+    /// <seealso cref="ConfigurationKey{T}"/>
     /// </summary>
     public abstract class AbstractQueryConfig
     {
@@ -38,15 +38,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
             // although this class is public, it can only be constructed from package
         }
 
-        /**
-         * Returns the value held by the given key.
-         * 
-         * @param <T> the value's type
-         * 
-         * @param key the key, cannot be <code>null</code>
-         * 
-         * @return the value held by the given key
-         */
+        /// <summary>
+        /// Returns the value held by the given key.
+        /// </summary>
+        /// <typeparam name="T">the value's type</typeparam>
+        /// <param name="key">the key, cannot be <c>null</c></param>
+        /// <returns>the value held by the given key</returns>
         public virtual T Get<T>(ConfigurationKey<T> key)
         {
             if (key == null)
@@ -58,13 +55,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
             return result == null ? default(T) : (T)result;
         }
 
-        /**
-         * Returns true if there is a value set with the given key, otherwise false.
-         * 
-         * @param <T> the value's type
-         * @param key the key, cannot be <code>null</code>
-         * @return true if there is a value set with the given key, otherwise false
-         */
+        /// <summary>
+        /// Returns <c>true</c> if there is a value set with the given key, otherwise <c>false</c>.
+        /// </summary>
+        /// <typeparam name="T">the value's type</typeparam>
+        /// <param name="key">the key, cannot be <c>null</c></param>
+        /// <returns><c>true</c> if there is a value set with the given key, otherwise <c>false</c></returns>
         public virtual bool Has<T>(ConfigurationKey<T> key)
         {
             if (key == null)
@@ -75,13 +71,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
             return this.configMap.ContainsKey(key);
         }
 
-        /**
-         * Sets a key and its value.
-         * 
-         * @param <T> the value's type
-         * @param key the key, cannot be <code>null</code>
-         * @param value value to set
-         */
+        /// <summary>
+        /// Sets a key and its value.
+        /// </summary>
+        /// <typeparam name="T">the value's type</typeparam>
+        /// <param name="key">the key, cannot be <c>null</c></param>
+        /// <param name="value">value to set</param>
         public virtual void Set<T>(ConfigurationKey<T> key, T value)
         {
             if (key == null)
@@ -99,13 +94,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
             }
         }
 
-        /**
-         * Unsets the given key and its value.
-         * 
-         * @param <T> the value's type
-         * @param key the key
-         * @return true if the key and value was set and removed, otherwise false
-         */
+        /// <summary>
+        /// Unsets the given key and its value.
+        /// </summary>
+        /// <typeparam name="T">the value's type</typeparam>
+        /// <param name="key">the key</param>
+        /// <returns><c>true</c> if the key and value was set and removed, otherwise <c>false</c></returns>
         public virtual bool Unset<T>(ConfigurationKey<T> key)
         {
             if (key == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
index a39535e..b3cb6d5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
@@ -19,11 +19,11 @@
 
     /// <summary>
     /// An instance of this class represents a key that is used to retrieve a value
-    /// from {@link AbstractQueryConfig}. It also holds the value's type, which is
+    /// from <see cref="AbstractQueryConfig"/>. It also holds the value's type, which is
     /// defined in the generic argument.
     /// </summary>
     /// <seealso cref="AbstractQueryConfig"/>
-    /// <typeparam name="T"></typeparam>
+    /// <typeparam name="T">the value's type</typeparam>
     public sealed class ConfigurationKey<T> : ConfigurationKey
     {
         internal ConfigurationKey() { }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
index 96001e5..04a9c9d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
@@ -26,12 +26,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
     {
         private string fieldName;
 
-        /**
-         * Constructs a {@link FieldConfig}
-         * 
-         * @param fieldName the field name, it cannot be null
-         * @throws IllegalArgumentException if the field name is null
-         */
+        /// <summary>
+        /// Constructs a <see cref="FieldConfig"/>
+        /// </summary>
+        /// <param name="fieldName">the field name, it cannot be null</param>
+        /// <exception cref="ArgumentException">if the field name is null</exception>
         public FieldConfig(string fieldName)
         {
             if (fieldName == null)
@@ -42,11 +41,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
             this.fieldName = fieldName;
         }
 
-        /**
-         * Returns the field name this configuration represents.
-         * 
-         * @return the field name
-         */
+        /// <summary>
+        /// Gets the field name this configuration represents.
+        /// </summary>
         public virtual string Field
         {
             get { return this.fieldName; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
index 1e50e32..7481175 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
@@ -20,14 +20,14 @@
     /// <summary>
     /// This interface should be implemented by classes that wants to listen for
     /// field configuration requests. The implementation receives a
-    /// {@link FieldConfig} object and may add/change its configuration.
+    /// <see cref="FieldConfig"/> object and may add/change its configuration.
     /// </summary>
     /// <seealso cref="FieldConfig"/>
     /// <seealso cref="QueryConfigHandler"/>
     public interface IFieldConfigListener
     {
         /// <summary>
-        /// This method is called ever time a field configuration is requested.
+        /// This method is called every time a field configuration is requested.
         /// </summary>
         /// <param name="fieldConfig">the field configuration requested, should never be null</param>
         void BuildFieldConfig(FieldConfig fieldConfig);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
index 629dc76..1b15b12 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
@@ -23,15 +23,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
     /// <summary>
     /// This class can be used to hold any query configuration and no field
     /// configuration. For field configuration, it creates an empty
-    /// {@link FieldConfig} object and delegate it to field config listeners, 
+    /// <see cref="FieldConfig"/> object and delegate it to field config listeners, 
     /// these are responsible for setting up all the field configuration.
     /// <para>
-    /// {@link QueryConfigHandler} should be extended by classes that intends to
-    /// provide configuration to {@link QueryNodeProcessor} objects.
+    /// <see cref="QueryConfigHandler"/> should be extended by classes that intends to
+    /// provide configuration to <see cref="Processors.IQueryNodeProcessor"/> objects.
     /// </para>
     /// <para>
-    /// The class that extends {@link QueryConfigHandler} should also provide
-    /// {@link FieldConfig} objects for each collection field.
+    /// The class that extends <see cref="QueryConfigHandler"/> should also provide
+    /// <see cref="FieldConfig"/> objects for each collection field.
     /// </para>
     /// </summary>
     /// <seealso cref="FieldConfig"/>
@@ -41,19 +41,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
     {
         private readonly LinkedList<IFieldConfigListener> listeners = new LinkedList<IFieldConfigListener>();
 
-        /**
-         * Returns an implementation of
-         * {@link FieldConfig} for a specific field name. If the implemented
-         * {@link QueryConfigHandler} does not know a specific field name, it may
-         * return <code>null</code>, indicating there is no configuration for that
-         * field.
-         * 
-         * @param fieldName
-         *          the field name
-         * @return a {@link FieldConfig} object containing the field name
-         *         configuration or <code>null</code>, if the implemented
-         *         {@link QueryConfigHandler} has no configuration for that field
-         */
+        /// <summary>
+        /// Returns an implementation of
+        /// <see cref="FieldConfig"/> for a specific field name. If the implemented
+        /// <see cref="QueryConfigHandler"/> does not know a specific field name, it may
+        /// return <c>null</c>, indicating there is no configuration for that
+        /// field.
+        /// </summary>
+        /// <param name="fieldName">the field name</param>
+        /// <returns>A <see cref="FieldConfig"/>object containing the field name
+        /// configuration or <c>null</c>, if the implemented
+        /// <see cref="QueryConfigHandler"/> has no configuration for that field</returns>
         public virtual FieldConfig GetFieldConfig(string fieldName)
         {
             FieldConfig fieldConfig = new FieldConfig(StringUtils.ToString(fieldName));
@@ -67,13 +65,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
 
         }
 
-        /**
-         * Adds a listener. The added listeners are called in the order they are
-         * added.
-         * 
-         * @param listener
-         *          the listener to be added
-         */
+        /// <summary>
+        /// Adds a listener. The added listeners are called in the order they are
+        /// added.
+        /// </summary>
+        /// <param name="listener">the listener to be added</param>
         public virtual void AddFieldConfigListener(IFieldConfigListener listener)
         {
             this.listeners.AddLast(listener);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
index 1dd7f32..4fccebb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
@@ -23,15 +23,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link AndQueryNode} represents an AND boolean operation performed on a
+    /// A <see cref="AndQueryNode"/> represents an AND boolean operation performed on a
     /// list of nodes.
     /// </summary>
     public class AndQueryNode : BooleanQueryNode
     {
-        /**
-   * @param clauses
-   *          - the query nodes to be and'ed
-   */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="clauses">the query nodes to be and'ed</param>
         public AndQueryNode(IList<IQueryNode> clauses)
             : base(clauses)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
index ac04755..96f3f38 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
@@ -22,7 +22,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link AnyQueryNode} represents an ANY operator performed on a list of
+    /// A <see cref="AnyQueryNode"/> represents an ANY operator performed on a list of
     /// nodes.
     /// </summary>
     public class AnyQueryNode : AndQueryNode
@@ -30,10 +30,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         private string field = null;
         private int minimumMatchingmElements = 0;
 
-        /**
-         * @param clauses
-         *          - the query nodes to be or'ed
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="clauses">the query nodes to be or'ed</param>
+        /// <param name="field"></param>
+        /// <param name="minimumMatchingElements"></param>
         public AnyQueryNode(IList<IQueryNode> clauses, string field,
             int minimumMatchingElements)
             : base(clauses)
@@ -78,11 +80,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         // LUCENENET TODO: No need for GetFieldAsString method because
         // field is already type string
-        /**
-         * returns - null if the field was not specified
-         * 
-         * @return the field as a String
-         */
+        /// <summary>
+        /// null if the field was not specified
+        /// </summary>
+        /// <returns>the field as a <see cref="string"/></returns>
         public virtual string GetFieldAsString()
         {
             if (this.field == null)
@@ -101,7 +102,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return clone;
         }
 
-
         public override string ToString()
         {
             var children = GetChildren();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
index 2976640..8017681 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
@@ -22,16 +22,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link BooleanQueryNode} represents a list of elements which do not have an
+    /// A <see cref="BooleanQueryNode"/> represents a list of elements which do not have an
     /// explicit boolean operator defined between them. It can be used to express a
     /// boolean query that intends to use the default boolean operator.
     /// </summary>
     public class BooleanQueryNode : QueryNodeImpl
     {
-        /**
-        * @param clauses
-        *          - the query nodes to be and'ed
-        */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="clauses">the query nodes to be and'ed</param>
         public BooleanQueryNode(IList<IQueryNode> clauses)
         {
             IsLeaf = false;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
index 3bd4bc8..e324a8c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
@@ -23,7 +23,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link BoostQueryNode} boosts the QueryNode tree which is under this node.
+    /// A <see cref="BoostQueryNode"/> boosts the QueryNode tree which is under this node.
     /// So, it must only and always have one child.
     /// 
     /// The boost value may vary from 0.0 to 1.0.
@@ -32,14 +32,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     {
         private float value = 0;
 
-        /**
-         * Constructs a boost node
-         * 
-         * @param query
-         *          the query to be boosted
-         * @param value
-         *          the boost value, it may vary from 0.0 to 1.0
-         */
+        /// <summary>
+        /// Constructs a boost node
+        /// </summary>
+        /// <param name="query">the query to be boosted</param>
+        /// <param name="value">the boost value, it may vary from 0.0 to 1.0</param>
         public BoostQueryNode(IQueryNode query, float value)
         {
             if (query == null)
@@ -54,11 +51,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             Add(query);
         }
 
-        /**
-         * Returns the single child which this node boosts.
-         * 
-         * @return the single child which this node boosts
-         */
+        /// <summary>
+        /// Gets the single child which this node boosts.
+        /// </summary>
         public virtual IQueryNode Child
         {
             get
@@ -74,21 +69,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-        /**
-         * Returns the boost value. It may vary from 0.0 to 1.0.
-         * 
-         * @return the boost value
-         */
+        /// <summary>
+        /// Gets the boost value. It may vary from 0.0 to 1.0.
+        /// </summary>
         public virtual float Value
         {
             get { return this.value; }
         }
 
-        /**
-         * Returns the boost value parsed to a string.
-         * 
-         * @return the parsed value
-         */
+        /// <summary>
+        /// Returns the boost value parsed to a string.
+        /// </summary>
+        /// <returns>the parsed value</returns>
         private string GetValueString()
         {
             float f = this.value;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
index a47ce40..f1b1f69 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
@@ -20,9 +20,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link DeletedQueryNode} represents a node that was deleted from the query
+    /// A <see cref="DeletedQueryNode"/> represents a node that was deleted from the query
     /// node tree. It can be removed from the tree using the
-    /// {@link RemoveDeletedQueryNodesProcessor} processor.
+    /// <see cref="Processors.RemoveDeletedQueryNodesProcessor"/> processor.
     /// </summary>
     public class DeletedQueryNode : QueryNodeImpl
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
index 522c783..8b05f5a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
@@ -22,45 +22,42 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link FieldQueryNode} represents a element that contains field/text tuple
+    /// A <see cref="FieldQueryNode"/> represents a element that contains field/text tuple
     /// </summary>
     public class FieldQueryNode : QueryNodeImpl, IFieldValuePairQueryNode<string>, ITextableQueryNode
     {
-        /**
-   * The term's field
-   */
+        /// <summary>
+        /// The term's field
+        /// </summary>
         protected string field;
 
-        /**
-         * The term's text.
-         */
+        /// <summary>
+        /// The term's text.
+        /// </summary>
         protected ICharSequence text;
 
-        /**
-         * The term's begin position.
-         */
+        /// <summary>
+        /// The term's begin position.
+        /// </summary>
         protected int begin;
 
-        /**
-         * The term's end position.
-         */
+        /// <summary>
+        /// The term's end position.
+        /// </summary>
         protected int end;
 
-        /**
-         * The term's position increment.
-         */
+        /// <summary>
+        /// The term's position increment.
+        /// </summary>
         protected int positionIncrement;
 
-        /**
-         * @param field
-         *          - field name
-         * @param text
-         *          - value
-         * @param begin
-         *          - position in the query string
-         * @param end
-         *          - position in the query string
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
          // LUCENENET specific overload for passing text as string
         public FieldQueryNode(string field, string text, int begin,
             int end)
@@ -68,16 +65,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         {
         }
 
-        /**
-         * @param field
-         *          - field name
-         * @param text
-         *          - value
-         * @param begin
-         *          - position in the query string
-         * @param end
-         *          - position in the query string
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
         public FieldQueryNode(string field, ICharSequence text, int begin,
             int end)
         {
@@ -119,9 +113,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 + this.field + "' text='" + this.text + "'/>";
         }
 
-        /**
-         * @return the term
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <returns>the term</returns>
         public virtual string GetTextAsString()
         {
             if (this.text == null)
@@ -131,11 +126,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         }
 
         // LUCENENET TODO: this method is not required because Field is already type string in .NET
-        /**
-         * returns null if the field was not specified in the query string
-         * 
-         * @return the field
-         */
+        /// <summary>
+        /// null if the field was not specified in the query string
+        /// </summary>
+        /// <returns>the field</returns>
         public virtual string GetFieldAsString()
         {
             if (this.field == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
index 799dcfa..37da94b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
@@ -18,7 +18,7 @@
      */
 
     /// <summary>
-    /// This interface should be implemented by {@link QueryNode} that holds a field
+    /// This interface should be implemented by <see cref="IQueryNode"/> that holds a field
     /// and an arbitrary value.
     /// </summary>
     /// <seealso cref="IFieldableNode"/>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
index a81fa2c..344565b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
@@ -18,7 +18,7 @@
      */
 
     /// <summary>
-    /// A query node implements {@link FieldableNode} interface to indicate that its
+    /// A query node implements <see cref="IFieldableNode"/> interface to indicate that its
     /// children and itself are associated to a specific field.
     /// 
     /// If it has any children which also implements this interface, it must ensure

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
index ae619d9..8ba52a6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
@@ -21,7 +21,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link FuzzyQueryNode} represents a element that contains
+    /// A <see cref="FuzzyQueryNode"/> represents a element that contains
     /// field/text/similarity tuple
     /// </summary>
     public class FuzzyQueryNode : FieldQueryNode
@@ -30,24 +30,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         private int prefixLength;
 
-        /**
-         * @param field
-         *          Name of the field query will use.
-         * @param termStr
-         *          Term token to use for building term for the query
-         */
-        /**
-         * @param field
-         *          - Field name
-         * @param term
-         *          - Value
-         * @param minSimilarity
-         *          - similarity value
-         * @param begin
-         *          - position in the query string
-         * @param end
-         *          - position in the query string
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">Name of the field query will use.</param>
+        /// <param name="term">Term token to use for building term for the query</param>
+        /// <param name="minSimilarity">similarity value</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
          // LUCENENET specific overload for string term
         public FuzzyQueryNode(string field, string term,
             float minSimilarity, int begin, int end)
@@ -55,18 +45,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         {
         }
 
-        /**
-         * @param field
-         *          - Field name
-         * @param term
-         *          - Value
-         * @param minSimilarity
-         *          - similarity value
-         * @param begin
-         *          - position in the query string
-         * @param end
-         *          - position in the query string
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">Name of the field query will use.</param>
+        /// <param name="term">Term token to use for building term for the query</param>
+        /// <param name="minSimilarity">similarity value</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
         public FuzzyQueryNode(string field, ICharSequence term,
             float minSimilarity, int begin, int end)
             : base(field, term, begin, end)
@@ -99,9 +85,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 + "' term='" + this.text + "'/>";
         }
 
-        /**
-         * @return the similarity
-         */
+        /// <summary>
+        /// Gets or Sets the similarity
+        /// </summary>
         public virtual float Similarity
         {
             get { return this.similarity; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
index 915366e..d2c8f43 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
@@ -23,7 +23,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link GroupQueryNode} represents a location where the original user typed
+    /// A <see cref="GroupQueryNode"/> represents a location where the original user typed
     /// real parenthesis on the query string. This class is useful for queries like:
     /// a) a AND b OR c b) ( a AND b) OR c
     /// 
@@ -31,9 +31,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     /// </summary>
     public class GroupQueryNode : QueryNodeImpl
     {
-        /**
-   * This QueryNode is used to identify parenthesis on the original query string
-   */
+        /// <summary>
+        /// This IQueryNode is used to identify parenthesis on the original query string
+        /// </summary>
         public GroupQueryNode(IQueryNode query)
         {
             if (query == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
index 6709104..71db0bf 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
@@ -20,7 +20,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link MatchAllDocsQueryNode} indicates that a query node tree or subtree
+    /// A <see cref="MatchAllDocsQueryNode"/> indicates that a query node tree or subtree
     /// will match all documents if executed in the index.
     /// </summary>
     public class MatchAllDocsQueryNode : QueryNodeImpl

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
index 1b7a4b7..edbb1d5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
@@ -18,7 +18,7 @@
      */
 
     /// <summary>
-    /// A {@link MatchNoDocsQueryNode} indicates that a query node tree or subtree
+    /// A <see cref="MatchNoDocsQueryNode"/> indicates that a query node tree or subtree
     /// will not match any documents if executed in the index.
     /// </summary>
     public class MatchNoDocsQueryNode : DeletedQueryNode

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
index 5311a1e..2962403 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link ModifierQueryNode} indicates the modifier value (+,-,?,NONE) for
+    /// A <see cref="ModifierQueryNode"/> indicates the modifier value (+,-,?,NONE) for
     /// each term on the query string. For example "+t1 -t2 t3" will have a tree of:
     /// <blockquote>
     /// &lt;BooleanQueryNode&gt; &lt;ModifierQueryNode modifier="MOD_REQ"&gt; &lt;t1/&gt;
@@ -38,14 +38,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         private Modifier modifier = Nodes.Modifier.MOD_NONE;
 
-        /**
-         * Used to store the modifier value on the original query string
-         * 
-         * @param query
-         *          - QueryNode subtree
-         * @param mod
-         *          - Modifier Value
-         */
+        /// <summary>
+        /// Used to store the modifier value on the original query string
+        /// </summary>
+        /// <param name="query">QueryNode subtree</param>
+        /// <param name="mod">Modifier Value</param>
         public ModifierQueryNode(IQueryNode query, Modifier mod)
         {
             if (query == null)
@@ -70,14 +67,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             get { return this.modifier; }
         }
 
-
         public override string ToString()
         {
             return "<modifier operation='" + this.modifier.ToString() + "'>" + "\n"
                 + GetChild().ToString() + "\n</modifier>";
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             if (GetChild() == null)
@@ -104,7 +99,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-
         public override IQueryNode CloneTree()
         {
             ModifierQueryNode clone = (ModifierQueryNode)base.CloneTree();
@@ -122,9 +116,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         }
     }
 
-    /**
-   * Modifier type: such as required (REQ), prohibited (NOT)
-   */
+    /// <summary>
+    /// Modifier type: such as required (REQ), prohibited (NOT)
+    /// </summary>
     public enum Modifier
     {
         MOD_NONE,

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
index 7914799..8a09c28 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
@@ -20,7 +20,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link NoTokenFoundQueryNode} is used if a term is convert into no tokens
+    /// A <see cref="NoTokenFoundQueryNode"/> is used if a term is convert into no tokens
     /// by the tokenizer/lemmatizer/analyzer (null).
     /// </summary>
     public class NoTokenFoundQueryNode : DeletedQueryNode

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
index 9d32332..6df9c15 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
@@ -20,7 +20,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link OpaqueQueryNode} is used for specify values that are not supposed to
+    /// A <see cref="OpaqueQueryNode"/> is used for specify values that are not supposed to
     /// be parsed by the parser. For example: and XPATH query in the middle of a
     /// query string a b @xpath:'/bookstore/book[1]/title' c d
     /// </summary>
@@ -30,12 +30,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         private string value = null;
 
-        /**
-         * @param schema
-         *          - schema identifier
-         * @param value
-         *          - value that was not parsed
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="schema">schema identifier</param>
+        /// <param name="value">value that was not parsed</param>
         public OpaqueQueryNode(string schema, string value)
         {
             this.IsLeaf = true;
@@ -64,17 +63,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return clone;
         }
 
-        /**
-         * @return the schema
-         */
+        /// <summary>
+        /// Gets the schema
+        /// </summary>
         public virtual string Schema
         {
             get { return this.schema; }
         }
 
-        /**
-         * @return the value
-         */
+        /// <summary>
+        /// Gets the value
+        /// </summary>
         public virtual string Value
         {
             get { return this.value; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
index 93a8e33..0a9b9e0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
@@ -23,15 +23,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link OrQueryNode} represents an OR boolean operation performed on a list
+    /// A <see cref="OrQueryNode"/> represents an OR boolean operation performed on a list
     /// of nodes.
     /// </summary>
     public class OrQueryNode : BooleanQueryNode
     {
-        /**
-   * @param clauses
-   *          - the query nodes to be or'ed
-   */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="clauses">the query nodes to be or'ed</param>
         public OrQueryNode(IList<IQueryNode> clauses)
             : base(clauses)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
index 794fff5..1027efa 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
@@ -25,47 +25,45 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link PathQueryNode} is used to store queries like
+    /// A <see cref="PathQueryNode"/> is used to store queries like
     /// /company/USA/California /product/shoes/brown. QueryText are objects that
     /// contain the text, begin position and end position in the query.
     /// <para>
     /// Example how the text parser creates these objects:
     /// </para>
     /// <code>
-    /// List values = new List();
-    /// values.add(new PathQueryNode.QueryText("company", 1, 7));
-    /// values.add(new PathQueryNode.QueryText("USA", 9, 12));
-    /// values.add(new PathQueryNode.QueryText("California", 14, 23));
+    /// IList&lt;PathQueryNode.QueryText&gt; values = new List&lt;PathQueryNode.QueryText&gt;();
+    /// values.Add(new PathQueryNode.QueryText("company", 1, 7));
+    /// values.Add(new PathQueryNode.QueryText("USA", 9, 12));
+    /// values.Add(new PathQueryNode.QueryText("California", 14, 23));
     /// QueryNode q = new PathQueryNode(values);
     /// </code>
-    /// 
     /// </summary>
     public class PathQueryNode : QueryNodeImpl
     {
-        /**
-   * Term text with a beginning and end position
-   */
+        /// <summary>
+        /// Term text with a beginning and end position
+        /// </summary>
         public class QueryText : ICloneable
         {
             private string value = null;
-            /**
-             * != null The term's begin position.
-             */
+
+            /// <summary>
+            /// != null The term's begin position.
+            /// </summary>
             private int begin;
 
-            /**
-             * The term's end position.
-             */
+            /// <summary>
+            /// The term's end position.
+            /// </summary>
             private int end;
 
-            /**
-             * @param value
-             *          - text value
-             * @param begin
-             *          - position in the query string
-             * @param end
-             *          - position in the query string
-             */
+            /// <summary>
+            /// 
+            /// </summary>
+            /// <param name="value">text value</param>
+            /// <param name="begin">position in the query string</param>
+            /// <param name="end">position in the query string</param>
             public QueryText(string value, int begin, int end)
                 : base()
             {
@@ -84,25 +82,25 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return clone;
             }
 
-            /**
-             * @return the value
-             */
+            /// <summary>
+            /// Gets the value
+            /// </summary>
             public virtual string Value
             {
                 get { return value; }
             }
 
-            /**
-             * @return the begin
-             */
+            /// <summary>
+            /// Gets the begin
+            /// </summary>
             public virtual int Begin
             {
                 get { return begin; }
             }
 
-            /**
-             * @return the end
-             */
+            /// <summary>
+            /// Gets the end
+            /// </summary>
             public virtual int End
             {
                 get { return end; }
@@ -116,10 +114,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         private IList<QueryText> values = null;
 
-        /**
-         * @param pathElements
-         *          - List of QueryText objects
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="pathElements">List of QueryText objects</param>
         public PathQueryNode(IList<QueryText> pathElements)
         {
             this.values = pathElements;
@@ -141,31 +139,30 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             set { this.values = value; }
         }
 
-        /**
-         * Returns the a specific QueryText element
-         * 
-         * @return QueryText List size
-         */
+        /// <summary>
+        /// Returns the a specific QueryText element
+        /// </summary>
+        /// <param name="index"></param>
+        /// <returns>QueryText List size</returns>
         public virtual QueryText GetPathElement(int index)
         {
             return values[index];
         }
 
-        /**
-         * Returns the CharSequence value of a specific QueryText element
-         * 
-         * @return the CharSequence for a specific QueryText element
-         */
+        /// <summary>
+        /// Returns the <see cref="string"/> value of a specific QueryText element
+        /// </summary>
+        /// <returns>The <see cref="string"/> for a specific QueryText element</returns>
         public virtual string GetFirstPathElement()
         {
             return values[0].Value;
         }
 
-        /**
-         * Returns a List QueryText element from position startIndex
-         * 
-         * @return a List QueryText element from position startIndex
-         */
+        /// <summary>
+        /// Returns a List QueryText element from position <paramref name="startIndex"/> 
+        /// </summary>
+        /// <param name="startIndex"></param>
+        /// <returns>a List QueryText element from position <paramref name="startIndex"/></returns>
         public virtual IList<QueryText> GetPathElements(int startIndex)
         {
             List<PathQueryNode.QueryText> rValues = new List<PathQueryNode.QueryText>();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
index f16a59a..76f436b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
@@ -22,15 +22,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
      */
     /// <summary>
-    /// Query node for <see cref="PhraseQuery"/>'s slop factor.
+    /// Query node for <see cref="Search.PhraseQuery"/>'s slop factor.
     /// </summary>
     public class PhraseSlopQueryNode : QueryNodeImpl, IFieldableNode
     {
         private int value = 0;
 
-        /**
-         * @exception QueryNodeError throw in overridden method to disallow
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="query"></param>
+        /// <param name="value"></param>
+        /// <exception cref="QueryNodeError">throw in overridden method to disallow</exception>
         public PhraseSlopQueryNode(IQueryNode query, int value)
         {
             if (query == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
index ceccf1c..4aa8d70 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
@@ -25,7 +25,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link ProximityQueryNode} represents a query where the terms should meet
+    /// A <see cref="ProximityQueryNode"/> represents a query where the terms should meet
     /// specific distance conditions. (a b c) WITHIN [SENTENCE|PARAGRAPH|NUMBER]
     /// [INORDER] ("a" "b" "c") WITHIN [SENTENCE|PARAGRAPH|NUMBER] [INORDER]
     /// 
@@ -33,9 +33,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     /// </summary>
     public class ProximityQueryNode : BooleanQueryNode
     {
-        /**
-   * Distance condition: PARAGRAPH, SENTENCE, or NUMBER
-   */
+        /// <summary>
+        /// Distance condition: PARAGRAPH, SENTENCE, or NUMBER
+        /// </summary>
         public enum Type
         {
             PARAGRAPH,
@@ -51,19 +51,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         private bool inorder = false;
         private string field = null;
 
-        /**
-         * @param clauses
-         *          - QueryNode children
-         * @param field
-         *          - field name
-         * @param type
-         *          - type of proximity query
-         * @param distance
-         *          - positive integer that specifies the distance
-         * @param inorder
-         *          - true, if the tokens should be matched in the order of the
-         *          clauses
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="clauses">QueryNode children</param>
+        /// <param name="field">field name</param>
+        /// <param name="type">type of proximity query</param>
+        /// <param name="distance">positive integer that specifies the distance</param>
+        /// <param name="inorder">true, if the tokens should be matched in the order of the clauses</param>
         public ProximityQueryNode(IList<IQueryNode> clauses, string field,
             ProximityQueryNode.Type type, int distance, bool inorder)
             : base(clauses)
@@ -88,17 +83,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             ClearFields(clauses, field);
         }
 
-        /**
-         * @param clauses
-         *          - QueryNode children
-         * @param field
-         *          - field name
-         * @param type
-         *          - type of proximity query
-         * @param inorder
-         *          - true, if the tokens should be matched in the order of the
-         *          clauses
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="clauses">QueryNode children</param>
+        /// <param name="field">field name</param>
+        /// <param name="type">type of proximity query</param>
+        /// <param name="inorder">true, if the tokens should be matched in the order of the clauses</param>
         public ProximityQueryNode(IList<IQueryNode> clauses, string field,
             ProximityQueryNode.Type type, bool inorder)
             : this(clauses, field, type, -1, inorder)
@@ -190,19 +181,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return clone;
         }
 
-        /**
-         * @return the distance
-         */
+        /// <summary>
+        /// Gets the distance
+        /// </summary>
         public virtual int Distance
         {
             get { return this.distance; }
         }
 
-        /**
-         * returns null if the field was not specified in the query string
-         * 
-         * @return the field
-         */
+        /// <summary>
+        /// Gets or Sets the field. Returns null if the field was not specified in the query string.
+        /// </summary>
         public virtual string Field
         {
             get { return this.field; }
@@ -210,11 +199,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         }
 
         // LUCENENET TODO: This method is not required because Field is already a string property
-        /**
-         * returns null if the field was not specified in the query string
-         * 
-         * @return the field
-         */
+        /// <summary>
+        /// Gets the field as a string. Returns null if the field was not specified in the query string.
+        /// </summary>
+        /// <returns></returns>
         public virtual string GetFieldAsString()
         {
             if (this.field == null)
@@ -223,16 +211,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return this.field.ToString();
         }
 
-        /**
-         * @return terms must be matched in the specified order
-         */
+        /// <summary>
+        /// terms must be matched in the specified order
+        /// </summary>
         public virtual bool IsInOrder
         {
             get { return this.inorder; }
         }
     }
 
-    /** utility class containing the distance condition and number */
+    /// <summary>
+    /// utility class containing the distance condition and number
+    /// </summary>
     public class ProximityType
     {
         internal int pDistance = 0;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
index a448d10..a42b93c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
@@ -21,75 +21,86 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link QueryNode} is a interface implemented by all nodes on a QueryNode
+    /// A <see cref="IQueryNode"/> is a interface implemented by all nodes on a <see cref="IQueryNode"/>
     /// tree.
     /// </summary>
     public interface IQueryNode
     {
-        /** convert to a query string understood by the query parser */
+        /// <summary>
+        /// convert to a query string understood by the query parser
+        /// </summary>
         // TODO: this interface might be changed in the future
         string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser);
 
-        /** for printing */
+        /// <summary>
+        /// for printing
+        /// </summary>
         string ToString();
 
-        /** get Children nodes */
+        /// <summary>
+        /// get Children nodes
+        /// </summary>
         IList<IQueryNode> GetChildren();
 
-        /** verify if a node is a Leaf node */
+        /// <summary>
+        /// verify if a node is a Leaf node
+        /// </summary>
         bool IsLeaf { get; }
 
-        /** verify if a node contains a tag */
+        /// <summary>
+        /// verify if a node contains a tag
+        /// </summary>
         bool ContainsTag(string tagName);
 
-        /**
-         * Returns object stored under that tag name
-         */
+        /// <summary>
+        /// Returns object stored under that tag name
+        /// </summary>
         object GetTag(string tagName);
 
         IQueryNode Parent { get; }
 
-        /**
-         * Recursive clone the QueryNode tree The tags are not copied to the new tree
-         * when you call the cloneTree() method
-         * 
-         * @return the cloned tree
-         */
+        /// <summary>
+        /// Recursive clone the <see cref="IQueryNode"/> tree. The tags are not copied to the new tree
+        /// when you call the <see cref="CloneTree()"/> method.
+        /// </summary>
+        /// <returns>the cloned tree</returns>
         IQueryNode CloneTree();
 
         // Below are the methods that can change state of a QueryNode
         // Write Operations (not Thread Safe)
 
-        // add a new child to a non Leaf node
+        /// <summary>
+        /// add a new child to a non Leaf node
+        /// </summary>
         void Add(IQueryNode child);
 
         void Add(IList<IQueryNode> children);
 
-        // reset the children of a node
+        /// <summary>
+        /// reset the children of a node
+        /// </summary>
         void Set(IList<IQueryNode> children);
 
-        /**
-         * Associate the specified value with the specified tagName. If the tagName
-         * already exists, the old value is replaced. The tagName and value cannot be
-         * null. tagName will be converted to lowercase.
-         */
+        /// <summary>
+        /// Associate the specified value with the specified <paramref name="tagName"/>. If the <paramref name="tagName"/>
+        /// already exists, the old value is replaced. The <paramref name="tagName"/> and <paramref name="value"/> cannot be
+        /// null. <paramref name="tagName"/> will be converted to lowercase.
+        /// </summary>
         void SetTag(string tagName, object value);
 
-        /**
-         * Unset a tag. tagName will be converted to lowercase.
-         */
+        /// <summary>
+        /// Unset a tag. <paramref name="tagName"/> will be converted to lowercase.
+        /// </summary>
         void UnsetTag(string tagName);
 
-        /**
-         * Returns a map containing all tags attached to this query node. 
-         * 
-         * @return a map containing all tags attached to this query node
-         */
+        /// <summary>
+        /// Gets a map containing all tags attached to this query node. 
+        /// </summary>
         IDictionary<string, object> TagMap { get; }
 
-        /**
-         * Removes this query node from its parent.
-         */
+        /// <summary>
+        /// Removes this query node from its parent.
+        /// </summary>
         void RemoveFromParent();
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
index b0a08ec..c3c3dcc 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
@@ -27,12 +27,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link QueryNodeImpl} is the default implementation of the interface
-    /// {@link QueryNode}
+    /// A <see cref="QueryNodeImpl"/> is the default implementation of the interface
+    /// <see cref="IQueryNode"/>
     /// </summary>
     public abstract class QueryNodeImpl : IQueryNode, ICloneable
     {
-        /* index default field */
+        /// <summary>
+        /// index default field
+        /// </summary>
         // TODO remove PLAINTEXT_FIELD_NAME replacing it with configuration APIs
         public static readonly string PLAINTEXT_FIELD_NAME = "_plain";
 
@@ -144,10 +146,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return CloneTree();
         }
 
-        /**
-         * @return a List for QueryNode object. Returns null, for nodes that do not
-         *         contain children. All leaf Nodes return null.
-         */
+        /// <summary>
+        /// a List for QueryNode object. Returns null, for nodes that do not
+        /// contain children. All leaf Nodes return null.
+        /// </summary>
         public IList<IQueryNode> GetChildren()
         {
             if (IsLeaf || this.clauses == null)
@@ -167,7 +169,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             this.tags.Remove(tagName.ToLower(CultureInfo.InvariantCulture));
         }
 
-        /** verify if a node contains a tag */
+        /// <summary>
+        /// verify if a node contains a tag
+        /// </summary>
         public virtual bool ContainsTag(string tagName)
         {
             return this.tags.ContainsKey(tagName.ToLower(CultureInfo.InvariantCulture));
@@ -199,17 +203,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             get { return Parent == null; }
         }
 
-        /**
-         * If set to true the the method toQueryString will not write field names
-         */
+        /// <summary>
+        /// If set to true the the method toQueryString will not write field names
+        /// </summary>
         protected internal bool toQueryStringIgnoreFields = false;
 
-        /**
-         * This method is use toQueryString to detect if fld is the default field
-         * 
-         * @param fld - field name
-         * @return true if fld is the default field
-         */
+        /// <summary>
+        /// This method is use toQueryString to detect if fld is the default field
+        /// </summary>
+        /// <param name="fld">field name</param>
+        /// <returns>true if fld is the default field</returns>
         // TODO: remove this method, it's commonly used by {@link
         // #toQueryString(org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax)}
         // to figure out what is the default field, however, {@link
@@ -226,23 +229,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return false;
         }
 
-        /**
-         * Every implementation of this class should return pseudo xml like this:
-         * 
-         * For FieldQueryNode: &lt;field start='1' end='2' field='subject' text='foo'/&gt;
-         * 
-         * @see org.apache.lucene.queryparser.flexible.core.nodes.QueryNode#toString()
-         */
+        /// <summary>
+        /// Every implementation of this class should return pseudo xml like this:
+        /// 
+        /// For FieldQueryNode: &lt;field start='1' end='2' field='subject' text='foo'/&gt;
+        /// </summary>
+        /// <seealso cref="IQueryNode.ToString()"/>
         public override string ToString()
         {
             return base.ToString();
         }
 
-        /**
-         * Returns a map containing all tags attached to this query node.
-         * 
-         * @return a map containing all tags attached to this query node
-         */
+        /// <summary>
+        /// Gets a map containing all tags attached to this query node.
+        /// </summary>
         public virtual IDictionary<string, object> TagMap
         {
             get { return new Dictionary<string, object>(this.tags); }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
index d4d9d8f..c3111c0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
@@ -21,21 +21,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link QuotedFieldQueryNode} represents phrase query. Example:
+    /// A <see cref="QuotedFieldQueryNode"/> represents phrase query. Example:
     /// "life is great"
     /// </summary>
     public class QuotedFieldQueryNode : FieldQueryNode
     {
-        /**
-        * @param field
-        *          - field name
-        * @param text
-        *          - value
-        * @param begin
-        *          - position in the query string
-        * @param end
-        *          - position in the query string
-        */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
         // LUCENENET specific overload for text string
         public QuotedFieldQueryNode(string field, string text, int begin,
             int end)
@@ -43,16 +40,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         {
         }
 
-        /**
-        * @param field
-        *          - field name
-        * @param text
-        *          - value
-        * @param begin
-        *          - position in the query string
-        * @param end
-        *          - position in the query string
-        */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
         public QuotedFieldQueryNode(string field, ICharSequence text, int begin,
             int end)
             : base(field, text, begin, end)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
index 697ab3d..4e57d7c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
@@ -18,7 +18,7 @@
      */
 
     /// <summary>
-    /// This interface should be implemented by a {@link QueryNode} that represents
+    /// This interface should be implemented by an <see cref="IQueryNode"/> that represents
     /// some kind of range query.
     /// </summary>
     /// <typeparam name="T"></typeparam>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
index 2edc767..c232ca4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
@@ -22,7 +22,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link SlopQueryNode} represents phrase query with a slop.
+    /// A <see cref="SlopQueryNode"/> represents phrase query with a slop.
     /// 
     /// From Lucene FAQ: Is there a way to use a proximity operator (like near or
     /// within) with Lucene? There is a variable called slop that allows you to
@@ -35,12 +35,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     {
         private int value = 0;
 
-        /**
-         * @param query
-         *          - QueryNode Tree with the phrase
-         * @param value
-         *          - slop value
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="query">QueryNode Tree with the phrase</param>
+        /// <param name="value">slop value</param>
         public SlopQueryNode(IQueryNode query, int value)
         {
             if (query == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
index aa4b802..152a4a7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
@@ -20,7 +20,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// Interface for a node that has text as a {@link CharSequence}
+    /// Interface for a node that has text as a <see cref="ICharSequence"/>
     /// </summary>
     public interface ITextableQueryNode
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
index e5531f7..baa8c18 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
@@ -22,7 +22,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
      */
 
     /// <summary>
-    /// A {@link TokenizedPhraseQueryNode} represents a node created by a code that
+    /// A <see cref="TokenizedPhraseQueryNode"/> represents a node created by a code that
     /// tokenizes/lemmatizes/analyzes.
     /// </summary>
     public class TokenizedPhraseQueryNode : QueryNodeImpl, IFieldableNode

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
index e1087eb..93662d7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
@@ -18,10 +18,10 @@
      */
 
     /// <summary>
-    /// This interface should be implemented by {@link QueryNode} that holds an
+    /// This interface should be implemented by <see cref="IQueryNode"/> that holds an
     /// arbitrary value.
     /// </summary>
-    /// <typeparam name="T"></typeparam>
+    /// <typeparam name="T">the value's type</typeparam>
     public interface IValueQueryNode<T> : IQueryNode
     {
         T Value { get; set; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
index e29bf50..738253c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
@@ -21,8 +21,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
      */
 
     /// <summary>
-    /// A parser needs to implement {@link EscapeQuerySyntax} to allow the QueryNode
-    /// to escape the queries, when the toQueryString method is called.
+    /// A parser needs to implement <see cref="IEscapeQuerySyntax"/> to allow the <see cref="Nodes.IQueryNode"/> 
+    /// to escape the queries, when the ToQueryString method is called.
     /// </summary>
     public interface IEscapeQuerySyntax
     {
@@ -46,6 +46,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
         ICharSequence Escape(ICharSequence text, CultureInfo locale, EscapeQuerySyntax.Type type);
     }
 
+    /// <summary>
+    /// LUCENENET specific static class for mimicking the syntax used for EscapeQuerySyntax.Type
+    /// in Java, since interfaces cannot contain nested enums in .NET anyway.
+    /// </summary>
     public static class EscapeQuerySyntax
     {
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
index 0f1f778..9155dfd 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
@@ -20,7 +20,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
      */
 
     /// <summary>
-    /// A parser needs to implement {@link SyntaxParser} interface
+    /// A parser needs to implement <see cref="ISyntaxParser"/> interface
     /// </summary>
     public interface ISyntaxParser
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
index c28728a..881790f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
@@ -21,7 +21,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
      */
 
     /// <summary>
-    /// A {@link NoChildOptimizationQueryNodeProcessor} removes every
+    /// A <see cref="NoChildOptimizationQueryNodeProcessor"/> removes every
     /// BooleanQueryNode, BoostQueryNode, TokenizedPhraseQueryNode or
     /// ModifierQueryNode that do not have a valid children.
     /// <para>


[07/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
new file mode 100644
index 0000000..5a41c35
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
@@ -0,0 +1,438 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+{
+    /// <summary>
+    /// Implementation of {@link EscapeQuerySyntax} for the standard lucene
+    /// syntax.
+    /// </summary>
+    public class EscapeQuerySyntaxImpl : IEscapeQuerySyntax
+    {
+        private static readonly char[] wildcardChars = { '*', '?' };
+
+        private static readonly string[] escapableTermExtraFirstChars = { "+", "-", "@" };
+
+        private static readonly string[] escapableTermChars = { "\"", "<", ">", "=",
+            "!", "(", ")", "^", "[", "{", ":", "]", "}", "~", "/" };
+
+        // TODO: check what to do with these "*", "?", "\\"
+        private static readonly string[] escapableQuotedChars = { "\"" };
+        private static readonly string[] escapableWhiteChars = { " ", "\t", "\n", "\r",
+            "\f", "\b", "\u3000" };
+        private static readonly string[] escapableWordTokens = { "AND", "OR", "NOT",
+            "TO", "WITHIN", "SENTENCE", "PARAGRAPH", "INORDER" };
+
+        // LUCENENET specific overload for string
+        private static string EscapeChar(string str, CultureInfo locale)
+        {
+            if (str == null || str.Length == 0)
+                return str;
+
+            string buffer = str;
+
+            // regular escapable Char for terms
+            for (int i = 0; i < escapableTermChars.Length; i++)
+            {
+                buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
+                    "\\", locale);
+            }
+
+            // First Character of a term as more escaping chars
+            for (int i = 0; i < escapableTermExtraFirstChars.Length; i++)
+            {
+                if (buffer[0] == escapableTermExtraFirstChars[i][0])
+                {
+                    buffer = "\\" + buffer[0]
+                        + buffer.Substring(1, buffer.Length - 1);
+                    break;
+                }
+            }
+
+            return buffer;
+        }
+
+        private static ICharSequence EscapeChar(ICharSequence str, CultureInfo locale)
+        {
+            if (str == null || str.Length == 0)
+                return str;
+
+            ICharSequence buffer = str;
+
+            // regular escapable Char for terms
+            for (int i = 0; i < escapableTermChars.Length; i++)
+            {
+                buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
+                    "\\", locale);
+            }
+
+            // First Character of a term as more escaping chars
+            for (int i = 0; i < escapableTermExtraFirstChars.Length; i++)
+            {
+                if (buffer[0] == escapableTermExtraFirstChars[i][0])
+                {
+                    buffer = new StringCharSequenceWrapper("\\" + buffer[0]
+                        + buffer.SubSequence(1, buffer.Length).ToString());
+                    break;
+                }
+            }
+
+            return buffer;
+        }
+
+        // LUCENENET specific overload for string
+        private string EscapeQuoted(string str, CultureInfo locale)
+        {
+            if (str == null || str.Length == 0)
+                return str;
+
+            string buffer = str;
+
+            for (int i = 0; i < escapableQuotedChars.Length; i++)
+            {
+                buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
+                    "\\", locale);
+            }
+            return buffer;
+        }
+
+        private ICharSequence EscapeQuoted(ICharSequence str, CultureInfo locale)
+        {
+            if (str == null || str.Length == 0)
+                return str;
+
+            ICharSequence buffer = str;
+
+            for (int i = 0; i < escapableQuotedChars.Length; i++)
+            {
+                buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
+                    "\\", locale);
+            }
+            return buffer;
+        }
+
+        // LUCENENET specific overload for string
+        private static string EscapeTerm(string term, CultureInfo locale)
+        {
+            if (term == null)
+                return term;
+
+            // Escape single Chars
+            term = EscapeChar(term, locale);
+            term = EscapeWhiteChar(term, locale);
+
+            // Escape Parser Words
+            for (int i = 0; i < escapableWordTokens.Length; i++)
+            {
+                if (escapableWordTokens[i].Equals(term.ToString(), StringComparison.OrdinalIgnoreCase))
+                    return "\\" + term;
+            }
+            return term;
+        }
+
+        private static ICharSequence EscapeTerm(ICharSequence term, CultureInfo locale)
+        {
+            if (term == null)
+                return term;
+
+            // Escape single Chars
+            term = EscapeChar(term, locale);
+            term = EscapeWhiteChar(term, locale);
+
+            // Escape Parser Words
+            for (int i = 0; i < escapableWordTokens.Length; i++)
+            {
+                if (escapableWordTokens[i].Equals(term.ToString(), StringComparison.OrdinalIgnoreCase))
+                    return new StringCharSequenceWrapper("\\" + term);
+            }
+            return term;
+        }
+
+        /**
+         * replace with ignore case
+         * 
+         * @param string
+         *          string to get replaced
+         * @param sequence1
+         *          the old character sequence in lowercase
+         * @param escapeChar
+         *          the new character to prefix sequence1 in return string.
+         * @return the new String
+         */
+        // LUCENENET specific overload for string
+        private static string ReplaceIgnoreCase(string @string,
+            string sequence1, string escapeChar, CultureInfo locale)
+        {
+            if (escapeChar == null || sequence1 == null || @string == null)
+                throw new NullReferenceException(); // LUCNENET TODO: ArgumentException...
+
+            // empty string case
+            int count = @string.Length;
+            int sequence1Length = sequence1.Length;
+            if (sequence1Length == 0)
+            {
+                StringBuilder result2 = new StringBuilder((count + 1)
+                    * escapeChar.Length);
+                result2.Append(escapeChar);
+                for (int i = 0; i < count; i++)
+                {
+                    result2.Append(@string[i]);
+                    result2.Append(escapeChar);
+                }
+                return result2.ToString();
+            }
+
+            // normal case
+            StringBuilder result = new StringBuilder();
+            char first = sequence1[0];
+            int start = 0, copyStart = 0, firstIndex;
+            while (start < count)
+            {
+                if ((firstIndex = @string.ToString().ToLower(locale).IndexOf(first,
+                    start)) == -1)
+                    break;
+                bool found = true;
+                if (sequence1.Length > 1)
+                {
+                    if (firstIndex + sequence1Length > count)
+                        break;
+                    for (int i = 1; i < sequence1Length; i++)
+                    {
+                        if (@string.ToString().ToLower(locale)[firstIndex + i] != sequence1[i])
+                        {
+                            found = false;
+                            break;
+                        }
+                    }
+                }
+                if (found)
+                {
+                    result.Append(@string.ToString().Substring(copyStart, firstIndex - copyStart));
+                    result.Append(escapeChar);
+                    result.Append(@string.ToString().Substring(firstIndex,
+                        (firstIndex + sequence1Length) - firstIndex));
+                    copyStart = start = firstIndex + sequence1Length;
+                }
+                else
+                {
+                    start = firstIndex + 1;
+                }
+            }
+            if (result.Length == 0 && copyStart == 0)
+                return @string;
+            result.Append(@string.ToString().Substring(copyStart));
+            return result.ToString();
+        }
+
+        private static ICharSequence ReplaceIgnoreCase(ICharSequence @string,
+           string sequence1, string escapeChar, CultureInfo locale)
+        {
+            if (escapeChar == null || sequence1 == null || @string == null)
+                throw new NullReferenceException(); // LUCNENET TODO: ArgumentException...
+
+            return new StringCharSequenceWrapper(
+                ReplaceIgnoreCase(@string.ToString(), sequence1, escapeChar, locale));
+        }
+
+        /**
+         * escape all tokens that are part of the parser syntax on a given string
+         * 
+         * @param str
+         *          string to get replaced
+         * @param locale
+         *          locale to be used when performing string compares
+         * @return the new String
+         */
+        // LUCENENET specific overload for string
+        private static string EscapeWhiteChar(string str,
+            CultureInfo locale)
+        {
+            if (str == null || str.Length == 0)
+                return str;
+
+            string buffer = str;
+
+            for (int i = 0; i < escapableWhiteChars.Length; i++)
+            {
+                buffer = ReplaceIgnoreCase(buffer, escapableWhiteChars[i].ToLower(locale),
+                    "\\", locale);
+            }
+            return buffer;
+        }
+
+        /**
+         * escape all tokens that are part of the parser syntax on a given string
+         * 
+         * @param str
+         *          string to get replaced
+         * @param locale
+         *          locale to be used when performing string compares
+         * @return the new String
+         */
+        private static ICharSequence EscapeWhiteChar(ICharSequence str,
+            CultureInfo locale)
+        {
+            if (str == null || str.Length == 0)
+                return str;
+
+            ICharSequence buffer = str;
+
+            for (int i = 0; i < escapableWhiteChars.Length; i++)
+            {
+                buffer = ReplaceIgnoreCase(buffer, escapableWhiteChars[i].ToLower(locale),
+                    "\\", locale);
+            }
+            return buffer;
+        }
+
+        // LUCENENET TODO: Add overload for string
+        public virtual ICharSequence Escape(ICharSequence text, CultureInfo locale, EscapeQuerySyntax.Type type)  
+        {
+            if (text == null || text.Length == 0)
+                return text;
+
+            // escape wildcards and the escape char (this has to be perform before
+            // anything else)
+            // since we need to preserve the UnescapedCharSequence and escape the
+            // original escape chars
+            if (text is UnescapedCharSequence)
+            {
+                text = ((UnescapedCharSequence)text).ToStringEscaped(wildcardChars);
+            }
+            else
+            {
+                text = new UnescapedCharSequence(text).ToStringEscaped(wildcardChars);
+            }
+
+            if (type == EscapeQuerySyntax.Type.STRING)
+            {
+                return EscapeQuoted(text, locale);
+            }
+            else
+            {
+                return EscapeTerm(text, locale);
+            }
+        }
+
+        /**
+         * Returns a String where the escape char has been removed, or kept only once
+         * if there was a double escape.
+         * 
+         * Supports escaped unicode characters, e. g. translates <code>A</code> to
+         * <code>A</code>.
+         * 
+         */
+        public static UnescapedCharSequence DiscardEscapeChar(string input)
+        {
+            // Create char array to hold unescaped char sequence
+            char[] output = new char[input.Length];
+            bool[] wasEscaped = new bool[input.Length];
+
+            // The length of the output can be less than the input
+            // due to discarded escape chars. This variable holds
+            // the actual length of the output
+            int length = 0;
+
+            // We remember whether the last processed character was
+            // an escape character
+            bool lastCharWasEscapeChar = false;
+
+            // The multiplier the current unicode digit must be multiplied with.
+            // E. g. the first digit must be multiplied with 16^3, the second with
+            // 16^2...
+            int codePointMultiplier = 0;
+
+            // Used to calculate the codepoint of the escaped unicode character
+            int codePoint = 0;
+
+            for (int i = 0; i < input.Length; i++)
+            {
+                char curChar = input[i];
+                if (codePointMultiplier > 0)
+                {
+                    codePoint += HexToInt(curChar) * codePointMultiplier;
+                    codePointMultiplier = (int)((uint)codePointMultiplier >> 4);
+                    if (codePointMultiplier == 0)
+                    {
+                        output[length++] = (char)codePoint;
+                        codePoint = 0;
+                    }
+                }
+                else if (lastCharWasEscapeChar)
+                {
+                    if (curChar == 'u')
+                    {
+                        // found an escaped unicode character
+                        codePointMultiplier = 16 * 16 * 16;
+                    }
+                    else
+                    {
+                        // this character was escaped
+                        output[length] = curChar;
+                        wasEscaped[length] = true;
+                        length++;
+                    }
+                    lastCharWasEscapeChar = false;
+                }
+                else
+                {
+                    if (curChar == '\\')
+                    {
+                        lastCharWasEscapeChar = true;
+                    }
+                    else
+                    {
+                        output[length] = curChar;
+                        length++;
+                    }
+                }
+            }
+
+            if (codePointMultiplier > 0)
+            {
+                throw new ParseException(new MessageImpl(
+                    QueryParserMessages.INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION));
+            }
+
+            if (lastCharWasEscapeChar)
+            {
+                throw new ParseException(new MessageImpl(
+                    QueryParserMessages.INVALID_SYNTAX_ESCAPE_CHARACTER));
+            }
+
+            return new UnescapedCharSequence(output, wasEscaped, 0, length);
+        }
+
+        /** Returns the numeric value of the hexadecimal character */
+        private static int HexToInt(char c)
+        {
+            if ('0' <= c && c <= '9')
+            {
+                return c - '0';
+            }
+            else if ('a' <= c && c <= 'f')
+            {
+                return c - 'a' + 10;
+            }
+            else if ('A' <= c && c <= 'F')
+            {
+                return c - 'A' + 10;
+            }
+            else
+            {
+                throw new ParseException(new MessageImpl(
+                    QueryParserMessages.INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE, c));
+            }
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
new file mode 100644
index 0000000..d384076
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
@@ -0,0 +1,140 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+{
+    /// <summary>
+    /// An efficient implementation of JavaCC's CharStream interface.  <p>Note that
+    /// this does not do line-number counting, but instead keeps track of the
+    /// character position of the token in the input, as required by Lucene's {@link
+    /// org.apache.lucene.analysis.Token} API. 
+    /// </summary>
+    public sealed class FastCharStream : ICharStream
+    {
+        char[] buffer = null;
+
+        int bufferLength = 0;          // end of valid chars
+        int bufferPosition = 0;        // next char to read
+
+        int tokenStart = 0;          // offset in buffer
+        int bufferStart = 0;          // position in file of buffer
+
+        TextReader input;            // source of chars
+
+        /** Constructs from a Reader. */
+        public FastCharStream(TextReader r)
+        {
+            input = r;
+        }
+
+
+        public char ReadChar()
+        {
+            if (bufferPosition >= bufferLength)
+                Refill();
+            return buffer[bufferPosition++];
+        }
+
+        private void Refill()
+        {
+            int newPosition = bufferLength - tokenStart;
+
+            if (tokenStart == 0)
+            {        // token won't fit in buffer
+                if (buffer == null)
+                {        // first time: alloc buffer
+                    buffer = new char[2048];
+                }
+                else if (bufferLength == buffer.Length)
+                { // grow buffer
+                    char[] newBuffer = new char[buffer.Length * 2];
+                    System.Array.Copy(buffer, 0, newBuffer, 0, bufferLength);
+                    buffer = newBuffer;
+                }
+            }
+            else
+            {            // shift token to front
+                System.Array.Copy(buffer, tokenStart, buffer, 0, newPosition);
+            }
+
+            bufferLength = newPosition;        // update state
+            bufferPosition = newPosition;
+            bufferStart += tokenStart;
+            tokenStart = 0;
+
+            int charsRead =          // fill space in buffer
+              input.Read(buffer, newPosition, buffer.Length - newPosition);
+            if (charsRead <= 0)
+                throw new IOException("read past eof");
+            else
+                bufferLength += charsRead;
+        }
+
+        public char BeginToken()
+        {
+            tokenStart = bufferPosition;
+            return ReadChar();
+        }
+
+
+        public void BackUp(int amount)
+        {
+            bufferPosition -= amount;
+        }
+
+        public string GetImage()
+        {
+            return new string(buffer, tokenStart, bufferPosition - tokenStart);
+        }
+
+
+        public char[] GetSuffix(int len)
+        {
+            char[] value = new char[len];
+            System.Array.Copy(buffer, bufferPosition - len, value, 0, len);
+            return value;
+        }
+
+        public void Done()
+        {
+            try
+            {
+                input.Dispose();
+            }
+            catch (IOException e)
+            {
+            }
+        }
+
+        public int GetColumn()
+        {
+            return bufferStart + bufferPosition;
+        }
+        public int GetLine()
+        {
+            return 1;
+        }
+        public int GetEndColumn()
+        {
+            return bufferStart + bufferPosition;
+        }
+        public int GetEndLine()
+        {
+            return 1;
+        }
+
+        public int GetBeginColumn()
+        {
+            return bufferStart + tokenStart;
+        }
+
+        public int GetBeginLine()
+        {
+            return 1;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
new file mode 100644
index 0000000..9b0ad90
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
@@ -0,0 +1,212 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+{
+    /// <summary>
+    /// This exception is thrown when parse errors are encountered.
+    /// You can explicitly create objects of this exception type by
+    /// calling the method generateParseException in the generated
+    /// parser.
+    /// 
+    /// You can modify this class to customize your error reporting
+    /// mechanisms so long as you retain the public fields.
+    /// </summary>
+    public class ParseException : QueryNodeParseException
+    {
+        /**
+   * The version identifier for this Serializable class.
+   * Increment only if the <i>serialized</i> form of the
+   * class changes.
+   */
+        private static readonly long serialVersionUID = 1L;
+
+        /**
+         * This constructor is used by the method "generateParseException"
+         * in the generated parser.  Calling this constructor generates
+         * a new object of this type with the fields "currentToken",
+         * "expectedTokenSequences", and "tokenImage" set.
+         */
+        public ParseException(Token currentTokenVal,
+           int[][] expectedTokenSequencesVal, string[] tokenImageVal)
+            : base(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, Initialize(
+            currentTokenVal, expectedTokenSequencesVal, tokenImageVal)))
+        {
+            this.currentToken = currentTokenVal;
+            this.expectedTokenSequences = expectedTokenSequencesVal;
+            this.tokenImage = tokenImageVal;
+        }
+
+        /**
+         * The following constructors are for use by you for whatever
+         * purpose you can think of.  Constructing the exception in this
+         * manner makes the exception behave in the normal way - i.e., as
+         * documented in the class "Throwable".  The fields "errorToken",
+         * "expectedTokenSequences", and "tokenImage" do not contain
+         * relevant information.  The JavaCC generated code does not use
+         * these constructors.
+         */
+
+        public ParseException()
+            : base(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, "Error"))
+        {
+        }
+
+        /** Constructor with message. */
+        public ParseException(IMessage message)
+            : base(message)
+        {
+        }
+
+
+        /**
+         * This is the last token that has been consumed successfully.  If
+         * this object has been created due to a parse error, the token
+         * followng this token will (therefore) be the first error token.
+         */
+        public Token currentToken;
+
+        /**
+         * Each entry in this array is an array of integers.  Each array
+         * of integers represents a sequence of tokens (by their ordinal
+         * values) that is expected at this point of the parse.
+         */
+        public int[][] expectedTokenSequences;
+
+        /**
+         * This is a reference to the "tokenImage" array of the generated
+         * parser within which the parse error occurred.  This array is
+         * defined in the generated ...Constants interface.
+         */
+        public string[] tokenImage;
+
+        /**
+         * It uses "currentToken" and "expectedTokenSequences" to generate a parse
+         * error message and returns it.  If this object has been created
+         * due to a parse error, and you do not catch it (it gets thrown
+         * from the parser) the correct error message
+         * gets displayed.
+         */
+        private static string Initialize(Token currentToken,
+                                 int[][] expectedTokenSequences,
+                                 string[] tokenImage)
+        {
+            //String eol = System.getProperty("line.separator", "\n");
+            string eol = Environment.NewLine;
+            StringBuilder expected = new StringBuilder();
+            int maxSize = 0;
+            for (int i = 0; i < expectedTokenSequences.Length; i++)
+            {
+                if (maxSize < expectedTokenSequences[i].Length)
+                {
+                    maxSize = expectedTokenSequences[i].Length;
+                }
+                for (int j = 0; j < expectedTokenSequences[i].Length; j++)
+                {
+                    expected.Append(tokenImage[expectedTokenSequences[i][j]]).Append(' ');
+                }
+                if (expectedTokenSequences[i][expectedTokenSequences[i].Length - 1] != 0)
+                {
+                    expected.Append("...");
+                }
+                expected.Append(eol).Append("    ");
+            }
+            string retval = "Encountered \"";
+            Token tok = currentToken.next;
+            for (int i = 0; i < maxSize; i++)
+            {
+                if (i != 0) retval += " ";
+                if (tok.kind == 0)
+                {
+                    retval += tokenImage[0];
+                    break;
+                }
+                retval += " " + tokenImage[tok.kind];
+                retval += " \"";
+                retval += Add_Escapes(tok.image);
+                retval += " \"";
+                tok = tok.next;
+            }
+            retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn;
+            retval += "." + eol;
+            if (expectedTokenSequences.Length == 1)
+            {
+                retval += "Was expecting:" + eol + "    ";
+            }
+            else
+            {
+                retval += "Was expecting one of:" + eol + "    ";
+            }
+            retval += expected.ToString();
+            return retval;
+        }
+
+        /**
+         * The end of line string for this machine.
+         */
+        //protected String eol = System.getProperty("line.separator", "\n");
+        protected string eol = Environment.NewLine;
+
+        /**
+         * Used to convert raw characters to their escaped version
+         * when these raw version cannot be used as part of an ASCII
+         * string literal.
+         */
+        static string Add_Escapes(string str)
+        {
+            StringBuilder retval = new StringBuilder();
+            char ch;
+            for (int i = 0; i < str.Length; i++)
+            {
+                switch (str[i])
+                {
+                    case (char)0:
+                        continue;
+                    case '\b':
+                        retval.Append("\\b");
+                        continue;
+                    case '\t':
+                        retval.Append("\\t");
+                        continue;
+                    case '\n':
+                        retval.Append("\\n");
+                        continue;
+                    case '\f':
+                        retval.Append("\\f");
+                        continue;
+                    case '\r':
+                        retval.Append("\\r");
+                        continue;
+                    case '\"':
+                        retval.Append("\\\"");
+                        continue;
+                    case '\'':
+                        retval.Append("\\\'");
+                        continue;
+                    case '\\':
+                        retval.Append("\\\\");
+                        continue;
+                    default:
+                        if ((ch = str[i]) < 0x20 || ch > 0x7e)
+                        {
+                            //string s = "0000" + Integer.toString(ch, 16);
+                            string s = "0000" + Convert.ToString(ch, 16);
+                            retval.Append("\\u" + s.Substring(s.Length - 4, s.Length - (s.Length - 4)));
+                        }
+                        else
+                        {
+                            retval.Append(ch);
+                        }
+                        continue;
+                }
+            }
+            return retval.ToString();
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
new file mode 100644
index 0000000..6324ca1
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
@@ -0,0 +1,1250 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+{
+    /// <summary>
+    /// Parser for the standard Lucene syntax
+    /// </summary>
+    public class StandardSyntaxParser : ISyntaxParser /*, StandardSyntaxParserConstants*/
+    {
+        private static readonly int CONJ_NONE = 0;
+        private static readonly int CONJ_AND = 2;
+        private static readonly int CONJ_OR = 2;
+
+
+        // syntax parser constructor
+        public StandardSyntaxParser()
+            : this(new FastCharStream(new StringReader("")))
+        {
+        }
+        /** Parses a query string, returning a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode}.
+        *  @param query  the query string to be parsed.
+        *  @throws ParseException if the parsing fails
+        */
+        public IQueryNode Parse(string query, string field)
+        {
+            ReInit(new FastCharStream(new StringReader(query)));
+            try
+            {
+                // TopLevelQuery is a Query followed by the end-of-input (EOF)
+                IQueryNode querynode = TopLevelQuery(field);
+                return querynode;
+            }
+            catch (ParseException tme)
+            {
+                tme.SetQuery(query);
+                throw tme;
+            }
+            catch (Exception tme)
+            {
+                IMessage message = new MessageImpl(QueryParserMessages.INVALID_SYNTAX_CANNOT_PARSE, query, tme.Message);
+                QueryNodeParseException e = new QueryNodeParseException(tme);
+                e.SetQuery(query);
+                e.SetNonLocalizedMessage(message);
+                throw e;
+            }
+        }
+
+        // *   Query  ::= ( Clause )*
+        // *   Clause ::= ["+", "-"] [<TERM> ":"] ( <TERM> | "(" Query ")" )
+        public int Conjunction()
+        {
+            int ret = CONJ_NONE;
+            switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+            {
+                case RegexpToken.AND:
+                case RegexpToken.OR:
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.AND:
+                            jj_consume_token(RegexpToken.AND);
+                            ret = CONJ_AND;
+                            break;
+                        case RegexpToken.OR:
+                            jj_consume_token(RegexpToken.OR);
+                            ret = CONJ_OR;
+                            break;
+                        default:
+                            jj_la1[0] = jj_gen;
+                            jj_consume_token(-1);
+                            throw new ParseException();
+                    }
+                    break;
+                default:
+                    jj_la1[1] = jj_gen;
+                    break;
+            }
+            { if (true) return ret; }
+            throw new Exception("Missing return statement in function");
+        }
+
+        public Modifier Modifiers()
+        {
+            Modifier ret = Modifier.MOD_NONE;
+            switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+            {
+                case RegexpToken.NOT:
+                case RegexpToken.PLUS:
+                case RegexpToken.MINUS:
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.PLUS:
+                            jj_consume_token(RegexpToken.PLUS);
+                            ret = Modifier.MOD_REQ;
+                            break;
+                        case RegexpToken.MINUS:
+                            jj_consume_token(RegexpToken.MINUS);
+                            ret = Modifier.MOD_NOT;
+                            break;
+                        case RegexpToken.NOT:
+                            jj_consume_token(RegexpToken.NOT);
+                            ret = Modifier.MOD_NOT;
+                            break;
+                        default:
+                            jj_la1[2] = jj_gen;
+                            jj_consume_token(-1);
+                            throw new ParseException();
+                    }
+                    break;
+                default:
+                    jj_la1[3] = jj_gen;
+                    break;
+            }
+            { if (true) return ret; }
+            throw new Exception("Missing return statement in function");
+        }
+
+        // This makes sure that there is no garbage after the query string
+        public IQueryNode TopLevelQuery(string field)
+        {
+            IQueryNode q;
+            q = Query(field);
+            jj_consume_token(0);
+            { if (true) return q; }
+            throw new Exception("Missing return statement in function");
+        }
+
+        // These changes were made to introduce operator precedence:
+        // - Clause() now returns a QueryNode. 
+        // - The modifiers are consumed by Clause() and returned as part of the QueryNode Object
+        // - Query does not consume conjunctions (AND, OR) anymore. 
+        // - This is now done by two new non-terminals: ConjClause and DisjClause
+        // The parse tree looks similar to this:
+        //       Query ::= DisjQuery ( DisjQuery )*
+        //   DisjQuery ::= ConjQuery ( OR ConjQuery )* 
+        //   ConjQuery ::= Clause ( AND Clause )*
+        //      Clause ::= [ Modifier ] ... 
+        public IQueryNode Query(string field)
+        {
+            List<IQueryNode> clauses = null;
+            IQueryNode c, first = null;
+            first = DisjQuery(field);
+            
+            while (true)
+            {
+                switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                {
+                    case RegexpToken.NOT:
+                    case RegexpToken.PLUS:
+                    case RegexpToken.MINUS:
+                    case RegexpToken.LPAREN:
+                    case RegexpToken.QUOTED:
+                    case RegexpToken.TERM:
+                    case RegexpToken.REGEXPTERM:
+                    case RegexpToken.RANGEIN_START:
+                    case RegexpToken.RANGEEX_START:
+                    case RegexpToken.NUMBER:
+                        ;
+                        break;
+                    default:
+                        jj_la1[4] = jj_gen;
+                        goto label_1_break;
+                }
+                c = DisjQuery(field);
+                if (clauses == null)
+                {
+                    clauses = new List<IQueryNode>();
+                    clauses.Add(first);
+                }
+                clauses.Add(c);
+            }
+            label_1_break:
+            if (clauses != null)
+            {
+                { if (true) return new BooleanQueryNode(clauses); }
+            }
+            else
+            {
+                { if (true) return first; }
+            }
+            throw new Exception("Missing return statement in function");
+        }
+
+        public IQueryNode DisjQuery(string field)
+        {
+            IQueryNode first, c;
+            List<IQueryNode> clauses = null;
+            first = ConjQuery(field);
+            
+            while (true)
+            {
+                switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                {
+                    case RegexpToken.OR:
+                        ;
+                        break;
+                    default:
+                        jj_la1[5] = jj_gen;
+                        goto label_2_break;
+                }
+                jj_consume_token(RegexpToken.OR);
+                c = ConjQuery(field);
+                if (clauses == null)
+                {
+                    clauses = new List<IQueryNode>();
+                    clauses.Add(first);
+                }
+                clauses.Add(c);
+            }
+            label_2_break:
+            if (clauses != null)
+            {
+                { if (true) return new OrQueryNode(clauses); }
+            }
+            else
+            {
+                { if (true) return first; }
+            }
+            throw new Exception("Missing return statement in function");
+        }
+
+        public IQueryNode ConjQuery(string field)
+        {
+            IQueryNode first, c;
+            List<IQueryNode> clauses = null;
+            first = ModClause(field);
+            
+            while (true)
+            {
+                switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                {
+                    case RegexpToken.AND:
+                        ;
+                        break;
+                    default:
+                        jj_la1[6] = jj_gen;
+                        goto label_3_break;
+                }
+                jj_consume_token(RegexpToken.AND);
+                c = ModClause(field);
+                if (clauses == null)
+                {
+                    clauses = new List<IQueryNode>();
+                    clauses.Add(first);
+                }
+                clauses.Add(c);
+            }
+            label_3_break:
+            if (clauses != null)
+            {
+                { if (true) return new AndQueryNode(clauses); }
+            }
+            else
+            {
+                { if (true) return first; }
+            }
+            throw new Exception("Missing return statement in function");
+        }
+
+        // QueryNode Query(CharSequence field) :
+        // {
+        // List clauses = new ArrayList();
+        //   List modifiers = new ArrayList();
+        //   QueryNode q, firstQuery=null;
+        //   ModifierQueryNode.Modifier mods;
+        //   int conj;
+        // }
+        // {
+        //   mods=Modifiers() q=Clause(field)
+        //   {
+        //     if (mods == ModifierQueryNode.Modifier.MOD_NONE) firstQuery=q;
+        //     
+        //     // do not create modifier nodes with MOD_NONE
+        //      if (mods != ModifierQueryNode.Modifier.MOD_NONE) {
+        //        q = new ModifierQueryNode(q, mods);
+        //      }
+        //      clauses.add(q);
+        //   }
+        //   (
+        //     conj=Conjunction() mods=Modifiers() q=Clause(field)
+        //     { 
+        //       // do not create modifier nodes with MOD_NONE
+        //        if (mods != ModifierQueryNode.Modifier.MOD_NONE) {
+        //          q = new ModifierQueryNode(q, mods);
+        //        }
+        //        clauses.add(q);
+        //        //TODO: figure out what to do with AND and ORs
+        //   }
+        //   )*
+        //     {
+        //      if (clauses.size() == 1 && firstQuery != null)
+        //         return firstQuery;
+        //       else {
+        //       return new BooleanQueryNode(clauses);
+        //       }
+        //     }
+        // }
+        public IQueryNode ModClause(string field)
+        {
+            IQueryNode q;
+            Modifier mods;
+            mods = Modifiers();
+            q = Clause(field);
+            if (mods != Modifier.MOD_NONE)
+            {
+                q = new ModifierQueryNode(q, mods);
+            }
+            { if (true) return q; }
+            throw new Exception("Missing return statement in function");
+        }
+
+        public IQueryNode Clause(string field)
+        {
+            IQueryNode q;
+            Token fieldToken = null, boost = null, @operator = null, term = null;
+            FieldQueryNode qLower, qUpper;
+            bool lowerInclusive, upperInclusive;
+
+            bool group = false;
+            if (jj_2_2(3))
+            {
+                fieldToken = jj_consume_token(RegexpToken.TERM);
+                switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                {
+                    case RegexpToken.OP_COLON:
+                    case RegexpToken.OP_EQUAL:
+                        switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                        {
+                            case RegexpToken.OP_COLON:
+                                jj_consume_token(RegexpToken.OP_COLON);
+                                break;
+                            case RegexpToken.OP_EQUAL:
+                                jj_consume_token(RegexpToken.OP_EQUAL);
+                                break;
+                            default:
+                                jj_la1[7] = jj_gen;
+                                jj_consume_token(-1);
+                                throw new ParseException();
+                        }
+                        field = EscapeQuerySyntaxImpl.DiscardEscapeChar(fieldToken.image).ToString();
+                        q = Term(field);
+                        break;
+                    case RegexpToken.OP_LESSTHAN:
+                    case RegexpToken.OP_LESSTHANEQ:
+                    case RegexpToken.OP_MORETHAN:
+                    case RegexpToken.OP_MORETHANEQ:
+                        switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                        {
+                            case RegexpToken.OP_LESSTHAN:
+                                @operator = jj_consume_token(RegexpToken.OP_LESSTHAN);
+                                break;
+                            case RegexpToken.OP_LESSTHANEQ:
+                                @operator = jj_consume_token(RegexpToken.OP_LESSTHANEQ);
+                                break;
+                            case RegexpToken.OP_MORETHAN:
+                                @operator = jj_consume_token(RegexpToken.OP_MORETHAN);
+                                break;
+                            case RegexpToken.OP_MORETHANEQ:
+                                @operator = jj_consume_token(RegexpToken.OP_MORETHANEQ);
+                                break;
+                            default:
+                                jj_la1[8] = jj_gen;
+                                jj_consume_token(-1);
+                                throw new ParseException();
+                        }
+                        field = EscapeQuerySyntaxImpl.DiscardEscapeChar(fieldToken.image).ToString();
+                        switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                        {
+                            case RegexpToken.TERM:
+                                term = jj_consume_token(RegexpToken.TERM);
+                                break;
+                            case RegexpToken.QUOTED:
+                                term = jj_consume_token(RegexpToken.QUOTED);
+                                break;
+                            case RegexpToken.NUMBER:
+                                term = jj_consume_token(RegexpToken.NUMBER);
+                                break;
+                            default:
+                                jj_la1[9] = jj_gen;
+                                jj_consume_token(-1);
+                                throw new ParseException();
+                        }
+                        if (term.kind == RegexpToken.QUOTED)
+                        {
+                            term.image = term.image.Substring(1, (term.image.Length - 1) - 1);
+                        }
+                        switch (@operator.kind)
+                        {
+                            case RegexpToken.OP_LESSTHAN:
+                                lowerInclusive = true;
+                                upperInclusive = false;
+
+                                qLower = new FieldQueryNode(field,
+                                                           "*", term.beginColumn, term.endColumn);
+                                qUpper = new FieldQueryNode(field,
+                                                     EscapeQuerySyntaxImpl.DiscardEscapeChar(term.image), term.beginColumn, term.endColumn);
+
+                                break;
+                            case RegexpToken.OP_LESSTHANEQ:
+                                lowerInclusive = true;
+                                upperInclusive = true;
+
+                                qLower = new FieldQueryNode(field,
+                                                         "*", term.beginColumn, term.endColumn);
+                                qUpper = new FieldQueryNode(field,
+                                                         EscapeQuerySyntaxImpl.DiscardEscapeChar(term.image), term.beginColumn, term.endColumn);
+                                break;
+                            case RegexpToken.OP_MORETHAN:
+                                lowerInclusive = false;
+                                upperInclusive = true;
+
+                                qLower = new FieldQueryNode(field,
+                                                         EscapeQuerySyntaxImpl.DiscardEscapeChar(term.image), term.beginColumn, term.endColumn);
+                                qUpper = new FieldQueryNode(field,
+                                                         "*", term.beginColumn, term.endColumn);
+                                break;
+                            case RegexpToken.OP_MORETHANEQ:
+                                lowerInclusive = true;
+                                upperInclusive = true;
+
+                                qLower = new FieldQueryNode(field,
+                                                         EscapeQuerySyntaxImpl.DiscardEscapeChar(term.image), term.beginColumn, term.endColumn);
+                                qUpper = new FieldQueryNode(field,
+                                                         "*", term.beginColumn, term.endColumn);
+                                break;
+                            default:
+                                { if (true) throw new Exception("Unhandled case: operator=" + @operator.ToString()); }
+                        }
+                        q = new TermRangeQueryNode(qLower, qUpper, lowerInclusive, upperInclusive);
+                        break;
+                    default:
+                        jj_la1[10] = jj_gen;
+                        jj_consume_token(-1);
+                        throw new ParseException();
+                }
+            }
+            else
+            {
+                switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                {
+                    case RegexpToken.LPAREN:
+                    case RegexpToken.QUOTED:
+                    case RegexpToken.TERM:
+                    case RegexpToken.REGEXPTERM:
+                    case RegexpToken.RANGEIN_START:
+                    case RegexpToken.RANGEEX_START:
+                    case RegexpToken.NUMBER:
+                        if (jj_2_1(2))
+                        {
+                            fieldToken = jj_consume_token(RegexpToken.TERM);
+                            switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                            {
+                                case RegexpToken.OP_COLON:
+                                    jj_consume_token(RegexpToken.OP_COLON);
+                                    break;
+                                case RegexpToken.OP_EQUAL:
+                                    jj_consume_token(RegexpToken.OP_EQUAL);
+                                    break;
+                                default:
+                                    jj_la1[11] = jj_gen;
+                                    jj_consume_token(-1);
+                                    throw new ParseException();
+                            }
+                            field = EscapeQuerySyntaxImpl.DiscardEscapeChar(fieldToken.image).ToString();
+                        }
+                        else
+                        {
+                            ;
+                        }
+                        switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                        {
+                            case RegexpToken.QUOTED:
+                            case RegexpToken.TERM:
+                            case RegexpToken.REGEXPTERM:
+                            case RegexpToken.RANGEIN_START:
+                            case RegexpToken.RANGEEX_START:
+                            case RegexpToken.NUMBER:
+                                q = Term(field);
+                                break;
+                            case RegexpToken.LPAREN:
+                                jj_consume_token(RegexpToken.LPAREN);
+                                q = Query(field);
+                                jj_consume_token(RegexpToken.RPAREN);
+                                switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                                {
+                                    case RegexpToken.CARAT:
+                                        jj_consume_token(RegexpToken.CARAT);
+                                        boost = jj_consume_token(RegexpToken.NUMBER);
+                                        break;
+                                    default:
+                                        jj_la1[12] = jj_gen;
+                                        break;
+                                }
+                                group = true;
+                                break;
+                            default:
+                                jj_la1[13] = jj_gen;
+                                jj_consume_token(-1);
+                                throw new ParseException();
+                        }
+                        break;
+                    default:
+                        jj_la1[14] = jj_gen;
+                        jj_consume_token(-1);
+                        throw new ParseException();
+                }
+            }
+            if (boost != null)
+            {
+                float f = (float)1.0;
+                try
+                {
+                    f = Convert.ToSingle(boost.image, CultureInfo.InvariantCulture);
+                    // avoid boosting null queries, such as those caused by stop words
+                    if (q != null)
+                    {
+                        q = new BoostQueryNode(q, f);
+                    }
+                }
+                catch (Exception ignored)
+                {
+                    /* Should this be handled somehow? (defaults to "no boost", if
+                         * boost number is invalid)
+                         */
+                }
+            }
+            if (group) { q = new GroupQueryNode(q); }
+            { if (true) return q; }
+            throw new Exception("Missing return statement in function");
+        }
+
+        public IQueryNode Term(string field)
+        {
+            Token term, boost = null, fuzzySlop = null, goop1, goop2;
+            bool fuzzy = false;
+            bool regexp = false;
+            bool startInc = false;
+            bool endInc = false;
+            IQueryNode q = null;
+            FieldQueryNode qLower, qUpper;
+            float defaultMinSimilarity = Search.FuzzyQuery.DefaultMinSimilarity;
+            switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+            {
+                case RegexpToken.TERM:
+                case RegexpToken.REGEXPTERM:
+                case RegexpToken.NUMBER:
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.TERM:
+                            term = jj_consume_token(RegexpToken.TERM);
+                            q = new FieldQueryNode(field, EscapeQuerySyntaxImpl.DiscardEscapeChar(term.image), term.beginColumn, term.endColumn);
+                            break;
+                        case RegexpToken.REGEXPTERM:
+                            term = jj_consume_token(RegexpToken.REGEXPTERM);
+                            regexp = true;
+                            break;
+                        case RegexpToken.NUMBER:
+                            term = jj_consume_token(RegexpToken.NUMBER);
+                            break;
+                        default:
+                            jj_la1[15] = jj_gen;
+                            jj_consume_token(-1);
+                            throw new ParseException();
+                    }
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.FUZZY_SLOP:
+                            fuzzySlop = jj_consume_token(RegexpToken.FUZZY_SLOP);
+                            fuzzy = true;
+                            break;
+                        default:
+                            jj_la1[16] = jj_gen;
+                            break;
+                    }
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.CARAT:
+                            jj_consume_token(RegexpToken.CARAT);
+                            boost = jj_consume_token(RegexpToken.NUMBER);
+                            switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                            {
+                                case RegexpToken.FUZZY_SLOP:
+                                    fuzzySlop = jj_consume_token(RegexpToken.FUZZY_SLOP);
+                                    fuzzy = true;
+                                    break;
+                                default:
+                                    jj_la1[17] = jj_gen;
+                                    break;
+                            }
+                            break;
+                        default:
+                            jj_la1[18] = jj_gen;
+                            break;
+                    }
+                    if (fuzzy)
+                    {
+                        float fms = defaultMinSimilarity;
+                        try
+                        {
+                            fms = Convert.ToSingle(fuzzySlop.image.Substring(1), CultureInfo.InvariantCulture);
+                        }
+                        catch (Exception ignored) { }
+                        if (fms < 0.0f)
+                        {
+                            { if (true) throw new ParseException(new MessageImpl(QueryParserMessages.INVALID_SYNTAX_FUZZY_LIMITS)); }
+                        }
+                        else if (fms >= 1.0f && fms != (int)fms)
+                        {
+                            { if (true) throw new ParseException(new MessageImpl(QueryParserMessages.INVALID_SYNTAX_FUZZY_EDITS)); }
+                        }
+                        q = new FuzzyQueryNode(field, EscapeQuerySyntaxImpl.DiscardEscapeChar(term.image), fms, term.beginColumn, term.endColumn);
+                    }
+                    else if (regexp)
+                    {
+                        string re = term.image.Substring(1, (term.image.Length - 1) - 1);
+                        q = new RegexpQueryNode(field, re, 0, re.Length);
+                    }
+                    break;
+                case RegexpToken.RANGEIN_START:
+                case RegexpToken.RANGEEX_START:
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.RANGEIN_START:
+                            jj_consume_token(RegexpToken.RANGEIN_START);
+                            startInc = true;
+                            break;
+                        case RegexpToken.RANGEEX_START:
+                            jj_consume_token(RegexpToken.RANGEEX_START);
+                            break;
+                        default:
+                            jj_la1[19] = jj_gen;
+                            jj_consume_token(-1);
+                            throw new ParseException();
+                    }
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.RANGE_GOOP:
+                            goop1 = jj_consume_token(RegexpToken.RANGE_GOOP);
+                            break;
+                        case RegexpToken.RANGE_QUOTED:
+                            goop1 = jj_consume_token(RegexpToken.RANGE_QUOTED);
+                            break;
+                        default:
+                            jj_la1[20] = jj_gen;
+                            jj_consume_token(-1);
+                            throw new ParseException();
+                    }
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.RANGE_TO:
+                            jj_consume_token(RegexpToken.RANGE_TO);
+                            break;
+                        default:
+                            jj_la1[21] = jj_gen;
+                            break;
+                    }
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.RANGE_GOOP:
+                            goop2 = jj_consume_token(RegexpToken.RANGE_GOOP);
+                            break;
+                        case RegexpToken.RANGE_QUOTED:
+                            goop2 = jj_consume_token(RegexpToken.RANGE_QUOTED);
+                            break;
+                        default:
+                            jj_la1[22] = jj_gen;
+                            jj_consume_token(-1);
+                            throw new ParseException();
+                    }
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.RANGEIN_END:
+                            jj_consume_token(RegexpToken.RANGEIN_END);
+                            endInc = true;
+                            break;
+                        case RegexpToken.RANGEEX_END:
+                            jj_consume_token(RegexpToken.RANGEEX_END);
+                            break;
+                        default:
+                            jj_la1[23] = jj_gen;
+                            jj_consume_token(-1);
+                            throw new ParseException();
+                    }
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.CARAT:
+                            jj_consume_token(RegexpToken.CARAT);
+                            boost = jj_consume_token(RegexpToken.NUMBER);
+                            break;
+                        default:
+                            jj_la1[24] = jj_gen;
+                            break;
+                    }
+                    if (goop1.kind == RegexpToken.RANGE_QUOTED)
+                    {
+                        goop1.image = goop1.image.Substring(1, (goop1.image.Length - 1) - 1);
+                    }
+                    if (goop2.kind == RegexpToken.RANGE_QUOTED)
+                    {
+                        goop2.image = goop2.image.Substring(1, (goop2.image.Length - 1) - 1);
+                    }
+
+                    qLower = new FieldQueryNode(field,
+                                             EscapeQuerySyntaxImpl.DiscardEscapeChar(goop1.image), goop1.beginColumn, goop1.endColumn);
+                    qUpper = new FieldQueryNode(field,
+                                                 EscapeQuerySyntaxImpl.DiscardEscapeChar(goop2.image), goop2.beginColumn, goop2.endColumn);
+                    q = new TermRangeQueryNode(qLower, qUpper, startInc ? true : false, endInc ? true : false);
+                    break;
+                case RegexpToken.QUOTED:
+                    term = jj_consume_token(RegexpToken.QUOTED);
+                    q = new QuotedFieldQueryNode(field, EscapeQuerySyntaxImpl.DiscardEscapeChar(term.image.Substring(1, (term.image.Length - 1) - 1)), term.beginColumn + 1, term.endColumn - 1);
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.FUZZY_SLOP:
+                            fuzzySlop = jj_consume_token(RegexpToken.FUZZY_SLOP);
+                            break;
+                        default:
+                            jj_la1[25] = jj_gen;
+                            break;
+                    }
+                    switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
+                    {
+                        case RegexpToken.CARAT:
+                            jj_consume_token(RegexpToken.CARAT);
+                            boost = jj_consume_token(RegexpToken.NUMBER);
+                            break;
+                        default:
+                            jj_la1[26] = jj_gen;
+                            break;
+                    }
+                    int phraseSlop = 0;
+
+                    if (fuzzySlop != null)
+                    {
+                        try
+                        {
+                            phraseSlop = (int)Convert.ToSingle(fuzzySlop.image.Substring(1), CultureInfo.InvariantCulture);
+                            q = new SlopQueryNode(q, phraseSlop);
+                        }
+                        catch (Exception ignored)
+                        {
+                            /* Should this be handled somehow? (defaults to "no PhraseSlop", if
+                           * slop number is invalid)
+                           */
+                        }
+                    }
+                    break;
+                default:
+                    jj_la1[27] = jj_gen;
+                    jj_consume_token(-1);
+                    throw new ParseException();
+            }
+            if (boost != null)
+            {
+                float f = (float)1.0;
+                try
+                {
+                    f = Convert.ToSingle(boost.image, CultureInfo.InvariantCulture);
+                    // avoid boosting null queries, such as those caused by stop words
+                    if (q != null)
+                    {
+                        q = new BoostQueryNode(q, f);
+                    }
+                }
+                catch (Exception ignored)
+                {
+                    /* Should this be handled somehow? (defaults to "no boost", if
+                       * boost number is invalid)
+                       */
+                }
+            }
+            { if (true) return q; }
+            throw new Exception("Missing return statement in function");
+        }
+
+        private bool jj_2_1(int xla)
+        {
+            jj_la = xla; jj_lastpos = jj_scanpos = token;
+            try { return !jj_3_1(); }
+            catch (LookaheadSuccess ls) { return true; }
+            finally { jj_save(0, xla); }
+        }
+
+        private bool jj_2_2(int xla)
+        {
+            jj_la = xla; jj_lastpos = jj_scanpos = token;
+            try { return !jj_3_2(); }
+            catch (LookaheadSuccess ls) { return true; }
+            finally { jj_save(1, xla); }
+        }
+
+        private bool jj_3_2()
+        {
+            if (jj_scan_token(RegexpToken.TERM)) return true;
+            Token xsp;
+            xsp = jj_scanpos;
+            if (jj_3R_4())
+            {
+                jj_scanpos = xsp;
+                if (jj_3R_5()) return true;
+            }
+            return false;
+        }
+
+        private bool jj_3R_12()
+        {
+            if (jj_scan_token(RegexpToken.RANGEIN_START)) return true;
+            return false;
+        }
+
+        private bool jj_3R_11()
+        {
+            if (jj_scan_token(RegexpToken.REGEXPTERM)) return true;
+            return false;
+        }
+
+        private bool jj_3_1()
+        {
+            if (jj_scan_token(RegexpToken.TERM)) return true;
+            Token xsp;
+            xsp = jj_scanpos;
+            if (jj_scan_token(15))
+            {
+                jj_scanpos = xsp;
+                if (jj_scan_token(16)) return true;
+            }
+            return false;
+        }
+
+        private bool jj_3R_8()
+        {
+            Token xsp;
+            xsp = jj_scanpos;
+            if (jj_3R_12())
+            {
+                jj_scanpos = xsp;
+                if (jj_scan_token(27)) return true;
+            }
+            return false;
+        }
+
+        private bool jj_3R_10()
+        {
+            if (jj_scan_token(RegexpToken.TERM)) return true;
+            return false;
+        }
+
+        private bool jj_3R_7()
+        {
+            Token xsp;
+            xsp = jj_scanpos;
+            if (jj_3R_10())
+            {
+                jj_scanpos = xsp;
+                if (jj_3R_11())
+                {
+                    jj_scanpos = xsp;
+                    if (jj_scan_token(28)) return true;
+                }
+            }
+            return false;
+        }
+
+        private bool jj_3R_9()
+        {
+            if (jj_scan_token(RegexpToken.QUOTED)) return true;
+            return false;
+        }
+
+        private bool jj_3R_5()
+        {
+            Token xsp;
+            xsp = jj_scanpos;
+            if (jj_scan_token(17))
+            {
+                jj_scanpos = xsp;
+                if (jj_scan_token(18))
+                {
+                    jj_scanpos = xsp;
+                    if (jj_scan_token(19))
+                    {
+                        jj_scanpos = xsp;
+                        if (jj_scan_token(20)) return true;
+                    }
+                }
+            }
+            xsp = jj_scanpos;
+            if (jj_scan_token(23))
+            {
+                jj_scanpos = xsp;
+                if (jj_scan_token(22))
+                {
+                    jj_scanpos = xsp;
+                    if (jj_scan_token(28)) return true;
+                }
+            }
+            return false;
+        }
+
+        private bool jj_3R_4()
+        {
+            Token xsp;
+            xsp = jj_scanpos;
+            if (jj_scan_token(15))
+            {
+                jj_scanpos = xsp;
+                if (jj_scan_token(16)) return true;
+            }
+            if (jj_3R_6()) return true;
+            return false;
+        }
+
+        private bool jj_3R_6()
+        {
+            Token xsp;
+            xsp = jj_scanpos;
+            if (jj_3R_7())
+            {
+                jj_scanpos = xsp;
+                if (jj_3R_8())
+                {
+                    jj_scanpos = xsp;
+                    if (jj_3R_9()) return true;
+                }
+            }
+            return false;
+        }
+
+        /** Generated Token Manager. */
+        public StandardSyntaxParserTokenManager token_source;
+        /** Current token. */
+        public Token token;
+        /** Next token. */
+        public Token jj_nt;
+        private int jj_ntk;
+        private Token jj_scanpos, jj_lastpos;
+        private int jj_la;
+        private int jj_gen;
+        readonly private int[] jj_la1 = new int[28];
+        static private uint[] jj_la1_0;
+        static private int[] jj_la1_1;
+        static StandardSyntaxParser()
+        {
+            jj_la1_init_0();
+            jj_la1_init_1();
+        }
+        private static void jj_la1_init_0()
+        {
+            jj_la1_0 = new uint[] { 0x300, 0x300, 0x1c00, 0x1c00, 0x1ec03c00, 0x200, 0x100, 0x18000, 0x1e0000, 0x10c00000, 0x1f8000, 0x18000, 0x200000, 0x1ec02000, 0x1ec02000, 0x12800000, 0x1000000, 0x1000000, 0x200000, 0xc000000, 0x0, 0x20000000, 0x0, 0xc0000000, 0x200000, 0x1000000, 0x200000, 0x1ec00000, };
+        }
+        private static void jj_la1_init_1()
+        {
+            jj_la1_1 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, };
+        }
+        readonly private JJCalls[] jj_2_rtns = new JJCalls[2];
+        private bool jj_rescan = false;
+        private int jj_gc = 0;
+
+        /** Constructor with user supplied CharStream. */
+        public StandardSyntaxParser(ICharStream stream)
+        {
+            token_source = new StandardSyntaxParserTokenManager(stream);
+            token = new Token();
+            jj_ntk = -1;
+            jj_gen = 0;
+            for (int i = 0; i < 28; i++) jj_la1[i] = -1;
+            for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
+        }
+
+        /** Reinitialise. */
+        public void ReInit(ICharStream stream)
+        {
+            token_source.ReInit(stream);
+            token = new Token();
+            jj_ntk = -1;
+            jj_gen = 0;
+            for (int i = 0; i < 28; i++) jj_la1[i] = -1;
+            for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
+        }
+
+        /** Constructor with generated Token Manager. */
+        public StandardSyntaxParser(StandardSyntaxParserTokenManager tm)
+        {
+            token_source = tm;
+            token = new Token();
+            jj_ntk = -1;
+            jj_gen = 0;
+            for (int i = 0; i < 28; i++) jj_la1[i] = -1;
+            for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
+        }
+
+        /** Reinitialise. */
+        public void ReInit(StandardSyntaxParserTokenManager tm)
+        {
+            token_source = tm;
+            token = new Token();
+            jj_ntk = -1;
+            jj_gen = 0;
+            for (int i = 0; i < 28; i++) jj_la1[i] = -1;
+            for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
+        }
+
+        private Token jj_consume_token(int kind)
+        {
+            Token oldToken;
+            if ((oldToken = token).next != null) token = token.next;
+            else token = token.next = token_source.getNextToken();
+            jj_ntk = -1;
+            if (token.kind == kind)
+            {
+                jj_gen++;
+                if (++jj_gc > 100)
+                {
+                    jj_gc = 0;
+                    for (int i = 0; i < jj_2_rtns.Length; i++)
+                    {
+                        JJCalls c = jj_2_rtns[i];
+                        while (c != null)
+                        {
+                            if (c.gen < jj_gen) c.first = null;
+                            c = c.next;
+                        }
+                    }
+                }
+                return token;
+            }
+            token = oldToken;
+            jj_kind = kind;
+            throw generateParseException();
+        }
+
+        internal sealed class LookaheadSuccess : Exception { }
+        readonly private LookaheadSuccess jj_ls = new LookaheadSuccess();
+        private bool jj_scan_token(int kind)
+        {
+            if (jj_scanpos == jj_lastpos)
+            {
+                jj_la--;
+                if (jj_scanpos.next == null)
+                {
+                    jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
+                }
+                else
+                {
+                    jj_lastpos = jj_scanpos = jj_scanpos.next;
+                }
+            }
+            else
+            {
+                jj_scanpos = jj_scanpos.next;
+            }
+            if (jj_rescan)
+            {
+                int i = 0; Token tok = token;
+                while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
+                if (tok != null) jj_add_error_token(kind, i);
+            }
+            if (jj_scanpos.kind != kind) return true;
+            if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;
+            return false;
+        }
+
+
+        /** Get the next Token. */
+        public Token getNextToken()
+        {
+            if (token.next != null) token = token.next;
+            else token = token.next = token_source.getNextToken();
+            jj_ntk = -1;
+            jj_gen++;
+            return token;
+        }
+
+        /** Get the specific Token. */
+        public Token getToken(int index)
+        {
+            Token t = token;
+            for (int i = 0; i < index; i++)
+            {
+                if (t.next != null) t = t.next;
+                else t = t.next = token_source.getNextToken();
+            }
+            return t;
+        }
+
+        private int Jj_ntk()
+        {
+            if ((jj_nt = token.next) == null)
+                return (jj_ntk = (token.next = token_source.getNextToken()).kind);
+            else
+                return (jj_ntk = jj_nt.kind);
+        }
+
+        private List<int[]> jj_expentries = new List<int[]>();
+        private int[] jj_expentry;
+        private int jj_kind = -1;
+        private int[] jj_lasttokens = new int[100];
+        private int jj_endpos;
+
+        private void jj_add_error_token(int kind, int pos)
+        {
+            if (pos >= 100) return;
+            if (pos == jj_endpos + 1)
+            {
+                jj_lasttokens[jj_endpos++] = kind;
+            }
+            else if (jj_endpos != 0)
+            {
+                jj_expentry = new int[jj_endpos];
+                for (int i = 0; i < jj_endpos; i++)
+                {
+                    jj_expentry[i] = jj_lasttokens[i];
+                }
+                 for (var it = jj_expentries.GetEnumerator(); it.MoveNext();)
+                {
+                    int[] oldentry = (int[])(it.Current);
+                    if (oldentry.Length == jj_expentry.Length)
+                    {
+                        for (int i = 0; i < jj_expentry.Length; i++)
+                        {
+                            if (oldentry[i] != jj_expentry[i])
+                            {
+                                goto jj_entries_loop_continue;
+                            }
+                        }
+                        jj_expentries.Add(jj_expentry);
+                        goto jj_entries_loop_break;
+                    }
+                    jj_entries_loop_continue: { }
+                }
+                jj_entries_loop_break:
+                if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
+            }
+        }
+
+        /** Generate ParseException. */
+        public ParseException generateParseException()
+        {
+            jj_expentries.Clear();
+            bool[] la1tokens = new bool[34];
+            if (jj_kind >= 0)
+            {
+                la1tokens[jj_kind] = true;
+                jj_kind = -1;
+            }
+            for (int i = 0; i < 28; i++)
+            {
+                if (jj_la1[i] == jj_gen)
+                {
+                    for (int j = 0; j < 32; j++)
+                    {
+                        if ((jj_la1_0[i] & (1 << j)) != 0)
+                        {
+                            la1tokens[j] = true;
+                        }
+                        if ((jj_la1_1[i] & (1 << j)) != 0)
+                        {
+                            la1tokens[32 + j] = true;
+                        }
+                    }
+                }
+            }
+            for (int i = 0; i < 34; i++)
+            {
+                if (la1tokens[i])
+                {
+                    jj_expentry = new int[1];
+                    jj_expentry[0] = i;
+                    jj_expentries.Add(jj_expentry);
+                }
+            }
+            jj_endpos = 0;
+            jj_rescan_token();
+            jj_add_error_token(0, 0);
+            int[][] exptokseq = new int[jj_expentries.Count][];
+            for (int i = 0; i < jj_expentries.Count; i++)
+            {
+                exptokseq[i] = jj_expentries[i];
+            }
+            return new ParseException(token, exptokseq, StandardSyntaxParserConstants.TokenImage);
+        }
+
+        /** Enable tracing. */
+        public void enable_tracing()
+        {
+        }
+
+        /** Disable tracing. */
+        public void disable_tracing()
+        {
+        }
+
+        private void jj_rescan_token()
+        {
+            jj_rescan = true;
+            for (int i = 0; i < 2; i++)
+            {
+                try
+                {
+                    JJCalls p = jj_2_rtns[i];
+                    do
+                    {
+                        if (p.gen > jj_gen)
+                        {
+                            jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
+                            switch (i)
+                            {
+                                case 0: jj_3_1(); break;
+                                case 1: jj_3_2(); break;
+                            }
+                        }
+                        p = p.next;
+                    } while (p != null);
+                }
+                catch (LookaheadSuccess ls) { }
+            }
+            jj_rescan = false;
+        }
+
+        private void jj_save(int index, int xla)
+        {
+            JJCalls p = jj_2_rtns[index];
+            while (p.gen > jj_gen)
+            {
+                if (p.next == null) { p = p.next = new JJCalls(); break; }
+                p = p.next;
+            }
+            p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
+        }
+
+        internal sealed class JJCalls
+        {
+            internal int gen;
+            internal Token first;
+            internal int arg;
+            internal JJCalls next;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
new file mode 100644
index 0000000..c1d4beb
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
@@ -0,0 +1,129 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+{
+    public static class RegexpToken
+    {
+        /// <summary>End of File. </summary>
+        public const int EOF = 0;
+        /// <summary>RegularExpression Id. </summary>
+        public const int _NUM_CHAR = 1;
+        /// <summary>RegularExpression Id. </summary>
+        public const int _ESCAPED_CHAR = 2;
+        /// <summary>RegularExpression Id. </summary>
+        public const int _TERM_START_CHAR = 3;
+        /// <summary>RegularExpression Id. </summary>
+        public const int _TERM_CHAR = 4;
+        /// <summary>RegularExpression Id. </summary>
+        public const int _WHITESPACE = 5;
+        /// <summary>RegularExpression Id. </summary>
+        public const int _QUOTED_CHAR = 6;
+        /// <summary>RegularExpression Id. </summary>
+        public const int AND = 8;
+        /// <summary>RegularExpression Id. </summary>
+        public const int OR = 9;
+        /// <summary>RegularExpression Id. </summary>
+        public const int NOT = 10;
+        /// <summary>RegularExpression Id. </summary>
+        public const int PLUS = 11;
+        /// <summary>RegularExpression Id. </summary>
+        public const int MINUS = 12;
+        /// <summary>RegularExpression Id. </summary>
+        public const int LPAREN = 13;
+        /// <summary>RegularExpression Id. </summary>
+        public const int RPAREN = 14;
+        /// <summary>RegularExpression Id. </summary>
+        public const int OP_COLON = 15;
+        /// <summary>RegularExpression Id. </summary>
+        public const int OP_EQUAL = 16;
+        /// <summary>RegularExpression Id. </summary>
+        public const int OP_LESSTHAN = 17;
+        /// <summary>RegularExpression Id. </summary>
+        public const int OP_LESSTHANEQ = 18;
+        /// <summary>RegularExpression Id. </summary>
+        public const int OP_MORETHAN = 19;
+        /// <summary>RegularExpression Id. </summary>
+        public const int OP_MORETHANEQ = 20;
+        /// <summary>RegularExpression Id. </summary>
+        public const int CARAT = 21;
+        /// <summary>RegularExpression Id. </summary>
+        public const int QUOTED = 22;
+        /// <summary>RegularExpression Id. </summary>
+        public const int TERM = 23;
+        /// <summary>RegularExpression Id. </summary>
+        public const int FUZZY_SLOP = 24;
+        /// <summary>RegularExpression Id. </summary>
+        public const int REGEXPTERM = 25;
+        /// <summary>RegularExpression Id. </summary>
+        public const int RANGEIN_START = 26;
+        /// <summary>RegularExpression Id. </summary>
+        public const int RANGEEX_START = 27;
+        /// <summary>RegularExpression Id. </summary>
+        public const int NUMBER = 28;
+        /// <summary>RegularExpression Id. </summary>
+        public const int RANGE_TO = 29;
+        /// <summary>RegularExpression Id. </summary>
+        public const int RANGEIN_END = 30;
+        /// <summary>RegularExpression Id. </summary>
+        public const int RANGEEX_END = 31;
+        /// <summary>RegularExpression Id. </summary>
+        public const int RANGE_QUOTED = 32;
+        /// <summary>RegularExpression Id. </summary>
+        public const int RANGE_GOOP = 33;
+    }
+
+    public static class LexicalToken
+    {
+        /// <summary>Lexical state.</summary>
+        public const int Boost = 0;
+        /// <summary>Lexical state.</summary>
+        public const int Range = 1;
+        /// <summary>Lexical state.</summary>
+        public const int DEFAULT = 2;
+    }
+
+    public static class StandardSyntaxParserConstants
+    {
+        /// <summary>Literal token values.</summary>
+        public static string[] TokenImage = new string[] {
+            "<EOF>",
+            "<_NUM_CHAR>",
+            "<_ESCAPED_CHAR>",
+            "<_TERM_START_CHAR>",
+            "<_TERM_CHAR>",
+            "<_WHITESPACE>",
+            "<_QUOTED_CHAR>",
+            "<token of kind 7>",
+            "<AND>",
+            "<OR>",
+            "<NOT>",
+            "\"+\"",
+            "\"-\"",
+            "\"(\"",
+            "\")\"",
+            "\":\"",
+            "\"=\"",
+            "\"<\"",
+            "\"<=\"",
+            "\">\"",
+            "\">=\"",
+            "\"^\"",
+            "<QUOTED>",
+            "<TERM>",
+            "<FUZZY_SLOP>",
+            "<REGEXPTERM>",
+            "\"[\"",
+            "\"{\"",
+            "<NUMBER>",
+            "\"TO\"",
+            "\"]\"",
+            "\"}\"",
+            "<RANGE_QUOTED>",
+            "<RANGE_GOOP>",
+        };
+    }
+}


[02/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
new file mode 100644
index 0000000..84affc0
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
@@ -0,0 +1,409 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.Documents;
+using Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.Search;
+using Lucene.Net.Support;
+using Lucene.Net.Util;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using static Lucene.Net.Analysis.Analyzer;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard
+{
+    /// <summary>
+    /// This test case is a copy of the core Lucene query parser test, it was adapted
+    /// to use new QueryParserHelper instead of the old query parser.
+    /// 
+    /// Tests QueryParser.
+    /// </summary>
+    public class TestMultiFieldQPHelper : LuceneTestCase
+    {
+        /**
+        * test stop words parsing for both the non static form, and for the
+        * corresponding static form (qtxt, fields[]).
+        */
+        [Test]
+        public void testStopwordsParsing()
+        {
+            assertStopQueryEquals("one", "b:one t:one");
+            assertStopQueryEquals("one stop", "b:one t:one");
+            assertStopQueryEquals("one (stop)", "b:one t:one");
+            assertStopQueryEquals("one ((stop))", "b:one t:one");
+            assertStopQueryEquals("stop", "");
+            assertStopQueryEquals("(stop)", "");
+            assertStopQueryEquals("((stop))", "");
+        }
+
+        // verify parsing of query using a stopping analyzer
+        private void assertStopQueryEquals(String qtxt, String expectedRes)
+        {
+            String[]
+            fields = { "b", "t" };
+            BooleanClause.Occur[] occur = { BooleanClause.Occur.SHOULD, BooleanClause.Occur.SHOULD }; // LUCENENET TODO: Make this Occur.Should instead of BooleanClause.Occur.Should
+            TestQPHelper.QPTestAnalyzer a = new TestQPHelper.QPTestAnalyzer();
+            StandardQueryParser mfqp = new StandardQueryParser();
+            mfqp.SetMultiFields(fields);
+            mfqp.Analyzer = (a);
+
+            Query q = (Query)mfqp.Parse(qtxt, null);
+            assertEquals(expectedRes, q.toString());
+
+            q = QueryParserUtil.Parse(qtxt, fields, occur, a);
+            assertEquals(expectedRes, q.toString());
+        }
+
+        [Test]
+        public void testSimple()
+        {
+            String[]
+            fields = { "b", "t" };
+            StandardQueryParser mfqp = new StandardQueryParser();
+            mfqp.SetMultiFields(fields);
+            mfqp.Analyzer = (new MockAnalyzer(Random()));
+
+            Query q = (Query)mfqp.Parse("one", null);
+            assertEquals("b:one t:one", q.toString());
+
+            q = (Query)mfqp.Parse("one two", null);
+            assertEquals("(b:one t:one) (b:two t:two)", q.toString());
+
+            q = (Query)mfqp.Parse("+one +two", null);
+            assertEquals("+(b:one t:one) +(b:two t:two)", q.toString());
+
+            q = (Query)mfqp.Parse("+one -two -three", null);
+            assertEquals("+(b:one t:one) -(b:two t:two) -(b:three t:three)", q
+                .toString());
+
+            q = (Query)mfqp.Parse("one^2 two", null);
+            assertEquals("((b:one t:one)^2.0) (b:two t:two)", q.toString());
+
+            q = (Query)mfqp.Parse("one~ two", null);
+            assertEquals("(b:one~2 t:one~2) (b:two t:two)", q.toString());
+
+            q = (Query)mfqp.Parse("one~0.8 two^2", null);
+            assertEquals("(b:one~0 t:one~0) ((b:two t:two)^2.0)", q.toString());
+
+            q = (Query)mfqp.Parse("one* two*", null);
+            assertEquals("(b:one* t:one*) (b:two* t:two*)", q.toString());
+
+            q = (Query)mfqp.Parse("[a TO c] two", null);
+            assertEquals("(b:[a TO c] t:[a TO c]) (b:two t:two)", q.toString());
+
+            q = (Query)mfqp.Parse("w?ldcard", null);
+            assertEquals("b:w?ldcard t:w?ldcard", q.toString());
+
+            q = (Query)mfqp.Parse("\"foo bar\"", null);
+            assertEquals("b:\"foo bar\" t:\"foo bar\"", q.toString());
+
+            q = (Query)mfqp.Parse("\"aa bb cc\" \"dd ee\"", null);
+            assertEquals("(b:\"aa bb cc\" t:\"aa bb cc\") (b:\"dd ee\" t:\"dd ee\")", q
+                .toString());
+
+            q = (Query)mfqp.Parse("\"foo bar\"~4", null);
+            assertEquals("b:\"foo bar\"~4 t:\"foo bar\"~4", q.toString());
+
+            // LUCENE-1213: QueryParser was ignoring slop when phrase
+            // had a field.
+            q = (Query)mfqp.Parse("b:\"foo bar\"~4", null);
+            assertEquals("b:\"foo bar\"~4", q.toString());
+
+            // make sure that terms which have a field are not touched:
+            q = (Query)mfqp.Parse("one f:two", null);
+            assertEquals("(b:one t:one) f:two", q.toString());
+
+            // AND mode:
+            mfqp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            q = (Query)mfqp.Parse("one two", null);
+            assertEquals("+(b:one t:one) +(b:two t:two)", q.toString());
+            q = (Query)mfqp.Parse("\"aa bb cc\" \"dd ee\"", null);
+            assertEquals("+(b:\"aa bb cc\" t:\"aa bb cc\") +(b:\"dd ee\" t:\"dd ee\")",
+                q.toString());
+
+        }
+
+        [Test]
+        public void testBoostsSimple()
+        {
+            IDictionary<String, float?> boosts = new Dictionary<String, float?>(); // LUCENENET TODO: make this non-nullable..?
+            boosts.Put("b", 5);
+            boosts.Put("t", 10);
+            String[] fields = { "b", "t" };
+            StandardQueryParser mfqp = new StandardQueryParser();
+            mfqp.SetMultiFields(fields);
+            mfqp.SetFieldsBoost(boosts);
+            mfqp.Analyzer = (new MockAnalyzer(Random()));
+
+            // Check for simple
+            Query q = (Query)mfqp.Parse("one", null);
+            assertEquals("b:one^5.0 t:one^10.0", q.toString());
+
+            // Check for AND
+            q = (Query)mfqp.Parse("one AND two", null);
+            assertEquals("+(b:one^5.0 t:one^10.0) +(b:two^5.0 t:two^10.0)", q
+                .toString());
+
+            // Check for OR
+            q = (Query)mfqp.Parse("one OR two", null);
+            assertEquals("(b:one^5.0 t:one^10.0) (b:two^5.0 t:two^10.0)", q.toString());
+
+            // Check for AND and a field
+            q = (Query)mfqp.Parse("one AND two AND foo:test", null);
+            assertEquals("+(b:one^5.0 t:one^10.0) +(b:two^5.0 t:two^10.0) +foo:test", q
+                .toString());
+
+            q = (Query)mfqp.Parse("one^3 AND two^4", null);
+            assertEquals("+((b:one^5.0 t:one^10.0)^3.0) +((b:two^5.0 t:two^10.0)^4.0)",
+                q.toString());
+        }
+
+        [Test]
+        public void testStaticMethod1()
+        {
+            String[]
+            fields = { "b", "t" };
+            String[]
+            queries = { "one", "two" };
+            Query q = QueryParserUtil.Parse(queries, fields, new MockAnalyzer(Random()));
+            assertEquals("b:one t:two", q.toString());
+
+            String[] queries2 = { "+one", "+two" };
+            q = QueryParserUtil.Parse(queries2, fields, new MockAnalyzer(Random()));
+            assertEquals("b:one t:two", q.toString());
+
+            String[] queries3 = { "one", "+two" };
+            q = QueryParserUtil.Parse(queries3, fields, new MockAnalyzer(Random()));
+            assertEquals("b:one t:two", q.toString());
+
+            String[] queries4 = { "one +more", "+two" };
+            q = QueryParserUtil.Parse(queries4, fields, new MockAnalyzer(Random()));
+            assertEquals("(b:one +b:more) t:two", q.toString());
+
+            String[] queries5 = { "blah" };
+            try
+            {
+                q = QueryParserUtil.Parse(queries5, fields, new MockAnalyzer(Random()));
+                fail();
+            }
+            catch (ArgumentException e)
+            {
+                // expected exception, array length differs
+            }
+
+            // check also with stop words for this static form (qtxts[], fields[]).
+            TestQPHelper.QPTestAnalyzer stopA = new TestQPHelper.QPTestAnalyzer();
+
+            String[] queries6 = { "((+stop))", "+((stop))" };
+            q = QueryParserUtil.Parse(queries6, fields, stopA);
+            assertEquals("", q.toString());
+
+            String[] queries7 = { "one ((+stop)) +more", "+((stop)) +two" };
+            q = QueryParserUtil.Parse(queries7, fields, stopA);
+            assertEquals("(b:one +b:more) (+t:two)", q.toString());
+
+        }
+
+        [Test]
+        public void testStaticMethod2()
+        {
+            String[]
+            fields = { "b", "t" };
+            BooleanClause.Occur[]
+            flags = {
+        BooleanClause.Occur.MUST,
+        BooleanClause.Occur.MUST_NOT };
+            Query q = QueryParserUtil.Parse("one", fields, flags,
+                new MockAnalyzer(Random()));
+            assertEquals("+b:one -t:one", q.toString());
+
+            q = QueryParserUtil.Parse("one two", fields, flags, new MockAnalyzer(Random()));
+            assertEquals("+(b:one b:two) -(t:one t:two)", q.toString());
+
+            try
+            {
+                BooleanClause.Occur[] flags2 = { BooleanClause.Occur.MUST };
+                q = QueryParserUtil.Parse("blah", fields, flags2, new MockAnalyzer(Random()));
+                fail();
+            }
+            catch (ArgumentException e)
+            {
+                // expected exception, array length differs
+            }
+        }
+
+        [Test]
+        public void testStaticMethod2Old()
+        {
+            String[]
+            fields = { "b", "t" };
+            BooleanClause.Occur[]
+            flags = {
+        BooleanClause.Occur.MUST,
+        BooleanClause.Occur.MUST_NOT };
+            StandardQueryParser parser = new StandardQueryParser();
+            parser.SetMultiFields(fields);
+            parser.Analyzer = (new MockAnalyzer(Random()));
+
+            Query q = QueryParserUtil.Parse("one", fields, flags,
+                new MockAnalyzer(Random()));// , fields, flags, new
+                                            // MockAnalyzer());
+            assertEquals("+b:one -t:one", q.toString());
+
+            q = QueryParserUtil.Parse("one two", fields, flags, new MockAnalyzer(Random()));
+            assertEquals("+(b:one b:two) -(t:one t:two)", q.toString());
+
+            try
+            {
+                BooleanClause.Occur[] flags2 = { BooleanClause.Occur.MUST };
+                q = QueryParserUtil.Parse("blah", fields, flags2, new MockAnalyzer(Random()));
+                fail();
+            }
+            catch (ArgumentException e)
+            {
+                // expected exception, array length differs
+            }
+        }
+
+        [Test]
+        public void testStaticMethod3()
+        {
+            String[]
+            queries = { "one", "two", "three" };
+            String[]
+            fields = { "f1", "f2", "f3" };
+            BooleanClause.Occur[]
+            flags = {
+        BooleanClause.Occur.MUST,
+        BooleanClause.Occur.MUST_NOT, BooleanClause.Occur.SHOULD };
+            Query q = QueryParserUtil.Parse(queries, fields, flags,
+                new MockAnalyzer(Random()));
+            assertEquals("+f1:one -f2:two f3:three", q.toString());
+
+            try
+            {
+                BooleanClause.Occur[] flags2 = { BooleanClause.Occur.MUST };
+                q = QueryParserUtil
+                    .Parse(queries, fields, flags2, new MockAnalyzer(Random()));
+                fail();
+            }
+            catch (ArgumentException e)
+            {
+                // expected exception, array length differs
+            }
+        }
+
+        [Test]
+        public void testStaticMethod3Old()
+        {
+            String[]
+            queries = { "one", "two" };
+            String[]
+            fields = { "b", "t" };
+            BooleanClause.Occur[]
+            flags = {
+        BooleanClause.Occur.MUST,
+        BooleanClause.Occur.MUST_NOT };
+            Query q = QueryParserUtil.Parse(queries, fields, flags,
+                new MockAnalyzer(Random()));
+            assertEquals("+b:one -t:two", q.toString());
+
+            try
+            {
+                BooleanClause.Occur[] flags2 = { BooleanClause.Occur.MUST };
+                q = QueryParserUtil
+                    .Parse(queries, fields, flags2, new MockAnalyzer(Random()));
+                fail();
+            }
+            catch (ArgumentException e)
+            {
+                // expected exception, array length differs
+            }
+        }
+
+        [Test]
+        public void testAnalyzerReturningNull()
+        {
+            String[]
+            fields = new String[] { "f1", "f2", "f3" };
+            StandardQueryParser parser = new StandardQueryParser();
+            parser.SetMultiFields(fields);
+            parser.Analyzer = (new AnalyzerReturningNull());
+
+            Query q = (Query)parser.Parse("bla AND blo", null);
+            assertEquals("+(f2:bla f3:bla) +(f2:blo f3:blo)", q.toString());
+            // the following queries are not affected as their terms are not
+            // analyzed anyway:
+            q = (Query)parser.Parse("bla*", null);
+            assertEquals("f1:bla* f2:bla* f3:bla*", q.toString());
+            q = (Query)parser.Parse("bla~", null);
+            assertEquals("f1:bla~2 f2:bla~2 f3:bla~2", q.toString());
+            q = (Query)parser.Parse("[a TO c]", null);
+            assertEquals("f1:[a TO c] f2:[a TO c] f3:[a TO c]", q.toString());
+        }
+
+        [Test]
+        public void testStopWordSearching()
+        {
+            Analyzer analyzer = new MockAnalyzer(Random());
+            Store.Directory ramDir = NewDirectory();
+            IndexWriter iw = new IndexWriter(ramDir, NewIndexWriterConfig(TEST_VERSION_CURRENT, analyzer));
+            Document doc = new Document();
+            doc.Add(NewTextField("body", "blah the footest blah", Field.Store.NO));
+            iw.AddDocument(doc);
+            iw.Dispose();
+
+            StandardQueryParser mfqp = new StandardQueryParser();
+
+            mfqp.SetMultiFields(new String[] { "body" });
+            mfqp.Analyzer = (analyzer);
+            mfqp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            Query q = (Query)mfqp.Parse("the footest", null);
+            IndexReader ir = DirectoryReader.Open(ramDir);
+            IndexSearcher @is = NewSearcher(ir);
+            ScoreDoc[] hits = @is.Search(q, null, 1000).ScoreDocs;
+            assertEquals(1, hits.Length);
+            ir.Dispose();
+            ramDir.Dispose();
+        }
+
+        /**
+         * Return no tokens for field "f1".
+         */
+        private class AnalyzerReturningNull : Analyzer
+        {
+            MockAnalyzer stdAnalyzer = new MockAnalyzer(Random());
+
+            public AnalyzerReturningNull()
+                        : base(PER_FIELD_REUSE_STRATEGY)
+            {
+            }
+
+
+            public override TextReader InitReader(String fieldName, TextReader reader) // LUCENENET TODO: Change accessiblity of InitReader to protected
+            {
+                if ("f1".equals(fieldName))
+                {
+                    // we don't use the reader, so close it:
+                    IOUtils.CloseWhileHandlingException(reader);
+                    // return empty reader, so MockTokenizer returns no tokens:
+                    return new StringReader("");
+                }
+                else
+                {
+                    return base.InitReader(fieldName, reader);
+                }
+            }
+
+
+            public override TokenStreamComponents CreateComponents(String fieldName, TextReader reader)
+            {
+                return stdAnalyzer.CreateComponents(fieldName, reader);
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
new file mode 100644
index 0000000..04ac847
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -0,0 +1,523 @@
+\ufeff// LUCENENET TODO: Complete implementation
+
+//using Lucene.Net;
+//using Lucene.Net.Analysis;
+//using Lucene.Net.Index;
+//using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+//using Lucene.Net.Search;
+//using Lucene.Net.Store;
+//using Lucene.Net.Util;
+//using NUnit.Framework;
+//using System;
+//using System.Collections.Generic;
+//using System.Linq;
+//using System.Text;
+//using System.Threading.Tasks;
+
+//namespace Lucene.Net.QueryParsers.Flexible.Standard
+//{
+//    public class TestNumericQueryParser : LuceneTestCase
+//    {
+//        private static enum NumberType
+//        {
+//            NEGATIVE, ZERO, POSITIVE;
+//        }
+
+//        private readonly static int[] DATE_STYLES = {DateFormat.FULL, DateFormat.LONG,
+//      DateFormat.MEDIUM, DateFormat.SHORT};
+
+//        private readonly static int PRECISION_STEP = 8;
+//        private readonly static String FIELD_NAME = "field";
+//        private static Locale LOCALE;
+//        private static TimeZone TIMEZONE;
+//        private static Map<String, Number> RANDOM_NUMBER_MAP;
+//        private readonly static EscapeQuerySyntax ESCAPER = new EscapeQuerySyntaxImpl();
+//        private readonly static String DATE_FIELD_NAME = "date";
+//        private static int DATE_STYLE;
+//        private static int TIME_STYLE;
+
+//        private static Analyzer ANALYZER;
+
+//        private static NumberFormat NUMBER_FORMAT;
+
+//        private static StandardQueryParser qp;
+
+//        private static NumberDateFormat DATE_FORMAT;
+
+//        private static Directory directory = null;
+//        private static IndexReader reader = null;
+//        private static IndexSearcher searcher = null;
+
+//        private static bool checkDateFormatSanity(DateFormat dateFormat, long date)
+//        {
+//            try
+//            {
+//                return date == dateFormat.parse(dateFormat.format(new DateTime(date)))
+//                  .getTime();
+//            }
+//            catch (ParseException e)
+//            {
+//                return false;
+//            }
+//        }
+
+//        [TestFixtureSetUp]
+//  public static void beforeClass() 
+//        {
+//            ANALYZER = new MockAnalyzer(Random());
+    
+//    qp = new StandardQueryParser(ANALYZER);
+
+//        HashMap<String, Number> randomNumberMap = new HashMap<>();
+
+//        SimpleDateFormat dateFormat;
+//        long randomDate;
+//        bool dateFormatSanityCheckPass;
+//        int count = 0;
+//    do {
+//      if (count > 100) {
+//        fail("This test has problems to find a sane random DateFormat/NumberFormat. Stopped trying after 100 iterations.");
+//    }
+
+//    dateFormatSanityCheckPass = true;
+//      LOCALE = randomLocale(Random());
+//      TIMEZONE = randomTimeZone(Random());
+//      DATE_STYLE = randomDateStyle(Random());
+//      TIME_STYLE = randomDateStyle(Random());
+      
+//      // assumes localized date pattern will have at least year, month, day,
+//      // hour, minute
+//      dateFormat = (SimpleDateFormat) DateFormat.getDateTimeInstance(
+//          DATE_STYLE, TIME_STYLE, LOCALE);
+      
+//      // not all date patterns includes era, full year, timezone and second,
+//      // so we add them here
+//      dateFormat.applyPattern(dateFormat.toPattern() + " G s Z yyyy");
+//      dateFormat.setTimeZone(TIMEZONE);
+      
+//      DATE_FORMAT = new NumberDateFormat(dateFormat);
+      
+//      do {
+//        randomDate = Random().nextLong();
+
+//    // prune date value so it doesn't pass in insane values to some
+//    // calendars.
+//    randomDate = randomDate % 3400000000000l;
+        
+//        // truncate to second
+//        randomDate = (randomDate / 1000L) * 1000L;
+        
+//        // only positive values
+//        randomDate = Math.Abs(randomDate);
+//      } while (randomDate == 0L);
+      
+//      dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, randomDate);
+
+//dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, 0);
+
+//dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat,
+//          -randomDate);
+
+//count++;
+//    } while (!dateFormatSanityCheckPass);
+    
+//    NUMBER_FORMAT = NumberFormat.getNumberInstance(LOCALE);
+//    NUMBER_FORMAT.setMaximumFractionDigits((Random().nextInt() & 20) + 1);
+//    NUMBER_FORMAT.setMinimumFractionDigits((Random().nextInt() & 20) + 1);
+//    NUMBER_FORMAT.setMaximumIntegerDigits((Random().nextInt() & 20) + 1);
+//    NUMBER_FORMAT.setMinimumIntegerDigits((Random().nextInt() & 20) + 1);
+    
+//    double randomDouble;
+//long randomLong;
+//int randomInt;
+//float randomFloat;
+    
+//    while ((randomLong = normalizeNumber(Math.abs(Random().nextLong()))
+//        .longValue()) == 0L)
+//      ;
+//    while ((randomDouble = normalizeNumber(Math.abs(Random().nextDouble()))
+//        .doubleValue()) == 0.0)
+//      ;
+//    while ((randomFloat = normalizeNumber(Math.abs(Random().nextFloat()))
+//        .floatValue()) == 0.0f)
+//      ;
+//    while ((randomInt = normalizeNumber(Math.abs(Random().nextInt())).intValue()) == 0)
+//      ;
+    
+//    randomNumberMap.put(NumericType.LONG.name(), randomLong);
+//    randomNumberMap.put(NumericType.INT.name(), randomInt);
+//    randomNumberMap.put(NumericType.FLOAT.name(), randomFloat);
+//    randomNumberMap.put(NumericType.DOUBLE.name(), randomDouble);
+//    randomNumberMap.put(DATE_FIELD_NAME, randomDate);
+    
+//    RANDOM_NUMBER_MAP = Collections.UnmodifiableMap(randomNumberMap);
+    
+//    directory = newDirectory();
+//RandomIndexWriter writer = new RandomIndexWriter(Random(), directory,
+//    newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random()))
+//        .setMaxBufferedDocs(TestUtil.NextInt(Random(), 50, 1000))
+//        .setMergePolicy(newLogMergePolicy()));
+
+//Document doc = new Document();
+//HashMap<String, NumericConfig> numericConfigMap = new HashMap<>();
+//HashMap<String, Field> numericFieldMap = new HashMap<>();
+//qp.setNumericConfigMap(numericConfigMap);
+    
+//    for (NumericType type : NumericType.values()) {
+//      numericConfigMap.put(type.name(), new NumericConfig(PRECISION_STEP,
+//          NUMBER_FORMAT, type));
+
+//      FieldType ft = new FieldType(IntField.TYPE_NOT_STORED);
+//ft.setNumericType(type);
+//      ft.setStored(true);
+//      ft.setNumericPrecisionStep(PRECISION_STEP);
+//      ft.freeze();
+//      final Field field;
+
+//      switch(type) {
+//      case INT:
+//        field = new IntField(type.name(), 0, ft);
+//        break;
+//      case FLOAT:
+//        field = new FloatField(type.name(), 0.0f, ft);
+//        break;
+//      case LONG:
+//        field = new LongField(type.name(), 0l, ft);
+//        break;
+//      case DOUBLE:
+//        field = new DoubleField(type.name(), 0.0, ft);
+//        break;
+//      default:
+//        fail();
+//field = null;
+//      }
+//      numericFieldMap.put(type.name(), field);
+//      doc.add(field);
+//    }
+    
+//    numericConfigMap.put(DATE_FIELD_NAME, new NumericConfig(PRECISION_STEP,
+//        DATE_FORMAT, NumericType.LONG));
+//    FieldType ft = new FieldType(LongField.TYPE_NOT_STORED);
+//ft.setStored(true);
+//    ft.setNumericPrecisionStep(PRECISION_STEP);
+//    LongField dateField = new LongField(DATE_FIELD_NAME, 0l, ft);
+//numericFieldMap.put(DATE_FIELD_NAME, dateField);
+//    doc.add(dateField);
+    
+//    for (NumberType numberType : NumberType.values()) {
+//      setFieldValues(numberType, numericFieldMap);
+//      if (VERBOSE) System.out.println("Indexing document: " + doc);
+//writer.addDocument(doc);
+//    }
+    
+//    reader = writer.getReader();
+//    searcher = newSearcher(reader);
+//writer.close();
+    
+//  }
+  
+//  private static Number getNumberType(NumberType numberType, String fieldName)
+//{
+
+//    if (numberType == null)
+//    {
+//        return null;
+//    }
+
+//    switch (numberType)
+//    {
+
+//        case POSITIVE:
+//            return RANDOM_NUMBER_MAP.get(fieldName);
+
+//        case NEGATIVE:
+//            Number number = RANDOM_NUMBER_MAP.get(fieldName);
+
+//            if (NumericType.LONG.name().equals(fieldName)
+//                || DATE_FIELD_NAME.equals(fieldName))
+//            {
+//                number = -number.longValue();
+
+//            }
+//            else if (NumericType.DOUBLE.name().equals(fieldName))
+//            {
+//                number = -number.doubleValue();
+
+//            }
+//            else if (NumericType.FLOAT.name().equals(fieldName))
+//            {
+//                number = -number.floatValue();
+
+//            }
+//            else if (NumericType.INT.name().equals(fieldName))
+//            {
+//                number = -number.intValue();
+
+//            }
+//            else
+//            {
+//                throw new IllegalArgumentException("field name not found: "
+//                    + fieldName);
+//            }
+
+//            return number;
+
+//        default:
+//            return 0;
+
+//    }
+
+//}
+
+//private static void setFieldValues(NumberType numberType,
+//    HashMap<String, Field> numericFieldMap)
+//{
+
+//    Number number = getNumberType(numberType, NumericType.DOUBLE
+//        .name());
+//    numericFieldMap.get(NumericType.DOUBLE.name()).setDoubleValue(
+//        number.doubleValue());
+
+//    number = getNumberType(numberType, NumericType.INT.name());
+//    numericFieldMap.get(NumericType.INT.name()).setIntValue(
+//        number.intValue());
+
+//    number = getNumberType(numberType, NumericType.LONG.name());
+//    numericFieldMap.get(NumericType.LONG.name()).setLongValue(
+//        number.longValue());
+
+//    number = getNumberType(numberType, NumericType.FLOAT.name());
+//    numericFieldMap.get(NumericType.FLOAT.name()).setFloatValue(
+//        number.floatValue());
+
+//    number = getNumberType(numberType, DATE_FIELD_NAME);
+//    numericFieldMap.get(DATE_FIELD_NAME).setLongValue(number.longValue());
+//}
+
+//private static int randomDateStyle(Random random)
+//{
+//    return DATE_STYLES[random.nextInt(DATE_STYLES.length)];
+//}
+
+//@Test
+//  public void testInclusiveNumericRange() throws Exception
+//{
+//    assertRangeQuery(NumberType.ZERO, NumberType.ZERO, true, true, 1);
+//    assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, true, 2);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, true, 2);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, true, 3);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, true, 1);
+//}
+
+//@Test
+//  // test disabled since standard syntax parser does not work with inclusive and
+//  // exclusive at the same time
+//  public void testInclusiveLowerNumericRange() throws Exception
+//{
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, true, 1);
+//    assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, true, 1);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, true, 2);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, true, 0);
+//}
+
+//@Test
+//  // test disabled since standard syntax parser does not work with inclusive and
+//  // exclusive at the same time
+//  public void testInclusiveUpperNumericRange() throws Exception
+//{
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, false, 1);
+//    assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, false, 1);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, false, 2);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, false, 0);
+//}
+
+//@Test
+//  public void testExclusiveNumericRange() throws Exception
+//{
+//    assertRangeQuery(NumberType.ZERO, NumberType.ZERO, false, false, 0);
+//    assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, false, 0);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, false, 0);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, false, 1);
+//    assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, false, 0);
+//}
+
+//@Test
+//  public void testOpenRangeNumericQuery() throws Exception
+//{
+//    assertOpenRangeQuery(NumberType.ZERO, "<", 1);
+//    assertOpenRangeQuery(NumberType.POSITIVE, "<", 2);
+//    assertOpenRangeQuery(NumberType.NEGATIVE, "<", 0);
+
+//    assertOpenRangeQuery(NumberType.ZERO, "<=", 2);
+//    assertOpenRangeQuery(NumberType.POSITIVE, "<=", 3);
+//    assertOpenRangeQuery(NumberType.NEGATIVE, "<=", 1);
+
+//    assertOpenRangeQuery(NumberType.ZERO, ">", 1);
+//    assertOpenRangeQuery(NumberType.POSITIVE, ">", 0);
+//    assertOpenRangeQuery(NumberType.NEGATIVE, ">", 2);
+
+//    assertOpenRangeQuery(NumberType.ZERO, ">=", 2);
+//    assertOpenRangeQuery(NumberType.POSITIVE, ">=", 1);
+//    assertOpenRangeQuery(NumberType.NEGATIVE, ">=", 3);
+
+//    assertOpenRangeQuery(NumberType.NEGATIVE, "=", 1);
+//    assertOpenRangeQuery(NumberType.ZERO, "=", 1);
+//    assertOpenRangeQuery(NumberType.POSITIVE, "=", 1);
+
+//    assertRangeQuery(NumberType.NEGATIVE, null, true, true, 3);
+//    assertRangeQuery(NumberType.NEGATIVE, null, false, true, 2);
+//    assertRangeQuery(NumberType.POSITIVE, null, true, false, 1);
+//    assertRangeQuery(NumberType.ZERO, null, false, false, 1);
+
+//    assertRangeQuery(null, NumberType.POSITIVE, true, true, 3);
+//    assertRangeQuery(null, NumberType.POSITIVE, true, false, 2);
+//    assertRangeQuery(null, NumberType.NEGATIVE, false, true, 1);
+//    assertRangeQuery(null, NumberType.ZERO, false, false, 1);
+
+//    assertRangeQuery(null, null, false, false, 3);
+//    assertRangeQuery(null, null, true, true, 3);
+
+//}
+
+//@Test
+//  public void testSimpleNumericQuery() throws Exception
+//{
+//    assertSimpleQuery(NumberType.ZERO, 1);
+//    assertSimpleQuery(NumberType.POSITIVE, 1);
+//    assertSimpleQuery(NumberType.NEGATIVE, 1);
+//}
+
+//public void assertRangeQuery(NumberType lowerType, NumberType upperType,
+//    boolean lowerInclusive, boolean upperInclusive, int expectedDocCount)
+//      throws QueryNodeException, IOException {
+    
+//    StringBuilder sb = new StringBuilder();
+
+//String lowerInclusiveStr = (lowerInclusive ? "[" : "{");
+//String upperInclusiveStr = (upperInclusive ? "]" : "}");
+    
+//    for (NumericType type : NumericType.values()) {
+//      String lowerStr = numberToString(getNumberType(lowerType, type.name()));
+//String upperStr = numberToString(getNumberType(upperType, type.name()));
+
+//sb.append("+").append(type.name()).append(':').append(lowerInclusiveStr)
+//          .append('"').append(lowerStr).append("\" TO \"").append(upperStr)
+//          .append('"').append(upperInclusiveStr).append(' ');
+//    }
+    
+//    Number lowerDateNumber = getNumberType(lowerType, DATE_FIELD_NAME);
+//Number upperDateNumber = getNumberType(upperType, DATE_FIELD_NAME);
+//String lowerDateStr;
+//String upperDateStr;
+    
+//    if (lowerDateNumber != null) {
+//      lowerDateStr = ESCAPER.escape(
+//          DATE_FORMAT.format(new Date(lowerDateNumber.longValue())), LOCALE,
+//          EscapeQuerySyntax.Type.STRING).toString();
+      
+//    } else {
+//      lowerDateStr = "*";
+//    }
+    
+//    if (upperDateNumber != null) {
+//    upperDateStr = ESCAPER.escape(
+//          DATE_FORMAT.format(new Date(upperDateNumber.longValue())), LOCALE,
+//          EscapeQuerySyntax.Type.STRING).toString();
+    
+//    } else {
+//      upperDateStr = "*";
+//    }
+    
+//    sb.append("+").append(DATE_FIELD_NAME).append(':')
+//        .append(lowerInclusiveStr).append('"').append(lowerDateStr).append(
+//            "\" TO \"").append(upperDateStr).append('"').append(
+//            upperInclusiveStr);
+
+
+//    testQuery(sb.toString(), expectedDocCount);
+    
+//  }
+  
+//  public void assertOpenRangeQuery(NumberType boundType, String operator, int expectedDocCount)
+//      throws QueryNodeException, IOException {
+
+//    StringBuilder sb = new StringBuilder();
+    
+//    for (NumericType type : NumericType.values()) {
+//      String boundStr = numberToString(getNumberType(boundType, type.name()));
+
+//sb.append("+").append(type.name()).append(operator).append('"').append(boundStr).append('"').append(' ');
+//    }
+    
+//    String boundDateStr = ESCAPER.escape(
+//        DATE_FORMAT.format(new Date(getNumberType(boundType, DATE_FIELD_NAME)
+//            .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
+
+//sb.append("+").append(DATE_FIELD_NAME).append(operator).append('"').append(boundDateStr).append('"');
+
+
+//    testQuery(sb.toString(), expectedDocCount);
+//  }
+  
+//  public void assertSimpleQuery(NumberType numberType, int expectedDocCount)
+//      throws QueryNodeException, IOException {
+//    StringBuilder sb = new StringBuilder();
+    
+//    for (NumericType type : NumericType.values()) {
+//      String numberStr = numberToString(getNumberType(numberType, type.name()));
+//sb.append('+').append(type.name()).append(":\"").append(numberStr)
+//          .append("\" ");
+//    }
+    
+//    String dateStr = ESCAPER.escape(
+//        DATE_FORMAT.format(new Date(getNumberType(numberType, DATE_FIELD_NAME)
+//            .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
+
+//sb.append('+').append(DATE_FIELD_NAME).append(":\"").append(dateStr)
+//        .append('"');
+
+
+//    testQuery(sb.toString(), expectedDocCount);
+    
+//  }
+  
+//  private void testQuery(String queryStr, int expectedDocCount)
+//      throws QueryNodeException, IOException {
+//    if (VERBOSE) System.out.println("Parsing: " + queryStr);
+
+//Query query = qp.parse(queryStr, FIELD_NAME);
+//    if (VERBOSE) System.out.println("Querying: " + query);
+//TopDocs topDocs = searcher.search(query, 1000);
+
+//String msg = "Query <" + queryStr + "> retrieved " + topDocs.totalHits
+//    + " document(s), " + expectedDocCount + " document(s) expected.";
+    
+//    if (VERBOSE) System.out.println(msg);
+
+
+//    assertEquals(msg, expectedDocCount, topDocs.totalHits);
+//  }
+  
+//  private static String numberToString(Number number)
+//{
+//    return number == null ? "*" : ESCAPER.escape(NUMBER_FORMAT.format(number),
+//        LOCALE, EscapeQuerySyntax.Type.STRING).toString();
+//}
+
+//private static Number normalizeNumber(Number number) throws ParseException
+//{
+//    return NUMBER_FORMAT.parse(NUMBER_FORMAT.format(number));
+//}
+
+//@AfterClass
+//  public static void afterClass() throws Exception
+//{
+//    searcher = null;
+//    reader.close();
+//    reader = null;
+//    directory.close();
+//    directory = null;
+//    qp = null;
+//}
+//    }
+//}


[43/58] lucenenet git commit: QueryParser.Flexible refactor: Added dependency injection point (IResourceManagerFactory) that can be used to either change the convention used to locate embedded resources or to retrieve them from an external source.

Posted by ni...@apache.org.
QueryParser.Flexible refactor: Added dependency injection point (IResourceManagerFactory) that can be used to either change the convention used to locate embedded resources or to retrieve them from an external source.


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

Branch: refs/heads/master
Commit: 4c85b79af811bd9c5a2b916833a46429bb6ae827
Parents: c6696fe
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Dec 5 23:05:38 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Dec 5 23:05:38 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Lucene.Net.csproj           |  2 +
 .../Support/BundleResourceManagerFactory.cs     | 69 ++++++++++++++++++++
 .../Support/IResourceManagerFactory.cs          | 19 ++++++
 .../Flexible/Core/Nodes/QueryNodeImpl.cs        | 13 +++-
 .../Flexible/Messages/NLS.cs                    | 69 ++++++++++++++------
 5 files changed, 150 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4c85b79a/src/Lucene.Net.Core/Lucene.Net.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Lucene.Net.csproj b/src/Lucene.Net.Core/Lucene.Net.csproj
index 85ab464..f6e0d2f 100644
--- a/src/Lucene.Net.Core/Lucene.Net.csproj
+++ b/src/Lucene.Net.Core/Lucene.Net.csproj
@@ -614,6 +614,7 @@
     <Compile Include="Support\BitSetSupport.cs" />
     <Compile Include="Support\BufferExceptions.cs" />
     <Compile Include="Support\BuildType.cs" />
+    <Compile Include="Support\BundleResourceManagerFactory.cs" />
     <Compile Include="Support\ByteArrayOutputStream.cs" />
     <Compile Include="Support\ByteBuffer.cs" />
     <Compile Include="Support\ByteOrder.cs" />
@@ -642,6 +643,7 @@
     <Compile Include="Support\IdentityHashSet.cs" />
     <Compile Include="Support\IdentityWeakReference.cs" />
     <Compile Include="Support\IDictionaryExtensions.cs" />
+    <Compile Include="Support\IResourceManagerFactory.cs" />
     <Compile Include="Support\LimitedConcurrencyLevelTaskScheduler.cs" />
     <Compile Include="Support\LinkedHashMap.cs" />
     <Compile Include="Support\ListExtensions.cs" />

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4c85b79a/src/Lucene.Net.Core/Support/BundleResourceManagerFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/BundleResourceManagerFactory.cs b/src/Lucene.Net.Core/Support/BundleResourceManagerFactory.cs
new file mode 100644
index 0000000..49b7471
--- /dev/null
+++ b/src/Lucene.Net.Core/Support/BundleResourceManagerFactory.cs
@@ -0,0 +1,69 @@
+\ufeffusing System;
+using System.Resources;
+
+namespace Lucene.Net.Support
+{
+    /// <summary>
+    /// This implementation of <see cref="IResourceManagerFactory"/> uses a convention
+    /// to retrieve resources. In Java NLS, the convention is to use the same name for the
+    /// resource key propeties and for the resource file names. This presents a problem
+    /// for .NET because the resource generator already creates an internal class with the
+    /// same name as the <c>.resx</c> file.
+    /// <para/>
+    /// To work around this, we use the convention of appending the suffix "Bundle" to 
+    /// the end of the type the resource key propeties are stored in. For example,
+    /// if our constants are stored in a class named ErrorMessages, the type
+    /// that will be looked up by this factory will be ErrorMessagesBundle (which is the
+    /// name of the <c>.resx</c> file that should be added to your project).
+    /// <para/>
+    /// This implementation can be inherited to use a different convention or can be replaced
+    /// to get the resources from an external source.
+    /// </summary>
+    public class BundleResourceManagerFactory : IResourceManagerFactory
+    {
+        /// <summary>
+        /// Creates a <see cref="ResourceManager"/> instance using the specified <paramref name="resourceSource"/>.
+        /// </summary>
+        /// <param name="resourceSource">The type representing the resource to retrieve.</param>
+        /// <returns>A new <see cref="ResourceManager"/> instance.</returns>
+        public virtual ResourceManager Create(Type resourceSource)
+        {
+            return new ResourceManager(GetResourceType(resourceSource));
+        }
+
+        /// <summary>
+        /// Releases the <see cref="ResourceManager"/> instance including any disposable dependencies.
+        /// </summary>
+        /// <param name="manager">The <see cref="ResourceManager"/> to release.</param>
+        public virtual void Release(ResourceManager manager)
+        {
+            var disposable = manager as IDisposable;
+            if (disposable != null)
+            {
+                disposable.Dispose();
+            }
+        }
+
+        /// <summary>
+        /// Converts the Java NLS type to the .NET resource type.
+        /// In Java, these were one and the same, but in .NET it is not possible to create resources
+        /// in Visual Studio with the same class name as a resource class because the resource generation process already
+        /// creates a backing class with the same name as the resource. So, by convention the resources must be
+        /// named &lt;messages class name&gt; + <see cref="ResourceSuffix"/> (default value "Bundle") in order to be found by NLS.
+        /// </summary>
+        /// <param name="clazz">The type of the NLS class where the field strings are located that identify resources.</param>
+        /// <returns>The type of resources (the class name + <see cref="ResourceSuffix"/>), as a .NET <see cref="Type"/> instance.</returns>
+        protected virtual Type GetResourceType(Type clazz)
+        {
+            return Type.GetType(string.Concat(clazz.Namespace, ".", clazz.Name, ResourceSuffix, ", ", clazz.Assembly.FullName));
+        }
+
+        /// <summary>
+        /// The suffix to append to the resource key class name to locate the embedded resource.
+        /// </summary>
+        protected virtual string ResourceSuffix
+        {
+            get { return "Bundle"; }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4c85b79a/src/Lucene.Net.Core/Support/IResourceManagerFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/IResourceManagerFactory.cs b/src/Lucene.Net.Core/Support/IResourceManagerFactory.cs
new file mode 100644
index 0000000..3038064
--- /dev/null
+++ b/src/Lucene.Net.Core/Support/IResourceManagerFactory.cs
@@ -0,0 +1,19 @@
+\ufeffusing System;
+using System.Resources;
+
+namespace Lucene.Net.Support
+{
+    /// <summary>
+    /// LUCENENET specific interface used to inject instances of
+    /// <see cref="ResourceManager"/>. This
+    /// extension point can be used to override the default behavior
+    /// to, for example, retrieve resources from a persistent data store,
+    /// rather than getting them from resource files.
+    /// </summary>
+    public interface IResourceManagerFactory
+    {
+        ResourceManager Create(Type resourceSource);
+
+        void Release(ResourceManager manager);
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4c85b79a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
index c3c3dcc..7ec817c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
@@ -92,8 +92,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         {
             if (IsLeaf || this.clauses == null)
             {
-                ResourceManager bundle = new ResourceManager(typeof(QueryParserMessagesBundle));
-                string message = bundle.GetString(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED);
+                var factory = NLS.GetResourceManagerFactory();
+                ResourceManager bundle = factory.Create(typeof(QueryParserMessages));
+                string message;
+                try
+                {
+                    message = bundle.GetString(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED);
+                }
+                finally
+                {
+                    factory.Release(bundle);
+                }
 
                 throw new ArgumentException(message);
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4c85b79a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
index 17d5a13..c076f9c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
@@ -40,6 +40,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
     /// </summary>
     public class NLS
     {
+        /// <summary>
+        /// LUCENENET specific factory reference to inject instances of <see cref="ResourceManager"/>
+        /// into this class.
+        /// </summary>
+        private static IResourceManagerFactory resourceManagerFactory = new BundleResourceManagerFactory();
         private static IDictionary<string, Type> bundles = new Dictionary<string, Type>(0);
 
         protected NLS()
@@ -47,6 +52,33 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
             // Do not instantiate
         }
 
+        /// <summary>
+        /// Gets the static <see cref="IResourceManagerFactory"/> instance responsible
+        /// for creating <see cref="ResourceManager"/> instances in this class. LUCENENET specific.
+        /// </summary>
+        // LUCENENET NOTE: Don't make this into a property in case we need to make it into an extension method
+        // in a centralized DI configuration builder.
+        public static IResourceManagerFactory GetResourceManagerFactory()
+        {
+            return resourceManagerFactory;
+        }
+
+        /// <summary>
+        /// Sets the <see cref="IResourceManagerFactory"/> used to create instances of <see cref="ResourceManager"/>
+        /// for retrieving localized resources. Defaults to <see cref="BundleResourceManagerFactory"/> if not set. LUCENENET specific.
+        /// </summary>
+        /// <param name="resourceManagerFactory">The <see cref="IResourceManagerFactory"/> instance. Cannot be <c>null</c>.</param>
+        // LUCENENET NOTE: Don't make this into a property in case we need to make it into an extension method
+        // in a centralized DI configuration builder.
+        public static void SetResourceManagerFactory(IResourceManagerFactory resourceManagerFactory)
+        {
+            if (resourceManagerFactory == null)
+            {
+                throw new ArgumentNullException("resourceManagerFactory");
+            }
+            NLS.resourceManagerFactory = resourceManagerFactory;
+        }
+
         public static string GetLocalizedMessage(string key)
         {
             return GetLocalizedMessage(key, CultureInfo.InvariantCulture);
@@ -112,7 +144,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
                 for (IEnumerator<string> it = bundles.Keys.GetEnumerator(); it.MoveNext();)
                 {
                     Type clazz = bundles[it.Current];
-                    ResourceManager resourceBundle = new ResourceManager(GetResourceType(clazz));
+                    ResourceManager resourceBundle = resourceManagerFactory.Create(clazz);
                     if (resourceBundle != null)
                     {
                         try
@@ -125,6 +157,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
                         {
                             // just continue it might be on the next resource bundle
                         }
+                        finally
+                        {
+                            resourceManagerFactory.Release(resourceBundle);
+                        }
                     }
                 }
                 // if resource is not found
@@ -162,13 +198,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
             // Test if the message is present in the resource bundle
             try
             {
-                ResourceManager resourceBundle = new ResourceManager(GetResourceType(clazz));
+                ResourceManager resourceBundle = resourceManagerFactory.Create(clazz);
                 if (resourceBundle != null)
                 {
-                    object obj = resourceBundle.GetObject(key);
-                    //if (obj == null)
-                    //  System.err.println("WARN: Message with key:" + key + " and locale: "
-                    //      + Locale.getDefault() + " not found.");
+                    try
+                    {
+                        object obj = resourceBundle.GetObject(key);
+                        //if (obj == null)
+                        //  System.err.println("WARN: Message with key:" + key + " and locale: "
+                        //      + Locale.getDefault() + " not found.");
+                    }
+                    finally
+                    {
+                        resourceManagerFactory.Release(resourceBundle);
+                    }
                 }
             }
             catch (MissingManifestResourceException e)
@@ -183,19 +226,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
                 // system
             }
         }
-
-        /// <summary>
-        /// LUCENENET specific method for converting the NLS type to the .NET resource type.
-        /// In Java, these were one and the same, but in .NET it is not possible to create resources
-        /// in Visual Studio with the same class name as a resource class because the resource generation process already
-        /// creates a backing class with the same name as the resource. So, by convention the resources must be
-        /// named &lt;messages class name&gt;Bundle in order to be found by NLS.
-        /// </summary>
-        /// <param name="clazz">The type of the NLS class where the field strings are located that identify resources.</param>
-        /// <returns>The type of resources (the class name + "Resources" suffix), as a .NET <see cref="Type"/> instance.</returns>
-        private static Type GetResourceType(Type clazz)
-        {
-            return Type.GetType(clazz.Namespace + "." + clazz.Name + "Bundle, " + clazz.Assembly.FullName);
-        }
     }
 }


[22/58] lucenenet git commit: QueryParser.Flexible: Fixed bug that caused TestQPHelper.TestMatchAllDocs() to fail

Posted by ni...@apache.org.
QueryParser.Flexible: Fixed bug that caused TestQPHelper.TestMatchAllDocs() to fail


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

Branch: refs/heads/master
Commit: 2ad30fbcaa1adb16aed002f15e5e90f91ae43453
Parents: c6ee3d5
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Dec 4 17:36:59 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Dec 4 17:36:59 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2ad30fbc/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
index 4b216ac..4fda65e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 FieldQueryNode fqn = (FieldQueryNode)node;
 
                 if (fqn.Field.ToString().Equals("*")
-                    && fqn.Text.Equals("*"))
+                    && fqn.Text.ToString().Equals("*"))
                 {
 
                     return new MatchAllDocsQueryNode();


[28/58] lucenenet git commit: QueryParser.Flexible refactor: Changed IUniqueFieldAttribute to use a property instead of getter and setter. Changed accessiblity to match Java (since this is a demo).

Posted by ni...@apache.org.
QueryParser.Flexible refactor: Changed IUniqueFieldAttribute to use a property instead of getter and setter. Changed accessiblity to match Java (since this is a demo).


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

Branch: refs/heads/master
Commit: 19d323c05fac63b1bd0bd87a9bef41d371e18588
Parents: e2b7290
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Dec 4 17:55:37 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Dec 4 22:00:55 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Spans/SpanTermQueryNodeBuilder.cs           |  2 +-
 .../Flexible/Spans/UniqueFieldAttribute.cs               |  4 +---
 .../Flexible/Spans/UniqueFieldAttributeImpl.cs           | 11 +++--------
 3 files changed, 5 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/19d323c0/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
index e8868fe..cbaf27f 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
@@ -19,7 +19,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
     public class SpanTermQueryNodeBuilder : IStandardQueryBuilder
     {
 
-        public Query Build(IQueryNode node)
+        public virtual Query Build(IQueryNode node)
         {
             FieldQueryNode fieldQueryNode = (FieldQueryNode)node;
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/19d323c0/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
index 5cc2628..67b9a8a 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
@@ -15,8 +15,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
     /// <seealso cref="UniqueFieldQueryNodeProcessor"/>
     public interface IUniqueFieldAttribute : IAttribute
     {
-        void SetUniqueField(string uniqueField);
-
-        string GetUniqueField();
+        string UniqueField { get; set; }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/19d323c0/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
index 1fc4fc6..23d3745 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
@@ -29,15 +29,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         }
 
 
-        public void SetUniqueField(string uniqueField)
+        public virtual string UniqueField
         {
-            this.uniqueField = uniqueField;
-        }
-
-
-        public string GetUniqueField()
-        {
-            return this.uniqueField;
+            get { return this.uniqueField; }
+            set { this.uniqueField = value; }
         }
 
 


[26/58] lucenenet git commit: QueryParser.Flexible refactor: Formatting, removed commented code, changed some properties

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
index 8aae6e7..074ae2b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
@@ -30,7 +30,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             BooleanQueryNode booleanNode = (BooleanQueryNode)queryNode;
@@ -40,7 +39,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             if (children != null)
             {
-
                 foreach (IQueryNode child in children)
                 {
                     object obj = child.GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
@@ -52,45 +50,28 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                         try
                         {
                             bQuery.Add(query, GetModifierValue(child));
-
                         }
                         catch (BooleanQuery.TooManyClauses ex)
                         {
-
                             throw new QueryNodeException(new MessageImpl(
                                 QueryParserMessages.TOO_MANY_BOOLEAN_CLAUSES, BooleanQuery
                                     .MaxClauseCount, queryNode
                                     .ToQueryString(new EscapeQuerySyntaxImpl())), ex);
-
                         }
-
                     }
-
                 }
-
             }
 
             return bQuery;
-
         }
 
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
-
         private static BooleanClause.Occur GetModifierValue(IQueryNode node)
         {
-
             if (node is ModifierQueryNode)
             {
                 ModifierQueryNode mNode = ((ModifierQueryNode)node);
                 switch (mNode.Modifier)
                 {
-
                     case Modifier.MOD_REQ:
                         return BooleanClause.Occur.MUST;
 
@@ -99,14 +80,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
                     case Modifier.MOD_NONE:
                         return BooleanClause.Occur.SHOULD;
-
                 }
-
             }
 
             return BooleanClause.Occur.SHOULD;
-
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
index 4021391..a61e651 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
@@ -37,15 +37,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             query.Boost = boostNode.Value;
 
             return query;
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
index 1587559..4a25991 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
@@ -34,13 +34,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
         {
             return null;
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
index 8393826..60b83b9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
@@ -20,7 +20,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             FieldQueryNode fieldNode = (FieldQueryNode)queryNode;
@@ -28,13 +27,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             return new TermQuery(new Term(fieldNode.GetFieldAsString(), fieldNode
                 .GetTextAsString()));
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
index bba33b4..b64c9e9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
@@ -21,28 +21,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             FuzzyQueryNode fuzzyNode = (FuzzyQueryNode)queryNode;
             string text = fuzzyNode.GetTextAsString();
 
-
             int numEdits = FuzzyQuery.FloatToEdits(fuzzyNode.Similarity,
                 text.CodePointCount(0, text.Length));
 
             return new FuzzyQuery(new Term(fuzzyNode.GetFieldAsString(), fuzzyNode
                 .GetTextAsString()), numEdits, fuzzyNode
                 .PrefixLength);
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
index af8d121..5adf2f3 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
@@ -21,22 +21,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             GroupQueryNode groupNode = (GroupQueryNode)queryNode;
 
             return (Query)(groupNode).GetChild().GetTag(
                 QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
index 0a9dfec..d6c9784 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
@@ -24,10 +24,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
-
             // validates node
             if (!(queryNode is MatchAllDocsQueryNode))
             {
@@ -38,15 +36,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             }
 
             return new MatchAllDocsQuery();
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
index 25f5d6b..62646a4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
@@ -24,10 +24,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
-
             // validates node
             if (!(queryNode is MatchNoDocsQueryNode))
             {
@@ -38,16 +36,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             }
 
             return new BooleanQuery();
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
index 271ebca..73b542a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
@@ -21,22 +21,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             ModifierQueryNode modifierNode = (ModifierQueryNode)queryNode;
 
             return (Query)(modifierNode).GetChild().GetTag(
                 QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
index e0eea41..1d7f243 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
@@ -23,7 +23,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             MultiPhraseQueryNode phraseNode = (MultiPhraseQueryNode)queryNode;
@@ -34,7 +33,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             if (children != null)
             {
-                //TreeDictionary<int?, List<Term>> positionTermMap = new TreeDictionary<int?, List<Term>>();
                 IDictionary<int?, List<Term>> positionTermMap = new SortedDictionary<int?, List<Term>>();
 
                 foreach (IQueryNode child in children)
@@ -43,18 +41,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                     TermQuery termQuery = (TermQuery)termNode
                         .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
 
-                    //List<Term> termList = positionTermMap[termNode.GetPositionIncrement()];
-                    //if (termList == null)
                     List<Term> termList;
                     if (!positionTermMap.TryGetValue(termNode.PositionIncrement, out termList) || termList == null)
                     {
                         termList = new List<Term>();
                         positionTermMap[termNode.PositionIncrement] = termList;
-
                     }
 
                     termList.Add(termQuery.Term);
-
                 }
 
                 foreach (int positionIncrement in positionTermMap.Keys)
@@ -63,21 +57,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
                     phraseQuery.Add(termList.ToArray(/*new Term[termList.size()]*/),
                                 positionIncrement);
-
                 }
-
             }
 
             return phraseQuery;
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
index b616069..e519eda 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
@@ -31,7 +31,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             NumericRangeQueryNode numericRangeNode = (NumericRangeQueryNode)queryNode;
@@ -53,7 +52,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             switch (numberType)
             {
-
                 case FieldType.NumericType.LONG:
                     return NumericRangeQuery.NewLongRange(field, precisionStep,
                         (long?)lowerNumber, (long?)upperNumber, minInclusive, maxInclusive);
@@ -76,16 +74,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                 default:
                     throw new QueryNodeException(new MessageImpl(
                       QueryParserMessages.UNSUPPORTED_NUMERIC_DATA_TYPE, numberType));
-
             }
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
index 3683797..757e7cf 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
@@ -20,7 +20,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             TokenizedPhraseQueryNode phraseNode = (TokenizedPhraseQueryNode)queryNode;
@@ -31,7 +30,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             if (children != null)
             {
-
                 foreach (IQueryNode child in children)
                 {
                     TermQuery termQuery = (TermQuery)child
@@ -39,21 +37,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                     FieldQueryNode termNode = (FieldQueryNode)child;
 
                     phraseQuery.Add(termQuery.Term, termNode.PositionIncrement);
-
                 }
-
             }
 
             return phraseQuery;
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
index 137c952..8524cc2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
@@ -23,10 +23,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
-
             PrefixWildcardQueryNode wildcardNode = (PrefixWildcardQueryNode)queryNode;
 
             string text = wildcardNode.Text.SubSequence(0, wildcardNode.Text.Length - 1).ToString();
@@ -40,13 +38,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             return q;
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
index 1811d76..764931e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
@@ -22,7 +22,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             RegexpQueryNode regexpNode = (RegexpQueryNode)queryNode;
@@ -39,13 +38,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             return q;
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
index 13d1fa0..7497aab 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
@@ -22,7 +22,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             SlopQueryNode phraseSlopNode = (SlopQueryNode)queryNode;
@@ -33,7 +32,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             if (query is PhraseQuery)
             {
                 ((PhraseQuery)query).Slop = phraseSlopNode.Value;
-
             }
             else
             {
@@ -41,15 +39,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             }
 
             return query;
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
index 57f8b14..76b601b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
@@ -29,7 +29,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             StandardBooleanQueryNode booleanNode = (StandardBooleanQueryNode)queryNode;
@@ -39,7 +38,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             if (children != null)
             {
-
                 foreach (IQueryNode child in children)
                 {
                     object obj = child.GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
@@ -54,35 +52,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                         }
                         catch (BooleanQuery.TooManyClauses ex)
                         {
-
                             throw new QueryNodeException(new MessageImpl(
                                 QueryParserMessages.TOO_MANY_BOOLEAN_CLAUSES, BooleanQuery
                                     .MaxClauseCount, queryNode
                                     .ToQueryString(new EscapeQuerySyntaxImpl())), ex);
-
                         }
-
                     }
-
                 }
-
             }
 
             return bQuery;
-
         }
 
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
-
         private static BooleanClause.Occur GetModifierValue(IQueryNode node)
         {
-
             if (node is ModifierQueryNode)
             {
                 ModifierQueryNode mNode = ((ModifierQueryNode)node);
@@ -91,12 +74,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                 if (Modifier.MOD_NONE.Equals(modifier))
                 {
                     return BooleanClause.Occur.SHOULD;
-
                 }
                 else if (Modifier.MOD_NOT.Equals(modifier))
                 {
                     return BooleanClause.Occur.MUST_NOT;
-
                 }
                 else
                 {
@@ -105,8 +86,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             }
 
             return BooleanClause.Occur.SHOULD;
-
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
index a99ae45..7971930 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
@@ -42,19 +42,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                 new StandardBooleanQueryNodeBuilder());
             SetBuilder(typeof(MultiPhraseQueryNode), new MultiPhraseQueryNodeBuilder());
             SetBuilder(typeof(MatchAllDocsQueryNode), new MatchAllDocsQueryNodeBuilder());
-
         }
 
-        public override /*object*/ Query Build(IQueryNode queryNode)
+        public override Query Build(IQueryNode queryNode)
         {
             return base.Build(queryNode);
         }
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IStandardQueryBuilder
-        ///// </summary>
-        //Query IStandardQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return (Query)Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
index 965394e..7899c06 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
@@ -23,7 +23,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             TermRangeQueryNode rangeNode = (TermRangeQueryNode)queryNode;
@@ -55,15 +54,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             }
 
             return rangeQuery;
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
index 4817427..15294f7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
@@ -23,7 +23,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             // empty constructor
         }
 
-
         public virtual Query Build(IQueryNode queryNode)
         {
             WildcardQueryNode wildcardNode = (WildcardQueryNode)queryNode;
@@ -39,13 +38,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             return q;
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
index 6758c8f..278e26f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
@@ -26,21 +26,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             this.config = config;
         }
 
-
         public virtual void BuildFieldConfig(FieldConfig fieldConfig)
         {
             IDictionary<string, float?> fieldBoostMap = this.config.Get(ConfigurationKeys.FIELD_BOOST_MAP);
 
             if (fieldBoostMap != null)
             {
-                float? boost;// = fieldBoostMap.Get(fieldConfig.GetField());
-                fieldBoostMap.TryGetValue(fieldConfig.Field, out boost);
-
-                if (boost != null)
+                float? boost;
+                if (fieldBoostMap.TryGetValue(fieldConfig.Field, out boost) && boost != null)
                 {
                     fieldConfig.Set(ConfigurationKeys.BOOST, boost);
                 }
-
             }
         }
     }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
index edfdb4d..35c9b05 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
@@ -27,7 +27,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             this.config = config;
         }
 
-        
         public virtual void BuildFieldConfig(FieldConfig fieldConfig)
         {
             DateTools.Resolution? dateRes = null;
@@ -36,9 +35,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             if (dateResMap != null)
             {
                 dateResMap.TryGetValue(fieldConfig.Field, out dateRes);
-
-                //dateRes = dateResMap.Get(
-                //    fieldConfig.GetField());
             }
 
             if (dateRes == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
index fc821eb..f0fcd35 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
@@ -12,7 +12,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
     /// <summary>
     /// LUCENENET specific enum for mimicking the Java DateFormat
     /// </summary>
-    public enum DateStyle
+    public enum DateFormat
     {
         FULL, LONG,
         MEDIUM, SHORT
@@ -28,12 +28,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
         //private static readonly long serialVersionUID = 964823936071308283L;
 
         // The .NET ticks representing January 1, 1970 0:00:00, also known as the "epoch".
-        private const long EPOCH = 621355968000000000;
+        public const long EPOCH = 621355968000000000;
 
-        //private readonly DateFormat dateFormat;
-        private readonly DateStyle dateStyle;
-        private readonly DateStyle timeStyle;
-        //private readonly CultureInfo locale;
+        private readonly string dateFormat;
+        private readonly DateFormat dateStyle;
+        private readonly DateFormat timeStyle;
         private readonly TimeZoneInfo timeZone;
 
         /**
@@ -41,105 +40,77 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          * 
          * @param dateFormat {@link DateFormat} used to parse and format dates
          */
-        //public NumberDateFormat(DateFormat dateFormat)
-        //{
-        //    this.dateFormat = dateFormat;
-        //}
-
-        //public NumberDateFormat(string dateFormat, CultureInfo locale)
-        //{
-        //    this.dateFormat = dateFormat;
-        //    this.locale = locale;
-        //}
-
-        //public NumberDateFormat(string dateFormat)
-        //    : this(dateFormat, CultureInfo.CurrentCulture)
-        //{
-        //}
+        public NumberDateFormat(string dateFormat, CultureInfo locale)
+            : base(locale)
+        {
+            this.dateFormat = dateFormat;
+        }
 
-        public NumberDateFormat(DateStyle dateStyle, DateStyle timeStyle, CultureInfo locale, TimeZoneInfo timeZone)
+        public NumberDateFormat(DateFormat dateStyle, DateFormat timeStyle, CultureInfo locale, TimeZoneInfo timeZone)
             : base(locale)
         {
             this.dateStyle = dateStyle;
             this.timeStyle = timeStyle;
-            //this.locale = locale;
             this.timeZone = timeZone;
         }
 
         public override string Format(double number)
         {
-            //long ticks = (long)number + EPOCH;
-            //return new DateTime(ticks).ToString(GetDateFormat(), this.locale);
-
             return new DateTime(EPOCH).AddMilliseconds(number).ToString(GetDateFormat(), this.locale);
         }
 
-
         public override string Format(long number)
         {
-            //long ticks = number + EPOCH;
-            //return new DateTime(ticks).ToString(GetDateFormat(), this.locale);
-
             return new DateTime(EPOCH).AddMilliseconds(number).ToString(GetDateFormat(), this.locale);
         }
 
-
-        public override /*Number*/ object Parse(string source)
+        public override object Parse(string source)
         {
             return (DateTime.Parse(source, this.locale) - new DateTime(EPOCH)).TotalMilliseconds;
-
-            //DateTime date = DateTime.Parse(source, this.locale);
-            //return date.Ticks - EPOCH;
-
-            //DateTime date = dateFormat.parse(source, parsePosition);
-            //return (date == null) ? null : date.getTime();
         }
 
-
         public override string Format(object number)
         {
-            //long ticks = Convert.ToInt64(number) + EPOCH;
-            //return new DateTime(ticks).ToString(GetDateFormat(), this.locale);
-
             return new DateTime(EPOCH).AddMilliseconds(Convert.ToInt64(number)).ToString(GetDateFormat(), this.locale);
         }
 
-
-        private string GetDateFormat()
+        internal string GetDateFormat()
         {
+            if (dateFormat != null) return dateFormat;
+
             string datePattern = "", timePattern = "";
 
             switch (dateStyle)
             {
-                case DateStyle.SHORT:
+                case DateFormat.SHORT:
                     datePattern = locale.DateTimeFormat.ShortDatePattern;
                     break;
-                case DateStyle.MEDIUM:
+                case DateFormat.MEDIUM:
                     datePattern = locale.DateTimeFormat.LongDatePattern
                         .Replace("dddd,", "").Replace(", dddd", "") // Remove the day of the week
                         .Replace("MMMM", "MMM"); // Replace month with abbreviated month
                     break;
-                case DateStyle.LONG:
+                case DateFormat.LONG:
                     datePattern = locale.DateTimeFormat.LongDatePattern
                         .Replace("dddd,", "").Replace(", dddd", ""); // Remove the day of the week
                     break;
-                case DateStyle.FULL:
+                case DateFormat.FULL:
                     datePattern = locale.DateTimeFormat.LongDatePattern;
                     break;
             }
 
             switch (timeStyle)
             {
-                case DateStyle.SHORT:
+                case DateFormat.SHORT:
                     timePattern = locale.DateTimeFormat.ShortTimePattern;
                     break;
-                case DateStyle.MEDIUM:
+                case DateFormat.MEDIUM:
                     timePattern = locale.DateTimeFormat.LongTimePattern;
                     break;
-                case DateStyle.LONG:
+                case DateFormat.LONG:
                     timePattern = locale.DateTimeFormat.LongTimePattern; // LUCENENET TODO: Time zone info not being added
                     break;
-                case DateStyle.FULL:
+                case DateFormat.FULL:
                     timePattern = locale.DateTimeFormat.LongTimePattern; // LUCENENET TODO: Time zone info not being added, but Java doc is unclear on what the difference is between this and LONG
                     break;
             }
@@ -148,63 +119,3 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
         }
     }
 }
-
-
-//using System;
-//using System.Collections.Generic;
-//using System.Linq;
-//using System.Text;
-//using System.Threading.Tasks;
-
-//namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
-//{
-//    /// <summary>
-//    /// This {@link Format} parses {@link Long} into date strings and vice-versa. It
-//    /// uses the given {@link DateFormat} to parse and format dates, but before, it
-//    /// converts {@link Long} to {@link Date} objects or vice-versa.
-//    /// </summary>
-//    public class NumberDateFormat : NumberFormat
-//    {
-//        //private static readonly long serialVersionUID = 964823936071308283L;
-
-//        private readonly DateFormat dateFormat;
-
-//        /**
-//         * Constructs a {@link NumberDateFormat} object using the given {@link DateFormat}.
-//         * 
-//         * @param dateFormat {@link DateFormat} used to parse and format dates
-//         */
-//        public NumberDateFormat(DateFormat dateFormat)
-//        {
-//            this.dateFormat = dateFormat;
-//        }
-
-
-//        public override StringBuilder format(double number, StringBuilder toAppendTo,
-//            FieldPosition pos)
-//        {
-//            return dateFormat.format(new Date((long)number), toAppendTo, pos);
-//        }
-
-
-//        public override StringBuilder format(long number, StringBuilder toAppendTo,
-//            FieldPosition pos)
-//        {
-//            return dateFormat.format(new Date(number), toAppendTo, pos);
-//        }
-
-
-//        public override /*Number*/ object Parse(string source, ParsePosition parsePosition)
-//        {
-//            DateTime date = dateFormat.parse(source, parsePosition);
-//            return (date == null) ? null : date.getTime();
-//        }
-
-
-//        public override StringBuffer format(object number, StringBuilder toAppendTo,
-//            FieldPosition pos)
-//        {
-//            return dateFormat.format(number, toAppendTo, pos);
-//        }
-//    }
-//}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
index 280fe1f..33acddb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
@@ -92,7 +92,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
         public override bool Equals(object obj)
         {
-
             if (obj == this) return true;
 
             if (obj is NumericConfig)
@@ -105,11 +104,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
                 {
                     return true;
                 }
-
             }
 
             return false;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
index b419bc6..62d7e5f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
@@ -43,12 +43,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
             if (numericConfigMap != null)
             {
-                //NumericConfig numericConfig = numericConfigMap
-                //    .Get(fieldConfig.GetField());
                 NumericConfig numericConfig;
-
-
-                //if (numericConfig != null)
                 if (numericConfigMap.TryGetValue(fieldConfig.Field, out numericConfig) && numericConfig != null)
                 {
                     fieldConfig.Set(ConfigurationKeys.NUMERIC_CONFIG, numericConfig);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
index ddfad70..93f9d42 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
@@ -9,7 +9,7 @@ using System.Globalization;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
-using static Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler;
+using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {
@@ -22,8 +22,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
     /// <seealso cref="StandardQueryNodeProcessorPipeline"/>
     public class StandardQueryConfigHandler : QueryConfigHandler
     {
-        
-
         public StandardQueryConfigHandler()
         {
             // Add listener that will build the FieldConfig.
@@ -43,7 +41,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             Set(ConfigurationKeys.LOCALE, CultureInfo.InvariantCulture);
             Set(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD, MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT);
             Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, new HashMap<string, DateTools.Resolution?>());
-
         }
 
         /**
@@ -61,7 +58,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
    */
     public sealed class ConfigurationKeys
     {
-
         /**
          * Key used to set whether position increments is enabled
          * 
@@ -195,6 +191,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          * @see StandardQueryParser#getNumericConfigMap()
          */
         public readonly static ConfigurationKey<IDictionary<string, NumericConfig>> NUMERIC_CONFIG_MAP = ConfigurationKey.NewInstance<IDictionary<string, NumericConfig>>();
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
index 33c5fab..108ee69 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          */
         protected AbstractRangeQueryNode()
         {
-            SetLeaf(false);
+            IsLeaf = false;
             Allocate();
         }
 
@@ -74,29 +74,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         }
 
         /**
-         * Sets the field associated with this node.
-         * 
-         * @param fieldName the field associated with this node
-         */
-        //      @Override
-        //public void setField(CharSequence fieldName)
-        //      {
-        //          T lower = getLowerBound();
-        //          T upper = getUpperBound();
-
-        //          if (lower != null)
-        //          {
-        //              lower.setField(fieldName);
-        //          }
-
-        //          if (upper != null)
-        //          {
-        //              upper.setField(fieldName);
-        //          }
-
-        //      }
-
-        /**
          * Returns the lower bound node.
          * 
          * @return the lower bound node.
@@ -153,7 +130,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         public virtual void SetBounds(T lower, T upper, bool lowerInclusive,
             bool upperInclusive)
         {
-
             if (lower != null && upper != null)
             {
                 string lowerField = StringUtils.ToString(lower.Field);
@@ -175,12 +151,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
                 children.Add(upper);
 
                 Set(children);
-
             }
-
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             StringBuilder sb = new StringBuilder();
@@ -191,7 +164,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             if (lowerInclusive)
             {
                 sb.Append('[');
-
             }
             else
             {
@@ -201,7 +173,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             if (lower != null)
             {
                 sb.Append(lower.ToQueryString(escapeSyntaxParser));
-
             }
             else
             {
@@ -213,7 +184,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             if (upper != null)
             {
                 sb.Append(upper.ToQueryString(escapeSyntaxParser));
-
             }
             else
             {
@@ -223,7 +193,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             if (upperInclusive)
             {
                 sb.Append(']');
-
             }
             else
             {
@@ -231,10 +200,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             }
 
             return sb.ToString();
-
         }
 
-
         public override string ToString()
         {
             StringBuilder sb = new StringBuilder("<").Append(GetType().AssemblyQualifiedName);
@@ -246,7 +213,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             sb.Append("</").Append(GetType().AssemblyQualifiedName).Append(">\n");
 
             return sb.ToString();
-
         }
     }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
index 83b23bd..57bf1b8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
@@ -16,9 +16,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
     {
         public MultiPhraseQueryNode()
         {
-            SetLeaf(false);
+            IsLeaf = false;
             Allocate();
-
         }
 
         public override string ToString()
@@ -37,7 +36,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             return sb.ToString();
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             var children = GetChildren();
@@ -55,7 +53,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             return "[MTP[" + sb.ToString() + "]]";
         }
 
-
         public override IQueryNode CloneTree()
         {
             MultiPhraseQueryNode clone = (MultiPhraseQueryNode)base.CloneTree();
@@ -65,7 +62,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             return clone;
         }
 
-
         public virtual string Field
         {
             get
@@ -75,7 +71,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
                 if (children == null || children.Count == 0)
                 {
                     return null;
-
                 }
                 else
                 {
@@ -88,19 +83,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
                 if (children != null)
                 {
-
                     foreach (IQueryNode child in children)
                     {
-
                         if (child is IFieldableNode)
                         {
                             ((IFieldableNode)child).Field = value;
                         }
-
                     }
                 }
             }
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
index b3f55fc..096b802 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
@@ -44,7 +44,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         }
 
         /**
-         * Returns the field associated with this node.
+         * Gets or Sets the field associated with this node.
          * 
          * @return the field associated with this node
          */
@@ -56,17 +56,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         }
 
         /**
-         * Sets the field associated with this node.
-         * 
-         * @param fieldName the field associated with this node
-         */
-        //      @Override
-        //public void setField(CharSequence fieldName)
-        //      {
-        //          this.field = fieldName;
-        //      }
-
-        /**
          * This method is used to get the value converted to {@link String} and
          * escaped using the given {@link EscapeQuerySyntax}.
          * 
@@ -76,9 +65,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          */
         protected string GetTermEscaped(IEscapeQuerySyntax escaper)
         {
-            //return escaper.Escape(new StringCharSequenceWrapper(/*string.Format(numberFormat, this.value))*/ numberFormat.Format(this.value),
-            //    CultureInfo.CurrentCulture, EscapeQuerySyntax.Type.NORMAL).ToString();
-
             return escaper.Escape(numberFormat.Format(this.value),
                 CultureInfo.CurrentCulture, EscapeQuerySyntax.Type.NORMAL);
         }
@@ -112,25 +98,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          * 
          * @return the numeric value
          */
-
         public virtual object Value
         {
             get { return value; }
             set { this.value = value; }
         }
 
-        /**
-         * Sets the numeric value.
-         * 
-         * @param value the numeric value
-         */
-        //      @Override
-        //public void setValue(Number value)
-        //      {
-        //          this.value = value;
-        //      }
-
-
         public override string ToString()
         {
             return "<numeric field='" + this.field + "' number='"

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
index 64d09cf..160b581 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
@@ -7,7 +7,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
-using static Lucene.Net.Documents.FieldType;
+using NumericType = Lucene.Net.Documents.FieldType.NumericType;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
@@ -41,7 +41,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
         private static NumericType GetNumericDataType(/*Number*/ object number)
         {
-
             if (number is long)
             {
                 return NumericType.LONG;
@@ -65,7 +64,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
                         QueryParserMessages.NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY,
                         number.GetType()));
             }
-
         }
 
         /**
@@ -126,7 +124,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
             base.SetBounds(lower, upper, lowerInclusive, upperInclusive);
             this.numericConfig = numericConfig;
-
         }
 
         /**
@@ -139,7 +136,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             get { return this.numericConfig; }
         }
 
-
         public override string ToString()
         {
             StringBuilder sb = new StringBuilder("<numericRange lowerInclusive='");
@@ -154,7 +150,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             sb.Append("</numericRange>");
 
             return sb.ToString();
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
index dd79211..0b03046 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
@@ -54,14 +54,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         {
         }
 
-
         public override string ToString()
         {
             return "<prefixWildcard field='" + this.field + "' term='" + this.text
                 + "'/>";
         }
 
-
         public override IQueryNode CloneTree()
         {
             PrefixWildcardQueryNode clone = (PrefixWildcardQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
index 4fc079b..f499b83 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
@@ -57,13 +57,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             return new BytesRef(text.ToString());
         }
 
-
         public override string ToString()
         {
             return "<regexp field='" + this.field + "' term='" + this.text + "'/>";
         }
 
-
         public override IQueryNode CloneTree()
         {
             RegexpQueryNode clone = (RegexpQueryNode)base.CloneTree();
@@ -72,7 +70,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             return clone;
         }
 
-
         public virtual ICharSequence Text
         {
             get { return text; }
@@ -94,6 +91,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         {
             return IsDefaultField(field) ? "/" + text + "/" : field + ":/" + text + "/";
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
index e68817d..622f005 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
@@ -53,7 +53,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         {
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escaper)
         {
             if (IsDefaultField(this.field))
@@ -71,7 +70,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             return "<wildcard field='" + this.field + "' term='" + this.text + "'/>";
         }
 
-
         public override IQueryNode CloneTree()
         {
             WildcardQueryNode clone = (WildcardQueryNode)base.CloneTree();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
index 2cd0b49..1bedab8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
@@ -112,6 +112,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
          * affect the lexer's operation.
          */
         void Done();
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
index 5eff8f8..8bddaca 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
@@ -32,35 +32,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         private static readonly string[] escapableWordTokens = { "AND", "OR", "NOT",
             "TO", "WITHIN", "SENTENCE", "PARAGRAPH", "INORDER" };
 
-        //// LUCENENET specific overload for string
-        //private static string EscapeChar(string str, CultureInfo locale)
-        //{
-        //    if (str == null || str.Length == 0)
-        //        return str;
-
-        //    string buffer = str;
-
-        //    // regular escapable Char for terms
-        //    for (int i = 0; i < escapableTermChars.Length; i++)
-        //    {
-        //        buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
-        //            "\\", locale);
-        //    }
-
-        //    // First Character of a term as more escaping chars
-        //    for (int i = 0; i < escapableTermExtraFirstChars.Length; i++)
-        //    {
-        //        if (buffer[0] == escapableTermExtraFirstChars[i][0])
-        //        {
-        //            buffer = "\\" + buffer[0]
-        //                + buffer.Substring(1, buffer.Length - 1);
-        //            break;
-        //        }
-        //    }
-
-        //    return buffer;
-        //}
-
         private static ICharSequence EscapeChar(ICharSequence str, CultureInfo locale)
         {
             if (str == null || str.Length == 0)
@@ -89,22 +60,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return buffer;
         }
 
-        //// LUCENENET specific overload for string
-        //private string EscapeQuoted(string str, CultureInfo locale)
-        //{
-        //    if (str == null || str.Length == 0)
-        //        return str;
-
-        //    string buffer = str;
-
-        //    for (int i = 0; i < escapableQuotedChars.Length; i++)
-        //    {
-        //        buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
-        //            "\\", locale);
-        //    }
-        //    return buffer;
-        //}
-
         private ICharSequence EscapeQuoted(ICharSequence str, CultureInfo locale)
         {
             if (str == null || str.Length == 0)
@@ -120,25 +75,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return buffer;
         }
 
-        //// LUCENENET specific overload for string
-        //private static string EscapeTerm(string term, CultureInfo locale)
-        //{
-        //    if (term == null)
-        //        return term;
-
-        //    // Escape single Chars
-        //    term = EscapeChar(term, locale);
-        //    term = EscapeWhiteChar(term, locale);
-
-        //    // Escape Parser Words
-        //    for (int i = 0; i < escapableWordTokens.Length; i++)
-        //    {
-        //        if (escapableWordTokens[i].Equals(term.ToString(), StringComparison.OrdinalIgnoreCase))
-        //            return "\\" + term;
-        //    }
-        //    return term;
-        //}
-
         private static ICharSequence EscapeTerm(ICharSequence term, CultureInfo locale)
         {
             if (term == null)
@@ -168,7 +104,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
          *          the new character to prefix sequence1 in return string.
          * @return the new String
          */
-        // LUCENENET specific overload for string
         private static ICharSequence ReplaceIgnoreCase(ICharSequence @string,
             string sequence1, string escapeChar, CultureInfo locale)
         {
@@ -228,49 +163,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 }
             }
             
-
             if (result.Length == 0 && copyStart == 0)
                 return @string;
             result.Append(@string.ToString().Substring(copyStart));
             return result.ToString().ToCharSequence();
         }
 
-        //private static ICharSequence ReplaceIgnoreCase(ICharSequence @string,
-        //   string sequence1, string escapeChar, CultureInfo locale)
-        //{
-        //    if (escapeChar == null || sequence1 == null || @string == null)
-        //        throw new NullReferenceException(); // LUCNENET TODO: ArgumentException...
-
-        //    return new StringCharSequenceWrapper(
-        //        ReplaceIgnoreCase(@string.ToString(), sequence1, escapeChar, locale));
-        //}
-
-        ///**
-        // * escape all tokens that are part of the parser syntax on a given string
-        // * 
-        // * @param str
-        // *          string to get replaced
-        // * @param locale
-        // *          locale to be used when performing string compares
-        // * @return the new String
-        // */
-        //// LUCENENET specific overload for string
-        //private static string EscapeWhiteChar(string str,
-        //    CultureInfo locale)
-        //{
-        //    if (str == null || str.Length == 0)
-        //        return str;
-
-        //    string buffer = str;
-
-        //    for (int i = 0; i < escapableWhiteChars.Length; i++)
-        //    {
-        //        buffer = ReplaceIgnoreCase(buffer, escapableWhiteChars[i].ToLower(locale),
-        //            "\\", locale);
-        //    }
-        //    return buffer;
-        //}
-
         /**
          * escape all tokens that are part of the parser syntax on a given string
          * 
@@ -443,6 +341,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     QueryParserMessages.INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE, c));
             }
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
index 147c411..4c88c80 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
@@ -31,7 +31,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             input = r;
         }
 
-
         public char ReadChar()
         {
             if (bufferPosition >= bufferLength)
@@ -80,7 +79,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return ReadChar();
         }
 
-
         public void BackUp(int amount)
         {
             bufferPosition -= amount;
@@ -91,7 +89,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return new string(buffer, tokenStart, bufferPosition - tokenStart);
         }
 
-
         public char[] GetSuffix(int len)
         {
             char[] value = new char[len];
@@ -114,14 +111,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         {
             get { return bufferStart + bufferPosition; }
         }
+
         public int Line
         {
             get { return 1; }
         }
+
         public int EndColumn
         {
             get { return bufferStart + bufferPosition; }
         }
+
         public int EndLine
         {
             get { return 1; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
index e9de2e5..b624728 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
@@ -18,16 +18,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
     /// You can modify this class to customize your error reporting
     /// mechanisms so long as you retain the public fields.
     /// </summary>
+    [Serializable]
     public class ParseException : QueryNodeParseException
     {
         /**
-   * The version identifier for this Serializable class.
-   * Increment only if the <i>serialized</i> form of the
-   * class changes.
-   */
-        private static readonly long serialVersionUID = 1L;
-
-        /**
          * This constructor is used by the method "generateParseException"
          * in the generated parser.  Calling this constructor generates
          * a new object of this type with the fields "currentToken",
@@ -52,7 +46,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
          * relevant information.  The JavaCC generated code does not use
          * these constructors.
          */
-
         public ParseException()
             : base(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, "Error"))
         {
@@ -64,7 +57,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         {
         }
 
-
         /**
          * This is the last token that has been consumed successfully.  If
          * this object has been created due to a parse error, the token
@@ -150,7 +142,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         /**
          * The end of line string for this machine.
          */
-        //protected String eol = System.getProperty("line.separator", "\n");
         protected string eol = Environment.NewLine;
 
         /**

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
index 7507b9d..b1f11dd 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
@@ -29,6 +29,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             : this(new FastCharStream(new StringReader("")))
         {
         }
+
         /** Parses a query string, returning a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode}.
         *  @param query  the query string to be parsed.
         *  @throws ParseException if the parsing fails

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
index 0485601..9c609a1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
@@ -1,4 +1,5 @@
-\ufeffusing System;
+\ufeffusing Lucene.Net.Support;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -12,13 +13,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
     [Serializable]
     public class TokenMgrError : Exception
     {
-        /**
-   * The version identifier for this Serializable class.
-   * Increment only if the <i>serialized</i> form of the
-   * class changes.
-   */
-        private static readonly long serialVersionUID = 1L;
-
         /*
          * Ordinals for various reasons why an Error of this type can be thrown.
          */
@@ -90,8 +84,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     default:
                         if ((ch = str[i]) < 0x20 || ch > 0x7e)
                         {
-                            //string s = "0000" + Integer.toString(ch, 16);
-                            string s = "0000" + Convert.ToString(ch, 16);
+                            string s = "0000" + Number.ToString(ch, 16);
                             retval.Append("\\u" + s.Substring(s.Length - 4, /*s.Length - (s.Length - 4)*/ 4));
                         }
                         else

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
index a672fa4..c40f5b2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
@@ -31,35 +31,29 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         public override IQueryNode Process(IQueryNode queryTree)
         {
             bool? allowsLeadingWildcard = GetQueryConfigHandler().Get(ConfigurationKeys.ALLOW_LEADING_WILDCARD);
 
             if (allowsLeadingWildcard != null)
             {
-
                 if (!allowsLeadingWildcard.Value)
                 {
                     return base.Process(queryTree);
                 }
-
             }
 
             return queryTree;
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is WildcardQueryNode)
             {
                 WildcardQueryNode wildcardNode = (WildcardQueryNode)node;
 
                 if (wildcardNode.Text.Length > 0)
                 {
-
                     // Validate if the wildcard was escaped
                     if (UnescapedCharSequence.WasEscaped(wildcardNode.Text, 0))
                         return node;
@@ -73,28 +67,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                     .ToQueryString(new EscapeQuerySyntaxImpl())));
                     }
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
index bbfccea..668282c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
@@ -51,7 +51,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         public override IQueryNode Process(IQueryNode queryTree)
         {
             Analyzer analyzer = GetQueryConfigHandler().Get(ConfigurationKeys.ANALYZER);
@@ -73,24 +72,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 {
                     return base.Process(queryTree);
                 }
-
             }
 
             return queryTree;
-
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is ITextableQueryNode
                 && !(node is WildcardQueryNode)
                 && !(node is FuzzyQueryNode)
                 && !(node is RegexpQueryNode)
                 && !(node.Parent is IRangeQueryNode))
             {
-
                 FieldQueryNode fieldNode = ((FieldQueryNode)node);
                 string text = fieldNode.GetTextAsString();
                 string field = fieldNode.GetFieldAsString();
@@ -115,7 +109,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                     try
                     {
-
                         while (buffer.IncrementToken())
                         {
                             numTokens++;
@@ -124,15 +117,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                             if (positionIncrement != 0)
                             {
                                 positionCount += positionIncrement;
-
                             }
                             else
                             {
                                 severalTokensAtSamePosition = true;
                             }
-
                         }
-
                     }
                     catch (IOException e)
                     {
@@ -172,7 +162,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         hasNext = buffer.IncrementToken();
                         Debug.Assert(hasNext == true);
                         term = termAtt.ToString();
-
                     }
                     catch (IOException e)
                     {
@@ -182,7 +171,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                     fieldNode.Text = term.ToCharSequence();
 
                     return fieldNode;
-
                 }
                 else if (severalTokensAtSamePosition || !(node is QuotedFieldQueryNode))
                 {
@@ -203,7 +191,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                     bool hasNext = buffer.IncrementToken();
                                     Debug.Assert(hasNext == true);
                                     term = termAtt.ToString();
-
                                 }
                                 catch (IOException e)
                                 {
@@ -215,7 +202,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                             }
                             return new GroupQueryNode(
                                 new StandardBooleanQueryNode(children, positionCount == 1));
-
                         }
                         else
                         {
@@ -299,7 +285,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                 {
                                     positionIncrement = posIncrAtt.PositionIncrement;
                                 }
-
                             }
                             catch (IOException e)
                             {
@@ -308,10 +293,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             if (positionIncrement > 0 && multiTerms.Count > 0)
                             {
-
                                 foreach (FieldQueryNode termNode in multiTerms)
                                 {
-
                                     if (this.positionIncrementsEnabled)
                                     {
                                         termNode.PositionIncrement = position;
@@ -322,7 +305,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                     }
 
                                     mpq.Add(termNode);
-
                                 }
 
                                 // Only increment once for each "group" of
@@ -330,21 +312,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                 termGroupCount++;
 
                                 multiTerms.Clear();
-
                             }
 
                             position += positionIncrement;
                             multiTerms.Add(new FieldQueryNode(field, term, -1, -1));
-
                         }
 
                         foreach (FieldQueryNode termNode in multiTerms)
                         {
-
                             if (this.positionIncrementsEnabled)
                             {
                                 termNode.PositionIncrement = position;
-
                             }
                             else
                             {
@@ -352,17 +330,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                             }
 
                             mpq.Add(termNode);
-
                         }
 
                         return mpq;
-
                     }
-
                 }
                 else
                 {
-
                     TokenizedPhraseQueryNode pq = new TokenizedPhraseQueryNode();
 
                     int position = -1;
@@ -382,7 +356,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                             {
                                 positionIncrement = posIncrAtt.PositionIncrement;
                             }
-
                         }
                         catch (IOException e)
                         {
@@ -395,7 +368,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         {
                             position += positionIncrement;
                             newFieldNode.PositionIncrement = position;
-
                         }
                         else
                         {
@@ -403,33 +375,23 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         }
 
                         pq.Add(newFieldNode);
-
                     }
 
                     return pq;
-
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
index e6d392f..090eb76 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
@@ -50,7 +50,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         public virtual IQueryNode Process(IQueryNode queryTree)
         {
             Operator? op = GetQueryConfigHandler().Get(
@@ -65,7 +64,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             this.usingAnd = Operator.AND == op;
 
             return ProcessIteration(queryTree);
-
         }
 
 
@@ -91,7 +89,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             queryTree = PostProcessNode(queryTree);
 
             return queryTree;
-
         }
 
         protected virtual void FillChildrenBufferAndApplyModifiery(IQueryNode parent)
@@ -123,7 +120,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 node.Set(childrenBuffer);
             }
             return node;
-
         }
 
         protected virtual IQueryNode PreProcessNode(IQueryNode node)
@@ -143,7 +139,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             else if (parent is BooleanQueryNode)
             {
                 if ((parent is AndQueryNode)
-          || (usingAnd && IsDefaultBooleanQueryNode(parent)))
+                    || (usingAnd && IsDefaultBooleanQueryNode(parent)))
                 {
                     TagModifierButDoNotOverride(node, Modifier.MOD_REQ);
                 }
@@ -158,12 +154,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
         private IQueryNode ApplyModifier(IQueryNode node, Modifier mod)
         {
-
             // check if modifier is not already defined and is default
             if (!(node is ModifierQueryNode))
             {
                 return new BooleanModifierNode(node, mod);
-
             }
             else
             {
@@ -173,11 +167,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 {
                     return new ModifierQueryNode(modNode.GetChild(), mod);
                 }
-
             }
 
             return node;
-
         }
 
         protected virtual void TagModifierButDoNotOverride(IQueryNode node, Modifier mod)
@@ -199,10 +191,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
         public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
         {
             this.queryConfigHandler = queryConfigHandler;
-
         }
 
-
         public virtual QueryConfigHandler GetQueryConfigHandler()
         {
             return queryConfigHandler;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
index a6dbc75..38b7873 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
@@ -23,10 +23,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is BooleanQueryNode)
             {
                 IList<IQueryNode> children = node.GetChildren();
@@ -42,38 +40,27 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         if (modNode is BooleanModifierNode
                             || modNode.Modifier == Modifier.MOD_NONE)
                         {
-
                             return child;
-
                         }
-
                     }
                     else
                     {
                         return child;
                     }
-
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }


[32/58] lucenenet git commit: QueryParser.Flexible: License headers

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
index d43f537..fa9934d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Message Interface for a lazy loading.
     /// For Native Language Support (NLS), system of software internationalization.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
index 844ab52..5d326f6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
@@ -3,6 +3,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Default implementation of Message interface.
     /// For Native Language Support (NLS), system of software internationalization.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
index e3c1c53..9693891 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
@@ -7,6 +7,23 @@ using System.Resources;
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// MessageBundles classes extend this class, to implement a bundle.
     /// 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
index 9a381e0..22c77df 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Messages
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Interface that exceptions should implement to support lazy loading of messages.
     /// 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
index 73817eb..d10baf9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
@@ -4,6 +4,23 @@ using Lucene.Net.QueryParsers.Flexible.Standard;
 
 namespace Lucene.Net.QueryParsers.Flexible.Precedence
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This query parser works exactly as the standard query parser ( {@link StandardQueryParser} ), 
     /// except that it respect the boolean precedence, so &lt;a AND b OR c AND d&gt; is parsed to &lt;(+a +b) (+c +d)&gt;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
index c1f66e7..8e9a1bb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
@@ -7,6 +7,23 @@ using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryC
 
 namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor is used to apply the correct {@link ModifierQueryNode} to {@link BooleanQueryNode}s children.
     /// <para>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
index 5323c04..dc9d03d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
@@ -3,6 +3,23 @@ using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
 
 namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This processor pipeline extends {@link StandardQueryNodeProcessorPipeline} and enables
     /// boolean precedence on it.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
index a11e9d9..56fbab5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
@@ -8,6 +8,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a BooleanQuery of SHOULD clauses, possibly with
     /// some minimum number to match.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
index 815fe9f..9fc0e34 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
@@ -9,6 +9,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link BooleanQuery} object from a {@link BooleanQueryNode} object.
     /// Every children in the {@link BooleanQueryNode} object must be already tagged

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
index 1078a3e..51d9cdb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
@@ -4,6 +4,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This builder basically reads the {@link Query} object set on the
     /// {@link BoostQueryNode} child using

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
index 4417a3a..7a86b52 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
@@ -3,6 +3,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This builder does nothing. Commonly used for {@link QueryNode} objects that
     /// are built by its parent's builder.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
index ef05c90..c8da71b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
@@ -4,6 +4,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link TermQuery} object from a {@link FieldQueryNode} object.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
index d46d12e..9215ac5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
@@ -5,6 +5,23 @@ using Lucene.Net.Support;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link FuzzyQuery} object from a {@link FuzzyQueryNode} object.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
index 6d2ee7d..66546e1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
@@ -4,6 +4,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds no object, it only returns the {@link Query} object set on the
     /// {@link GroupQueryNode} object using a

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
index 32a474b..fe079d5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
@@ -7,6 +7,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link MatchAllDocsQuery} object from a
     /// {@link MatchAllDocsQueryNode} object.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
index d384958..1889513 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
@@ -7,6 +7,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds an empty {@link BooleanQuery} object from a
     /// {@link MatchNoDocsQueryNode} object.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
index 2e9cf9a..4eb6941 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
@@ -4,6 +4,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds no object, it only returns the {@link Query} object set on the
     /// {@link ModifierQueryNode} object using a

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
index 162cefe..0931211 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
@@ -7,6 +7,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link MultiPhraseQuery} object from a {@link MultiPhraseQueryNode}
     /// object.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
index 2468958..51b4eef 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
@@ -10,6 +10,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds {@link NumericRangeQuery}s out of {@link NumericRangeQueryNode}s.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
index 189257b..295c6f6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
@@ -5,6 +5,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link PhraseQuery} object from a {@link TokenizedPhraseQueryNode}
     /// object.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
index 831ec36..c9c0352 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
@@ -6,6 +6,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link PrefixQuery} object from a {@link PrefixWildcardQueryNode}
     /// object.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
index 4faa23a..956a3e5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
@@ -6,6 +6,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link RegexpQuery} object from a {@link RegexpQueryNode} object.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
index 6375abd..2a32d66 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
@@ -4,6 +4,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This builder basically reads the {@link Query} object set on the
     /// {@link SlopQueryNode} child using

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
index 7793472..b8d92d0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
@@ -10,6 +10,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This builder does the same as the {@link BooleanQueryNodeBuilder}, but this
     /// considers if the built {@link BooleanQuery} should have its coord disabled or

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
index 9484274..4c15b8e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
@@ -3,6 +3,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This interface should be implemented by every class that wants to build
     /// {@link Query} objects from {@link QueryNode} objects. 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
index 44a2e60..b589d7b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
@@ -5,6 +5,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This query tree builder only defines the necessary map to build a
     /// {@link Query} tree object. It should be used to generate a {@link Query} tree

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
index bad7f70..3a58fe4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
@@ -6,6 +6,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link TermRangeQuery} object from a {@link TermRangeQueryNode}
     /// object.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
index e8d7bc4..aaafeb5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
@@ -6,6 +6,23 @@ using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Builds a {@link WildcardQuery} object from a {@link WildcardQueryNode}
     /// object.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
index 884aefa..e0d173e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This listener listens for every field configuration request and assign a
     /// {@link ConfigurationKeys#BOOST} to the

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
index c134f98..c276813 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
@@ -4,6 +4,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This listener listens for every field configuration request and assign a
     /// {@link ConfigurationKeys#DATE_RESOLUTION} to the equivalent {@link FieldConfig} based

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
index 3685dc6..6d38037 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Configuration parameters for {@link FuzzyQuery}s
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
index dddc616..f1f1589 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
@@ -4,6 +4,23 @@ using System.Globalization;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// LUCENENET specific enum for mimicking the Java DateFormat
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
index 4e04eb0..4f1fb39 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
@@ -4,6 +4,23 @@ using static Lucene.Net.Documents.FieldType;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This class holds the configuration used to parse numeric queries and create
     /// {@link NumericRangeQuery}s.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
index 7bd0ddd..977c1ff 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
@@ -4,6 +4,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This listener is used to listen to {@link FieldConfig} requests in
     /// {@link QueryConfigHandler} and add {@link ConfigurationKeys#NUMERIC_CONFIG}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
index dc8eabd..5c214cd 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
@@ -10,6 +10,23 @@ using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryC
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This query configuration handler is used for almost every processor defined
     /// in the {@link StandardQueryNodeProcessorPipeline} processor pipeline. It holds

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
index c5c38f3..8d01e5b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
@@ -7,6 +7,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This class should be extended by nodes intending to represent range queries.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
index 5daf91b..b73a42f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link BooleanModifierNode} has the same behaviour as
     /// {@link ModifierQueryNode}, it only indicates that this modifier was added by

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
index d7046f6..704760b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
@@ -5,6 +5,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link MultiPhraseQueryNode} indicates that its children should be used to
     /// build a {@link MultiPhraseQuery} instead of {@link PhraseQuery}.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
index 61fccad..13c5c45 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
@@ -5,6 +5,23 @@ using System.Globalization;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This query node represents a field query that holds a numeric value. It is
     /// similar to {@link FieldQueryNode}, however the {@link #getValue()} returns a

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
index 25637af..4739567 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
@@ -8,6 +8,23 @@ using NumericType = Lucene.Net.Documents.FieldType.NumericType;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This query node represents a range query composed by {@link NumericQueryNode}
     /// bounds, which means the bound values are {@link Number}s.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
index adbb0b0..4610da9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
@@ -3,6 +3,23 @@ using Lucene.Net.Support;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link PrefixWildcardQueryNode} represents wildcardquery that matches abc*
     /// or *. This does not apply to phrases, this is a special case on the original

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
index 6d24af3..33de8b7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
@@ -5,6 +5,23 @@ using Lucene.Net.Util;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link RegexpQueryNode} represents {@link RegexpQuery} query Examples: /[a-z]|[0-9]/
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
index 05b4e59..e629a28 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
@@ -3,6 +3,23 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link StandardBooleanQueryNode} has the same behavior as
     /// {@link BooleanQueryNode}. It only indicates if the coord should be enabled or

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
index 3aaf388..064b9f7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This query node represents a range query composed by {@link FieldQueryNode}
     /// bounds, which means the bound values are strings.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
index 4d7eb54..80352da 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
@@ -4,6 +4,23 @@ using Lucene.Net.Support;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// A {@link WildcardQueryNode} represents wildcard query This does not apply to
     /// phrases. Examples: a*b*c Fl?w? m?ke*g

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
index 9194e5b..ca47c8c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This interface describes a character stream that maintains line and
     /// column number positions of the characters.  It also has the capability

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
index 600c60e..8f5d074 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
@@ -9,6 +9,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Implementation of {@link EscapeQuerySyntax} for the standard lucene
     /// syntax.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
index 4c1f9d8..8307a29 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
@@ -2,6 +2,23 @@
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// An efficient implementation of JavaCC's CharStream interface.  <p>Note that
     /// this does not do line-number counting, but instead keeps track of the

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
index 3839f3c..8959255 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
@@ -6,6 +6,23 @@ using System.Text;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// This exception is thrown when parse errors are encountered.
     /// You can explicitly create objects of this exception type by

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
index 323c0a5..afb3801 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
@@ -11,6 +11,23 @@ using System.IO;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Parser for the standard Lucene syntax
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
index ae33da4..9642186 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
@@ -1,5 +1,22 @@
 \ufeffnamespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
+    /*
+     * 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.
+     */
+
     public static class RegexpToken
     {
         /// <summary>End of File. </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c5c54abe/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
index 12a2e63..0774c21 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
@@ -3,6 +3,23 @@ using System.IO;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 {
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
     /// <summary>
     /// Token Manager.
     /// </summary>


[44/58] lucenenet git commit: QueryParser.Flexible: Fixed all compiler warnings.

Posted by ni...@apache.org.
QueryParser.Flexible: Fixed all compiler warnings.


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

Branch: refs/heads/master
Commit: 43ec320a5fecd0bd6f1a1d6cea4831074469c764
Parents: 4c85b79
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Dec 5 23:39:11 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Dec 5 23:39:11 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs |  8 ++++++++
 .../Standard/Builders/FuzzyQueryNodeBuilder.cs      |  2 ++
 .../Flexible/Standard/Config/FuzzyConfig.cs         |  2 ++
 .../Flexible/Standard/Config/NumericConfig.cs       | 14 ++++++++++++++
 .../Flexible/Standard/Parser/FastCharStream.cs      |  2 ++
 .../Standard/Parser/StandardSyntaxParser.cs         | 16 ++++++++++++++++
 .../Parser/StandardSyntaxParserTokenManager.cs      | 16 ++++++++++++++++
 .../Processors/AnalyzerQueryNodeProcessor.cs        | 12 ++++++++++++
 .../Processors/TermRangeQueryNodeProcessor.cs       |  2 ++
 .../Flexible/Standard/StandardQueryParser.cs        |  5 ++++-
 .../Precedence/TestPrecedenceQueryParser.cs         | 10 ++++++++++
 .../Flexible/Spans/TestSpanQueryParser.cs           | 14 ++++++++++++++
 .../Flexible/Standard/TestMultiAnalyzerQPHelper.cs  |  4 ++++
 .../Flexible/Standard/TestMultiFieldQPHelper.cs     | 10 ++++++++++
 .../Flexible/Standard/TestNumericQueryParser.cs     |  2 +-
 .../Flexible/Standard/TestQPHelper.cs               | 16 ++++++++++++++++
 .../Flexible/Standard/TestStandardQP.cs             |  4 ++++
 17 files changed, 137 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
index c076f9c..762314f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
@@ -127,7 +127,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
                 if (!bundles.ContainsKey(bundleName))
                     bundles[bundleName] = clazz;
             }
+#pragma warning disable 168
             catch (Exception e)
+#pragma warning restore 168
             {
                 // ignore all errors and exceptions
                 // because this function is supposed to be called at class load time.
@@ -153,7 +155,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
                             if (obj != null)
                                 return obj;
                         }
+#pragma warning disable 168
                         catch (MissingManifestResourceException e)
+#pragma warning restore 168
                         {
                             // just continue it might be on the next resource bundle
                         }
@@ -214,12 +218,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
                     }
                 }
             }
+#pragma warning disable 168
             catch (MissingManifestResourceException e)
+#pragma warning restore 168
             {
                 //System.err.println("WARN: Message with key:" + key + " and locale: "
                 //    + Locale.getDefault() + " not found.");
             }
+#pragma warning disable 168
             catch (Exception e)
+#pragma warning restore 168
             {
                 // ignore all other errors and exceptions
                 // since this code is just a test to see if the message is present on the

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
index e0a9a61..3fa9c06 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
@@ -37,8 +37,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             FuzzyQueryNode fuzzyNode = (FuzzyQueryNode)queryNode;
             string text = fuzzyNode.GetTextAsString();
 
+#pragma warning disable 612, 618
             int numEdits = FuzzyQuery.FloatToEdits(fuzzyNode.Similarity,
                 text.CodePointCount(0, text.Length));
+#pragma warning restore 612, 618
 
             return new FuzzyQuery(new Term(fuzzyNode.GetFieldAsString(), fuzzyNode
                 .GetTextAsString()), numEdits, fuzzyNode

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
index 4e879fd..a4e52ee 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
@@ -26,7 +26,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
     {
         private int prefixLength = FuzzyQuery.DefaultPrefixLength;
 
+#pragma warning disable 612, 618
         private float minSimilarity = FuzzyQuery.DefaultMinSimilarity;
+#pragma warning restore 612, 618
 
         public FuzzyConfig() { }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
index a1f94f4..fb2db14 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
@@ -107,5 +107,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
             return false;
         }
+
+        /// <summary>
+        /// LUCENENET specific - Visual Studio provides a compiler warning if
+        /// <see cref="Equals(object)"/> is overridden without <see cref="GetHashCode()"/>,
+        /// so we provide an implementation that mirrors <see cref="Equals(object)"/>.
+        /// </summary>
+        public override int GetHashCode()
+        {
+            return HashHelpers.CombineHashCodes(
+                base.GetHashCode(), 
+                this.precisionStep.GetHashCode(), 
+                this.type.GetHashCode(), 
+                this.format.GetHashCode());
+        }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
index 8538374..6f6d27d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
@@ -116,7 +116,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             {
                 input.Dispose();
             }
+#pragma warning disable 168
             catch (IOException e)
+#pragma warning restore 168
             {
             }
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
index 9f75881..993aa34 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
@@ -546,7 +546,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         q = new BoostQueryNode(q, f);
                     }
                 }
+#pragma warning disable 168
                 catch (Exception ignored)
+#pragma warning restore 168
                 {
                     /* Should this be handled somehow? (defaults to "no boost", if
                          * boost number is invalid)
@@ -567,7 +569,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             bool endInc = false;
             IQueryNode q = null;
             FieldQueryNode qLower, qUpper;
+#pragma warning disable 612, 618
             float defaultMinSimilarity = Search.FuzzyQuery.DefaultMinSimilarity;
+#pragma warning restore 612, 618
             switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
             {
                 case RegexpToken.TERM:
@@ -628,7 +632,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         {
                             fms = Convert.ToSingle(fuzzySlop.image.Substring(1), CultureInfo.InvariantCulture);
                         }
+#pragma warning disable 168
                         catch (Exception ignored) { }
+#pragma warning restore 168
                         if (fms < 0.0f)
                         {
                             { if (true) throw new ParseException(new MessageImpl(QueryParserMessages.INVALID_SYNTAX_FUZZY_LIMITS)); }
@@ -766,7 +772,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                             phraseSlop = (int)Convert.ToSingle(fuzzySlop.image.Substring(1), CultureInfo.InvariantCulture);
                             q = new SlopQueryNode(q, phraseSlop);
                         }
+#pragma warning disable 168
                         catch (Exception ignored)
+#pragma warning restore 168
                         {
                             /* Should this be handled somehow? (defaults to "no PhraseSlop", if
                            * slop number is invalid)
@@ -791,7 +799,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         q = new BoostQueryNode(q, f);
                     }
                 }
+#pragma warning disable 168
                 catch (Exception ignored)
+#pragma warning restore 168
                 {
                     /* Should this be handled somehow? (defaults to "no boost", if
                        * boost number is invalid)
@@ -806,7 +816,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         {
             jj_la = xla; jj_lastpos = jj_scanpos = token;
             try { return !jj_3_1(); }
+#pragma warning disable 168
             catch (LookaheadSuccess ls) { return true; }
+#pragma warning restore 168
             finally { jj_save(0, xla); }
         }
 
@@ -814,7 +826,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         {
             jj_la = xla; jj_lastpos = jj_scanpos = token;
             try { return !jj_3_2(); }
+#pragma warning disable 168
             catch (LookaheadSuccess ls) { return true; }
+#pragma warning restore 168
             finally { jj_save(1, xla); }
         }
 
@@ -1243,7 +1257,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         p = p.next;
                     } while (p != null);
                 }
+#pragma warning disable 168
                 catch (LookaheadSuccess ls) { }
+#pragma warning restore 168
             }
             jj_rescan = false;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
index 8095ef6..73ce875 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
@@ -82,7 +82,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         private int jjMoveStringLiteralDfa1_2(long active0)
         {
             try { curChar = input_stream.ReadChar(); }
+#pragma warning disable 168
             catch (IOException e)
+#pragma warning restore 168
             {
                 jjStopStringLiteralDfa_2(0, active0);
                 return 1;
@@ -421,7 +423,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 if ((i = jjnewStateCnt) == (startsAt = 33 - (jjnewStateCnt = startsAt)))
                     return curPos;
                 try { curChar = input_stream.ReadChar(); }
+#pragma warning disable 168
                 catch (IOException e) { return curPos; }
+#pragma warning restore 168
             }
         }
         private int jjMoveStringLiteralDfa0_0()
@@ -507,7 +511,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
                     return curPos;
                 try { curChar = input_stream.ReadChar(); }
+#pragma warning disable 168
                 catch (IOException e) { return curPos; }
+#pragma warning restore 168
             }
         }
         private int jjStopStringLiteralDfa_1(int pos, long active0)
@@ -546,7 +552,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         private int jjMoveStringLiteralDfa1_1(long active0)
         {
             try { curChar = input_stream.ReadChar(); }
+#pragma warning disable 168
             catch (IOException e)
+#pragma warning restore 168
             {
                 jjStopStringLiteralDfa_1(0, active0);
                 return 1;
@@ -567,7 +575,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             jjmatchedKind = kind;
             jjmatchedPos = pos;
             try { curChar = input_stream.ReadChar(); }
+#pragma warning disable 168
             catch (IOException e) { return pos + 1; }
+#pragma warning restore 168
             return jjMoveNfa_1(state, pos + 1);
         }
         private int jjMoveNfa_1(int startState, int curPos)
@@ -708,7 +718,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 if ((i = jjnewStateCnt) == (startsAt = 7 - (jjnewStateCnt = startsAt)))
                     return curPos;
                 try { curChar = input_stream.ReadChar(); }
+#pragma warning disable 168
                 catch (IOException e) { return curPos; }
+#pragma warning restore 168
             }
         }
         internal static readonly int[] jjnextStates = {
@@ -869,7 +881,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 {
                     curChar = input_stream.BeginToken();
                 }
+#pragma warning disable 168
                 catch (IOException e)
+#pragma warning restore 168
                 {
                     jjmatchedKind = 0;
                     matchedToken = jjFillToken();
@@ -917,7 +931,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 string error_after = null;
                 bool EOFSeen = false;
                 try { input_stream.ReadChar(); input_stream.BackUp(1); }
+#pragma warning disable 168
                 catch (IOException e1)
+#pragma warning restore 168
                 {
                     EOFSeen = true;
                     error_after = curPos <= 1 ? "" : input_stream.GetImage();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
index fb6001c..135fd99 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
@@ -138,7 +138,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                             }
                         }
                     }
+#pragma warning disable 168
                     catch (IOException e)
+#pragma warning restore 168
                     {
                         // ignore
                     }
@@ -177,7 +179,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         Debug.Assert(hasNext == true);
                         term = termAtt.ToString();
                     }
+#pragma warning disable 168
                     catch (IOException e)
+#pragma warning restore 168
                     {
                         // safe to ignore, because we know the number of tokens
                     }
@@ -206,7 +210,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                     Debug.Assert(hasNext == true);
                                     term = termAtt.ToString();
                                 }
+#pragma warning disable 168
                                 catch (IOException e)
+#pragma warning restore 168
                                 {
                                     // safe to ignore, because we know the number of tokens
                                 }
@@ -231,7 +237,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                     Debug.Assert(hasNext == true);
                                     term = termAtt.ToString();
                                 }
+#pragma warning disable 168
                                 catch (IOException e)
+#pragma warning restore 168
                                 {
                                     // safe to ignore, because we know the number of tokens
                                 }
@@ -300,7 +308,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                     positionIncrement = posIncrAtt.PositionIncrement;
                                 }
                             }
+#pragma warning disable 168
                             catch (IOException e)
+#pragma warning restore 168
                             {
                                 // safe to ignore, because we know the number of tokens
                             }
@@ -371,7 +381,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                 positionIncrement = posIncrAtt.PositionIncrement;
                             }
                         }
+#pragma warning disable 168
                         catch (IOException e)
+#pragma warning restore 168
                         {
                             // safe to ignore, because we know the number of tokens
                         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
index 23cb18d..2ee2b59 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
@@ -144,7 +144,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         upper.Text = new StringCharSequenceWrapper(part2);
                     }
                 }
+#pragma warning disable 168
                 catch (Exception e)
+#pragma warning restore 168
                 {
                     // do nothing
                 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index d06b05f..48900b7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -393,7 +393,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             get
             {
                 FuzzyConfig fuzzyConfig = QueryConfigHandler.Get(ConfigurationKeys.FUZZY_CONFIG);
-                return (fuzzyConfig != null) ? fuzzyConfig.MinSimilarity : FuzzyQuery.DefaultMinSimilarity;
+                return (fuzzyConfig != null) ? fuzzyConfig.MinSimilarity
+#pragma warning disable 612, 618
+                    : FuzzyQuery.DefaultMinSimilarity;
+#pragma warning restore 612, 618
             }
             set
             {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
index 266869a..6290faa 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
@@ -329,7 +329,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
                 GetQuery("term~1.1", null); // value > 1, throws exception
                 fail();
             }
+#pragma warning disable 168
             catch (ParseException pe)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -482,14 +484,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
             IDictionary<string, DateTools.Resolution?> fieldMap = new HashMap<string, DateTools.Resolution?>();
             // set a field specific date resolution
             fieldMap.Put(monthField, DateTools.Resolution.MONTH);
+#pragma warning disable 612, 618
             qp.SetDateResolution(fieldMap);
+#pragma warning restore 612, 618
 
             // set default date resolution to MILLISECOND
             qp.SetDateResolution(DateTools.Resolution.MILLISECOND);
 
             // set second field specific date resolution
             fieldMap.Put(hourField, DateTools.Resolution.HOUR);
+#pragma warning disable 612, 618
             qp.SetDateResolution(fieldMap);
+#pragma warning restore 612, 618
 
             // for this field no field specific date resolution has been set,
             // so verify if the default resolution is used
@@ -648,7 +654,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
                 assertQueryEquals("\"some phrase", null, "abc");
                 fail("ParseException expected, not thrown");
             }
+#pragma warning disable 168
             catch (QueryNodeParseException expected)
+#pragma warning restore 168
             {
             }
         }
@@ -662,7 +670,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
                 GetParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false)).Parse("one two three", "field");
                 fail("ParseException expected due to too many boolean clauses");
             }
+#pragma warning disable 168
             catch (QueryNodeException expected)
+#pragma warning restore 168
             {
                 // too many boolean clauses, so ParseException is expected
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
index 5511a0a..330d01a 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
@@ -175,7 +175,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
                 fail("QueryNodeException was expected, wildcard queries should not be supported");
 
             }
+#pragma warning disable 168
             catch (QueryNodeException ex)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -186,7 +188,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
                 fail("QueryNodeException was expected, range queries should not be supported");
 
             }
+#pragma warning disable 168
             catch (QueryNodeException ex)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -197,7 +201,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
                 fail("QueryNodeException was expected, boost queries should not be supported");
 
             }
+#pragma warning disable 168
             catch (QueryNodeException ex)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -208,7 +214,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
                 fail("QueryNodeException was expected, fuzzy queries should not be supported");
 
             }
+#pragma warning disable 168
             catch (QueryNodeException ex)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -219,7 +227,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
                 fail("QueryNodeException was expected, quoted queries should not be supported");
 
             }
+#pragma warning disable 168
             catch (QueryNodeException ex)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -230,7 +240,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
                 fail("QueryNodeException was expected, parenthesized queries should not be supported");
 
             }
+#pragma warning disable 168
             catch (QueryNodeException ex)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -241,7 +253,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
                 fail("QueryNodeException was expected, and queries should not be supported");
 
             }
+#pragma warning disable 168
             catch (QueryNodeException ex)
+#pragma warning restore 168
             {
                 // expected exception
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
index c7318a6..6138072 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
@@ -90,12 +90,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 .toString());
 
             // phrase after changing default slop
+#pragma warning disable 612, 618
             qp.SetDefaultPhraseSlop(99);
+#pragma warning restore 612, 618
             assertEquals("\"(multi multi2) foo\"~99 bar", qp.Parse("\"multi foo\" bar",
                 "").toString());
             assertEquals("\"(multi multi2) foo\"~99 \"foo bar\"~2", qp.Parse(
                 "\"multi foo\" \"foo bar\"~2", "").toString());
+#pragma warning disable 612, 618
             qp.SetDefaultPhraseSlop(0);
+#pragma warning restore 612, 618
 
             // non-default operator:
             qp.DefaultOperator = (StandardQueryConfigHandler.Operator.AND);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
index 6902ee3..6124675 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
@@ -203,7 +203,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 q = QueryParserUtil.Parse(queries5, fields, new MockAnalyzer(Random()));
                 fail();
             }
+#pragma warning disable 168
             catch (ArgumentException e)
+#pragma warning restore 168
             {
                 // expected exception, array length differs
             }
@@ -243,7 +245,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 q = QueryParserUtil.Parse("blah", fields, flags2, new MockAnalyzer(Random()));
                 fail();
             }
+#pragma warning disable 168
             catch (ArgumentException e)
+#pragma warning restore 168
             {
                 // expected exception, array length differs
             }
@@ -276,7 +280,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 q = QueryParserUtil.Parse("blah", fields, flags2, new MockAnalyzer(Random()));
                 fail();
             }
+#pragma warning disable 168
             catch (ArgumentException e)
+#pragma warning restore 168
             {
                 // expected exception, array length differs
             }
@@ -304,7 +310,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                     .Parse(queries, fields, flags2, new MockAnalyzer(Random()));
                 fail();
             }
+#pragma warning disable 168
             catch (ArgumentException e)
+#pragma warning restore 168
             {
                 // expected exception, array length differs
             }
@@ -332,7 +340,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                     .Parse(queries, fields, flags2, new MockAnalyzer(Random()));
                 fail();
             }
+#pragma warning disable 168
             catch (ArgumentException e)
+#pragma warning restore 168
             {
                 // expected exception, array length differs
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index 3c1e220..e0dcf8f 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -225,7 +225,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             FieldType ft = new FieldType(LongField.TYPE_NOT_STORED);
             ft.Stored = (true);
             ft.NumericPrecisionStep = (PRECISION_STEP);
-            LongField dateField = new LongField(DATE_FIELD_NAME, 0l, ft);
+            LongField dateField = new LongField(DATE_FIELD_NAME, 0L, ft);
             numericFieldMap.Put(DATE_FIELD_NAME, dateField);
             doc.Add(dateField);
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
index 8d4f434..6a9c9e7 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -628,7 +628,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 AssertWildcardQueryEquals("*Term", true, "*term");
                 fail();
             }
+#pragma warning disable 168
             catch (QueryNodeException pe)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -637,7 +639,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 AssertWildcardQueryEquals("?Term", true, "?term");
                 fail();
             }
+#pragma warning disable 168
             catch (QueryNodeException pe)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -795,14 +799,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             // set a field specific date resolution    
             dateRes.Put(monthField, DateTools.Resolution.MONTH);
+#pragma warning disable 612, 618
             qp.SetDateResolution(dateRes);
+#pragma warning restore 612, 618
 
             // set default date resolution to MILLISECOND
             qp.SetDateResolution(DateTools.Resolution.MILLISECOND);
 
             // set second field specific date resolution
             dateRes.Put(hourField, DateTools.Resolution.HOUR);
+#pragma warning disable 612, 618
             qp.SetDateResolution(dateRes);
+#pragma warning restore 612, 618
 
             // for this field no field specific date resolution has been set,
             // so verify if the default resolution is used
@@ -1048,7 +1056,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             {
                 GetQuery(queryString, null);
             }
+#pragma warning disable 168
             catch (QueryNodeException expected)
+#pragma warning restore 168
             {
                 return;
             }
@@ -1073,7 +1083,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 new QPTestParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false)).Parse("a?t", "contents");
                 fail("Wildcard queries should not be allowed");
             }
+#pragma warning disable 168
             catch (QueryNodeException expected)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -1086,7 +1098,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 new QPTestParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false)).Parse("xunit~", "contents");
                 fail("Fuzzy queries should not be allowed");
             }
+#pragma warning disable 168
             catch (QueryNodeException expected)
+#pragma warning restore 168
             {
                 // expected exception
             }
@@ -1104,7 +1118,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 qp.Parse("one two three", "field");
                 fail("ParseException expected due to too many boolean clauses");
             }
+#pragma warning disable 168
             catch (QueryNodeException expected)
+#pragma warning restore 168
             {
                 // too many boolean clauses, so ParseException is expected
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/43ec320a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
index 6fdbb54..24046a7 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
@@ -175,7 +175,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 SetAnalyzeRangeTerms(GetParser(null), true);
                 base.TestCollatedRange();
             }
+#pragma warning disable 168
             catch (NotSupportedException e)
+#pragma warning restore 168
             {
                 // expected
             }
@@ -189,7 +191,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 SetAutoGeneratePhraseQueries(GetParser(null), true);
                 base.TestAutoGeneratePhraseQueriesOn();
             }
+#pragma warning disable 168
             catch (NotSupportedException e)
+#pragma warning restore 168
             {
                 // expected
             }


[36/58] lucenenet git commit: QueryParser.Flexible refactor: Changed casing of String to string

Posted by ni...@apache.org.
QueryParser.Flexible refactor: Changed casing of String to string


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

Branch: refs/heads/master
Commit: 4de4c9ad3be3cbc5b987507cfb32ab17d5d4d006
Parents: 330d027
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Dec 5 19:55:15 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Dec 5 20:13:46 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Nodes/ModifierQueryNode.cs                     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4de4c9ad/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
index 5432b0b..5311a1e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
@@ -83,8 +83,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             if (GetChild() == null)
                 return "";
 
-            String leftParenthensis = "";
-            String rightParenthensis = "";
+            string leftParenthensis = "";
+            string rightParenthensis = "";
 
             if (GetChild() != null && GetChild() is ModifierQueryNode)
             {


[49/58] lucenenet git commit: Revert "HACK: (3rd) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context."

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs b/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs
index 264e95c..eb92962 100644
--- a/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs
+++ b/src/Lucene.Net.Tests/core/Support/TestLurchTable.cs
@@ -529,118 +529,6 @@ namespace Lucene.Net.Support
                 return KeyComparer.GetHashCode(obj.Key) ^ ValueComparer.GetHashCode(obj.Value);
             }
         }
-
-
-        #region TestGenericCollection<TList, TItem>
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test, LuceneNetSpecific]
-        public void TestGenericCollection_TestAddRemove()
-        {
-            base.TestAddRemove();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestGenericCollection_TestAddReverseRemove()
-        {
-            base.TestAddReverseRemove();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestGenericCollection_TestClear()
-        {
-            base.TestClear();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestGenericCollection_TestContains()
-        {
-            base.TestContains();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestGenericCollection_TestCopyTo()
-        {
-            base.TestCopyTo();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestGenericCollection_TestIsReadOnly()
-        {
-            base.TestIsReadOnly();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestGenericCollection_TestGetEnumerator()
-        {
-            base.TestGetEnumerator();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestGenericCollection_TestGetEnumerator2()
-        {
-            base.TestGetEnumerator2();
-        }
-
-        #endregion
-
-        #region TestCollection<TList, TFactory, TItem>
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test, LuceneNetSpecific]
-        public void TestCollection_TestAddRemove()
-        {
-            base.TestAddRemove();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestCollection_TestAddReverseRemove()
-        {
-            base.TestAddReverseRemove();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestCollection_TestClear()
-        {
-            base.TestClear();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestCollection_TestContains()
-        {
-            base.TestContains();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestCollection_TestCopyTo()
-        {
-            base.TestCopyTo();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestCollection_TestIsReadOnly()
-        {
-            base.TestIsReadOnly();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestCollection_TestGetEnumerator()
-        {
-            base.TestGetEnumerator();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestCollection_TestGetEnumerator2()
-        {
-            base.TestGetEnumerator2();
-        }
-
-        #endregion
-
     }
 
     [TestFixture]
@@ -665,32 +553,6 @@ namespace Lucene.Net.Support
             }
             return results.ToArray();
         }
-
-
-        #region TestDictionary<TDictionary, TFactory, TKey, TValue>
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test, LuceneNetSpecific]
-        public void TestDictionary_TestAddRemoveByKey()
-        {
-            base.TestAddRemoveByKey();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestDictionary_TestKeys()
-        {
-            base.TestKeys();
-        }
-
-        [Test, LuceneNetSpecific]
-        public void TestDictionary_TestValues()
-        {
-            base.TestValues();
-        }
-
-        #endregion
     }
 
 
@@ -717,7 +579,7 @@ namespace Lucene.Net.Support
             return list;
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestAddRemove()
         {
             TList list = new TList();
@@ -738,7 +600,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestAddReverseRemove()
         {
             TList list = new TList();
@@ -759,7 +621,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestClear()
         {
             TList list = new TList();
@@ -774,7 +636,7 @@ namespace Lucene.Net.Support
             Assert.AreEqual(0, list.Count);
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestContains()
         {
             TList list = new TList();
@@ -788,7 +650,7 @@ namespace Lucene.Net.Support
                 Assert.IsTrue(list.Contains(item));
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestCopyTo()
         {
             TList list = new TList();
@@ -808,13 +670,13 @@ namespace Lucene.Net.Support
             Assert.AreEqual(0, items.Count);
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestIsReadOnly()
         {
             Assert.IsFalse(new TList().IsReadOnly);
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestGetEnumerator()
         {
             TList list = new TList();
@@ -830,7 +692,7 @@ namespace Lucene.Net.Support
             Assert.AreEqual(0, items.Count);
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestGetEnumerator2()
         {
             TList list = new TList();
@@ -896,7 +758,7 @@ namespace Lucene.Net.Support
         where TDictionary : IDictionary<TKey, TValue>, IDisposable
         where TFactory : IFactory<TDictionary>, new()
     {
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestAddRemoveByKey()
         {
             KeyValuePair<TKey, TValue>[] sample = GetSample();
@@ -918,7 +780,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestKeys()
         {
             KeyValuePair<TKey, TValue>[] sample = GetSample();
@@ -941,7 +803,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestValues()
         {
             KeyValuePair<TKey, TValue>[] sample = GetSample();
@@ -970,7 +832,7 @@ namespace Lucene.Net.Support
 
         protected readonly TFactory Factory = new TFactory();
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestAddRemove()
         {
             using (TList list = Factory.Create())
@@ -993,7 +855,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestAddReverseRemove()
         {
             using (TList list = Factory.Create())
@@ -1016,7 +878,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestClear()
         {
             using (TList list = Factory.Create())
@@ -1033,7 +895,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestContains()
         {
             using (TList list = Factory.Create())
@@ -1049,7 +911,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestCopyTo()
         {
             using (TList list = Factory.Create())
@@ -1071,14 +933,14 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestIsReadOnly()
         {
             using (TList list = Factory.Create())
                 Assert.IsFalse(list.IsReadOnly);
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestGetEnumerator()
         {
             using (TList list = Factory.Create())
@@ -1096,7 +958,7 @@ namespace Lucene.Net.Support
             }
         }
 
-        // [Test, LuceneNetSpecific] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LuceneNetSpecific]
         public virtual void TestGetEnumerator2()
         {
             using (TList list = Factory.Create())

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs b/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs
index 51ac7e2..dd31909 100644
--- a/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs
+++ b/src/Lucene.Net.Tests/core/Util/BaseSortTestCase.cs
@@ -153,55 +153,55 @@ namespace Lucene.Net.Util
             DoTest(strategy, Random().Next(20000));
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestEmpty()
         {
             SortTest(new Entry[0]);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestOne()
         {
             DoTest(RandomStrategy, 1);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwo()
         {
             DoTest(RandomStrategy, 2);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestRandom()
         {
             DoTest(RandomStrategy);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestRandomLowCardinality()
         {
             DoTest(RandomLowCardinalityStrategy, 2);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestAscending()
         {
             DoTest(AscendingStrategy, 2);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestAscendingSequences()
         {
             DoTest(AscendingSequencesStrategy, 2);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestDescending()
         {
             DoTest(DescendingStrategy, 2);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestStrictlyDescendingStrategy()
         {
             DoTest(StrictlyDescendingStrategy, 2);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs b/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs
index 38d63a1..91c7062 100644
--- a/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoDocIdSet.cs
@@ -1,5 +1,4 @@
 using Lucene.Net.Support;
-using NUnit.Framework;
 using System.Collections;
 using System.Diagnostics;
 
@@ -76,49 +75,5 @@ namespace Lucene.Net.Util.Packed
                 return SlowAdvance(target);
             }
         }
-
-
-        #region BaseDocIdSetTestCase<T>
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        /// <summary>
-        /// Test length=0.
-        /// </summary>
-        [Test]
-        public override void TestNoBit()
-        {
-            base.TestNoBit();
-        }
-
-        /// <summary>
-        /// Test length=1.
-        /// </summary>
-        [Test]
-        public override void Test1Bit()
-        {
-            base.Test1Bit();
-        }
-
-        /// <summary>
-        /// Test length=2.
-        /// </summary>
-        [Test]
-        public override void Test2Bits()
-        {
-            base.Test2Bits();
-        }
-
-        /// <summary>
-        /// Compare the content of the set against a <seealso cref="BitSet"/>.
-        /// </summary>
-        [Test]
-        public override void TestAgainstBitSet()
-        {
-            base.TestAgainstBitSet();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs b/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs
index bb779c5..1294bff 100644
--- a/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestDocIdBitSet.cs
@@ -1,5 +1,3 @@
-using Lucene.Net.Attributes;
-using NUnit.Framework;
 using System.Collections;
 
 namespace Lucene.Net.Util
@@ -27,49 +25,5 @@ namespace Lucene.Net.Util
         {
             return new DocIdBitSet((BitArray)bs.Clone());
         }
-
-
-        #region BaseDocIdSetTestCase<T>
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        /// <summary>
-        /// Test length=0.
-        /// </summary>
-        [Test]
-        public override void TestNoBit()
-        {
-            base.TestNoBit();
-        }
-
-        /// <summary>
-        /// Test length=1.
-        /// </summary>
-        [Test]
-        public override void Test1Bit()
-        {
-            base.Test1Bit();
-        }
-
-        /// <summary>
-        /// Test length=2.
-        /// </summary>
-        [Test]
-        public override void Test2Bits()
-        {
-            base.Test2Bits();
-        }
-
-        /// <summary>
-        /// Compare the content of the set against a <seealso cref="BitSet"/>.
-        /// </summary>
-        [Test, LongRunningTest, Timeout(150000)]
-        public override void TestAgainstBitSet()
-        {
-            base.TestAgainstBitSet();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs b/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs
index 2f822f9..550b3e1 100644
--- a/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestFixedBitSet.cs
@@ -1,5 +1,4 @@
 using System;
-using Lucene.Net.Attributes;
 using Lucene.Net.Randomized.Generators;
 using Lucene.Net.Support;
 using NUnit.Framework;
@@ -511,49 +510,5 @@ namespace Lucene.Net.Util
             Assert.IsTrue(bits.Get(1));
             Assert.IsFalse(newBits.Get(1));
         }
-
-
-        #region BaseDocIdSetTestCase<T>
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        /// <summary>
-        /// Test length=0.
-        /// </summary>
-        [Test]
-        public override void TestNoBit()
-        {
-            base.TestNoBit();
-        }
-
-        /// <summary>
-        /// Test length=1.
-        /// </summary>
-        [Test]
-        public override void Test1Bit()
-        {
-            base.Test1Bit();
-        }
-
-        /// <summary>
-        /// Test length=2.
-        /// </summary>
-        [Test]
-        public override void Test2Bits()
-        {
-            base.Test2Bits();
-        }
-
-        /// <summary>
-        /// Compare the content of the set against a <seealso cref="BitSet"/>.
-        /// </summary>
-        [Test, LongRunningTest, Timeout(150000)]
-        public override void TestAgainstBitSet()
-        {
-            base.TestAgainstBitSet();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs b/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs
index 3649531..5c35706 100644
--- a/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestInPlaceMergeSorter.cs
@@ -1,5 +1,3 @@
-using NUnit.Framework;
-
 namespace Lucene.Net.Util
 {
     /*
@@ -34,67 +32,5 @@ namespace Lucene.Net.Util
         {
             return new ArrayInPlaceMergeSorter<Entry>(arr, ArrayUtil.naturalComparator<Entry>());
         }
-
-
-        #region BaseSortTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestEmpty()
-        {
-            base.TestEmpty();
-        }
-
-        [Test]
-        public override void TestOne()
-        {
-            base.TestOne();
-        }
-
-        [Test]
-        public override void TestTwo()
-        {
-            base.TestTwo();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        [Test]
-        public override void TestRandomLowCardinality()
-        {
-            base.TestRandomLowCardinality();
-        }
-
-        [Test]
-        public override void TestAscending()
-        {
-            base.TestAscending();
-        }
-
-        [Test]
-        public override void TestAscendingSequences()
-        {
-            base.TestAscendingSequences();
-        }
-
-        [Test]
-        public override void TestDescending()
-        {
-            base.TestDescending();
-        }
-
-        [Test]
-        public override void TestStrictlyDescendingStrategy()
-        {
-            base.TestStrictlyDescendingStrategy();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs b/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs
index b2c75f8..c71893a 100644
--- a/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestIntroSorter.cs
@@ -1,5 +1,3 @@
-using NUnit.Framework;
-
 namespace Lucene.Net.Util
 {
     /*
@@ -30,67 +28,5 @@ namespace Lucene.Net.Util
         {
             return new ArrayIntroSorter<Entry>(arr, ArrayUtil.naturalComparator<Entry>());
         }
-
-
-        #region BaseSortTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestEmpty()
-        {
-            base.TestEmpty();
-        }
-
-        [Test]
-        public override void TestOne()
-        {
-            base.TestOne();
-        }
-
-        [Test]
-        public override void TestTwo()
-        {
-            base.TestTwo();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        [Test]
-        public override void TestRandomLowCardinality()
-        {
-            base.TestRandomLowCardinality();
-        }
-
-        [Test]
-        public override void TestAscending()
-        {
-            base.TestAscending();
-        }
-
-        [Test]
-        public override void TestAscendingSequences()
-        {
-            base.TestAscendingSequences();
-        }
-
-        [Test]
-        public override void TestDescending()
-        {
-            base.TestDescending();
-        }
-
-        [Test]
-        public override void TestStrictlyDescendingStrategy()
-        {
-            base.TestStrictlyDescendingStrategy();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs b/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs
index 8144d1c..c72aa45 100644
--- a/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestOpenBitSet.cs
@@ -514,49 +514,5 @@ namespace Lucene.Net.Util
             bits.FastSet(bit - 1);
             Assert.IsTrue(bits.FastGet(bit - 1));
         }
-
-
-        #region BaseDocIdSetTestCase<T>
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        /// <summary>
-        /// Test length=0.
-        /// </summary>
-        [Test]
-        public override void TestNoBit()
-        {
-            base.TestNoBit();
-        }
-
-        /// <summary>
-        /// Test length=1.
-        /// </summary>
-        [Test]
-        public override void Test1Bit()
-        {
-            base.Test1Bit();
-        }
-
-        /// <summary>
-        /// Test length=2.
-        /// </summary>
-        [Test]
-        public override void Test2Bits()
-        {
-            base.Test2Bits();
-        }
-
-        /// <summary>
-        /// Compare the content of the set against a <seealso cref="BitSet"/>.
-        /// </summary>
-        [Test, LongRunningTest, Timeout(150000)]
-        public override void TestAgainstBitSet()
-        {
-            base.TestAgainstBitSet();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs b/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs
index b310b7b..3c92150 100644
--- a/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestPForDeltaDocIdSet.cs
@@ -38,49 +38,5 @@ namespace Lucene.Net.Util
             base.AssertEquals(numBits, ds1, ds2);
             Assert.AreEqual(ds1.Cardinality(), ds2.Cardinality());
         }
-
-
-        #region BaseDocIdSetTestCase<T>
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        /// <summary>
-        /// Test length=0.
-        /// </summary>
-        [Test]
-        public override void TestNoBit()
-        {
-            base.TestNoBit();
-        }
-
-        /// <summary>
-        /// Test length=1.
-        /// </summary>
-        [Test]
-        public override void Test1Bit()
-        {
-            base.Test1Bit();
-        }
-
-        /// <summary>
-        /// Test length=2.
-        /// </summary>
-        [Test]
-        public override void Test2Bits()
-        {
-            base.Test2Bits();
-        }
-
-        /// <summary>
-        /// Compare the content of the set against a <seealso cref="BitSet"/>.
-        /// </summary>
-        [Test]
-        public override void TestAgainstBitSet()
-        {
-            base.TestAgainstBitSet();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs b/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs
index 8f13308..c12b850 100644
--- a/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestTimSorter.cs
@@ -1,5 +1,3 @@
-using NUnit.Framework;
-
 namespace Lucene.Net.Util
 {
     /*
@@ -30,67 +28,5 @@ namespace Lucene.Net.Util
         {
             return new ArrayTimSorter<Entry>(arr, ArrayUtil.naturalComparator<Entry>(), TestUtil.NextInt(Random(), 0, arr.Length));
         }
-
-
-        #region BaseSortTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestEmpty()
-        {
-            base.TestEmpty();
-        }
-
-        [Test]
-        public override void TestOne()
-        {
-            base.TestOne();
-        }
-
-        [Test]
-        public override void TestTwo()
-        {
-            base.TestTwo();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        [Test]
-        public override void TestRandomLowCardinality()
-        {
-            base.TestRandomLowCardinality();
-        }
-
-        [Test]
-        public override void TestAscending()
-        {
-            base.TestAscending();
-        }
-
-        [Test]
-        public override void TestAscendingSequences()
-        {
-            base.TestAscendingSequences();
-        }
-
-        [Test]
-        public override void TestDescending()
-        {
-            base.TestDescending();
-        }
-
-        [Test]
-        public override void TestStrictlyDescendingStrategy()
-        {
-            base.TestStrictlyDescendingStrategy();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs b/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
index b0d3ea0..73d338d 100644
--- a/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
@@ -106,49 +106,5 @@ namespace Lucene.Net.Util
             }
             AssertEquals(numBits, expected, union);
         }
-
-
-        #region BaseDocIdSetTestCase<T>
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        /// <summary>
-        /// Test length=0.
-        /// </summary>
-        [Test]
-        public override void TestNoBit()
-        {
-            base.TestNoBit();
-        }
-
-        /// <summary>
-        /// Test length=1.
-        /// </summary>
-        [Test]
-        public override void Test1Bit()
-        {
-            base.Test1Bit();
-        }
-
-        /// <summary>
-        /// Test length=2.
-        /// </summary>
-        [Test]
-        public override void Test2Bits()
-        {
-            base.Test2Bits();
-        }
-
-        /// <summary>
-        /// Compare the content of the set against a <seealso cref="BitSet"/>.
-        /// </summary>
-        [Test]
-        public override void TestAgainstBitSet()
-        {
-            base.TestAgainstBitSet();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file


[50/58] lucenenet git commit: Revert "HACK: (3rd) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context."

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs
index dc18580..2ce76f3 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs
@@ -1,5 +1,3 @@
-using NUnit.Framework;
-
 namespace Lucene.Net.Codecs.Lucene45
 {
     /*
@@ -36,530 +34,5 @@ namespace Lucene.Net.Codecs.Lucene45
                 return Codec_Renamed;
             }
         }
-
-        #region BaseCompressingDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestUniqueValuesCompression()
-        {
-            base.TestUniqueValuesCompression();
-        }
-
-        [Test]
-        public override void TestDateCompression()
-        {
-            base.TestDateCompression();
-        }
-
-        [Test]
-        public override void TestSingleBigValueCompression()
-        {
-            base.TestSingleBigValueCompression();
-        }
-
-        #endregion
-
-        #region BaseDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestOneNumber()
-        {
-            base.TestOneNumber();
-        }
-
-        [Test]
-        public override void TestOneFloat()
-        {
-            base.TestOneFloat();
-        }
-
-        [Test]
-        public override void TestTwoNumbers()
-        {
-            base.TestTwoNumbers();
-        }
-
-        [Test]
-        public override void TestTwoBinaryValues()
-        {
-            base.TestTwoBinaryValues();
-        }
-
-        [Test]
-        public override void TestTwoFieldsMixed()
-        {
-            base.TestTwoFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed()
-        {
-            base.TestThreeFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed2()
-        {
-            base.TestThreeFieldsMixed2();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsNumeric()
-        {
-            base.TestTwoDocumentsNumeric();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsMerged()
-        {
-            base.TestTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestBigNumericRange()
-        {
-            base.TestBigNumericRange();
-        }
-
-        [Test]
-        public override void TestBigNumericRange2()
-        {
-            base.TestBigNumericRange2();
-        }
-
-        [Test]
-        public override void TestBytes()
-        {
-            base.TestBytes();
-        }
-
-        [Test]
-        public override void TestBytesTwoDocumentsMerged()
-        {
-            base.TestBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedBytes()
-        {
-            base.TestSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocuments()
-        {
-            base.TestSortedBytesTwoDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesThreeDocuments()
-        {
-            base.TestSortedBytesThreeDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocumentsMerged()
-        {
-            base.TestSortedBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedMergeAwayAllValues()
-        {
-            base.TestSortedMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestBytesWithNewline()
-        {
-            base.TestBytesWithNewline();
-        }
-
-        [Test]
-        public override void TestMissingSortedBytes()
-        {
-            base.TestMissingSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedTermsEnum()
-        {
-            base.TestSortedTermsEnum();
-        }
-
-        [Test]
-        public override void TestEmptySortedBytes()
-        {
-            base.TestEmptySortedBytes();
-        }
-
-        [Test]
-        public override void TestEmptyBytes()
-        {
-            base.TestEmptyBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalBytes()
-        {
-            base.TestVeryLargeButLegalBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalSortedBytes()
-        {
-            base.TestVeryLargeButLegalSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytes()
-        {
-            base.TestCodecUsesOwnBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytes()
-        {
-            base.TestCodecUsesOwnSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytesEachTime()
-        {
-            base.TestCodecUsesOwnBytesEachTime();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytesEachTime()
-        {
-            base.TestCodecUsesOwnSortedBytesEachTime();
-        }
-
-        /*
-         * Simple test case to show how to use the API
-         */
-        [Test]
-        public override void TestDocValuesSimple()
-        {
-            base.TestDocValuesSimple();
-        }
-
-        [Test]
-        public override void TestRandomSortedBytes()
-        {
-            base.TestRandomSortedBytes();
-        }
-
-        [Test]
-        public override void TestBooleanNumericsVsStoredFields()
-        {
-            base.TestBooleanNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteNumericsVsStoredFields()
-        {
-            base.TestByteNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteMissingVsFieldCache()
-        {
-            base.TestByteMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestShortNumericsVsStoredFields()
-        {
-            base.TestShortNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestShortMissingVsFieldCache()
-        {
-            base.TestShortMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestIntNumericsVsStoredFields()
-        {
-            base.TestIntNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestIntMissingVsFieldCache()
-        {
-            base.TestIntMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestLongNumericsVsStoredFields()
-        {
-            base.TestLongNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestLongMissingVsFieldCache()
-        {
-            base.TestLongMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestBinaryFixedLengthVsStoredFields()
-        {
-            base.TestBinaryFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestBinaryVariableLengthVsStoredFields()
-        {
-            base.TestBinaryVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsStoredFields()
-        {
-            base.TestSortedFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsFieldCache()
-        {
-            base.TestSortedFixedLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsFieldCache()
-        {
-            base.TestSortedVariableLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsStoredFields()
-        {
-            base.TestSortedVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetOneValue()
-        {
-            base.TestSortedSetOneValue();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoFields()
-        {
-            base.TestSortedSetTwoFields();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsMerged()
-        {
-            base.TestSortedSetTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValues()
-        {
-            base.TestSortedSetTwoValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValuesUnordered()
-        {
-            base.TestSortedSetTwoValuesUnordered();
-        }
-
-        [Test]
-        public override void TestSortedSetThreeValuesTwoDocs()
-        {
-            base.TestSortedSetThreeValuesTwoDocs();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissing()
-        {
-            base.TestSortedSetTwoDocumentsLastMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsLastMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissing()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetMergeAwayAllValues()
-        {
-            base.TestSortedSetMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTermsEnum()
-        {
-            base.TestSortedSetTermsEnum();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsUninvertedField()
-        {
-            base.TestSortedSetFixedLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsUninvertedField()
-        {
-            base.TestSortedSetVariableLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestGCDCompression()
-        {
-            base.TestGCDCompression();
-        }
-
-        [Test]
-        public override void TestZeros()
-        {
-            base.TestZeros();
-        }
-
-        [Test]
-        public override void TestZeroOrMin()
-        {
-            base.TestZeroOrMin();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissing()
-        {
-            base.TestTwoNumbersOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissingWithMerging()
-        {
-            base.TestTwoNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeNumbersOneMissingWithMerging()
-        {
-            base.TestThreeNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissing()
-        {
-            base.TestTwoBytesOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissingWithMerging()
-        {
-            base.TestTwoBytesOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeBytesOneMissingWithMerging()
-        {
-            base.TestThreeBytesOneMissingWithMerging();
-        }
-
-        // LUCENE-4853
-        [Test]
-        public override void TestHugeBinaryValues()
-        {
-            base.TestHugeBinaryValues();
-        }
-
-        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
-        public override void TestHugeBinaryValueLimit()
-        {
-            base.TestHugeBinaryValueLimit();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads()
-        {
-            base.TestThreads();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (all types + missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads2()
-        {
-            base.TestThreads2();
-        }
-
-        // LUCENE-5218
-        [Test]
-        public override void TestEmptyBinaryValueOnPageSizes()
-        {
-            base.TestEmptyBinaryValueOnPageSizes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs
index cbf656c..bf0a5fe 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs
@@ -153,506 +153,5 @@ namespace Lucene.Net.Codecs.Perfield
                 }
             }
         }
-
-
-        #region BaseDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestOneNumber()
-        {
-            base.TestOneNumber();
-        }
-
-        [Test]
-        public override void TestOneFloat()
-        {
-            base.TestOneFloat();
-        }
-
-        [Test]
-        public override void TestTwoNumbers()
-        {
-            base.TestTwoNumbers();
-        }
-
-        [Test]
-        public override void TestTwoBinaryValues()
-        {
-            base.TestTwoBinaryValues();
-        }
-
-        [Test]
-        public override void TestTwoFieldsMixed()
-        {
-            base.TestTwoFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed()
-        {
-            base.TestThreeFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed2()
-        {
-            base.TestThreeFieldsMixed2();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsNumeric()
-        {
-            base.TestTwoDocumentsNumeric();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsMerged()
-        {
-            base.TestTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestBigNumericRange()
-        {
-            base.TestBigNumericRange();
-        }
-
-        [Test]
-        public override void TestBigNumericRange2()
-        {
-            base.TestBigNumericRange2();
-        }
-
-        [Test]
-        public override void TestBytes()
-        {
-            base.TestBytes();
-        }
-
-        [Test]
-        public override void TestBytesTwoDocumentsMerged()
-        {
-            base.TestBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedBytes()
-        {
-            base.TestSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocuments()
-        {
-            base.TestSortedBytesTwoDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesThreeDocuments()
-        {
-            base.TestSortedBytesThreeDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocumentsMerged()
-        {
-            base.TestSortedBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedMergeAwayAllValues()
-        {
-            base.TestSortedMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestBytesWithNewline()
-        {
-            base.TestBytesWithNewline();
-        }
-
-        [Test]
-        public override void TestMissingSortedBytes()
-        {
-            base.TestMissingSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedTermsEnum()
-        {
-            base.TestSortedTermsEnum();
-        }
-
-        [Test]
-        public override void TestEmptySortedBytes()
-        {
-            base.TestEmptySortedBytes();
-        }
-
-        [Test]
-        public override void TestEmptyBytes()
-        {
-            base.TestEmptyBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalBytes()
-        {
-            base.TestVeryLargeButLegalBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalSortedBytes()
-        {
-            base.TestVeryLargeButLegalSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytes()
-        {
-            base.TestCodecUsesOwnBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytes()
-        {
-            base.TestCodecUsesOwnSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytesEachTime()
-        {
-            base.TestCodecUsesOwnBytesEachTime();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytesEachTime()
-        {
-            base.TestCodecUsesOwnSortedBytesEachTime();
-        }
-
-        /*
-         * Simple test case to show how to use the API
-         */
-        [Test]
-        public override void TestDocValuesSimple()
-        {
-            base.TestDocValuesSimple();
-        }
-
-        [Test]
-        public override void TestRandomSortedBytes()
-        {
-            base.TestRandomSortedBytes();
-        }
-
-        [Test]
-        public override void TestBooleanNumericsVsStoredFields()
-        {
-            base.TestBooleanNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteNumericsVsStoredFields()
-        {
-            base.TestByteNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteMissingVsFieldCache()
-        {
-            base.TestByteMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestShortNumericsVsStoredFields()
-        {
-            base.TestShortNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestShortMissingVsFieldCache()
-        {
-            base.TestShortMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestIntNumericsVsStoredFields()
-        {
-            base.TestIntNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestIntMissingVsFieldCache()
-        {
-            base.TestIntMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestLongNumericsVsStoredFields()
-        {
-            base.TestLongNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestLongMissingVsFieldCache()
-        {
-            base.TestLongMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestBinaryFixedLengthVsStoredFields()
-        {
-            base.TestBinaryFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestBinaryVariableLengthVsStoredFields()
-        {
-            base.TestBinaryVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsStoredFields()
-        {
-            base.TestSortedFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsFieldCache()
-        {
-            base.TestSortedFixedLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsFieldCache()
-        {
-            base.TestSortedVariableLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsStoredFields()
-        {
-            base.TestSortedVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetOneValue()
-        {
-            base.TestSortedSetOneValue();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoFields()
-        {
-            base.TestSortedSetTwoFields();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsMerged()
-        {
-            base.TestSortedSetTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValues()
-        {
-            base.TestSortedSetTwoValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValuesUnordered()
-        {
-            base.TestSortedSetTwoValuesUnordered();
-        }
-
-        [Test]
-        public override void TestSortedSetThreeValuesTwoDocs()
-        {
-            base.TestSortedSetThreeValuesTwoDocs();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissing()
-        {
-            base.TestSortedSetTwoDocumentsLastMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsLastMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissing()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetMergeAwayAllValues()
-        {
-            base.TestSortedSetMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTermsEnum()
-        {
-            base.TestSortedSetTermsEnum();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsUninvertedField()
-        {
-            base.TestSortedSetFixedLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsUninvertedField()
-        {
-            base.TestSortedSetVariableLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestGCDCompression()
-        {
-            base.TestGCDCompression();
-        }
-
-        [Test]
-        public override void TestZeros()
-        {
-            base.TestZeros();
-        }
-
-        [Test]
-        public override void TestZeroOrMin()
-        {
-            base.TestZeroOrMin();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissing()
-        {
-            base.TestTwoNumbersOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissingWithMerging()
-        {
-            base.TestTwoNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeNumbersOneMissingWithMerging()
-        {
-            base.TestThreeNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissing()
-        {
-            base.TestTwoBytesOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissingWithMerging()
-        {
-            base.TestTwoBytesOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeBytesOneMissingWithMerging()
-        {
-            base.TestThreeBytesOneMissingWithMerging();
-        }
-
-        // LUCENE-4853
-        [Test]
-        public override void TestHugeBinaryValues()
-        {
-            base.TestHugeBinaryValues();
-        }
-
-        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
-        public override void TestHugeBinaryValueLimit()
-        {
-            base.TestHugeBinaryValueLimit();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads()
-        {
-            base.TestThreads();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (all types + missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads2()
-        {
-            base.TestThreads2();
-        }
-
-        // LUCENE-5218
-        [Test]
-        public override void TestEmptyBinaryValueOnPageSizes()
-        {
-            base.TestEmptyBinaryValueOnPageSizes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs
index 05751f9..d2275e8 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs
@@ -45,56 +45,5 @@ namespace Lucene.Net.Codecs.Perfield
             //LUCENE TO-DO
             AssumeTrue("The MockRandom PF randomizes content on the fly, so we can't check it", false);
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs b/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs
index 628ddc0..70ee586 100644
--- a/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs
@@ -1,5 +1,3 @@
-using NUnit.Framework;
-
 namespace Lucene.Net.Index
 {
     /*
@@ -41,506 +39,5 @@ namespace Lucene.Net.Index
         {
             return TestUtil.FieldSupportsHugeBinaryDocValues(field);
         }
-
-
-        #region BaseDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestOneNumber()
-        {
-            base.TestOneNumber();
-        }
-
-        [Test]
-        public override void TestOneFloat()
-        {
-            base.TestOneFloat();
-        }
-
-        [Test]
-        public override void TestTwoNumbers()
-        {
-            base.TestTwoNumbers();
-        }
-
-        [Test]
-        public override void TestTwoBinaryValues()
-        {
-            base.TestTwoBinaryValues();
-        }
-
-        [Test]
-        public override void TestTwoFieldsMixed()
-        {
-            base.TestTwoFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed()
-        {
-            base.TestThreeFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed2()
-        {
-            base.TestThreeFieldsMixed2();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsNumeric()
-        {
-            base.TestTwoDocumentsNumeric();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsMerged()
-        {
-            base.TestTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestBigNumericRange()
-        {
-            base.TestBigNumericRange();
-        }
-
-        [Test]
-        public override void TestBigNumericRange2()
-        {
-            base.TestBigNumericRange2();
-        }
-
-        [Test]
-        public override void TestBytes()
-        {
-            base.TestBytes();
-        }
-
-        [Test]
-        public override void TestBytesTwoDocumentsMerged()
-        {
-            base.TestBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedBytes()
-        {
-            base.TestSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocuments()
-        {
-            base.TestSortedBytesTwoDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesThreeDocuments()
-        {
-            base.TestSortedBytesThreeDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocumentsMerged()
-        {
-            base.TestSortedBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedMergeAwayAllValues()
-        {
-            base.TestSortedMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestBytesWithNewline()
-        {
-            base.TestBytesWithNewline();
-        }
-
-        [Test]
-        public override void TestMissingSortedBytes()
-        {
-            base.TestMissingSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedTermsEnum()
-        {
-            base.TestSortedTermsEnum();
-        }
-
-        [Test]
-        public override void TestEmptySortedBytes()
-        {
-            base.TestEmptySortedBytes();
-        }
-
-        [Test]
-        public override void TestEmptyBytes()
-        {
-            base.TestEmptyBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalBytes()
-        {
-            base.TestVeryLargeButLegalBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalSortedBytes()
-        {
-            base.TestVeryLargeButLegalSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytes()
-        {
-            base.TestCodecUsesOwnBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytes()
-        {
-            base.TestCodecUsesOwnSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytesEachTime()
-        {
-            base.TestCodecUsesOwnBytesEachTime();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytesEachTime()
-        {
-            base.TestCodecUsesOwnSortedBytesEachTime();
-        }
-
-        /*
-         * Simple test case to show how to use the API
-         */
-        [Test]
-        public override void TestDocValuesSimple()
-        {
-            base.TestDocValuesSimple();
-        }
-
-        [Test]
-        public override void TestRandomSortedBytes()
-        {
-            base.TestRandomSortedBytes();
-        }
-
-        [Test]
-        public override void TestBooleanNumericsVsStoredFields()
-        {
-            base.TestBooleanNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteNumericsVsStoredFields()
-        {
-            base.TestByteNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteMissingVsFieldCache()
-        {
-            base.TestByteMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestShortNumericsVsStoredFields()
-        {
-            base.TestShortNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestShortMissingVsFieldCache()
-        {
-            base.TestShortMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestIntNumericsVsStoredFields()
-        {
-            base.TestIntNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestIntMissingVsFieldCache()
-        {
-            base.TestIntMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestLongNumericsVsStoredFields()
-        {
-            base.TestLongNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestLongMissingVsFieldCache()
-        {
-            base.TestLongMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestBinaryFixedLengthVsStoredFields()
-        {
-            base.TestBinaryFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestBinaryVariableLengthVsStoredFields()
-        {
-            base.TestBinaryVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsStoredFields()
-        {
-            base.TestSortedFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsFieldCache()
-        {
-            base.TestSortedFixedLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsFieldCache()
-        {
-            base.TestSortedVariableLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsStoredFields()
-        {
-            base.TestSortedVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetOneValue()
-        {
-            base.TestSortedSetOneValue();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoFields()
-        {
-            base.TestSortedSetTwoFields();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsMerged()
-        {
-            base.TestSortedSetTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValues()
-        {
-            base.TestSortedSetTwoValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValuesUnordered()
-        {
-            base.TestSortedSetTwoValuesUnordered();
-        }
-
-        [Test]
-        public override void TestSortedSetThreeValuesTwoDocs()
-        {
-            base.TestSortedSetThreeValuesTwoDocs();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissing()
-        {
-            base.TestSortedSetTwoDocumentsLastMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsLastMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissing()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetMergeAwayAllValues()
-        {
-            base.TestSortedSetMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTermsEnum()
-        {
-            base.TestSortedSetTermsEnum();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsUninvertedField()
-        {
-            base.TestSortedSetFixedLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsUninvertedField()
-        {
-            base.TestSortedSetVariableLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestGCDCompression()
-        {
-            base.TestGCDCompression();
-        }
-
-        [Test]
-        public override void TestZeros()
-        {
-            base.TestZeros();
-        }
-
-        [Test]
-        public override void TestZeroOrMin()
-        {
-            base.TestZeroOrMin();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissing()
-        {
-            base.TestTwoNumbersOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissingWithMerging()
-        {
-            base.TestTwoNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeNumbersOneMissingWithMerging()
-        {
-            base.TestThreeNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissing()
-        {
-            base.TestTwoBytesOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissingWithMerging()
-        {
-            base.TestTwoBytesOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeBytesOneMissingWithMerging()
-        {
-            base.TestThreeBytesOneMissingWithMerging();
-        }
-
-        // LUCENE-4853
-        [Test]
-        public override void TestHugeBinaryValues()
-        {
-            base.TestHugeBinaryValues();
-        }
-
-        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
-        public override void TestHugeBinaryValueLimit()
-        {
-            base.TestHugeBinaryValueLimit();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads()
-        {
-            base.TestThreads();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (all types + missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads2()
-        {
-            base.TestThreads2();
-        }
-
-        // LUCENE-5218
-        [Test]
-        public override void TestEmptyBinaryValueOnPageSizes()
-        {
-            base.TestEmptyBinaryValueOnPageSizes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs b/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs
index 921b719..e99678b 100644
--- a/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs
@@ -1,5 +1,3 @@
-using NUnit.Framework;
-
 namespace Lucene.Net.Index
 {
     /*
@@ -25,18 +23,5 @@ namespace Lucene.Net.Index
         {
             return NewLogMergePolicy(Random());
         }
-
-        #region BaseMergePolicyTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestForceMergeNotNeeded()
-        {
-            base.TestForceMergeNotNeeded();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs b/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs
index c48b98f..7f425f7 100644
--- a/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs
@@ -1527,7 +1527,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test, Timeout(120000)]
+        [Test]
         public virtual void TestTonsOfUpdates()
         {
             // LUCENE-5248: make sure that when there are many updates, we don't use too much RAM

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs b/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs
index 7d49c1b..70c47cc 100644
--- a/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs
@@ -208,55 +208,5 @@ namespace Lucene.Net.Index
             Assert.AreEqual(0, psdp.SnapshotCount, "Should have no snapshots !");
             dir.Dispose();
         }
-
-
-        #region TestSnapshotDeletionPolicy
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestSnapshotDeletionPolicy_Mem()
-        {
-            base.TestSnapshotDeletionPolicy_Mem();
-        }
-
-        [Test]
-        public override void TestBasicSnapshots()
-        {
-            base.TestBasicSnapshots();
-        }
-
-        [Test]
-        public override void TestMultiThreadedSnapshotting()
-        {
-            base.TestMultiThreadedSnapshotting();
-        }
-
-        [Test]
-        public override void TestRollbackToOldSnapshot()
-        {
-            base.TestRollbackToOldSnapshot();
-        }
-
-        [Test]
-        public override void TestReleaseSnapshot()
-        {
-            base.TestReleaseSnapshot();
-        }
-
-        [Test]
-        public override void TestSnapshotLastCommitTwice()
-        {
-            base.TestSnapshotLastCommitTwice();
-        }
-
-        [Test]
-        public override void TestMissingCommits()
-        {
-            base.TestMissingCommits();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs b/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs
index 20c6b07..427aa96 100644
--- a/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs
@@ -41,55 +41,5 @@ namespace Lucene.Net.Index
         {
             AssumeTrue("The MockRandom PF randomizes content on the fly, so we can't check it", false);
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs
index 31ed10c..902db7f 100644
--- a/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs
@@ -47,88 +47,5 @@ namespace Lucene.Net.Index
             // and merge into newly formed 3.x segments.
             base.TestWriteReadMerge();
         }
-
-
-        #region BaseStoredFieldsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestRandomStoredFields()
-        {
-            base.TestRandomStoredFields();
-        }
-
-        [Test]
-        // LUCENE-1727: make sure doc fields are stored in order
-        public override void TestStoredFieldsOrder()
-        {
-            base.TestStoredFieldsOrder();
-        }
-
-        [Test]
-        // LUCENE-1219
-        public override void TestBinaryFieldOffsetLength()
-        {
-            base.TestBinaryFieldOffsetLength();
-        }
-
-        [Test]
-        public override void TestNumericField()
-        {
-            base.TestNumericField();
-        }
-
-        [Test]
-        public override void TestIndexedBit()
-        {
-            base.TestIndexedBit();
-        }
-
-        [Test]
-        public override void TestReadSkip()
-        {
-            base.TestReadSkip();
-        }
-
-        [Test]
-        public override void TestEmptyDocs()
-        {
-            base.TestEmptyDocs();
-        }
-
-        [Test]
-        public override void TestConcurrentReads()
-        {
-            base.TestConcurrentReads();
-        }
-
-        [Test, Timeout(120000)]
-        public override void TestBigDocuments()
-        {
-            base.TestBigDocuments();
-        }
-
-        [Test]
-        public override void TestBulkMergeWithDeletes()
-        {
-            base.TestBulkMergeWithDeletes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs b/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs
index dac8fa8..38f08d4 100644
--- a/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs
@@ -58,60 +58,5 @@ namespace Lucene.Net.Index
         {
             AssumeTrue("The MockRandom PF randomizes content on the fly, so we can't check it", false);
         }
-
-
-
-        #region BaseTermVectorsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        // only one doc with vectors
-        public override void TestRareVectors()
-        {
-            base.TestRareVectors();
-        }
-
-        [Test]
-        public override void TestHighFreqs()
-        {
-            base.TestHighFreqs();
-        }
-
-        [Test]
-        public override void TestLotsOfFields()
-        {
-            base.TestLotsOfFields();
-        }
-
-        [Test]
-        // different options for the same field
-        public override void TestMixedOptions()
-        {
-            base.TestMixedOptions();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        [Test]
-        public override void TestMerge()
-        {
-            base.TestMerge();
-        }
-
-        [Test]
-        // run random tests from different threads to make sure the per-thread clones
-        // don't share mutable data
-        public override void TestClone()
-        {
-            base.TestClone();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs b/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs
index ede9691..922551c 100644
--- a/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs
@@ -273,19 +273,5 @@ namespace Lucene.Net.Index
 
             // TODO: Add more checks for other non-double setters!
         }
-
-
-        #region BaseMergePolicyTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestForceMergeNotNeeded()
-        {
-            base.TestForceMergeNotNeeded();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs b/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs
index 16a6d17..96ec2f4 100644
--- a/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs
+++ b/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs
@@ -192,7 +192,7 @@ namespace Lucene.Net.Search
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestPad()
         {
             int[] tests = new int[] { -9999999, -99560, -100, -3, -1, 0, 3, 9, 10, 1000, 999999999 };

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs b/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs
index 307c51f..735dc0c 100644
--- a/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs
+++ b/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs
@@ -33,219 +33,5 @@ namespace Lucene.Net.Search.Spans
         {
             CheckHits.CheckNoMatchExplanations(q, FIELD, Searcher, expDocNrs);
         }
-
-
-        #region TestSpanExplanations
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestST1()
-        {
-            base.TestST1();
-        }
-
-        [Test]
-        public override void TestST2()
-        {
-            base.TestST2();
-        }
-
-        [Test]
-        public override void TestST4()
-        {
-            base.TestST4();
-        }
-
-        [Test]
-        public override void TestST5()
-        {
-            base.TestST5();
-        }
-
-        /* some SpanFirstQueries */
-
-        [Test]
-        public override void TestSF1()
-        {
-            base.TestSF1();
-        }
-
-        [Test]
-        public override void TestSF2()
-        {
-            base.TestSF2();
-        }
-
-        [Test]
-        public override void TestSF4()
-        {
-            base.TestSF4();
-        }
-
-        [Test]
-        public override void TestSF5()
-        {
-            base.TestSF5();
-        }
-
-        [Test]
-        public override void TestSF6()
-        {
-            base.TestSF6();
-        }
-
-        /* some SpanOrQueries */
-
-        [Test]
-        public override void TestSO1()
-        {
-            base.TestSO1();
-        }
-
-        [Test]
-        public override void TestSO2()
-        {
-            base.TestSO2();
-        }
-
-        [Test]
-        public override void TestSO3()
-        {
-            base.TestSO3();
-        }
-
-        [Test]
-        public override void TestSO4()
-        {
-            base.TestSO4();
-        }
-
-        /* some SpanNearQueries */
-
-        [Test]
-        public override void TestSNear1()
-        {
-            base.TestSNear1();
-        }
-
-        [Test]
-        public override void TestSNear2()
-        {
-            base.TestSNear2();
-        }
-
-        [Test]
-        public override void TestSNear3()
-        {
-            base.TestSNear3();
-        }
-
-        [Test]
-        public override void TestSNear4()
-        {
-            base.TestSNear4();
-        }
-
-        [Test]
-        public override void TestSNear5()
-        {
-            base.TestSNear5();
-        }
-
-        [Test]
-        public override void TestSNear6()
-        {
-            base.TestSNear6();
-        }
-
-        [Test]
-        public override void TestSNear7()
-        {
-            base.TestSNear7();
-        }
-
-        [Test]
-        public override void TestSNear8()
-        {
-            base.TestSNear8();
-        }
-
-        [Test]
-        public override void TestSNear9()
-        {
-            base.TestSNear9();
-        }
-
-        [Test]
-        public override void TestSNear10()
-        {
-            base.TestSNear10();
-        }
-
-        [Test]
-        public override void TestSNear11()
-        {
-            base.TestSNear11();
-        }
-
-        /* some SpanNotQueries */
-
-        [Test]
-        public override void TestSNot1()
-        {
-            base.TestSNot1();
-        }
-
-        [Test]
-        public override void TestSNot2()
-        {
-            base.TestSNot2();
-        }
-
-        [Test]
-        public override void TestSNot4()
-        {
-            base.TestSNot4();
-        }
-
-        [Test]
-        public override void TestSNot5()
-        {
-            base.TestSNot5();
-        }
-
-        [Test]
-        public override void TestSNot7()
-        {
-            base.TestSNot7();
-        }
-
-        [Test]
-        public override void TestSNot10()
-        {
-            base.TestSNot10();
-        }
-
-        #endregion
-
-        #region TestExplanations
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-
-        /// <summary>
-        /// Placeholder: JUnit freaks if you don't have one test ... making
-        /// class abstract doesn't help
-        /// </summary>
-        [Test]
-        public override void TestNoop()
-        {
-            base.TestNoop();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs b/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs
index 18a2759..fbfe049 100644
--- a/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs
@@ -33,165 +33,5 @@ namespace Lucene.Net.Search
         {
             CheckHits.CheckNoMatchExplanations(q, FIELD, Searcher, expDocNrs);
         }
-
-
-        #region TestComplexExplanations
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void Test1()
-        {
-            base.Test1();
-        }
-
-        [Test]
-        public override void Test2()
-        {
-            base.Test2();
-        }
-
-        // :TODO: we really need more crazy complex cases.
-
-        // //////////////////////////////////////////////////////////////////
-
-        // The rest of these aren't that complex, but they are <i>somewhat</i>
-        // complex, and they expose weakness in dealing with queries that match
-        // with scores of 0 wrapped in other queries
-
-        [Test]
-        public override void TestT3()
-        {
-            base.TestT3();
-        }
-
-        [Test]
-        public override void TestMA3()
-        {
-            base.TestMA3();
-        }
-
-        [Test]
-        public override void TestFQ5()
-        {
-            base.TestFQ5();
-        }
-
-        [Test]
-        public override void TestCSQ4()
-        {
-            base.TestCSQ4();
-        }
-
-        [Test]
-        public override void TestDMQ10()
-        {
-            base.TestDMQ10();
-        }
-
-        [Test]
-        public override void TestMPQ7()
-        {
-            base.TestMPQ7();
-        }
-
-        [Test]
-        public override void TestBQ12()
-        {
-            base.TestBQ12();
-        }
-
-        [Test]
-        public override void TestBQ13()
-        {
-            base.TestBQ13();
-        }
-
-        [Test]
-        public override void TestBQ18()
-        {
-            base.TestBQ18();
-        }
-
-        [Test]
-        public override void TestBQ21()
-        {
-            base.TestBQ21();
-        }
-
-        [Test]
-        public override void TestBQ22()
-        {
-            base.TestBQ22();
-        }
-
-        [Test]
-        public override void TestST3()
-        {
-            base.TestST3();
-        }
-
-        [Test]
-        public override void TestST6()
-        {
-            base.TestST6();
-        }
-
-        [Test]
-        public override void TestSF3()
-        {
-            base.TestSF3();
-        }
-
-        [Test]
-        public override void TestSF7()
-        {
-            base.TestSF7();
-        }
-
-        [Test]
-        public override void TestSNot3()
-        {
-            base.TestSNot3();
-        }
-
-        [Test]
-        public override void TestSNot6()
-        {
-            base.TestSNot6();
-        }
-
-        [Test]
-        public override void TestSNot8()
-        {
-            base.TestSNot8();
-        }
-
-        [Test]
-        public override void TestSNot9()
-        {
-            base.TestSNot9();
-        }
-
-        #endregion
-
-        #region TestExplanations
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-
-        /// <summary>
-        /// Placeholder: JUnit freaks if you don't have one test ... making
-        /// class abstract doesn't help
-        /// </summary>
-        [Test]
-        public override void TestNoop()
-        {
-            base.TestNoop();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/TestExplanations.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestExplanations.cs b/src/Lucene.Net.Tests/core/Search/TestExplanations.cs
index 18962f9..a528615 100644
--- a/src/Lucene.Net.Tests/core/Search/TestExplanations.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestExplanations.cs
@@ -261,7 +261,7 @@ namespace Lucene.Net.Search
         /// Placeholder: JUnit freaks if you don't have one test ... making
         /// class abstract doesn't help
         /// </summary>
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestNoop()
         {
             /* NOOP */

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs b/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs
index f0e44a8..cc0d022 100644
--- a/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs
@@ -590,19 +590,5 @@ namespace Lucene.Net.Search
             reader.Dispose();
             dir.Dispose();
         }
-
-
-        #region SorterTestBase
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestPad()
-        {
-            base.TestPad();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs b/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs
index 1b923a3..0fc6843 100644
--- a/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs
@@ -60,22 +60,5 @@ namespace Lucene.Net.Search
             Assert.IsFalse(a1.Equals(b));
             QueryUtils.Check(a1);
         }
-
-
-
-        #region TestSnapshotDeletionPolicy
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        /// <summary>
-        /// test a bunch of random regular expressions </summary>
-        [Test, Timeout(60000)]
-        public override void TestRegexps()
-        {
-            base.TestRegexps();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs b/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs
index 7f95d2a..f52d360 100644
--- a/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs
@@ -551,19 +551,5 @@ namespace Lucene.Net.Search
             result = search.Search(Csrq("rand", maxRP, null, T, F), null, numDocs).ScoreDocs;
             AssertEquals("max,nul,T,T", 1, result.Length);
         }
-
-
-        #region SorterTestBase
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestPad()
-        {
-            base.TestPad();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs b/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs
index 5fec12f..304a837 100644
--- a/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs
@@ -927,24 +927,5 @@ namespace Lucene.Net.Search
 
             Qtest(query, new int[] { 0, 1, 2, 3 });
         }
-
-
-        #region TestExplanations
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-
-        /// <summary>
-        /// Placeholder: JUnit freaks if you don't have one test ... making
-        /// class abstract doesn't help
-        /// </summary>
-        [Test]
-        public override void TestNoop()
-        {
-            base.TestNoop();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs b/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs
index ee990c1..6b45673 100644
--- a/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestSimpleExplanationsOfNonMatches.cs
@@ -33,457 +33,5 @@ namespace Lucene.Net.Search
         {
             CheckHits.CheckNoMatchExplanations(q, FIELD, Searcher, expDocNrs);
         }
-
-
-        #region TestSimpleExplanations
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestT1()
-        {
-            base.TestT1();
-        }
-
-        [Test]
-        public override void TestT2()
-        {
-            base.TestT2();
-        }
-
-        /* MatchAllDocs */
-
-        [Test]
-        public override void TestMA1()
-        {
-            base.TestMA1();
-        }
-
-        [Test]
-        public override void TestMA2()
-        {
-            base.TestMA2();
-        }
-
-        /* some simple phrase tests */
-
-        [Test]
-        public override void TestP1()
-        {
-            base.TestP1();
-        }
-
-        [Test]
-        public override void TestP2()
-        {
-            base.TestP2();
-        }
-
-        [Test]
-        public override void TestP3()
-        {
-            base.TestP3();
-        }
-
-        [Test]
-        public override void TestP4()
-        {
-            base.TestP4();
-        }
-
-        [Test]
-        public override void TestP5()
-        {
-            base.TestP5();
-        }
-
-        [Test]
-        public override void TestP6()
-        {
-            base.TestP6();
-        }
-
-        [Test]
-        public override void TestP7()
-        {
-            base.TestP7();
-        }
-
-        /* some simple filtered query tests */
-
-        [Test]
-        public override void TestFQ1()
-        {
-            base.TestFQ1();
-        }
-
-        [Test]
-        public override void TestFQ2()
-        {
-            base.TestFQ2();
-        }
-
-        [Test]
-        public override void TestFQ3()
-        {
-            base.TestFQ3();
-        }
-
-        [Test]
-        public override void TestFQ4()
-        {
-            base.TestFQ4();
-        }
-
-        [Test]
-        public override void TestFQ6()
-        {
-            base.TestFQ6();
-        }
-
-        /* ConstantScoreQueries */
-
-        [Test]
-        public override void TestCSQ1()
-        {
-            base.TestCSQ1();
-        }
-
-        [Test]
-        public override void TestCSQ2()
-        {
-            base.TestCSQ2();
-        }
-
-        [Test]
-        public override void TestCSQ3()
-        {
-            base.TestCSQ3();
-        }
-
-        /* DisjunctionMaxQuery */
-
-        [Test]
-        public override void TestDMQ1()
-        {
-            base.TestDMQ1();
-        }
-
-        [Test]
-        public override void TestDMQ2()
-        {
-            base.TestDMQ2();
-        }
-
-        [Test]
-        public override void TestDMQ3()
-        {
-            base.TestDMQ3();
-        }
-
-        [Test]
-        public override void TestDMQ4()
-        {
-            base.TestDMQ4();
-        }
-
-        [Test]
-        public override void TestDMQ5()
-        {
-            base.TestDMQ5();
-        }
-
-        [Test]
-        public override void TestDMQ6()
-        {
-            base.TestDMQ6();
-        }
-
-        [Test]
-        public override void TestDMQ7()
-        {
-            base.TestDMQ7();
-        }
-
-        [Test]
-        public override void TestDMQ8()
-        {
-            base.TestDMQ8();
-        }
-
-        [Test]
-        public override void TestDMQ9()
-        {
-            base.TestDMQ9();
-        }
-
-        /* MultiPhraseQuery */
-
-        [Test]
-        public override void TestMPQ1()
-        {
-            base.TestMPQ1();
-        }
-
-        [Test]
-        public override void TestMPQ2()
-        {
-            base.TestMPQ2();
-        }
-
-        [Test]
-        public override void TestMPQ3()
-        {
-            base.TestMPQ3();
-        }
-
-        [Test]
-        public override void TestMPQ4()
-        {
-            base.TestMPQ4();
-        }
-
-        [Test]
-        public override void TestMPQ5()
-        {
-            base.TestMPQ5();
-        }
-
-        [Test]
-        public override void TestMPQ6()
-        {
-            base.TestMPQ6();
-        }
-
-        /* some simple tests of boolean queries containing term queries */
-
-        [Test]
-        public override void TestBQ1()
-        {
-            base.TestBQ1();
-        }
-
-        [Test]
-        public override void TestBQ2()
-        {
-            base.TestBQ2();
-        }
-
-        [Test]
-        public override void TestBQ3()
-        {
-            base.TestBQ3();
-        }
-
-        [Test]
-        public override void TestBQ4()
-        {
-            base.TestBQ4();
-        }
-
-        [Test]
-        public override void TestBQ5()
-        {
-            base.TestBQ5();
-        }
-
-        [Test]
-        public override void TestBQ6()
-        {
-            base.TestBQ6();
-        }
-
-        [Test]
-        public override void TestBQ7()
-        {
-            base.TestBQ7();
-        }
-
-        [Test]
-        public override void TestBQ8()
-        {
-            base.TestBQ8();
-        }
-
-        [Test]
-        public override void TestBQ9()
-        {
-            base.TestBQ9();
-        }
-
-        [Test]
-        public override void TestBQ10()
-        {
-            base.TestBQ10();
-        }
-
-        [Test]
-        public override void TestBQ11()
-        {
-            base.TestBQ11();
-        }
-
-        [Test]
-        public override void TestBQ14()
-        {
-            base.TestBQ14();
-        }
-
-        [Test]
-        public override void TestBQ15()
-        {
-            base.TestBQ15();
-        }
-
-        [Test]
-        public override void TestBQ16()
-        {
-            base.TestBQ16();
-        }
-
-        [Test]
-        public override void TestBQ17()
-        {
-            base.TestBQ17();
-        }
-
-        [Test]
-        public override void TestBQ19()
-        {
-            base.TestBQ19();
-        }
-
-        [Test]
-        public override void TestBQ20()
-        {
-            base.TestBQ20();
-        }
-
-        /* BQ of TQ: using alt so some fields have zero boost and some don't */
-
-        [Test]
-        public override void TestMultiFieldBQ1()
-        {
-            base.TestMultiFieldBQ1();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQ2()
-        {
-            base.TestMultiFieldBQ2();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQ3()
-        {
-            base.TestMultiFieldBQ3();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQ4()
-        {
-            base.TestMultiFieldBQ4();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQ5()
-        {
-            base.TestMultiFieldBQ5();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQ6()
-        {
-            base.TestMultiFieldBQ6();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQ7()
-        {
-            base.TestMultiFieldBQ7();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQ8()
-        {
-            base.TestMultiFieldBQ8();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQ9()
-        {
-            base.TestMultiFieldBQ9();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQ10()
-        {
-            base.TestMultiFieldBQ10();
-        }
-
-        /* BQ of PQ: using alt so some fields have zero boost and some don't */
-
-        [Test]
-        public override void TestMultiFieldBQofPQ1()
-        {
-            base.TestMultiFieldBQofPQ1();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQofPQ2()
-        {
-            base.TestMultiFieldBQofPQ2();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQofPQ3()
-        {
-            base.TestMultiFieldBQofPQ3();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQofPQ4()
-        {
-            base.TestMultiFieldBQofPQ4();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQofPQ5()
-        {
-            base.TestMultiFieldBQofPQ5();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQofPQ6()
-        {
-            base.TestMultiFieldBQofPQ6();
-        }
-
-        [Test]
-        public override void TestMultiFieldBQofPQ7()
-        {
-            base.TestMultiFieldBQofPQ7();
-        }
-
-        #endregion
-
-        #region TestExplanations
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-
-        /// <summary>
-        /// Placeholder: JUnit freaks if you don't have one test ... making
-        /// class abstract doesn't help
-        /// </summary>
-        [Test]
-        public override void TestNoop()
-        {
-            base.TestNoop();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs b/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs
index f8c9fb3..bb1c4d0 100644
--- a/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestTermRangeFilter.cs
@@ -177,19 +177,5 @@ namespace Lucene.Net.Search
             result = search.Search(q, TermRangeFilter.NewStringRange("rand", maxRP, null, T, F), numDocs).ScoreDocs;
             Assert.AreEqual(1, result.Length, "max,nul,T,T");
         }
-
-
-        #region SorterTestBase
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestPad()
-        {
-            base.TestPad();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs b/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs
index f103307..73875e2 100644
--- a/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs
+++ b/src/Lucene.Net.Tests/core/Support/TestLinkedHashMap.cs
@@ -355,85 +355,5 @@ namespace Lucene.Net.Support
             dict.Remove(nullTarget);
             Assert.IsFalse(dict.Contains(nullTarget));
         }
-
-
-        #region TestHashMap
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test, LuceneNetSpecific]
-        public override void TestKeyEnumeration()
-        {
-            base.TestKeyEnumeration();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestValueEnumeration()
-        {
-            base.TestValueEnumeration();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestKeyValuePairEnumeration()
-        {
-            base.TestKeyValuePairEnumeration();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestContainsNullKey()
-        {
-            base.TestContainsNullKey();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestContainsKey()
-        {
-            base.TestContainsKey();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestAdd_NoNullKeys_NullValues()
-        {
-            base.TestAdd_NoNullKeys_NullValues();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestAdd_WithNullKeys_NoNullValues()
-        {
-            base.TestAdd_WithNullKeys_NoNullValues();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestGetWithNonExistantKey_EmptyCollection()
-        {
-            base.TestGetWithNonExistantKey_EmptyCollection();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestGetWithNonExistantKey()
-        {
-            base.TestGetWithNonExistantKey();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestAddsUpdate_NotThrowException()
-        {
-            base.TestAddsUpdate_NotThrowException();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestIndexersUpdate_NotThrowException()
-        {
-            base.TestIndexersUpdate_NotThrowException();
-        }
-
-        [Test, LuceneNetSpecific]
-        public override void TestWithValueType()
-        {
-            base.TestWithValueType();
-        }
-
-        #endregion
     }
 }


[16/58] lucenenet git commit: QueryParser.Flexible Refactor: Properties

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
index 5a41c35..589a968 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
@@ -32,34 +32,34 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         private static readonly string[] escapableWordTokens = { "AND", "OR", "NOT",
             "TO", "WITHIN", "SENTENCE", "PARAGRAPH", "INORDER" };
 
-        // LUCENENET specific overload for string
-        private static string EscapeChar(string str, CultureInfo locale)
-        {
-            if (str == null || str.Length == 0)
-                return str;
-
-            string buffer = str;
-
-            // regular escapable Char for terms
-            for (int i = 0; i < escapableTermChars.Length; i++)
-            {
-                buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
-                    "\\", locale);
-            }
-
-            // First Character of a term as more escaping chars
-            for (int i = 0; i < escapableTermExtraFirstChars.Length; i++)
-            {
-                if (buffer[0] == escapableTermExtraFirstChars[i][0])
-                {
-                    buffer = "\\" + buffer[0]
-                        + buffer.Substring(1, buffer.Length - 1);
-                    break;
-                }
-            }
-
-            return buffer;
-        }
+        //// LUCENENET specific overload for string
+        //private static string EscapeChar(string str, CultureInfo locale)
+        //{
+        //    if (str == null || str.Length == 0)
+        //        return str;
+
+        //    string buffer = str;
+
+        //    // regular escapable Char for terms
+        //    for (int i = 0; i < escapableTermChars.Length; i++)
+        //    {
+        //        buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
+        //            "\\", locale);
+        //    }
+
+        //    // First Character of a term as more escaping chars
+        //    for (int i = 0; i < escapableTermExtraFirstChars.Length; i++)
+        //    {
+        //        if (buffer[0] == escapableTermExtraFirstChars[i][0])
+        //        {
+        //            buffer = "\\" + buffer[0]
+        //                + buffer.Substring(1, buffer.Length - 1);
+        //            break;
+        //        }
+        //    }
+
+        //    return buffer;
+        //}
 
         private static ICharSequence EscapeChar(ICharSequence str, CultureInfo locale)
         {
@@ -89,21 +89,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return buffer;
         }
 
-        // LUCENENET specific overload for string
-        private string EscapeQuoted(string str, CultureInfo locale)
-        {
-            if (str == null || str.Length == 0)
-                return str;
+        //// LUCENENET specific overload for string
+        //private string EscapeQuoted(string str, CultureInfo locale)
+        //{
+        //    if (str == null || str.Length == 0)
+        //        return str;
 
-            string buffer = str;
+        //    string buffer = str;
 
-            for (int i = 0; i < escapableQuotedChars.Length; i++)
-            {
-                buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
-                    "\\", locale);
-            }
-            return buffer;
-        }
+        //    for (int i = 0; i < escapableQuotedChars.Length; i++)
+        //    {
+        //        buffer = ReplaceIgnoreCase(buffer, escapableTermChars[i].ToLower(locale),
+        //            "\\", locale);
+        //    }
+        //    return buffer;
+        //}
 
         private ICharSequence EscapeQuoted(ICharSequence str, CultureInfo locale)
         {
@@ -120,24 +120,24 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return buffer;
         }
 
-        // LUCENENET specific overload for string
-        private static string EscapeTerm(string term, CultureInfo locale)
-        {
-            if (term == null)
-                return term;
-
-            // Escape single Chars
-            term = EscapeChar(term, locale);
-            term = EscapeWhiteChar(term, locale);
-
-            // Escape Parser Words
-            for (int i = 0; i < escapableWordTokens.Length; i++)
-            {
-                if (escapableWordTokens[i].Equals(term.ToString(), StringComparison.OrdinalIgnoreCase))
-                    return "\\" + term;
-            }
-            return term;
-        }
+        //// LUCENENET specific overload for string
+        //private static string EscapeTerm(string term, CultureInfo locale)
+        //{
+        //    if (term == null)
+        //        return term;
+
+        //    // Escape single Chars
+        //    term = EscapeChar(term, locale);
+        //    term = EscapeWhiteChar(term, locale);
+
+        //    // Escape Parser Words
+        //    for (int i = 0; i < escapableWordTokens.Length; i++)
+        //    {
+        //        if (escapableWordTokens[i].Equals(term.ToString(), StringComparison.OrdinalIgnoreCase))
+        //            return "\\" + term;
+        //    }
+        //    return term;
+        //}
 
         private static ICharSequence EscapeTerm(ICharSequence term, CultureInfo locale)
         {
@@ -169,7 +169,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
          * @return the new String
          */
         // LUCENENET specific overload for string
-        private static string ReplaceIgnoreCase(string @string,
+        private static ICharSequence ReplaceIgnoreCase(ICharSequence @string,
             string sequence1, string escapeChar, CultureInfo locale)
         {
             if (escapeChar == null || sequence1 == null || @string == null)
@@ -188,7 +188,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     result2.Append(@string[i]);
                     result2.Append(escapeChar);
                 }
-                return result2.ToString();
+                return result2.ToString().ToCharSequence();
             }
 
             // normal case
@@ -227,47 +227,49 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     start = firstIndex + 1;
                 }
             }
+            
+
             if (result.Length == 0 && copyStart == 0)
                 return @string;
             result.Append(@string.ToString().Substring(copyStart));
-            return result.ToString();
+            return result.ToString().ToCharSequence();
         }
 
-        private static ICharSequence ReplaceIgnoreCase(ICharSequence @string,
-           string sequence1, string escapeChar, CultureInfo locale)
-        {
-            if (escapeChar == null || sequence1 == null || @string == null)
-                throw new NullReferenceException(); // LUCNENET TODO: ArgumentException...
-
-            return new StringCharSequenceWrapper(
-                ReplaceIgnoreCase(@string.ToString(), sequence1, escapeChar, locale));
-        }
-
-        /**
-         * escape all tokens that are part of the parser syntax on a given string
-         * 
-         * @param str
-         *          string to get replaced
-         * @param locale
-         *          locale to be used when performing string compares
-         * @return the new String
-         */
-        // LUCENENET specific overload for string
-        private static string EscapeWhiteChar(string str,
-            CultureInfo locale)
-        {
-            if (str == null || str.Length == 0)
-                return str;
-
-            string buffer = str;
-
-            for (int i = 0; i < escapableWhiteChars.Length; i++)
-            {
-                buffer = ReplaceIgnoreCase(buffer, escapableWhiteChars[i].ToLower(locale),
-                    "\\", locale);
-            }
-            return buffer;
-        }
+        //private static ICharSequence ReplaceIgnoreCase(ICharSequence @string,
+        //   string sequence1, string escapeChar, CultureInfo locale)
+        //{
+        //    if (escapeChar == null || sequence1 == null || @string == null)
+        //        throw new NullReferenceException(); // LUCNENET TODO: ArgumentException...
+
+        //    return new StringCharSequenceWrapper(
+        //        ReplaceIgnoreCase(@string.ToString(), sequence1, escapeChar, locale));
+        //}
+
+        ///**
+        // * escape all tokens that are part of the parser syntax on a given string
+        // * 
+        // * @param str
+        // *          string to get replaced
+        // * @param locale
+        // *          locale to be used when performing string compares
+        // * @return the new String
+        // */
+        //// LUCENENET specific overload for string
+        //private static string EscapeWhiteChar(string str,
+        //    CultureInfo locale)
+        //{
+        //    if (str == null || str.Length == 0)
+        //        return str;
+
+        //    string buffer = str;
+
+        //    for (int i = 0; i < escapableWhiteChars.Length; i++)
+        //    {
+        //        buffer = ReplaceIgnoreCase(buffer, escapableWhiteChars[i].ToLower(locale),
+        //            "\\", locale);
+        //    }
+        //    return buffer;
+        //}
 
         /**
          * escape all tokens that are part of the parser syntax on a given string

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
index d384076..147c411 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
@@ -110,31 +110,31 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             }
         }
 
-        public int GetColumn()
+        public int Column
         {
-            return bufferStart + bufferPosition;
+            get { return bufferStart + bufferPosition; }
         }
-        public int GetLine()
+        public int Line
         {
-            return 1;
+            get { return 1; }
         }
-        public int GetEndColumn()
+        public int EndColumn
         {
-            return bufferStart + bufferPosition;
+            get { return bufferStart + bufferPosition; }
         }
-        public int GetEndLine()
+        public int EndLine
         {
-            return 1;
+            get { return 1; }
         }
 
-        public int GetBeginColumn()
+        public int BeginColumn
         {
-            return bufferStart + tokenStart;
+            get { return bufferStart + tokenStart; }
         }
 
-        public int GetBeginLine()
+        public int BeginLine
         {
-            return 1;
+            get { return 1; }
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
index a6d8952..04f77ff 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
@@ -822,10 +822,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             int endColumn;
             string im = jjstrLiteralImages[jjmatchedKind];
             curTokenImage = (im == null) ? input_stream.GetImage() : im;
-            beginLine = input_stream.GetBeginLine();
-            beginColumn = input_stream.GetBeginColumn();
-            endLine = input_stream.GetEndLine();
-            endColumn = input_stream.GetEndColumn();
+            beginLine = input_stream.BeginLine;
+            beginColumn = input_stream.BeginColumn;
+            endLine = input_stream.EndLine;
+            endColumn = input_stream.EndColumn;
             t = Token.NewToken(jjmatchedKind, curTokenImage);
 
             t.beginLine = beginLine;
@@ -899,8 +899,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         goto EOFLoop_continue;
                     }
                 }
-                int error_line = input_stream.GetEndLine();
-                int error_column = input_stream.GetEndColumn();
+                int error_line = input_stream.EndLine;
+                int error_column = input_stream.EndColumn;
                 string error_after = null;
                 bool EOFSeen = false;
                 try { input_stream.ReadChar(); input_stream.BackUp(1); }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
index 03a4bea..58d2e30 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
@@ -72,9 +72,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
          * Any subclass of Token that actually wants to return a non-null value can
          * override this method as appropriate.
          */
-        public object GetValue()
+        public virtual object Value
         {
-            return null;
+            get { return null; }
         }
 
         /**

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
index 4510388..2e050ed 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
@@ -88,7 +88,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 && !(node is WildcardQueryNode)
                 && !(node is FuzzyQueryNode)
                 && !(node is RegexpQueryNode)
-                && !(node.GetParent() is IRangeQueryNode))
+                && !(node.Parent is IRangeQueryNode))
             {
 
                 FieldQueryNode fieldNode = ((FieldQueryNode)node);
@@ -314,11 +314,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                                     if (this.positionIncrementsEnabled)
                                     {
-                                        termNode.SetPositionIncrement(position);
+                                        termNode.PositionIncrement = position;
                                     }
                                     else
                                     {
-                                        termNode.SetPositionIncrement(termGroupCount);
+                                        termNode.PositionIncrement = termGroupCount;
                                     }
 
                                     mpq.Add(termNode);
@@ -343,12 +343,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             if (this.positionIncrementsEnabled)
                             {
-                                termNode.SetPositionIncrement(position);
+                                termNode.PositionIncrement = position;
 
                             }
                             else
                             {
-                                termNode.SetPositionIncrement(termGroupCount);
+                                termNode.PositionIncrement = termGroupCount;
                             }
 
                             mpq.Add(termNode);
@@ -394,12 +394,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         if (this.positionIncrementsEnabled)
                         {
                             position += positionIncrement;
-                            newFieldNode.SetPositionIncrement(position);
+                            newFieldNode.PositionIncrement = position;
 
                         }
                         else
                         {
-                            newFieldNode.SetPositionIncrement(i);
+                            newFieldNode.PositionIncrement = i;
                         }
 
                         pq.Add(newFieldNode);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
index 6e986d7..6c5ed50 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
@@ -127,7 +127,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
         protected virtual IQueryNode PreProcessNode(IQueryNode node)
         {
-            IQueryNode parent = node.GetParent();
+            IQueryNode parent = node.Parent;
             if (node is BooleanQueryNode)
             {
                 if (parent is BooleanQueryNode)
@@ -168,7 +168,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             {
                 ModifierQueryNode modNode = (ModifierQueryNode)node;
 
-                if (modNode.GetModifier() == Modifier.MOD_NONE)
+                if (modNode.Modifier == Modifier.MOD_NONE)
                 {
                     return new ModifierQueryNode(modNode.GetChild(), mod);
                 }
@@ -184,7 +184,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             if (node is ModifierQueryNode)
             {
                 ModifierQueryNode modNode = (ModifierQueryNode)node;
-                if (modNode.GetModifier() == Modifier.MOD_NONE)
+                if (modNode.Modifier == Modifier.MOD_NONE)
                 {
                     node.SetTag(TAG_MODIFIER, mod);
                 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
index 36637e6..a6dbc75 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
@@ -40,7 +40,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         ModifierQueryNode modNode = (ModifierQueryNode)child;
 
                         if (modNode is BooleanModifierNode
-                            || modNode.GetModifier() == Modifier.MOD_NONE)
+                            || modNode.Modifier == Modifier.MOD_NONE)
                         {
 
                             return child;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
index 03776d2..3d9b5f2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
@@ -25,7 +25,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
         {
 
             if (node is IFieldableNode &&
-                (node.GetParent() == null || !(node.GetParent() is IFieldableNode)))
+                (node.Parent == null || !(node.Parent is IFieldableNode)))
             {
 
                 IFieldableNode fieldNode = (IFieldableNode)node;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
index 59fc57d..13b309b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
@@ -44,15 +44,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                 if (config != null && (fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG)) != null)
                 {
-                    fuzzyNode.SetPrefixLength(fuzzyConfig.GetPrefixLength());
+                    fuzzyNode.PrefixLength = fuzzyConfig.PrefixLength;
 
-                    if (fuzzyNode.GetSimilarity() < 0)
+                    if (fuzzyNode.Similarity < 0)
                     {
-                        fuzzyNode.SetSimilarity(fuzzyConfig.GetMinSimilarity());
+                        fuzzyNode.Similarity = fuzzyConfig.MinSimilarity;
                     }
 
                 }
-                else if (fuzzyNode.GetSimilarity() < 0)
+                else if (fuzzyNode.Similarity < 0)
                 {
                     throw new ArgumentException("No FUZZY_CONFIG set in the config");
                 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
index d13f79e..d99c5b7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
@@ -107,7 +107,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                         ModifierQueryNode modNode = (ModifierQueryNode)node;
 
-                        if (modNode.GetModifier() == Modifier.MOD_REQ)
+                        if (modNode.Modifier == Modifier.MOD_REQ)
                         {
                             return modNode.GetChild();
                         }
@@ -123,7 +123,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                         ModifierQueryNode modNode = (ModifierQueryNode)node;
 
-                        if (modNode.GetModifier() == Modifier.MOD_NONE)
+                        if (modNode.Modifier == Modifier.MOD_NONE)
                         {
                             return new BooleanModifierNode(modNode.GetChild(), Modifier.MOD_REQ);
                         }
@@ -140,7 +140,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             else
             {
 
-                if (node.GetParent() is AndQueryNode)
+                if (node.Parent is AndQueryNode)
                 {
 
                     if (node is ModifierQueryNode)
@@ -148,7 +148,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                         ModifierQueryNode modNode = (ModifierQueryNode)node;
 
-                        if (modNode.GetModifier() == Modifier.MOD_NONE)
+                        if (modNode.Modifier == Modifier.MOD_NONE)
                         {
                             return new BooleanModifierNode(modNode.GetChild(), Modifier.MOD_REQ);
                         }
@@ -218,7 +218,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             }
             else if (!(node is BooleanQueryNode))
             {
-                this.queryNodeList.Add(ApplyModifier(node, node.GetParent()));
+                this.queryNodeList.Add(ApplyModifier(node, node.Parent));
                 this.latestNodeVerified = false;
 
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
index ce22ea0..505ed07 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
@@ -54,7 +54,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
             if (node is WildcardQueryNode
                 || node is FuzzyQueryNode
-                || (node is FieldQueryNode && node.GetParent() is IRangeQueryNode)
+                || (node is FieldQueryNode && node.Parent is IRangeQueryNode)
                 || node is RegexpQueryNode)
             {
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
index de5a5b4..2bbffe4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
@@ -50,7 +50,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
         {
 
             if (node is FieldQueryNode
-                && !(node.GetParent() is IRangeQueryNode))
+                && !(node.Parent is IRangeQueryNode))
             {
 
                 QueryConfigHandler config = GetQueryConfigHandler();
@@ -70,7 +70,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         {
 
                             /*NumberFormat*/
-                            string numberFormat = numericConfig.GetNumberFormat();
+                            string numberFormat = numericConfig.NumberFormat;
                             string text = fieldNode.GetTextAsString();
                             /*Number*/
                             object number = null;
@@ -92,7 +92,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                             .AssemblyQualifiedName), e);
                                 }
 
-                                switch (numericConfig.GetType())
+                                switch (numericConfig.Type)
                                 {
                                     case FieldType.NumericType.LONG:
                                         number = Convert.ToInt64(number);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
index f78e218..88ed011 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
@@ -68,7 +68,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             string lowerText = lower.GetTextAsString();
                             string upperText = upper.GetTextAsString();
-                            /*NumberFormat*/ string numberFormat = numericConfig.GetNumberFormat();
+                            /*NumberFormat*/ string numberFormat = numericConfig.NumberFormat;
                             /*Number*/
                             object lowerNumber = null, upperNumber = null;
 
@@ -108,7 +108,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             }
 
-                            switch (numericConfig.GetType())
+                            switch (numericConfig.Type)
                             {
                                 case FieldType.NumericType.LONG:
                                     if (upperNumber != null) upperNumber = Convert.ToInt64(upperNumber);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
index 896f749..c4bdd53 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
@@ -34,7 +34,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
         {
             queryTree = base.Process(queryTree);
 
-            if (!queryTree.IsLeaf())
+            if (!queryTree.IsLeaf)
             {
 
                 IList<IQueryNode> children = queryTree.GetChildren();
@@ -76,7 +76,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 foreach (IQueryNode child in children)
                 {
 
-                    if (!child.IsLeaf())
+                    if (!child.IsLeaf)
                     {
 
                         IList<IQueryNode> grandChildren = child.GetChildren();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
index b38f60b..868daed 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
@@ -40,7 +40,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                 // do not process wildcards for TermRangeQueryNode children and 
                 // QuotedFieldQueryNode to reproduce the old parser behavior
-                if (fqn.GetParent() is TermRangeQueryNode
+                if (fqn.Parent is TermRangeQueryNode
                     || fqn is QuotedFieldQueryNode
                     || text.Length <= 0)
                 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index 7d7d94e..9819378 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -51,7 +51,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         public override string ToString()
         {
-            return "<StandardQueryParser config=\"" + this.GetQueryConfigHandler()
+            return "<StandardQueryParser config=\"" + this.QueryConfigHandler
                 + "\"/>";
         }
 
@@ -81,35 +81,36 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * Gets implicit operator setting, which will be either {@link Operator#AND}
          * or {@link Operator#OR}.
          */
-        public virtual Operator? GetDefaultOperator()
+        public virtual Operator? DefaultOperator
         {
-            return GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);
+            get { return QueryConfigHandler.Get(ConfigurationKeys.DEFAULT_OPERATOR); }
+            set { QueryConfigHandler.Set(ConfigurationKeys.DEFAULT_OPERATOR, value); }
         }
 
-        /**
-         * Sets the boolean operator of the QueryParser. In default mode (
-         * {@link Operator#OR}) terms without any modifiers are considered optional:
-         * for example <code>capital of Hungary</code> is equal to
-         * <code>capital OR of OR Hungary</code>.<br/>
-         * In {@link Operator#AND} mode terms are considered to be in conjunction: the
-         * above mentioned query is parsed as <code>capital AND of AND Hungary</code>
-         */
-        public virtual void SetDefaultOperator(Operator @operator)
-        {
-            GetQueryConfigHandler().Set(ConfigurationKeys.DEFAULT_OPERATOR, @operator);
-        }
+        ///**
+        // * Sets the boolean operator of the QueryParser. In default mode (
+        // * {@link Operator#OR}) terms without any modifiers are considered optional:
+        // * for example <code>capital of Hungary</code> is equal to
+        // * <code>capital OR of OR Hungary</code>.<br/>
+        // * In {@link Operator#AND} mode terms are considered to be in conjunction: the
+        // * above mentioned query is parsed as <code>capital AND of AND Hungary</code>
+        // */
+        //public virtual void SetDefaultOperator(Operator @operator)
+        //{
+        //    QueryConfigHandler.Set(ConfigurationKeys.DEFAULT_OPERATOR, @operator);
+        //}
 
 
         public virtual bool LowercaseExpandedTerms
         {
             get
             {
-                bool? lowercaseExpandedTerms = GetQueryConfigHandler().Get(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS);
+                bool? lowercaseExpandedTerms = QueryConfigHandler.Get(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS);
                 return lowercaseExpandedTerms.HasValue ? lowercaseExpandedTerms.Value : true;
             }
             set
             {
-                GetQueryConfigHandler().Set(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS, value);
+                QueryConfigHandler.Set(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS, value);
             }
         }
 
@@ -152,12 +153,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             get
             {
-                bool? allowLeadingWildcard = GetQueryConfigHandler().Get(ConfigurationKeys.ALLOW_LEADING_WILDCARD);
+                bool? allowLeadingWildcard = QueryConfigHandler.Get(ConfigurationKeys.ALLOW_LEADING_WILDCARD);
                 return allowLeadingWildcard.HasValue ? allowLeadingWildcard.Value : false;
             }
             set
             {
-                GetQueryConfigHandler().Set(ConfigurationKeys.ALLOW_LEADING_WILDCARD, value);
+                QueryConfigHandler.Set(ConfigurationKeys.ALLOW_LEADING_WILDCARD, value);
             }
         }
 
@@ -180,12 +181,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             get
             {
-                bool? enablePositionsIncrements = GetQueryConfigHandler().Get(ConfigurationKeys.ENABLE_POSITION_INCREMENTS);
+                bool? enablePositionsIncrements = QueryConfigHandler.Get(ConfigurationKeys.ENABLE_POSITION_INCREMENTS);
                 return enablePositionsIncrements.HasValue ? enablePositionsIncrements.Value : false;
             }
             set
             {
-                GetQueryConfigHandler().Set(ConfigurationKeys.ENABLE_POSITION_INCREMENTS, value);
+                QueryConfigHandler.Set(ConfigurationKeys.ENABLE_POSITION_INCREMENTS, value);
             }
         }
 
@@ -228,11 +229,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             get
             {
-                return GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD);
+                return QueryConfigHandler.Get(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD);
             }
             set
             {
-                GetQueryConfigHandler().Set(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD, value);
+                QueryConfigHandler.Set(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD, value);
             }
         }
 
@@ -275,7 +276,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 fields = new string[0];
             }
 
-            GetQueryConfigHandler().Set(ConfigurationKeys.MULTI_FIELDS, fields);
+            QueryConfigHandler.Set(ConfigurationKeys.MULTI_FIELDS, fields);
 
         }
 
@@ -285,16 +286,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @param fields the fields used to expand the query
          */
-        public virtual void GetMultiFields(string[] fields)
+        public virtual string[] GetMultiFields()
         {
-            GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_FIELDS);
+            return QueryConfigHandler.Get(ConfigurationKeys.MULTI_FIELDS);
         }
 
         public virtual int FuzzyPrefixLength
         {
             get
             {
-                FuzzyConfig fuzzyConfig = GetQueryConfigHandler().Get(ConfigurationKeys.FUZZY_CONFIG);
+                FuzzyConfig fuzzyConfig = QueryConfigHandler.Get(ConfigurationKeys.FUZZY_CONFIG);
 
                 if (fuzzyConfig == null)
                 {
@@ -302,12 +303,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 }
                 else
                 {
-                    return fuzzyConfig.GetPrefixLength();
+                    return fuzzyConfig.PrefixLength;
                 }
             }
             set
             {
-                QueryConfigHandler config = GetQueryConfigHandler();
+                QueryConfigHandler config = QueryConfigHandler;
                 FuzzyConfig fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG);
 
                 if (fuzzyConfig == null)
@@ -316,7 +317,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                     config.Set(ConfigurationKeys.FUZZY_CONFIG, fuzzyConfig);
                 }
 
-                fuzzyConfig.SetPrefixLength(value);
+                fuzzyConfig.PrefixLength = value;
             }
         }
 
@@ -342,25 +343,26 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         //}
 
-        public virtual void SetNumericConfigMap(IDictionary<string, NumericConfig> numericConfigMap)
-        {
-            GetQueryConfigHandler().Set(ConfigurationKeys.NUMERIC_CONFIG_MAP, numericConfigMap);
-        }
+        //public virtual void SetNumericConfigMap(IDictionary<string, NumericConfig> numericConfigMap)
+        //{
+        //    QueryConfigHandler.Set(ConfigurationKeys.NUMERIC_CONFIG_MAP, numericConfigMap);
+        //}
 
-        public virtual IDictionary<string, NumericConfig> GetNumericConfigMap()
+        public virtual IDictionary<string, NumericConfig> NumericConfigMap
         {
-            return GetQueryConfigHandler().Get(ConfigurationKeys.NUMERIC_CONFIG_MAP);
+            get { return QueryConfigHandler.Get(ConfigurationKeys.NUMERIC_CONFIG_MAP); }
+            set { QueryConfigHandler.Set(ConfigurationKeys.NUMERIC_CONFIG_MAP, value); }
         }
 
         public virtual CultureInfo Locale
         {
             get
             {
-                return GetQueryConfigHandler().Get(ConfigurationKeys.LOCALE);
+                return QueryConfigHandler.Get(ConfigurationKeys.LOCALE);
             }
             set
             {
-                GetQueryConfigHandler().Set(ConfigurationKeys.LOCALE, value);
+                QueryConfigHandler.Set(ConfigurationKeys.LOCALE, value);
             }
         }
 
@@ -386,11 +388,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             get
             {
-                return GetQueryConfigHandler().Get(ConfigurationKeys.TIMEZONE);
+                return QueryConfigHandler.Get(ConfigurationKeys.TIMEZONE);
             }
             set
             {
-                GetQueryConfigHandler().Set(ConfigurationKeys.TIMEZONE, value);
+                QueryConfigHandler.Set(ConfigurationKeys.TIMEZONE, value);
             }
         }
 
@@ -414,7 +416,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Obsolete]
         public virtual void SetDefaultPhraseSlop(int defaultPhraseSlop)
         {
-            GetQueryConfigHandler().Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop);
+            QueryConfigHandler.Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop);
         }
 
         ///**
@@ -431,11 +433,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             get
             {
-                return GetQueryConfigHandler().Get(ConfigurationKeys.ANALYZER);
+                return QueryConfigHandler.Get(ConfigurationKeys.ANALYZER);
             }
             set
             {
-                GetQueryConfigHandler().Set(ConfigurationKeys.ANALYZER, value);
+                QueryConfigHandler.Set(ConfigurationKeys.ANALYZER, value);
             }
         }
 
@@ -502,12 +504,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             get
             {
-                int? phraseSlop = GetQueryConfigHandler().Get(ConfigurationKeys.PHRASE_SLOP);
+                int? phraseSlop = QueryConfigHandler.Get(ConfigurationKeys.PHRASE_SLOP);
                 return phraseSlop.HasValue ? phraseSlop.Value : 0;
             }
             set // LUCENENET TODO: obsolete
             {
-                GetQueryConfigHandler().Set(ConfigurationKeys.PHRASE_SLOP, value);
+                QueryConfigHandler.Set(ConfigurationKeys.PHRASE_SLOP, value);
             }
         }
 
@@ -534,12 +536,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             get
             {
-                FuzzyConfig fuzzyConfig = GetQueryConfigHandler().Get(ConfigurationKeys.FUZZY_CONFIG);
-                return (fuzzyConfig != null) ? fuzzyConfig.GetMinSimilarity() : FuzzyQuery.DefaultMinSimilarity;
+                FuzzyConfig fuzzyConfig = QueryConfigHandler.Get(ConfigurationKeys.FUZZY_CONFIG);
+                return (fuzzyConfig != null) ? fuzzyConfig.MinSimilarity : FuzzyQuery.DefaultMinSimilarity;
             }
             set
             {
-                QueryConfigHandler config = GetQueryConfigHandler();
+                QueryConfigHandler config = QueryConfigHandler;
                 FuzzyConfig fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG);
 
                 if (fuzzyConfig == null)
@@ -548,7 +550,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                     config.Set(ConfigurationKeys.FUZZY_CONFIG, fuzzyConfig);
                 }
 
-                fuzzyConfig.SetMinSimilarity(value);
+                fuzzyConfig.MinSimilarity = value;
             }
         }
 
@@ -571,36 +573,37 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         //    fuzzyConfig.SetMinSimilarity(fuzzyMinSim);
         //}
 
-        /**
-         * Sets the boost used for each field.
-         * 
-         * @param boosts a collection that maps a field to its boost 
-         */
-        public virtual void SetFieldsBoost(IDictionary<string, float?> boosts)
-        {
-            GetQueryConfigHandler().Set(ConfigurationKeys.FIELD_BOOST_MAP, boosts);
-        }
+        ///**
+        // * Sets the boost used for each field.
+        // * 
+        // * @param boosts a collection that maps a field to its boost 
+        // */
+        //public virtual void SetFieldsBoost(IDictionary<string, float?> boosts)
+        //{
+        //    QueryConfigHandler.Set(ConfigurationKeys.FIELD_BOOST_MAP, boosts);
+        //}
 
         /**
          * Returns the field to boost map used to set boost for each field.
          * 
          * @return the field to boost map 
          */
-        public virtual IDictionary<string, float?> GetFieldsBoost()
+        public virtual IDictionary<string, float?> FieldsBoost
         {
-            return GetQueryConfigHandler().Get(ConfigurationKeys.FIELD_BOOST_MAP);
+            get { return QueryConfigHandler.Get(ConfigurationKeys.FIELD_BOOST_MAP); }
+            set { QueryConfigHandler.Set(ConfigurationKeys.FIELD_BOOST_MAP, value); }
         }
 
-        /**
-         * Sets the default {@link Resolution} used for certain field when
-         * no {@link Resolution} is defined for this field.
-         * 
-         * @param dateResolution the default {@link Resolution}
-         */
+        ///**
+        // * Sets the default {@link Resolution} used for certain field when
+        // * no {@link Resolution} is defined for this field.
+        // * 
+        // * @param dateResolution the default {@link Resolution}
+        // */
 
         public virtual void SetDateResolution(DateTools.Resolution dateResolution)
         {
-            GetQueryConfigHandler().Set(ConfigurationKeys.DATE_RESOLUTION, dateResolution);
+            QueryConfigHandler.Set(ConfigurationKeys.DATE_RESOLUTION, dateResolution);
         }
 
         /**
@@ -609,9 +612,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @return the default {@link Resolution}
          */
-        public virtual DateTools.Resolution? GetDateResolution()
+        public virtual DateTools.Resolution DateResolution
         {
-            return GetQueryConfigHandler().Get(ConfigurationKeys.DATE_RESOLUTION);
+            get { return QueryConfigHandler.Get(ConfigurationKeys.DATE_RESOLUTION); }
         }
 
         /**
@@ -624,7 +627,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Obsolete]
         public virtual void SetDateResolution(IDictionary<string, DateTools.Resolution?> dateRes)
         {
-            SetDateResolutionMap(dateRes);
+            DateResolutionMap = dateRes;
         }
 
         /**
@@ -632,19 +635,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @return the field to {@link Resolution} map
          */
-        public virtual IDictionary<string, DateTools.Resolution?> GetDateResolutionMap()
+        public virtual IDictionary<string, DateTools.Resolution?> DateResolutionMap
         {
-            return GetQueryConfigHandler().Get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP);
+            get { return QueryConfigHandler.Get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP); }
+            set { QueryConfigHandler.Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, value); }
         }
 
-        /**
-         * Sets the {@link Resolution} used for each field
-         * 
-         * @param dateRes a collection that maps a field to its {@link Resolution}
-         */
-        public virtual void SetDateResolutionMap(IDictionary<string, DateTools.Resolution?> dateRes)
-        {
-            GetQueryConfigHandler().Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, dateRes);
-        }
+        ///**
+        // * Sets the {@link Resolution} used for each field
+        // * 
+        // * @param dateRes a collection that maps a field to its {@link Resolution}
+        // */
+        //public virtual void SetDateResolutionMap(IDictionary<string, DateTools.Resolution?> dateRes)
+        //{
+        //    QueryConfigHandler.Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, dateRes);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
index a09f296..bc276ed 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             IQueryNode node = new FieldQueryNode("foo", "A", 0, 1);
 
             node.SetTag("TaG", new Object());
-            assertTrue(node.GetTagMap().size() > 0);
+            assertTrue(node.TagMap.size() > 0);
             assertTrue(node.ContainsTag("tAg"));
             assertTrue(node.GetTag("tAg") != null);
 
@@ -42,19 +42,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         {
             BooleanQueryNode booleanNode = new BooleanQueryNode(Collections.EmptyList<IQueryNode>());
             FieldQueryNode fieldNode = new FieldQueryNode("foo", "A", 0, 1);
-            assertNull(fieldNode.GetParent());
+            assertNull(fieldNode.Parent);
 
             booleanNode.Add(fieldNode);
-            assertNotNull(fieldNode.GetParent());
+            assertNotNull(fieldNode.Parent);
 
             fieldNode.RemoveFromParent();
-            assertNull(fieldNode.GetParent());
+            assertNull(fieldNode.Parent);
 
             booleanNode.Add(fieldNode);
-            assertNotNull(fieldNode.GetParent());
+            assertNotNull(fieldNode.Parent);
 
             booleanNode.Set(Collections.EmptyList<IQueryNode>());
-            assertNull(fieldNode.GetParent());
+            assertNull(fieldNode.Parent);
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
index 029f2bb..4c48617 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
@@ -129,7 +129,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
                 a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
             PrecedenceQueryParser qp = new PrecedenceQueryParser();
             qp.Analyzer = (a);
-            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.OR); // LUCENENET TODO: Change API back to the way it was..?
+            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.OR); // LUCENENET TODO: Change API back to the way it was..?
             return qp;
         }
 
@@ -181,7 +181,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
                 a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
             PrecedenceQueryParser qp = new PrecedenceQueryParser();
             qp.Analyzer = (a);
-            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
             return qp.Parse(query, "field");
         }
 
@@ -244,11 +244,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
             PrecedenceQueryParser qp = new PrecedenceQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random()));
             // make sure OR is the default:
-            assertEquals(/*StandardQueryConfigHandler.*/Operator.OR, qp.GetDefaultOperator());
-            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/ Operator.AND);
-            assertEquals(/*StandardQueryConfigHandler.*/ Operator.AND, qp.GetDefaultOperator());
-            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/ Operator.OR);
-            assertEquals(/*StandardQueryConfigHandler.*/ Operator.OR, qp.GetDefaultOperator());
+            assertEquals(/*StandardQueryConfigHandler.*/Operator.OR, qp.DefaultOperator);
+            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/ Operator.AND);
+            assertEquals(/*StandardQueryConfigHandler.*/ Operator.AND, qp.DefaultOperator);
+            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/ Operator.OR);
+            assertEquals(/*StandardQueryConfigHandler.*/ Operator.OR, qp.DefaultOperator);
 
             assertQueryEquals("a OR !b", null, "a -b");
             assertQueryEquals("a OR ! b", null, "a -b");
@@ -694,7 +694,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
             query2 = parser.Parse("A (-B +C)", "field");
             assertEquals(query1, query2);
 
-            parser.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            parser.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
             query1 = parser.Parse("A AND B OR C AND D", "field");
             query2 = parser.Parse("(A AND B) OR (C AND D)", "field");
             assertEquals(query1, query2);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
index d67bcb7..850e52b 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
@@ -85,7 +85,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             qp.SetDefaultPhraseSlop(0);
 
             // non-default operator:
-            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
             assertEquals("+(multi multi2) +foo", qp.Parse("multi foo", "").toString());
 
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
index 9ed9397..e62d5bc 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
@@ -118,7 +118,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals("(b:one t:one) f:two", q.toString());
 
             // AND mode:
-            mfqp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            mfqp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
             q = mfqp.Parse("one two", null);
             assertEquals("+(b:one t:one) +(b:two t:two)", q.toString());
             q = mfqp.Parse("\"aa bb cc\" \"dd ee\"", null);
@@ -136,7 +136,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             String[] fields = { "b", "t" };
             StandardQueryParser mfqp = new StandardQueryParser();
             mfqp.SetMultiFields(fields);
-            mfqp.SetFieldsBoost(boosts);
+            mfqp.FieldsBoost = (boosts);
             mfqp.Analyzer = (new MockAnalyzer(Random()));
 
             // Check for simple
@@ -361,7 +361,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             mfqp.SetMultiFields(new String[] { "body" });
             mfqp.Analyzer = (analyzer);
-            mfqp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            mfqp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
             Query q = mfqp.Parse("the footest", null);
             IndexReader ir = DirectoryReader.Open(ramDir);
             IndexSearcher @is = NewSearcher(ir);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
index c59896f..849f826 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -122,7 +122,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             public QPTestParser(Analyzer a)
             {
-                ((QueryNodeProcessorPipeline)GetQueryNodeProcessor())
+                ((QueryNodeProcessorPipeline)QueryNodeProcessor)
                     .Add(new QPTestParserQueryNodeProcessor());
                 this.Analyzer = (a);
 
@@ -184,7 +184,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (a);
 
-            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.OR);
+            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.OR);
 
             return qp;
 
@@ -286,7 +286,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (a);
-            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
 
             return qp.Parse(query, "field");
 
@@ -1424,7 +1424,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             StandardQueryParser parser = new StandardQueryParser();
             parser.SetMultiFields(fields);
-            parser.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            parser.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
             parser.Analyzer = (new MockAnalyzer(Random()));
 
             BooleanQuery exp = new BooleanQuery();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
index 5ceeff1..fd61069 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
@@ -28,7 +28,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             if (a == null) a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
             StandardQueryParser qp = new StandardQueryParser(a);
-            qp.SetDefaultOperator(Config.Operator.OR);
+            qp.DefaultOperator = (Config.Operator.OR);
 
             return qp;
         }
@@ -70,7 +70,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             Debug.Assert(cqpC is StandardQueryParser);
             StandardQueryParser qp = (StandardQueryParser)cqpC;
-            qp.SetDefaultOperator(Config.Operator.OR);
+            qp.DefaultOperator = (Config.Operator.OR);
         }
 
 
@@ -78,7 +78,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             Debug.Assert(cqpC is StandardQueryParser);
             StandardQueryParser qp = (StandardQueryParser)cqpC;
-            qp.SetDefaultOperator(Config.Operator.AND);
+            qp.DefaultOperator = (Config.Operator.AND);
         }
 
 
@@ -101,7 +101,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             Debug.Assert(cqpC is StandardQueryParser);
             StandardQueryParser qp = (StandardQueryParser)cqpC;
-            qp.GetDateResolutionMap().Put(field, value);
+            qp.DateResolutionMap.Put(field, value);
         }
 
 
@@ -203,11 +203,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             StandardQueryParser qp = GetParser(new MockAnalyzer(Random()));
             // make sure OR is the default:
-            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.OR, qp.GetDefaultOperator());
+            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.OR, qp.DefaultOperator);
             SetDefaultOperatorAND(qp);
-            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.AND, qp.GetDefaultOperator());
+            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.AND, qp.DefaultOperator);
             SetDefaultOperatorOR(qp);
-            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.OR, qp.GetDefaultOperator());
+            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.OR, qp.DefaultOperator);
         }
 
 


[18/58] lucenenet git commit: QueryParser.Flexible Refactor: Nested Operator enum within StandardQueryConfigHandler

Posted by ni...@apache.org.
QueryParser.Flexible Refactor: Nested Operator enum within StandardQueryConfigHandler


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

Branch: refs/heads/master
Commit: 67cd44821161b042cb768a98cefe236cc44ae6bd
Parents: 0aa30ca
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Nov 29 22:48:39 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Nov 29 22:48:39 2016 +0700

----------------------------------------------------------------------
 .../BooleanModifiersQueryNodeProcessor.cs         |  3 ++-
 .../Standard/Config/StandardQueryConfigHandler.cs | 18 +++++++++---------
 .../Processors/AnalyzerQueryNodeProcessor.cs      | 10 +++++-----
 .../BooleanQuery2ModifierNodeProcessor.cs         |  1 +
 .../Processors/GroupQueryNodeProcessor.cs         |  1 +
 .../Flexible/Standard/StandardQueryParser.cs      |  1 +
 .../Precedence/TestPrecedenceQueryParser.cs       | 16 ++++++++--------
 .../Standard/TestMultiAnalyzerQPHelper.cs         |  2 +-
 .../Flexible/Standard/TestMultiFieldQPHelper.cs   |  4 ++--
 .../Flexible/Standard/TestQPHelper.cs             |  6 +++---
 .../Flexible/Standard/TestStandardQP.cs           | 18 +++++++++---------
 11 files changed, 42 insertions(+), 38 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
index 02fd07b..a08a580 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
@@ -6,6 +6,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
 {
@@ -67,7 +68,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
 
             }
             else if (this.usingAnd && node is BooleanQueryNode
-              && !(node is OrQueryNode))
+                && !(node is OrQueryNode))
             {
 
                 this.childrenBuffer.Clear();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
index a3e10af..ddfad70 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
@@ -45,6 +45,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, new HashMap<string, DateTools.Resolution?>());
 
         }
+
+        /**
+        * Boolean Operator: AND or OR
+        */
+        public enum Operator
+        {
+            AND,
+            OR
+        }
     }
 
     /**
@@ -188,13 +197,4 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
         public readonly static ConfigurationKey<IDictionary<string, NumericConfig>> NUMERIC_CONFIG_MAP = ConfigurationKey.NewInstance<IDictionary<string, NumericConfig>>();
 
     }
-
-    /**
-     * Boolean Operator: AND or OR
-     */
-    public enum Operator
-    {
-        AND,
-        OR
-    }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
index 2e050ed..bbfccea 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
@@ -13,7 +13,7 @@ using System.IO;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
-using static Lucene.Net.QueryParsers.Classic.QueryParserBase;
+using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {
@@ -44,7 +44,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
         private bool positionIncrementsEnabled;
 
-        private Config.Operator defaultOperator;
+        private Operator defaultOperator;
 
         public AnalyzerQueryNodeProcessor()
         {
@@ -62,7 +62,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 this.positionIncrementsEnabled = false;
                 bool? positionIncrementsEnabled = GetQueryConfigHandler().Get(ConfigurationKeys.ENABLE_POSITION_INCREMENTS);
                 var defaultOperator = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);
-                this.defaultOperator = defaultOperator != null ? defaultOperator.Value : Config.Operator.OR;
+                this.defaultOperator = defaultOperator != null ? defaultOperator.Value : Operator.OR;
 
                 if (positionIncrementsEnabled != null)
                 {
@@ -249,7 +249,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                 {
                                     if (currentQuery != null)
                                     {
-                                        if (this.defaultOperator == Config.Operator.OR)
+                                        if (this.defaultOperator == Operator.OR)
                                         {
                                             q.Add(currentQuery);
                                         }
@@ -261,7 +261,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                     currentQuery = new FieldQueryNode(field, term, -1, -1);
                                 }
                             }
-                            if (this.defaultOperator == Config.Operator.OR)
+                            if (this.defaultOperator == Operator.OR)
                             {
                                 q.Add(currentQuery);
                             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
index 6c5ed50..e6d392f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
@@ -8,6 +8,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
index d99c5b7..dcc6f44 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
@@ -8,6 +8,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index 9819378..498ea99 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -13,6 +13,7 @@ using System.Globalization;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
index 4c48617..6a3db29 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
@@ -129,7 +129,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
                 a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
             PrecedenceQueryParser qp = new PrecedenceQueryParser();
             qp.Analyzer = (a);
-            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.OR); // LUCENENET TODO: Change API back to the way it was..?
+            qp.DefaultOperator = (StandardQueryConfigHandler.Operator.OR); // LUCENENET TODO: Change API back to the way it was..?
             return qp;
         }
 
@@ -181,7 +181,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
                 a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
             PrecedenceQueryParser qp = new PrecedenceQueryParser();
             qp.Analyzer = (a);
-            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
+            qp.DefaultOperator = (StandardQueryConfigHandler.Operator.AND);
             return qp.Parse(query, "field");
         }
 
@@ -244,11 +244,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
             PrecedenceQueryParser qp = new PrecedenceQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random()));
             // make sure OR is the default:
-            assertEquals(/*StandardQueryConfigHandler.*/Operator.OR, qp.DefaultOperator);
-            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/ Operator.AND);
-            assertEquals(/*StandardQueryConfigHandler.*/ Operator.AND, qp.DefaultOperator);
-            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/ Operator.OR);
-            assertEquals(/*StandardQueryConfigHandler.*/ Operator.OR, qp.DefaultOperator);
+            assertEquals(StandardQueryConfigHandler.Operator.OR, qp.DefaultOperator);
+            qp.DefaultOperator = (StandardQueryConfigHandler.Operator.AND);
+            assertEquals(StandardQueryConfigHandler.Operator.AND, qp.DefaultOperator);
+            qp.DefaultOperator = (StandardQueryConfigHandler.Operator.OR);
+            assertEquals(StandardQueryConfigHandler.Operator.OR, qp.DefaultOperator);
 
             assertQueryEquals("a OR !b", null, "a -b");
             assertQueryEquals("a OR ! b", null, "a -b");
@@ -694,7 +694,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
             query2 = parser.Parse("A (-B +C)", "field");
             assertEquals(query1, query2);
 
-            parser.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
+            parser.DefaultOperator = (StandardQueryConfigHandler.Operator.AND);
             query1 = parser.Parse("A AND B OR C AND D", "field");
             query2 = parser.Parse("(A AND B) OR (C AND D)", "field");
             assertEquals(query1, query2);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
index 850e52b..b5ab71c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
@@ -85,7 +85,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             qp.SetDefaultPhraseSlop(0);
 
             // non-default operator:
-            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
+            qp.DefaultOperator = (StandardQueryConfigHandler.Operator.AND);
             assertEquals("+(multi multi2) +foo", qp.Parse("multi foo", "").toString());
 
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
index e62d5bc..351be88 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
@@ -118,7 +118,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals("(b:one t:one) f:two", q.toString());
 
             // AND mode:
-            mfqp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
+            mfqp.DefaultOperator = (StandardQueryConfigHandler.Operator.AND);
             q = mfqp.Parse("one two", null);
             assertEquals("+(b:one t:one) +(b:two t:two)", q.toString());
             q = mfqp.Parse("\"aa bb cc\" \"dd ee\"", null);
@@ -361,7 +361,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             mfqp.SetMultiFields(new String[] { "body" });
             mfqp.Analyzer = (analyzer);
-            mfqp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
+            mfqp.DefaultOperator = (StandardQueryConfigHandler.Operator.AND);
             Query q = mfqp.Parse("the footest", null);
             IndexReader ir = DirectoryReader.Open(ramDir);
             IndexSearcher @is = NewSearcher(ir);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
index 849f826..b1cae18 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -184,7 +184,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (a);
 
-            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.OR);
+            qp.DefaultOperator = (StandardQueryConfigHandler.Operator.OR);
 
             return qp;
 
@@ -286,7 +286,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (a);
-            qp.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
+            qp.DefaultOperator = (StandardQueryConfigHandler.Operator.AND);
 
             return qp.Parse(query, "field");
 
@@ -1424,7 +1424,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             StandardQueryParser parser = new StandardQueryParser();
             parser.SetMultiFields(fields);
-            parser.DefaultOperator = (/*StandardQueryConfigHandler.*/Operator.AND);
+            parser.DefaultOperator = (StandardQueryConfigHandler.Operator.AND);
             parser.Analyzer = (new MockAnalyzer(Random()));
 
             BooleanQuery exp = new BooleanQuery();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67cd4482/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
index fd61069..61de93d 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
@@ -10,12 +10,12 @@ using System.Diagnostics;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
-using static Lucene.Net.Documents.DateTools;
-using static Lucene.Net.QueryParsers.Classic.QueryParserBase;
+using Lucene.Net.Documents;
 using System.IO;
 using Lucene.Net.Index;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using NUnit.Framework;
+using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
@@ -28,7 +28,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             if (a == null) a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
             StandardQueryParser qp = new StandardQueryParser(a);
-            qp.DefaultOperator = (Config.Operator.OR);
+            qp.DefaultOperator = (Operator.OR);
 
             return qp;
         }
@@ -70,7 +70,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             Debug.Assert(cqpC is StandardQueryParser);
             StandardQueryParser qp = (StandardQueryParser)cqpC;
-            qp.DefaultOperator = (Config.Operator.OR);
+            qp.DefaultOperator = (Operator.OR);
         }
 
 
@@ -78,7 +78,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             Debug.Assert(cqpC is StandardQueryParser);
             StandardQueryParser qp = (StandardQueryParser)cqpC;
-            qp.DefaultOperator = (Config.Operator.AND);
+            qp.DefaultOperator = (Operator.AND);
         }
 
 
@@ -97,7 +97,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
 
         public override void SetDateResolution(ICommonQueryParserConfiguration cqpC,
-            string field, Resolution value)
+            string field, DateTools.Resolution value)
         {
             Debug.Assert(cqpC is StandardQueryParser);
             StandardQueryParser qp = (StandardQueryParser)cqpC;
@@ -203,11 +203,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             StandardQueryParser qp = GetParser(new MockAnalyzer(Random()));
             // make sure OR is the default:
-            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.OR, qp.DefaultOperator);
+            assertEquals(StandardQueryConfigHandler.Operator.OR, qp.DefaultOperator);
             SetDefaultOperatorAND(qp);
-            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.AND, qp.DefaultOperator);
+            assertEquals(StandardQueryConfigHandler.Operator.AND, qp.DefaultOperator);
             SetDefaultOperatorOR(qp);
-            assertEquals(/*StandardQueryConfigHandler.*/Config.Operator.OR, qp.DefaultOperator);
+            assertEquals(StandardQueryConfigHandler.Operator.OR, qp.DefaultOperator);
         }
 
 


[10/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
new file mode 100644
index 0000000..264f9fd
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
@@ -0,0 +1,233 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link PathQueryNode} is used to store queries like
+    /// /company/USA/California /product/shoes/brown. QueryText are objects that
+    /// contain the text, begin position and end position in the query.
+    /// <para>
+    /// Example how the text parser creates these objects:
+    /// </para>
+    /// <code>
+    /// List values = new List();
+    /// values.add(new PathQueryNode.QueryText("company", 1, 7));
+    /// values.add(new PathQueryNode.QueryText("USA", 9, 12));
+    /// values.add(new PathQueryNode.QueryText("California", 14, 23));
+    /// QueryNode q = new PathQueryNode(values);
+    /// </code>
+    /// 
+    /// </summary>
+    public class PathQueryNode : QueryNodeImpl
+    {
+        /**
+   * Term text with a beginning and end position
+   */
+        public class QueryText : ICloneable
+        {
+            internal string value = null;
+            /**
+             * != null The term's begin position.
+             */
+            internal int begin;
+
+            /**
+             * The term's end position.
+             */
+            internal int end;
+
+            /**
+             * @param value
+             *          - text value
+             * @param begin
+             *          - position in the query string
+             * @param end
+             *          - position in the query string
+             */
+            public QueryText(string value, int begin, int end)
+                : base()
+            {
+                this.value = value;
+                this.begin = begin;
+                this.end = end;
+            }
+
+
+            public virtual /*QueryText*/ object Clone()
+            {
+                QueryText clone = (QueryText)this.MemberwiseClone();
+                clone.value = this.value;
+                clone.begin = this.begin;
+                clone.end = this.end;
+                return clone;
+            }
+
+            /**
+             * @return the value
+             */
+            public string GetValue()
+            {
+                return value;
+            }
+
+            /**
+             * @return the begin
+             */
+            public int GetBegin()
+            {
+                return begin;
+            }
+
+            /**
+             * @return the end
+             */
+            public int GetEnd()
+            {
+                return end;
+            }
+
+            public override string ToString()
+            {
+                return value + ", " + begin + ", " + end;
+            }
+        }
+
+        private IList<QueryText> values = null;
+
+        /**
+         * @param pathElements
+         *          - List of QueryText objects
+         */
+        public PathQueryNode(IList<QueryText> pathElements)
+        {
+            this.values = pathElements;
+            if (pathElements.Count <= 1)
+            {
+                // this should not happen
+                throw new Exception(
+                    "PathQuerynode requires more 2 or more path elements.");
+            }
+        }
+
+        /**
+         * Returns the a List with all QueryText elements
+         * 
+         * @return QueryText List size
+         */
+        public IList<QueryText> GetPathElements()
+        {
+            return values;
+        }
+
+        /**
+         * Returns the a List with all QueryText elements
+         */
+        public void SetPathElements(IList<QueryText> elements)
+        {
+            this.values = elements;
+        }
+
+        /**
+         * Returns the a specific QueryText element
+         * 
+         * @return QueryText List size
+         */
+        public QueryText GetPathElement(int index)
+        {
+            return values[index];
+        }
+
+        /**
+         * Returns the CharSequence value of a specific QueryText element
+         * 
+         * @return the CharSequence for a specific QueryText element
+         */
+        public string GetFirstPathElement()
+        {
+            return values[0].value;
+        }
+
+        /**
+         * Returns a List QueryText element from position startIndex
+         * 
+         * @return a List QueryText element from position startIndex
+         */
+        public IList<QueryText> GetPathElements(int startIndex)
+        {
+            List<PathQueryNode.QueryText> rValues = new List<PathQueryNode.QueryText>();
+            for (int i = startIndex; i < this.values.Count; i++)
+            {
+                //try
+                //{
+                rValues.Add((QueryText)this.values[i].Clone());
+                //}
+                //catch (CloneNotSupportedException e)
+                //{
+                //    // this will not happen
+                //}
+            }
+            return rValues;
+        }
+
+        private string GetPathString()
+        {
+            StringBuilder path = new StringBuilder();
+
+            foreach (QueryText pathelement in values)
+            {
+                path.Append("/").Append(pathelement.value);
+            }
+            return path.ToString();
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escaper)
+        {
+            StringBuilder path = new StringBuilder();
+            path.Append("/").Append(GetFirstPathElement());
+
+            foreach (QueryText pathelement in GetPathElements(1))
+            {
+                string value = escaper.Escape(new StringCharSequenceWrapper(pathelement.value), 
+                    CultureInfo.InvariantCulture, EscapeQuerySyntax.Type.STRING).ToString();
+                path.Append("/\"").Append(value).Append("\"");
+            }
+            return path.ToString();
+        }
+
+
+        public override string ToString()
+        {
+            QueryText text = this.values[0];
+
+            return "<path start='" + text.begin + "' end='" + text.end + "' path='"
+                + GetPathString() + "'/>";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            PathQueryNode clone = (PathQueryNode)base.CloneTree();
+
+            // copy children
+            if (this.values != null)
+            {
+                List<QueryText> localValues = new List<QueryText>();
+                foreach (QueryText value in this.values)
+                {
+                    localValues.Add((QueryText)value.Clone());
+                }
+                clone.values = localValues;
+            }
+
+            return clone;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
new file mode 100644
index 0000000..63b19c1
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
@@ -0,0 +1,106 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// Query node for <see cref="PhraseQuery"/>'s slop factor.
+    /// </summary>
+    public class PhraseSlopQueryNode : QueryNodeImpl, IFieldableNode
+    {
+        private int value = 0;
+
+        /**
+         * @exception QueryNodeError throw in overridden method to disallow
+         */
+        public PhraseSlopQueryNode(IQueryNode query, int value)
+        {
+            if (query == null)
+            {
+                throw new QueryNodeError(new MessageImpl(
+                    QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, "query", "null"));
+            }
+
+            this.value = value;
+            SetLeaf(false);
+            Allocate();
+            Add(query);
+        }
+
+        public IQueryNode GetChild()
+        {
+            return GetChildren()[0];
+        }
+
+        public int GetValue()
+        {
+            return this.value;
+        }
+
+        private string GetValueString()
+        {
+            float f = this.value;
+            if (f == (long)f)
+                return "" + (long)f;
+            else
+                return "" + f;
+
+        }
+
+
+        public override string ToString()
+        {
+            return "<phraseslop value='" + GetValueString() + "'>" + "\n"
+                + GetChild().ToString() + "\n</phraseslop>";
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChild() == null)
+                return "";
+            return GetChild().ToQueryString(escapeSyntaxParser) + "~"
+                + GetValueString();
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            PhraseSlopQueryNode clone = (PhraseSlopQueryNode)base.CloneTree();
+
+            clone.value = this.value;
+
+            return clone;
+        }
+
+        public virtual string Field
+        {
+            get
+            {
+                IQueryNode child = GetChild();
+
+                if (child is IFieldableNode)
+                {
+                    return ((IFieldableNode)child).Field;
+                }
+
+                return null;
+            }
+            set
+            {
+                IQueryNode child = GetChild();
+
+                if (child is IFieldableNode)
+                {
+                    ((IFieldableNode)child).Field = value;
+                }
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
new file mode 100644
index 0000000..da1bf0b
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
@@ -0,0 +1,288 @@
+\ufeff//using System;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link ProximityQueryNode} represents a query where the terms should meet
+    /// specific distance conditions. (a b c) WITHIN [SENTENCE|PARAGRAPH|NUMBER]
+    /// [INORDER] ("a" "b" "c") WITHIN [SENTENCE|PARAGRAPH|NUMBER] [INORDER]
+    /// 
+    /// TODO: Add this to the future standard Lucene parser/processor/builder
+    /// </summary>
+    public class ProximityQueryNode : BooleanQueryNode
+    {
+        /**
+   * Distance condition: PARAGRAPH, SENTENCE, or NUMBER
+   */
+
+        public enum Type
+        {
+            PARAGRAPH,
+            SENTENCE,
+            NUMBER
+        }
+
+        //        public enum Type
+        //        {
+        //            PARAGRAPH /*{
+        //      @Override
+        //            CharSequence toQueryString() { return "WITHIN PARAGRAPH";
+        //        }
+        //    }*/,
+        //            SENTENCE  /*{ 
+        //      @Override
+        //      CharSequence toQueryString() { return "WITHIN SENTENCE"; }
+        //}*/,
+        //            NUMBER   /* {
+        //      @Override
+        //      CharSequence toQueryString() { return "WITHIN"; }
+        //    };*/
+        //        }
+
+        // LUCENENET TODO: Implement this on enum
+        //    internal abstract string ToQueryString();
+        //}
+
+        /** utility class containing the distance condition and number */
+        public class ProximityType
+        {
+            internal int pDistance = 0;
+
+            ProximityQueryNode.Type pType/* = null*/;
+
+            public ProximityType(ProximityQueryNode.Type type)
+                    : this(type, 0)
+            {
+            }
+
+            public ProximityType(ProximityQueryNode.Type type, int distance)
+            {
+                this.pType = type;
+                this.pDistance = distance;
+            }
+        }
+
+        private ProximityQueryNode.Type proximityType = ProximityQueryNode.Type.SENTENCE;
+        private int distance = -1;
+        private bool inorder = false;
+        private string field = null;
+
+        /**
+         * @param clauses
+         *          - QueryNode children
+         * @param field
+         *          - field name
+         * @param type
+         *          - type of proximity query
+         * @param distance
+         *          - positive integer that specifies the distance
+         * @param inorder
+         *          - true, if the tokens should be matched in the order of the
+         *          clauses
+         */
+        public ProximityQueryNode(IList<IQueryNode> clauses, string field,
+            ProximityQueryNode.Type type, int distance, bool inorder)
+            : base(clauses)
+        {
+
+            SetLeaf(false);
+            this.proximityType = type;
+            this.inorder = inorder;
+            this.field = field;
+            if (type == ProximityQueryNode.Type.NUMBER)
+            {
+                if (distance <= 0)
+                {
+                    throw new QueryNodeError(new MessageImpl(
+                        QueryParserMessages.PARAMETER_VALUE_NOT_SUPPORTED, "distance",
+                        distance));
+
+                }
+                else
+                {
+                    this.distance = distance;
+                }
+
+            }
+            ClearFields(clauses, field);
+        }
+
+        /**
+         * @param clauses
+         *          - QueryNode children
+         * @param field
+         *          - field name
+         * @param type
+         *          - type of proximity query
+         * @param inorder
+         *          - true, if the tokens should be matched in the order of the
+         *          clauses
+         */
+        public ProximityQueryNode(IList<IQueryNode> clauses, string field,
+            ProximityQueryNode.Type type, bool inorder)
+            : this(clauses, field, type, -1, inorder)
+        {
+
+        }
+
+        private static void ClearFields(IList<IQueryNode> nodes, string field)
+        {
+            if (nodes == null || nodes.Count == 0)
+                return;
+
+            foreach (IQueryNode clause in nodes)
+            {
+
+                if (clause is FieldQueryNode)
+                {
+                    ((FieldQueryNode)clause).toQueryStringIgnoreFields = true;
+                    ((FieldQueryNode)clause).Field = field;
+                }
+            }
+        }
+
+        public ProximityQueryNode.Type GetProximityType()
+        {
+            return this.proximityType;
+        }
+
+        public override string ToString()
+        {
+            string distanceSTR = ((this.distance == -1) ? ("")
+                : (" distance='" + this.distance) + "'");
+
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "<proximity field='" + this.field + "' inorder='" + this.inorder
+                    + "' type='" + this.proximityType.ToString() + "'" + distanceSTR
+                    + "/>";
+            StringBuilder sb = new StringBuilder();
+            sb.Append("<proximity field='" + this.field + "' inorder='" + this.inorder
+                + "' type='" + this.proximityType.ToString() + "'" + distanceSTR + ">");
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append("\n");
+                sb.Append(child.ToString());
+            }
+            sb.Append("\n</proximity>");
+            return sb.ToString();
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            string withinSTR = this.proximityType.ToQueryString()
+                + ((this.distance == -1) ? ("") : (" " + this.distance))
+                + ((this.inorder) ? (" INORDER") : (""));
+
+            StringBuilder sb = new StringBuilder();
+            if (GetChildren() == null || GetChildren().Count == 0)
+            {
+                // no children case
+            }
+            else
+            {
+                string filler = "";
+                foreach (IQueryNode child in GetChildren())
+                {
+                    sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
+                    filler = " ";
+                }
+            }
+
+            if (IsDefaultField(this.field))
+            {
+                return "( " + sb.ToString() + " ) " + withinSTR;
+            }
+            else
+            {
+                return this.field + ":(( " + sb.ToString() + " ) " + withinSTR + ")";
+            }
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            ProximityQueryNode clone = (ProximityQueryNode)base.CloneTree();
+
+            clone.proximityType = this.proximityType;
+            clone.distance = this.distance;
+            clone.field = this.field;
+
+            return clone;
+        }
+
+        /**
+         * @return the distance
+         */
+        public int GetDistance()
+        {
+            return this.distance;
+        }
+
+        /**
+         * returns null if the field was not specified in the query string
+         * 
+         * @return the field
+         */
+        public string GetField()
+        {
+            return this.field;
+        }
+
+        /**
+         * returns null if the field was not specified in the query string
+         * 
+         * @return the field
+         */
+        public string GetFieldAsString()
+        {
+            if (this.field == null)
+                return null;
+            else
+                return this.field.ToString();
+        }
+
+        /**
+         * @param field
+         *          the field to set
+         */
+        public void SetField(string field)
+        {
+            this.field = field;
+        }
+
+        /**
+         * @return terms must be matched in the specified order
+         */
+        public bool IsInOrder()
+        {
+            return this.inorder;
+        }
+    }
+
+    public static class ProximityQueryNode_TypeExtensions
+    {
+        public static string ToQueryString(this ProximityQueryNode.Type type)
+        {
+            switch (type)
+            {
+                case ProximityQueryNode.Type.NUMBER:
+                    return "WITHIN";
+                case ProximityQueryNode.Type.PARAGRAPH:
+                    return "WITHIN PARAGRAPH";
+                case ProximityQueryNode.Type.SENTENCE:
+                    return "WITHIN SENTENCE";
+            }
+
+            throw new ArgumentException("Invalid ProximityQueryNode.Type");
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
new file mode 100644
index 0000000..ad641eb
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
@@ -0,0 +1,84 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Lucene.Net.Search;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link QueryNode} is a interface implemented by all nodes on a QueryNode
+    /// tree.
+    /// </summary>
+    public interface IQueryNode
+    {
+        /** convert to a query string understood by the query parser */
+        // TODO: this interface might be changed in the future
+        string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser);
+
+        /** for printing */
+        
+  //public override string ToString();
+
+        /** get Children nodes */
+        IList<IQueryNode> GetChildren();
+
+        /** verify if a node is a Leaf node */
+        bool IsLeaf();
+
+        /** verify if a node contains a tag */
+        bool ContainsTag(string tagName);
+
+        /**
+         * Returns object stored under that tag name
+         */
+        object GetTag(string tagName);
+
+        IQueryNode GetParent();
+
+        /**
+         * Recursive clone the QueryNode tree The tags are not copied to the new tree
+         * when you call the cloneTree() method
+         * 
+         * @return the cloned tree
+         */
+        IQueryNode CloneTree();
+
+        // Below are the methods that can change state of a QueryNode
+        // Write Operations (not Thread Safe)
+
+        // add a new child to a non Leaf node
+        void Add(IQueryNode child);
+
+        void Add(IList<IQueryNode> children);
+
+        // reset the children of a node
+        void Set(IList<IQueryNode> children);
+
+        /**
+         * Associate the specified value with the specified tagName. If the tagName
+         * already exists, the old value is replaced. The tagName and value cannot be
+         * null. tagName will be converted to lowercase.
+         */
+        void SetTag(string tagName, object value);
+
+        /**
+         * Unset a tag. tagName will be converted to lowercase.
+         */
+        void UnsetTag(string tagName);
+
+        /**
+         * Returns a map containing all tags attached to this query node. 
+         * 
+         * @return a map containing all tags attached to this query node
+         */
+        IDictionary<string, object> GetTagMap();
+
+        /**
+         * Removes this query node from its parent.
+         */
+        void RemoveFromParent();
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
new file mode 100644
index 0000000..31186de
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
@@ -0,0 +1,292 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link QueryNodeImpl} is the default implementation of the interface
+    /// {@link QueryNode}
+    /// </summary>
+    public abstract class QueryNodeImpl : IQueryNode, ICloneable
+    {
+        /* index default field */
+        // TODO remove PLAINTEXT_FIELD_NAME replacing it with configuration APIs
+        public static readonly string PLAINTEXT_FIELD_NAME = "_plain";
+
+        private bool isLeaf = true;
+
+        private Dictionary<string, object> tags = new Dictionary<string, object>();
+
+        private List<IQueryNode> clauses = null;
+
+        protected virtual void Allocate()
+        {
+
+            if (this.clauses == null)
+            {
+                this.clauses = new List<IQueryNode>();
+
+            }
+            else
+            {
+                this.clauses.Clear();
+            }
+
+        }
+
+        public void Add(IQueryNode child)
+        {
+
+            if (IsLeaf() || this.clauses == null || child == null)
+            {
+                throw new ArgumentException(NLS
+                    .GetLocalizedMessage(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED));
+            }
+
+            this.clauses.Add(child);
+            ((QueryNodeImpl)child).SetParent(this);
+
+        }
+
+
+        public void Add(IList<IQueryNode> children)
+        {
+
+            if (IsLeaf() || this.clauses == null)
+            {
+                throw new ArgumentException(NLS
+                    .GetLocalizedMessage(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED));
+            }
+
+            foreach (IQueryNode child in children)
+            {
+                Add(child);
+            }
+
+        }
+
+
+        public virtual bool IsLeaf()
+        {
+            return this.isLeaf;
+        }
+
+
+        public void Set(IList<IQueryNode> children)
+        {
+
+            if (IsLeaf() || this.clauses == null)
+            {
+                //ResourceBundle bundle = ResourceBundle
+                //    .getBundle("org.apache.lucene.queryParser.messages.QueryParserMessages");
+                //String message = bundle.getObject("Q0008E.NODE_ACTION_NOT_SUPPORTED")
+                //    .toString();
+                string message = Lucene.Net.QueryParsers.Properties.Resources.NODE_ACTION_NOT_SUPPORTED;
+
+                throw new ArgumentException(message);
+
+            }
+
+            // reset parent value
+            foreach (IQueryNode child in children)
+            {
+                child.RemoveFromParent();
+            }
+
+            List<IQueryNode> existingChildren = new List<IQueryNode>(GetChildren());
+            foreach (IQueryNode existingChild in existingChildren)
+            {
+                existingChild.RemoveFromParent();
+            }
+
+            // allocate new children list
+            Allocate();
+
+            // add new children and set parent
+            Add(children);
+        }
+
+
+        public virtual IQueryNode CloneTree()
+        {
+            QueryNodeImpl clone = (QueryNodeImpl)this.MemberwiseClone();
+            clone.isLeaf = this.isLeaf;
+
+            // Reset all tags
+            clone.tags = new Dictionary<string, object>();
+
+            // copy children
+            if (this.clauses != null)
+            {
+                List<IQueryNode> localClauses = new List<IQueryNode>();
+                foreach (IQueryNode clause in this.clauses)
+                {
+                    localClauses.Add(clause.CloneTree());
+                }
+                clone.clauses = localClauses;
+            }
+
+            return clone;
+        }
+
+
+        public virtual /*IQueryNode*/ object Clone()
+        {
+            return CloneTree();
+        }
+
+        protected virtual void SetLeaf(bool isLeaf)
+        {
+            this.isLeaf = isLeaf;
+        }
+
+        /**
+         * @return a List for QueryNode object. Returns null, for nodes that do not
+         *         contain children. All leaf Nodes return null.
+         */
+
+        public IList<IQueryNode> GetChildren()
+        {
+            if (IsLeaf() || this.clauses == null)
+            {
+                return null;
+            }
+            return new List<IQueryNode>(this.clauses);
+        }
+
+
+        public virtual void SetTag(string tagName, object value)
+        {
+            this.tags[tagName.ToLower(CultureInfo.InvariantCulture)] = value;
+        }
+
+
+        public virtual void UnsetTag(string tagName)
+        {
+            this.tags.Remove(tagName.ToLower(CultureInfo.InvariantCulture));
+        }
+
+        /** verify if a node contains a tag */
+        public virtual bool ContainsTag(string tagName)
+        {
+            return this.tags.ContainsKey(tagName.ToLower(CultureInfo.InvariantCulture));
+        }
+
+        public virtual object GetTag(string tagName)
+        {
+            return this.tags[tagName.ToLower(CultureInfo.InvariantCulture)];
+        }
+
+        private IQueryNode parent = null;
+
+        private void SetParent(IQueryNode parent)
+        {
+            if (this.parent != parent)
+            {
+                this.RemoveFromParent();
+                this.parent = parent;
+            }
+        }
+
+
+        public virtual IQueryNode GetParent()
+        {
+            return this.parent;
+        }
+
+        protected bool IsRoot()
+        {
+            return GetParent() == null;
+        }
+
+        /**
+         * If set to true the the method toQueryString will not write field names
+         */
+        protected internal bool toQueryStringIgnoreFields = false;
+
+        /**
+         * This method is use toQueryString to detect if fld is the default field
+         * 
+         * @param fld - field name
+         * @return true if fld is the default field
+         */
+        // TODO: remove this method, it's commonly used by {@link
+        // #toQueryString(org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax)}
+        // to figure out what is the default field, however, {@link
+        // #toQueryString(org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax)}
+        // should receive the default field value directly by parameter
+        protected bool IsDefaultField(string fld)
+        {
+            if (this.toQueryStringIgnoreFields)
+                return true;
+            if (fld == null)
+                return true;
+            if (QueryNodeImpl.PLAINTEXT_FIELD_NAME.Equals(StringUtils.ToString(fld)))
+                return true;
+            return false;
+        }
+
+        /**
+         * Every implementation of this class should return pseudo xml like this:
+         * 
+         * For FieldQueryNode: &lt;field start='1' end='2' field='subject' text='foo'/&gt;
+         * 
+         * @see org.apache.lucene.queryparser.flexible.core.nodes.QueryNode#toString()
+         */
+
+        public override string ToString()
+        {
+            return base.ToString();
+        }
+
+        /**
+         * Returns a map containing all tags attached to this query node.
+         * 
+         * @return a map containing all tags attached to this query node
+         */
+        public virtual IDictionary<string, object> GetTagMap()
+        {
+            return new Dictionary<string, object>(this.tags);
+        }
+
+        public virtual void RemoveFromParent()
+        {
+            if (this.parent != null)
+            {
+                IList<IQueryNode> parentChildren = this.parent.GetChildren();
+                //IEnumerator<IQueryNode> it = parentChildren.GetEnumerator();
+
+                //while (it.MoveNext())
+                //{
+                //    if (it.Current == this)
+                //    {
+                //        it.Remove();
+                //    }
+                //}
+
+                // LUCENENET NOTE: Loop in reverse so we can remove items
+                // without screwing up our iterator.
+                for (int i = parentChildren.Count - 1; i >= 0; i--)
+                {
+                    if (parentChildren[i] == this)
+                    {
+                        parentChildren.RemoveAt(i);
+                    }
+                }
+
+                this.parent = null;
+            }
+        }
+
+        // LUCENENET specific - class must implement all members of IQueryNode
+        public abstract string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser);
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
new file mode 100644
index 0000000..a60597b
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
@@ -0,0 +1,77 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link QuotedFieldQueryNode} represents phrase query. Example:
+    /// "life is great"
+    /// </summary>
+    public class QuotedFieldQueryNode : FieldQueryNode
+    {
+        /**
+        * @param field
+        *          - field name
+        * @param text
+        *          - value
+        * @param begin
+        *          - position in the query string
+        * @param end
+        *          - position in the query string
+        */
+        // LUCENENET specific overload for text string
+        public QuotedFieldQueryNode(string field, string text, int begin,
+            int end)
+            : this(field, text.ToCharSequence(), begin, end)
+        {
+        }
+
+        /**
+        * @param field
+        *          - field name
+        * @param text
+        *          - value
+        * @param begin
+        *          - position in the query string
+        * @param end
+        *          - position in the query string
+        */
+        public QuotedFieldQueryNode(string field, ICharSequence text, int begin,
+            int end)
+            : base(field, text, begin, end)
+        {
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escaper)
+        {
+            if (IsDefaultField(this.field))
+            {
+                return "\"" + GetTermEscapeQuoted(escaper) + "\"";
+            }
+            else
+            {
+                return this.field + ":" + "\"" + GetTermEscapeQuoted(escaper) + "\"";
+            }
+        }
+
+
+        public override string ToString()
+        {
+            return "<quotedfield start='" + this.begin + "' end='" + this.end
+                + "' field='" + this.field + "' term='" + this.text + "'/>";
+        }
+
+        public override IQueryNode CloneTree()
+        {
+            QuotedFieldQueryNode clone = (QuotedFieldQueryNode)base.CloneTree();
+            // nothing to do here
+            return clone;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
new file mode 100644
index 0000000..6e64892
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
@@ -0,0 +1,32 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// This interface should be implemented by a {@link QueryNode} that represents
+    /// some kind of range query.
+    /// </summary>
+    /// <typeparam name="T"></typeparam>
+    public interface IRangeQueryNode<T> : IRangeQueryNode, IFieldableNode
+        where T : IFieldableNode /*IFieldValuePairQueryNode<?>*/
+    {
+        T LowerBound { get; }
+
+        T UpperBound { get; }
+
+        bool IsLowerInclusive { get; }
+
+        bool IsUpperInclusive { get; }
+    }
+
+    /// <summary>
+    /// LUCENENET specific interface for identifying a
+    /// RangeQueryNode without specifying its generic closing type
+    /// </summary>
+    public interface IRangeQueryNode
+    { }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
new file mode 100644
index 0000000..98fd5c1
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
@@ -0,0 +1,116 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link SlopQueryNode} represents phrase query with a slop.
+    /// 
+    /// From Lucene FAQ: Is there a way to use a proximity operator (like near or
+    /// within) with Lucene? There is a variable called slop that allows you to
+    /// perform NEAR/WITHIN-like queries. By default, slop is set to 0 so that only
+    /// exact phrases will match. When using TextParser you can use this syntax to
+    /// specify the slop: "doug cutting"~2 will find documents that contain
+    /// "doug cutting" as well as ones that contain "cutting doug".
+    /// </summary>
+    public class SlopQueryNode : QueryNodeImpl, IFieldableNode
+    {
+        private int value = 0;
+
+        /**
+         * @param query
+         *          - QueryNode Tree with the phrase
+         * @param value
+         *          - slop value
+         */
+        public SlopQueryNode(IQueryNode query, int value)
+        {
+            if (query == null)
+            {
+                throw new QueryNodeError(new MessageImpl(
+                    QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, "query", "null"));
+            }
+
+            this.value = value;
+            SetLeaf(false);
+            Allocate();
+            Add(query);
+        }
+
+        public IQueryNode GetChild()
+        {
+            return GetChildren()[0];
+        }
+
+        public int GetValue()
+        {
+            return this.value;
+        }
+
+        private string GetValueString()
+        {
+            float f = this.value;
+            if (f == (long)f)
+                return "" + (long)f;
+            else
+                return "" + f;
+
+        }
+
+
+        public override string ToString()
+        {
+            return "<slop value='" + GetValueString() + "'>" + "\n"
+                + GetChild().ToString() + "\n</slop>";
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChild() == null)
+                return "";
+            return GetChild().ToQueryString(escapeSyntaxParser) + "~"
+                + GetValueString();
+        }
+
+        public override IQueryNode CloneTree()
+        {
+            SlopQueryNode clone = (SlopQueryNode)base.CloneTree();
+
+            clone.value = this.value;
+
+            return clone;
+        }
+
+        public virtual string Field
+        {
+            get
+            {
+                IQueryNode child = GetChild();
+
+                if (child is IFieldableNode)
+                {
+                    return ((IFieldableNode)child).Field;
+                }
+
+                return null;
+            }
+            set
+            {
+                IQueryNode child = GetChild();
+
+                if (child is IFieldableNode)
+                {
+                    ((IFieldableNode)child).Field = value;
+                }
+            }
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
new file mode 100644
index 0000000..317e060
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
@@ -0,0 +1,17 @@
+\ufeffusing Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// Interface for a node that has text as a {@link CharSequence}
+    /// </summary>
+    public interface ITextableQueryNode
+    {
+        ICharSequence Text { get; set; }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
new file mode 100644
index 0000000..4cb5452
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
@@ -0,0 +1,103 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link TokenizedPhraseQueryNode} represents a node created by a code that
+    /// tokenizes/lemmatizes/analyzes.
+    /// </summary>
+    public class TokenizedPhraseQueryNode : QueryNodeImpl, IFieldableNode
+    {
+        public TokenizedPhraseQueryNode()
+        {
+            SetLeaf(false);
+            Allocate();
+        }
+
+
+        public override string ToString()
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "<tokenizedphrase/>";
+            StringBuilder sb = new StringBuilder();
+            sb.Append("<tokenizedtphrase>");
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append("\n");
+                sb.Append(child.ToString());
+            }
+            sb.Append("\n</tokenizedphrase>");
+            return sb.ToString();
+        }
+
+        // This text representation is not re-parseable
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "";
+
+            StringBuilder sb = new StringBuilder();
+            string filler = "";
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
+                filler = ",";
+            }
+
+            return "[TP[" + sb.ToString() + "]]";
+        }
+
+        public override IQueryNode CloneTree()
+        {
+            TokenizedPhraseQueryNode clone = (TokenizedPhraseQueryNode)base
+        .CloneTree();
+
+            // nothing to do
+
+            return clone;
+        }
+
+        public string Field
+        {
+            get
+            {
+                IList<IQueryNode> children = GetChildren();
+
+                if (children == null || children.Count == 0)
+                {
+                    return null;
+
+                }
+                else
+                {
+                    return ((IFieldableNode)children[0]).Field;
+                }
+            }
+            set
+            {
+                IList<IQueryNode> children = GetChildren();
+
+                if (children != null)
+                {
+
+                    foreach (IQueryNode child in GetChildren())
+                    {
+
+                        if (child is IFieldableNode)
+                        {
+                            ((IFieldableNode)child).Field = value;
+                        }
+
+                    }
+                }
+            }
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
new file mode 100644
index 0000000..ee0dbd22
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
@@ -0,0 +1,18 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// This interface should be implemented by {@link QueryNode} that holds an
+    /// arbitrary value.
+    /// </summary>
+    /// <typeparam name="T"></typeparam>
+    public interface IValueQueryNode<T> : IQueryNode
+    {
+        T Value { get; set; }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
new file mode 100644
index 0000000..d0e6803
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
@@ -0,0 +1,39 @@
+\ufeffusing Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
+{
+    /// <summary>
+    /// A parser needs to implement {@link EscapeQuerySyntax} to allow the QueryNode
+    /// to escape the queries, when the toQueryString method is called.
+    /// </summary>
+    public interface IEscapeQuerySyntax
+    {
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="text"> text to be escaped</param>
+        /// <param name="locale">locale for the current query</param>
+        /// <param name="type">select the type of escape operation to use</param>
+        /// <returns>escaped text</returns>
+        ICharSequence Escape(ICharSequence text, CultureInfo locale, EscapeQuerySyntax.Type type);
+    }
+
+    public static class EscapeQuerySyntax
+    {
+        /// <summary>
+        /// Type of escaping: String for escaping syntax,
+        /// NORMAL for escaping reserved words (like AND) in terms
+        /// </summary>
+        public enum Type
+        {
+            STRING,
+            NORMAL
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
new file mode 100644
index 0000000..387019d
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
@@ -0,0 +1,23 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
+{
+    /// <summary>
+    /// A parser needs to implement {@link SyntaxParser} interface
+    /// </summary>
+    public interface ISyntaxParser
+    {
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="query">query data to be parsed</param>
+        /// <param name="field">default field name</param>
+        /// <returns>QueryNode tree</returns>
+        IQueryNode Parse(string query, string field);
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
new file mode 100644
index 0000000..862ad1f
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
@@ -0,0 +1,73 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
+{
+    /// <summary>
+    /// A {@link NoChildOptimizationQueryNodeProcessor} removes every
+    /// BooleanQueryNode, BoostQueryNode, TokenizedPhraseQueryNode or
+    /// ModifierQueryNode that do not have a valid children.
+    /// <para>
+    /// Example: When the children of these nodes are removed for any reason then the
+    /// nodes may become invalid.
+    /// </para>
+    /// </summary>
+    public class NoChildOptimizationQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        public NoChildOptimizationQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is BooleanQueryNode || node is BoostQueryNode
+                || node is TokenizedPhraseQueryNode
+                || node is ModifierQueryNode)
+            {
+
+                IList<IQueryNode> children = node.GetChildren();
+
+                if (children != null && children.Count > 0)
+                {
+
+                    foreach (IQueryNode child in children)
+                    {
+
+                        if (!(child is DeletedQueryNode))
+                        {
+                            return node;
+                        }
+
+                    }
+
+                }
+
+                return new MatchNoDocsQueryNode();
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+            return children;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
new file mode 100644
index 0000000..df3a851
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
@@ -0,0 +1,61 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
+{
+    /// <summary>
+    /// A {@link QueryNodeProcessor} is an interface for classes that process a
+    /// {@link QueryNode} tree.
+    /// <para>
+    /// The implementor of this class should perform some operation on a query node
+    /// tree and return the same or another query node tree.
+    /// </para>
+    /// <para>
+    /// It also may carry a {@link QueryConfigHandler} object that contains
+    /// configuration about the query represented by the query tree or the
+    /// collection/index where it's intended to be executed.
+    /// </para>
+    /// <para>
+    /// In case there is any {@link QueryConfigHandler} associated to the query tree
+    /// to be processed, it should be set using
+    /// {@link QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)} before
+    /// {@link QueryNodeProcessor#process(QueryNode)} is invoked.
+    /// </para>
+    /// </summary>
+    /// <seealso cref="IQueryNode"/>
+    /// <seealso cref="QueryNodeProcessor"/>
+    /// <seealso cref="QueryConfigHandler"/>
+    public interface IQueryNodeProcessor
+    {
+        /**
+        * Processes a query node tree. It may return the same or another query tree.
+        * I should never return <code>null</code>.
+        * 
+        * @param queryTree
+        *          tree root node
+        * 
+        * @return the processed query tree
+        */
+        IQueryNode Process(IQueryNode queryTree);
+
+        /**
+         * Sets the {@link QueryConfigHandler} associated to the query tree.
+         */
+        void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler);
+
+        /**
+         * Returns the {@link QueryConfigHandler} associated to the query tree if any,
+         * otherwise it returns <code>null</code>
+         * 
+         * @return the {@link QueryConfigHandler} associated to the query tree if any,
+         *         otherwise it returns <code>null</code>
+         */
+        QueryConfigHandler GetQueryConfigHandler();
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
new file mode 100644
index 0000000..23aa179
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
@@ -0,0 +1,202 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
+{
+    public abstract class QueryNodeProcessorImpl : IQueryNodeProcessor
+    {
+        private List<ChildrenList> childrenListPool = new List<ChildrenList>();
+
+        private QueryConfigHandler queryConfig;
+
+        public QueryNodeProcessorImpl()
+        {
+            // empty constructor
+        }
+
+        public QueryNodeProcessorImpl(QueryConfigHandler queryConfigHandler)
+        {
+            this.queryConfig = queryConfigHandler;
+        }
+
+
+        public virtual IQueryNode Process(IQueryNode queryTree)
+        {
+            return ProcessIteration(queryTree);
+        }
+
+        private IQueryNode ProcessIteration(IQueryNode queryTree)
+        {
+            queryTree = PreProcessNode(queryTree);
+
+            ProcessChildren(queryTree);
+
+            queryTree = PostProcessNode(queryTree);
+
+            return queryTree;
+
+        }
+
+        /**
+         * This method is called every time a child is processed.
+         * 
+         * @param queryTree
+         *          the query node child to be processed
+         * @throws QueryNodeException
+         *           if something goes wrong during the query node processing
+         */
+        protected virtual void ProcessChildren(IQueryNode queryTree)
+        {
+
+            IList<IQueryNode> children = queryTree.GetChildren();
+            ChildrenList newChildren;
+
+            if (children != null && children.Count > 0)
+            {
+
+                newChildren = AllocateChildrenList();
+
+                try
+                {
+
+                    foreach (IQueryNode child in children)
+                    {
+                        var child2 = ProcessIteration(child);
+
+                        if (child2 == null)
+                        {
+                            throw new NullReferenceException();
+
+                        }
+
+                        newChildren.Add(child2);
+
+                    }
+
+                    IList<IQueryNode> orderedChildrenList = SetChildrenOrder(newChildren);
+
+                    queryTree.Set(orderedChildrenList);
+
+                }
+                finally
+                {
+                    newChildren.beingUsed = false;
+                }
+
+            }
+
+        }
+
+        private ChildrenList AllocateChildrenList()
+        {
+            ChildrenList list = null;
+
+            foreach (ChildrenList auxList in this.childrenListPool)
+            {
+
+                if (!auxList.beingUsed)
+                {
+                    list = auxList;
+                    list.Clear();
+
+                    break;
+
+                }
+
+            }
+
+            if (list == null)
+            {
+                list = new ChildrenList();
+                this.childrenListPool.Add(list);
+
+            }
+
+            list.beingUsed = true;
+
+            return list;
+
+        }
+
+        /**
+         * For reference about this method check:
+         * {@link QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)}.
+         * 
+         * @param queryConfigHandler
+         *          the query configuration handler to be set.
+         * 
+         * @see QueryNodeProcessor#getQueryConfigHandler()
+         * @see QueryConfigHandler
+         */
+
+        public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
+        {
+            this.queryConfig = queryConfigHandler;
+        }
+
+        /**
+         * For reference about this method check:
+         * {@link QueryNodeProcessor#getQueryConfigHandler()}.
+         * 
+         * @return QueryConfigHandler the query configuration handler to be set.
+         * 
+         * @see QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)
+         * @see QueryConfigHandler
+         */
+        public virtual QueryConfigHandler GetQueryConfigHandler()
+        {
+            return this.queryConfig;
+        }
+
+        /**
+         * This method is invoked for every node when walking down the tree.
+         * 
+         * @param node
+         *          the query node to be pre-processed
+         * 
+         * @return a query node
+         * 
+         * @throws QueryNodeException
+         *           if something goes wrong during the query node processing
+         */
+        protected abstract IQueryNode PreProcessNode(IQueryNode node);
+
+        /**
+         * This method is invoked for every node when walking up the tree.
+         * 
+         * @param node
+         *          node the query node to be post-processed
+         * 
+         * @return a query node
+         * 
+         * @throws QueryNodeException
+         *           if something goes wrong during the query node processing
+         */
+        protected abstract IQueryNode PostProcessNode(IQueryNode node);
+
+        /**
+         * This method is invoked for every node that has at least on child. It's
+         * invoked right before {@link #postProcessNode(QueryNode)} is invoked.
+         * 
+         * @param children
+         *          the list containing all current node's children
+         * 
+         * @return a new list containing all children that should be set to the
+         *         current node
+         * 
+         * @throws QueryNodeException
+         *           if something goes wrong during the query node processing
+         */
+        protected abstract IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children);
+
+        private class ChildrenList : List<IQueryNode>
+        {
+            internal bool beingUsed;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
new file mode 100644
index 0000000..7ffdd1e
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
@@ -0,0 +1,425 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Collections;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
+{
+    public class QueryNodeProcessorPipeline : IQueryNodeProcessor, IList<IQueryNodeProcessor>
+    {
+        //private LinkedList<IQueryNodeProcessor> processors = new LinkedList<IQueryNodeProcessor>();
+        private List<IQueryNodeProcessor> processors = new List<IQueryNodeProcessor>();
+
+        private QueryConfigHandler queryConfig;
+
+        /**
+         * Constructs an empty query node processor pipeline.
+         */
+        public QueryNodeProcessorPipeline()
+        {
+            // empty constructor
+        }
+
+        /**
+         * Constructs with a {@link QueryConfigHandler} object.
+         */
+        public QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler)
+        {
+            this.queryConfig = queryConfigHandler;
+        }
+
+        /**
+         * For reference about this method check:
+         * {@link QueryNodeProcessor#getQueryConfigHandler()}.
+         * 
+         * @return QueryConfigHandler the query configuration handler to be set.
+         * 
+         * @see QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)
+         * @see QueryConfigHandler
+         */
+        public virtual QueryConfigHandler GetQueryConfigHandler()
+        {
+            return this.queryConfig;
+        }
+
+        /**
+         * For reference about this method check:
+         * {@link QueryNodeProcessor#process(QueryNode)}.
+         * 
+         * @param queryTree the query node tree to be processed
+         * 
+         * @throws QueryNodeException if something goes wrong during the query node
+         *         processing
+         * 
+         * @see QueryNode
+         */
+
+        public virtual IQueryNode Process(IQueryNode queryTree)
+        {
+
+            foreach (IQueryNodeProcessor processor in this.processors)
+            {
+                queryTree = processor.Process(queryTree);
+            }
+
+            return queryTree;
+
+        }
+
+        /**
+         * For reference about this method check:
+         * {@link QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)}.
+         * 
+         * @param queryConfigHandler the query configuration handler to be set.
+         * 
+         * @see QueryNodeProcessor#getQueryConfigHandler()
+         * @see QueryConfigHandler
+         */
+
+        public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
+        {
+            this.queryConfig = queryConfigHandler;
+
+            foreach (IQueryNodeProcessor processor in this.processors)
+            {
+                processor.SetQueryConfigHandler(this.queryConfig);
+            }
+
+        }
+
+        /**
+         * @see List#add(Object)
+         */
+
+        public virtual bool Add(IQueryNodeProcessor processor)
+        {
+            this.processors.Add(processor);
+            bool added = processors.Contains(processor);
+
+            if (added)
+            {
+                processor.SetQueryConfigHandler(this.queryConfig);
+            }
+
+            return added;
+
+        }
+
+        /**
+         * @see List#add(int, Object)
+         */
+
+        public virtual void Add(int index, IQueryNodeProcessor processor)
+        {
+            this.processors.Insert(index, processor);
+            processor.SetQueryConfigHandler(this.queryConfig);
+
+        }
+
+        //      /**
+        //       * @see List#addAll(Collection)
+        //       */
+
+        //public virtual bool AddAll(Collection<? extends QueryNodeProcessor> c)
+        //      {
+        //          boolean anyAdded = this.processors.addAll(c);
+
+        //          for (QueryNodeProcessor processor : c)
+        //          {
+        //              processor.setQueryConfigHandler(this.queryConfig);
+        //          }
+
+        //          return anyAdded;
+
+        //      }
+
+        //      /**
+        //       * @see List#addAll(int, Collection)
+        //       */
+        //      @Override
+        //public boolean addAll(int index, Collection<? extends QueryNodeProcessor> c)
+        //      {
+        //          boolean anyAdded = this.processors.addAll(index, c);
+
+        //          for (QueryNodeProcessor processor : c)
+        //          {
+        //              processor.setQueryConfigHandler(this.queryConfig);
+        //          }
+
+        //          return anyAdded;
+
+        //      }
+
+        /**
+         * @see List#clear()
+         */
+
+        public virtual void Clear()
+        {
+            this.processors.Clear();
+        }
+
+        /**
+         * @see List#contains(Object)
+         */
+
+        public virtual bool Contains(object o)
+        {
+            return this.processors.Contains(o);
+        }
+
+        //      /**
+        //       * @see List#containsAll(Collection)
+        //       */
+        //      @Override
+        //public boolean containsAll(Collection<?> c)
+        //      {
+        //          return this.processors.containsAll(c);
+        //      }
+
+        //      /**
+        //       * @see List#get(int)
+        //       */
+        //      @Override
+        //public QueryNodeProcessor Get(int index)
+        //      {
+        //          return this.processors.get(index);
+        //      }
+
+        public virtual IQueryNodeProcessor this[int index]
+        {
+            get
+            {
+                return this.processors[index];
+            }
+            set
+            {
+                IQueryNodeProcessor oldProcessor = this.processors[index];
+                this.processors[index] = value;
+
+                if (oldProcessor != value)
+                {
+                    value.SetQueryConfigHandler(this.queryConfig);
+                }
+
+                //return oldProcessor;
+            }
+        }
+
+        /**
+         * @see List#indexOf(Object)
+         */
+
+        public virtual int IndexOf(object o)
+        {
+            return this.processors.IndexOf(o as IQueryNodeProcessor);
+        }
+
+        public virtual int IndexOf(IQueryNodeProcessor o)
+        {
+            return this.processors.IndexOf(o);
+        }
+
+        //      /**
+        //       * @see List#isEmpty()
+        //       */
+        //      @Override
+        //public boolean isEmpty()
+        //      {
+        //          return this.processors.isEmpty();
+        //      }
+
+        //      /**
+        //       * @see List#iterator()
+        //       */
+        //      @Override
+        //public Iterator<QueryNodeProcessor> iterator()
+        //      {
+        //          return this.processors.iterator();
+        //      }
+
+        public virtual IEnumerator<IQueryNodeProcessor> GetEnumerator()
+        {
+            return this.processors.GetEnumerator();
+        }
+
+        //      /**
+        //       * @see List#lastIndexOf(Object)
+        //       */
+        //      @Override
+        //public int lastIndexOf(Object o)
+        //      {
+        //          return this.processors.lastIndexOf(o);
+        //      }
+
+        //      /**
+        //       * @see List#listIterator()
+        //       */
+        //      @Override
+        //public ListIterator<QueryNodeProcessor> listIterator()
+        //      {
+        //          return this.processors.listIterator();
+        //      }
+
+        //      /**
+        //       * @see List#listIterator(int)
+        //       */
+        //      @Override
+        //public ListIterator<QueryNodeProcessor> listIterator(int index)
+        //      {
+        //          return this.processors.listIterator(index);
+        //      }
+
+        /**
+         * @see List#remove(Object)
+         */
+
+        public bool Remove(object o)
+        {
+            return this.processors.Remove(o as IQueryNodeProcessor);
+        }
+
+        public virtual bool Remove(IQueryNodeProcessor o)
+        {
+            return this.processors.Remove(o);
+        }
+
+        //      /**
+        //       * @see List#remove(int)
+        //       */
+        //      @Override
+        //public QueryNodeProcessor remove(int index)
+        //      {
+        //          return this.processors.remove(index);
+        //      }
+
+        public virtual void RemoveAt(int index)
+        {
+            this.processors.RemoveAt(index);
+        }
+
+        //      /**
+        //       * @see List#removeAll(Collection)
+        //       */
+        //      @Override
+        //public boolean removeAll(Collection<?> c)
+        //      {
+        //          return this.processors.removeAll(c);
+        //      }
+
+        public virtual void RemoveRange(int index, int count)
+        {
+            this.processors.RemoveRange(index, count);
+        }
+
+        //      /**
+        //       * @see List#retainAll(Collection)
+        //       */
+        //      @Override
+        //public boolean retainAll(Collection<?> c)
+        //      {
+        //          return this.processors.retainAll(c);
+        //      }
+
+        /**
+         * @see List#set(int, Object)
+         */
+
+        public virtual IQueryNodeProcessor Set(int index, IQueryNodeProcessor processor)
+        {
+            IQueryNodeProcessor oldProcessor = this.processors[index];
+            this.processors[index] = processor;
+
+            if (oldProcessor != processor)
+            {
+                processor.SetQueryConfigHandler(this.queryConfig);
+            }
+
+            return oldProcessor;
+
+        }
+
+        //      /**
+        //       * @see List#size()
+        //       */
+        //      @Override
+        //public int size()
+        //      {
+        //          return this.processors.size();
+        //      }
+
+        public int Count
+        {
+            get { return this.processors.Count; }
+        }
+
+        public bool IsReadOnly
+        {
+            get
+            {
+                return false;
+            }
+        }
+
+        //      /**
+        //       * @see List#subList(int, int)
+        //       */
+        //      @Override
+        //public List<QueryNodeProcessor> subList(int fromIndex, int toIndex)
+        //      {
+        //          return this.processors.subList(fromIndex, toIndex);
+        //      }
+
+        public virtual List<IQueryNodeProcessor> GetRange(int index, int count)
+        {
+            return this.processors.GetRange(index, count);
+        }
+
+        public void Insert(int index, IQueryNodeProcessor item)
+        {
+            this.processors.Insert(index, item);
+        }
+
+        void ICollection<IQueryNodeProcessor>.Add(IQueryNodeProcessor item)
+        {
+            this.processors.Add(item);
+        }
+
+        public bool Contains(IQueryNodeProcessor item)
+        {
+            return this.processors.Contains(item);
+        }
+
+        public void CopyTo(IQueryNodeProcessor[] array, int arrayIndex)
+        {
+            this.processors.CopyTo(array, arrayIndex);
+        }
+
+        IEnumerator IEnumerable.GetEnumerator()
+        {
+            return GetEnumerator();
+        }
+
+        //      /**
+        //       * @see List#toArray(Object[])
+        //       */
+        //      @Override
+        //public <T> T[] toArray(T[] array)
+        //      {
+        //          return this.processors.toArray(array);
+        //      }
+
+        //      /**
+        //       * @see List#toArray()
+        //       */
+        //      @Override
+        //public Object[] toArray()
+        //      {
+        //          return this.processors.toArray();
+        //      }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
new file mode 100644
index 0000000..95214f9
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
@@ -0,0 +1,102 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
+{
+    /// <summary>
+    /// A {@link QueryNodeProcessorPipeline} class removes every instance of
+    /// {@link DeletedQueryNode} from a query node tree. If the resulting root node
+    /// is a {@link DeletedQueryNode}, {@link MatchNoDocsQueryNode} is returned.
+    /// </summary>
+    public class RemoveDeletedQueryNodesProcessor : QueryNodeProcessorImpl
+    {
+        public RemoveDeletedQueryNodesProcessor()
+        {
+            // empty constructor
+        }
+
+
+        public override IQueryNode Process(IQueryNode queryTree)
+        {
+            queryTree = base.Process(queryTree);
+
+            if (queryTree is DeletedQueryNode
+                && !(queryTree is MatchNoDocsQueryNode))
+            {
+
+                return new MatchNoDocsQueryNode();
+
+            }
+
+            return queryTree;
+
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (!node.IsLeaf())
+            {
+                IList<IQueryNode> children = node.GetChildren();
+                bool removeBoolean = false;
+
+                if (children == null || children.Count == 0)
+                {
+                    removeBoolean = true;
+
+                }
+                else
+                {
+                    removeBoolean = true;
+
+                    for (IEnumerator<IQueryNode> it = children.GetEnumerator(); it.MoveNext();)
+                    {
+
+                        if (!(it.Current is DeletedQueryNode))
+                        {
+                            removeBoolean = false;
+                            break;
+
+                        }
+
+                    }
+
+                }
+
+                if (removeBoolean)
+                {
+                    return new DeletedQueryNode();
+                }
+
+            }
+
+            return node;
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+            for (int i = 0; i < children.Count; i++)
+            {
+
+                if (children[i] is DeletedQueryNode)
+                {
+                    children.RemoveAt(i--);
+                }
+
+            }
+
+            return children;
+        }
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+            return node;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
new file mode 100644
index 0000000..e92e399
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
@@ -0,0 +1,64 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core
+{
+    /// <summary>
+    /// Error class with NLS support
+    /// </summary>
+    /// <seealso cref="Messages.NLS"/>
+    /// <seealso cref="Messages.Message"/>
+    [Serializable]
+    public class QueryNodeError : Exception, INLSException
+    {
+        private IMessage message;
+
+        /**
+         * @param message
+         *          - NLS Message Object
+         */
+        public QueryNodeError(IMessage message)
+            : base(message.Key)
+        {
+            this.message = message;
+
+        }
+
+        /**
+         * @param throwable
+         *          - @see java.lang.Error
+         */
+        public QueryNodeError(Exception throwable)
+            : base(throwable.Message, throwable)
+        {
+        }
+
+        /**
+         * @param message
+         *          - NLS Message Object
+         * @param throwable
+         *          - @see java.lang.Error
+         */
+        public QueryNodeError(IMessage message, Exception throwable)
+            : base(message.Key, throwable)
+        {
+            this.message = message;
+
+        }
+
+        /*
+         * (non-Javadoc)
+         * 
+         * @see org.apache.lucene.messages.NLSException#getMessageObject()
+         */
+
+        public virtual IMessage MessageObject
+        {
+            get { return this.message; }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
new file mode 100644
index 0000000..881f738
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
@@ -0,0 +1,75 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core
+{
+    /// <summary>
+    /// This exception should be thrown if something wrong happens when dealing with
+    /// {@link QueryNode}s.
+    /// <para>
+    /// It also supports NLS messages.
+    /// </para>
+    /// </summary>
+    /// <seealso cref="Message"/>
+    /// <seealso cref="NLS"/>
+    /// <seealso cref="NLSException"/>
+    /// <seealso cref="IQueryNode"/>
+    [Serializable]
+    public class QueryNodeException : Exception, INLSException
+    {
+        protected IMessage message = new MessageImpl(QueryParserMessages.EMPTY_MESSAGE);
+
+        public QueryNodeException(IMessage message)
+            : base(message.Key)
+        {
+            this.message = message;
+
+        }
+
+        public QueryNodeException(Exception throwable)
+            : base(throwable.Message, throwable)
+        {
+        }
+
+        public QueryNodeException(IMessage message, Exception throwable)
+            : base(message.Key, throwable)
+        {
+            this.message = message;
+        }
+
+
+        public virtual IMessage MessageObject
+        {
+            get { return this.message; }
+        }
+
+
+        public override string Message
+        {
+            get { return GetLocalizedMessage(); }
+        }
+
+
+        public string GetLocalizedMessage()
+        {
+            return GetLocalizedMessage(CultureInfo.InvariantCulture);
+        }
+
+        public string GetLocalizedMessage(CultureInfo locale)
+        {
+            return this.message.GetLocalizedMessage(locale);
+        }
+
+
+        public override string ToString()
+        {
+            return this.message.Key + ": " + GetLocalizedMessage();
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
new file mode 100644
index 0000000..c6cd651
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
@@ -0,0 +1,117 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core
+{
+    /// <summary>
+    /// This should be thrown when an exception happens during the query parsing from
+    /// string to the query node tree.
+    /// </summary>
+    /// <seealso cref="QueryNodeException"/>
+    /// <seealso cref="ISyntaxParser"/>
+    /// <seealso cref="IQueryNode"/>
+    [Serializable]
+    public class QueryNodeParseException : QueryNodeException
+    {
+        private string query;
+
+        private int beginColumn = -1;
+
+        private int beginLine = -1;
+
+        private string errorToken = "";
+
+        public QueryNodeParseException(IMessage message)
+            : base(message)
+        {
+        }
+
+        public QueryNodeParseException(Exception throwable)
+            : base(throwable)
+        {
+        }
+
+        public QueryNodeParseException(IMessage message, Exception throwable)
+            : base(message, throwable)
+        {
+        }
+
+        public void SetQuery(string query)
+        {
+            this.query = query;
+            this.message = new MessageImpl(
+                QueryParserMessages.INVALID_SYNTAX_CANNOT_PARSE, query, "");
+        }
+
+        public string GetQuery()
+        {
+            return this.query;
+        }
+
+        /**
+         * @param errorToken
+         *          the errorToken in the query
+         */
+        protected void SetErrorToken(string errorToken)
+        {
+            this.errorToken = errorToken;
+        }
+
+        public string GetErrorToken()
+        {
+            return this.errorToken;
+        }
+
+        public void SetNonLocalizedMessage(IMessage message)
+        {
+            this.message = message;
+        }
+
+        /**
+         * For EndOfLine and EndOfFile ("&lt;EOF&gt;") parsing problems the last char in the
+         * string is returned For the case where the parser is not able to figure out
+         * the line and column number -1 will be returned
+         * 
+         * @return line where the problem was found
+         */
+        public int GetBeginLine()
+        {
+            return this.beginLine;
+        }
+
+        /**
+         * For EndOfLine and EndOfFile ("&lt;EOF&gt;") parsing problems the last char in the
+         * string is returned For the case where the parser is not able to figure out
+         * the line and column number -1 will be returned
+         * 
+         * @return column of the first char where the problem was found
+         */
+        public int GetBeginColumn()
+        {
+            return this.beginColumn;
+        }
+
+        /**
+         * @param beginLine
+         *          the beginLine to set
+         */
+        protected void SetBeginLine(int beginLine)
+        {
+            this.beginLine = beginLine;
+        }
+
+        /**
+         * @param beginColumn
+         *          the beginColumn to set
+         */
+        protected void SetBeginColumn(int beginColumn)
+        {
+            this.beginColumn = beginColumn;
+        }
+    }
+}


[03/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
new file mode 100644
index 0000000..9c418a8
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
@@ -0,0 +1,727 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.Analysis.Tokenattributes;
+using Lucene.Net.Documents;
+using Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.Search;
+using Lucene.Net.Support;
+using Lucene.Net.Util;
+using Lucene.Net.Util.Automaton;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Precedence
+{
+    /// <summary>
+    /// This test case tests {@link PrecedenceQueryParser}.
+    /// <para/>
+    /// It contains all tests from {@link QueryParserTestBase}
+    /// with some adjusted to fit the precedence requirement, plus some precedence test cases.
+    /// </summary>
+    /// <seealso cref="QueryParserTestBase"/>
+    //TODO: refactor this to actually extend that class, overriding the tests
+    //that it adjusts to fit the precedence requirement, adding its extra tests.
+    public class TestPrecedenceQueryParser : LuceneTestCase
+    {
+        public static Analyzer qpAnalyzer;
+
+        [TestFixtureSetUp]
+        public static void beforeClass()
+        {
+            qpAnalyzer = new QPTestAnalyzer();
+        }
+
+        [TestFixtureTearDown]
+        public static void afterClass()
+        {
+            qpAnalyzer = null;
+        }
+
+        public sealed class QPTestFilter : TokenFilter
+        {
+            /**
+             * Filter which discards the token 'stop' and which expands the token
+             * 'phrase' into 'phrase1 phrase2'
+             */
+            public QPTestFilter(TokenStream @in)
+                        : base(@in)
+            {
+                termAtt = AddAttribute<ICharTermAttribute>();
+                offsetAtt = AddAttribute<IOffsetAttribute>();
+            }
+
+            private bool inPhrase = false;
+
+            private int savedStart = 0;
+            private int savedEnd = 0;
+
+            private readonly ICharTermAttribute termAtt;
+
+            private readonly IOffsetAttribute offsetAtt;
+
+
+            public override bool IncrementToken()
+            {
+                if (inPhrase)
+                {
+                    inPhrase = false;
+                    termAtt.SetEmpty().Append("phrase2");
+                    offsetAtt.SetOffset(savedStart, savedEnd);
+                    return true;
+                }
+                else
+                    while (input.IncrementToken())
+                        if (termAtt.toString().equals("phrase"))
+                        {
+                            inPhrase = true;
+                            savedStart = offsetAtt.StartOffset();
+                            savedEnd = offsetAtt.EndOffset();
+                            termAtt.SetEmpty().Append("phrase1");
+                            offsetAtt.SetOffset(savedStart, savedEnd);
+                            return true;
+                        }
+                        else if (!termAtt.toString().equals("stop"))
+                            return true;
+                return false;
+            }
+
+
+            public override void Reset()
+            {
+                base.Reset();
+                this.inPhrase = false;
+                this.savedStart = 0;
+                this.savedEnd = 0;
+            }
+        }
+
+        public sealed class QPTestAnalyzer : Analyzer
+        {
+
+            /** Filters MockTokenizer with StopFilter. */
+
+            public override sealed TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
+            {
+                Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.SIMPLE, true);
+                return new TokenStreamComponents(tokenizer, new QPTestFilter(tokenizer));
+            }
+        }
+
+        private int originalMaxClauses;
+
+
+        public override void SetUp()
+        {
+            base.SetUp();
+            originalMaxClauses = BooleanQuery.MaxClauseCount;
+        }
+
+        public PrecedenceQueryParser GetParser(Analyzer a)
+        {
+            if (a == null)
+                a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
+            PrecedenceQueryParser qp = new PrecedenceQueryParser();
+            qp.Analyzer = (a);
+            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.OR); // LUCENENET TODO: Change API back to the way it was..?
+            return qp;
+        }
+
+        public Query GetQuery(string query, Analyzer a)
+        {
+            return (Query)GetParser(a).Parse(query, "field"); // LUCENENET TODO: There was no cast here in the original - perhaps object is the wrong type on the interface
+        }
+
+        public void assertQueryEquals(string query, Analyzer a, string result)
+        {
+            Query q = GetQuery(query, a);
+            String s = q.ToString("field");
+            if (!s.equals(result))
+            {
+                fail("Query /" + query + "/ yielded /" + s + "/, expecting /" + result
+                    + "/");
+            }
+        }
+
+        public void assertWildcardQueryEquals(String query, bool lowercase,
+            String result)
+        {
+            PrecedenceQueryParser qp = GetParser(null);
+            qp.LowercaseExpandedTerms = (lowercase);
+            Query q = (Query)qp.Parse(query, "field");
+            String s = q.ToString("field");
+            if (!s.equals(result))
+            {
+                fail("WildcardQuery /" + query + "/ yielded /" + s + "/, expecting /"
+                    + result + "/");
+            }
+        }
+
+        public void assertWildcardQueryEquals(String query, String result)
+        {
+            PrecedenceQueryParser qp = GetParser(null);
+            Query q = (Query)qp.Parse(query, "field");
+            String s = q.ToString("field");
+            if (!s.equals(result))
+            {
+                fail("WildcardQuery /" + query + "/ yielded /" + s + "/, expecting /"
+                    + result + "/");
+            }
+        }
+
+        public Query getQueryDOA(String query, Analyzer a)
+        {
+            if (a == null)
+                a = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true);
+            PrecedenceQueryParser qp = new PrecedenceQueryParser();
+            qp.Analyzer = (a);
+            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            return (Query)qp.Parse(query, "field");
+        }
+
+        public void assertQueryEqualsDOA(String query, Analyzer a, String result)
+        {
+            Query q = getQueryDOA(query, a);
+            String s = q.ToString("field");
+            if (!s.equals(result))
+            {
+                fail("Query /" + query + "/ yielded /" + s + "/, expecting /" + result
+                    + "/");
+            }
+        }
+
+        [Test]
+        public void testSimple()
+        {
+            assertQueryEquals("term term term", null, "term term term");
+            assertQueryEquals("t�rm term term", null, "t�rm term term");
+            assertQueryEquals("�mlaut", null, "�mlaut");
+
+            assertQueryEquals("a AND b", null, "+a +b");
+            assertQueryEquals("(a AND b)", null, "+a +b");
+            assertQueryEquals("c OR (a AND b)", null, "c (+a +b)");
+            assertQueryEquals("a AND NOT b", null, "+a -b");
+            assertQueryEquals("a AND -b", null, "+a -b");
+            assertQueryEquals("a AND !b", null, "+a -b");
+            assertQueryEquals("a && b", null, "+a +b");
+            assertQueryEquals("a && ! b", null, "+a -b");
+
+            assertQueryEquals("a OR b", null, "a b");
+            assertQueryEquals("a || b", null, "a b");
+
+            assertQueryEquals("+term -term term", null, "+term -term term");
+            assertQueryEquals("foo:term AND field:anotherTerm", null,
+                "+foo:term +anotherterm");
+            assertQueryEquals("term AND \"phrase phrase\"", null,
+                "+term +\"phrase phrase\"");
+            assertQueryEquals("\"hello there\"", null, "\"hello there\"");
+            assertTrue(GetQuery("a AND b", null) is BooleanQuery);
+            assertTrue(GetQuery("hello", null) is TermQuery);
+            assertTrue(GetQuery("\"hello there\"", null) is PhraseQuery);
+
+            assertQueryEquals("germ term^2.0", null, "germ term^2.0");
+            assertQueryEquals("(term)^2.0", null, "term^2.0");
+            assertQueryEquals("(germ term)^2.0", null, "(germ term)^2.0");
+            assertQueryEquals("term^2.0", null, "term^2.0");
+            assertQueryEquals("term^2", null, "term^2.0");
+            assertQueryEquals("\"germ term\"^2.0", null, "\"germ term\"^2.0");
+            assertQueryEquals("\"term germ\"^2", null, "\"term germ\"^2.0");
+
+            assertQueryEquals("(foo OR bar) AND (baz OR boo)", null,
+                "+(foo bar) +(baz boo)");
+            assertQueryEquals("((a OR b) AND NOT c) OR d", null, "(+(a b) -c) d");
+            assertQueryEquals("+(apple \"steve jobs\") -(foo bar baz)", null,
+                "+(apple \"steve jobs\") -(foo bar baz)");
+            assertQueryEquals("+title:(dog OR cat) -author:\"bob dole\"", null,
+                "+(title:dog title:cat) -author:\"bob dole\"");
+
+            PrecedenceQueryParser qp = new PrecedenceQueryParser();
+            qp.Analyzer = (new MockAnalyzer(Random()));
+            // make sure OR is the default:
+            assertEquals(/*StandardQueryConfigHandler.*/Operator.OR, qp.GetDefaultOperator());
+            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/ Operator.AND);
+            assertEquals(/*StandardQueryConfigHandler.*/ Operator.AND, qp.GetDefaultOperator());
+            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/ Operator.OR);
+            assertEquals(/*StandardQueryConfigHandler.*/ Operator.OR, qp.GetDefaultOperator());
+
+            assertQueryEquals("a OR !b", null, "a -b");
+            assertQueryEquals("a OR ! b", null, "a -b");
+            assertQueryEquals("a OR -b", null, "a -b");
+        }
+
+        [Test]
+        public void testPunct()
+        {
+            Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
+            assertQueryEquals("a&b", a, "a&b");
+            assertQueryEquals("a&&b", a, "a&&b");
+            assertQueryEquals(".NET", a, ".NET");
+        }
+
+        [Test]
+        public void testSlop()
+        {
+            assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
+            assertQueryEquals("\"term germ\"~2 flork", null, "\"term germ\"~2 flork");
+            assertQueryEquals("\"term\"~2", null, "term");
+            assertQueryEquals("\" \"~2 germ", null, "germ");
+            assertQueryEquals("\"term germ\"~2^2", null, "\"term germ\"~2^2.0");
+        }
+
+        [Test]
+        public void testNumber()
+        {
+            // The numbers go away because SimpleAnalzyer ignores them
+            assertQueryEquals("3", null, "");
+            assertQueryEquals("term 1.0 1 2", null, "term");
+            assertQueryEquals("term term1 term2", null, "term term term");
+
+            Analyzer a = new MockAnalyzer(Random());
+            assertQueryEquals("3", a, "3");
+            assertQueryEquals("term 1.0 1 2", a, "term 1.0 1 2");
+            assertQueryEquals("term term1 term2", a, "term term1 term2");
+        }
+
+        [Test]
+        public void testWildcard()
+        {
+            assertQueryEquals("term*", null, "term*");
+            assertQueryEquals("term*^2", null, "term*^2.0");
+            assertQueryEquals("term~", null, "term~2");
+            assertQueryEquals("term~0.7", null, "term~1");
+            assertQueryEquals("term~^3", null, "term~2^3.0");
+            assertQueryEquals("term^3~", null, "term~2^3.0");
+            assertQueryEquals("term*germ", null, "term*germ");
+            assertQueryEquals("term*germ^3", null, "term*germ^3.0");
+
+            assertTrue(GetQuery("term*", null) is PrefixQuery);
+            assertTrue(GetQuery("term*^2", null) is PrefixQuery);
+            assertTrue(GetQuery("term~", null) is FuzzyQuery);
+            assertTrue(GetQuery("term~0.7", null) is FuzzyQuery);
+            FuzzyQuery fq = (FuzzyQuery)GetQuery("term~0.7", null);
+            assertEquals(1, fq.MaxEdits);
+            assertEquals(FuzzyQuery.DefaultPrefixLength, fq.PrefixLength);
+            fq = (FuzzyQuery)GetQuery("term~", null);
+            assertEquals(2, fq.MaxEdits);
+            assertEquals(FuzzyQuery.DefaultPrefixLength, fq.PrefixLength);
+            try
+            {
+                GetQuery("term~1.1", null); // value > 1, throws exception
+                fail();
+            }
+            catch (ParseException pe)
+            {
+                // expected exception
+            }
+            assertTrue(GetQuery("term*germ", null) is WildcardQuery);
+
+            /*
+             * Tests to see that wild card terms are (or are not) properly lower-cased
+             * with propery parser configuration
+             */
+            // First prefix queries:
+            // by default, convert to lowercase:
+            assertWildcardQueryEquals("Term*", true, "term*");
+            // explicitly set lowercase:
+            assertWildcardQueryEquals("term*", true, "term*");
+            assertWildcardQueryEquals("Term*", true, "term*");
+            assertWildcardQueryEquals("TERM*", true, "term*");
+            // explicitly disable lowercase conversion:
+            assertWildcardQueryEquals("term*", false, "term*");
+            assertWildcardQueryEquals("Term*", false, "Term*");
+            assertWildcardQueryEquals("TERM*", false, "TERM*");
+            // Then 'full' wildcard queries:
+            // by default, convert to lowercase:
+            assertWildcardQueryEquals("Te?m", "te?m");
+            // explicitly set lowercase:
+            assertWildcardQueryEquals("te?m", true, "te?m");
+            assertWildcardQueryEquals("Te?m", true, "te?m");
+            assertWildcardQueryEquals("TE?M", true, "te?m");
+            assertWildcardQueryEquals("Te?m*gerM", true, "te?m*germ");
+            // explicitly disable lowercase conversion:
+            assertWildcardQueryEquals("te?m", false, "te?m");
+            assertWildcardQueryEquals("Te?m", false, "Te?m");
+            assertWildcardQueryEquals("TE?M", false, "TE?M");
+            assertWildcardQueryEquals("Te?m*gerM", false, "Te?m*gerM");
+            // Fuzzy queries:
+            assertWildcardQueryEquals("Term~", "term~2");
+            assertWildcardQueryEquals("Term~", true, "term~2");
+            assertWildcardQueryEquals("Term~", false, "Term~2");
+            // Range queries:
+            assertWildcardQueryEquals("[A TO C]", "[a TO c]");
+            assertWildcardQueryEquals("[A TO C]", true, "[a TO c]");
+            assertWildcardQueryEquals("[A TO C]", false, "[A TO C]");
+        }
+
+        [Test]
+        public void testQPA()
+        {
+            assertQueryEquals("term term term", qpAnalyzer, "term term term");
+            assertQueryEquals("term +stop term", qpAnalyzer, "term term");
+            assertQueryEquals("term -stop term", qpAnalyzer, "term term");
+            assertQueryEquals("drop AND stop AND roll", qpAnalyzer, "+drop +roll");
+            assertQueryEquals("term phrase term", qpAnalyzer,
+                "term (phrase1 phrase2) term");
+            // note the parens in this next assertion differ from the original
+            // QueryParser behavior
+            assertQueryEquals("term AND NOT phrase term", qpAnalyzer,
+                "(+term -(phrase1 phrase2)) term");
+            assertQueryEquals("stop", qpAnalyzer, "");
+            assertQueryEquals("stop OR stop AND stop", qpAnalyzer, "");
+            assertTrue(GetQuery("term term term", qpAnalyzer) is BooleanQuery);
+            assertTrue(GetQuery("term +stop", qpAnalyzer) is TermQuery);
+        }
+
+        [Test]
+        public void testRange()
+        {
+            assertQueryEquals("[ a TO z]", null, "[a TO z]");
+            assertTrue(GetQuery("[ a TO z]", null) is TermRangeQuery);
+            assertQueryEquals("[ a TO z ]", null, "[a TO z]");
+            assertQueryEquals("{ a TO z}", null, "{a TO z}");
+            assertQueryEquals("{ a TO z }", null, "{a TO z}");
+            assertQueryEquals("{ a TO z }^2.0", null, "{a TO z}^2.0");
+            assertQueryEquals("[ a TO z] OR bar", null, "[a TO z] bar");
+            assertQueryEquals("[ a TO z] AND bar", null, "+[a TO z] +bar");
+            assertQueryEquals("( bar blar { a TO z}) ", null, "bar blar {a TO z}");
+            assertQueryEquals("gack ( bar blar { a TO z}) ", null,
+                "gack (bar blar {a TO z})");
+        }
+
+        private String escapeDateString(String s)
+        {
+            if (s.Contains(" "))
+            {
+                return "\"" + s + "\"";
+            }
+            else
+            {
+                return s;
+            }
+        }
+
+        public String getDate(String s)
+        {
+            // we use the default Locale since LuceneTestCase randomizes it
+            //DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
+            //return DateTools.DateToString(df.parse(s), DateTools.Resolution.DAY);
+
+            //DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
+            return DateTools.DateToString(DateTime.Parse(s), DateTools.Resolution.DAY);
+        }
+
+        private String getLocalizedDate(int year, int month, int day,
+            bool extendLastDate)
+        {
+            //// we use the default Locale/TZ since LuceneTestCase randomizes it
+            //DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
+            //Calendar calendar = new GregorianCalendar(TimeZone.getDefault(), Locale.getDefault());
+            //calendar.set(year, month, day);
+            //if (extendLastDate)
+            //{
+            //    calendar.set(Calendar.HOUR_OF_DAY, 23);
+            //    calendar.set(Calendar.MINUTE, 59);
+            //    calendar.set(Calendar.SECOND, 59);
+            //    calendar.set(Calendar.MILLISECOND, 999);
+            //}
+            //return df.format(calendar.getTime());
+
+
+            var calendar = CultureInfo.CurrentCulture.Calendar;
+            DateTime lastDate = new DateTime(year, month, day, calendar);
+
+            if (extendLastDate)
+            {
+                lastDate = calendar.AddHours(lastDate, 23);
+                lastDate = calendar.AddMinutes(lastDate, 59);
+                lastDate = calendar.AddSeconds(lastDate, 59);
+                lastDate = calendar.AddMilliseconds(lastDate, 999);
+            }
+
+            return lastDate.ToShortDateString();
+        }
+
+        [Test]
+        public void testDateRange()
+        {
+            String startDate = getLocalizedDate(2002, 1, 1, false);
+            String endDate = getLocalizedDate(2002, 1, 4, false);
+            // we use the default Locale/TZ since LuceneTestCase randomizes it
+            //Calendar endDateExpected = new GregorianCalendar(TimeZone.getDefault(), Locale.getDefault());
+            //endDateExpected.set(2002, 1, 4, 23, 59, 59);
+            //endDateExpected.set(Calendar.MILLISECOND, 999);
+            DateTime endDateExpected = new DateTime(2002, 1, 4, 23, 59, 59, 999, new GregorianCalendar());
+
+
+            String defaultField = "default";
+            String monthField = "month";
+            String hourField = "hour";
+            PrecedenceQueryParser qp = new PrecedenceQueryParser(new MockAnalyzer(Random()));
+
+            // LUCENENET TODO: Can we eliminate this nullable??
+            IDictionary<string, DateTools.Resolution?> fieldMap = new HashMap<string, DateTools.Resolution?>();
+            // set a field specific date resolution
+            fieldMap.Put(monthField, DateTools.Resolution.MONTH);
+            qp.SetDateResolution(fieldMap);
+
+            // set default date resolution to MILLISECOND
+            qp.SetDateResolution(DateTools.Resolution.MILLISECOND);
+
+            // set second field specific date resolution
+            fieldMap.Put(hourField, DateTools.Resolution.HOUR);
+            qp.SetDateResolution(fieldMap);
+
+            // for this field no field specific date resolution has been set,
+            // so verify if the default resolution is used
+            assertDateRangeQueryEquals(qp, defaultField, startDate, endDate,
+                endDateExpected, DateTools.Resolution.MILLISECOND);
+
+            // verify if field specific date resolutions are used for these two fields
+            assertDateRangeQueryEquals(qp, monthField, startDate, endDate,
+                endDateExpected, DateTools.Resolution.MONTH);
+
+            assertDateRangeQueryEquals(qp, hourField, startDate, endDate,
+                endDateExpected, DateTools.Resolution.HOUR);
+        }
+
+        /** for testing DateTools support */
+        private String getDate(String s, DateTools.Resolution resolution)
+        {
+            // we use the default Locale since LuceneTestCase randomizes it
+            //DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
+            //return getDate(df.parse(s), resolution);
+            return getDate(DateTime.Parse(s), resolution);
+        }
+
+        /** for testing DateTools support */
+        private String getDate(DateTime d, DateTools.Resolution resolution)
+        {
+            return DateTools.DateToString(d, resolution);
+        }
+
+        public void assertQueryEquals(PrecedenceQueryParser qp, String field, String query,
+            String result)
+        {
+            Query q = (Query)qp.Parse(query, field);
+            String s = q.ToString(field);
+            if (!s.equals(result))
+            {
+                fail("Query /" + query + "/ yielded /" + s + "/, expecting /" + result
+                    + "/");
+            }
+        }
+
+        public void assertDateRangeQueryEquals(PrecedenceQueryParser qp, String field,
+            String startDate, String endDate, DateTime endDateInclusive,
+            DateTools.Resolution resolution)
+        {
+            assertQueryEquals(qp, field, field + ":[" + escapeDateString(startDate)
+                + " TO " + escapeDateString(endDate) + "]", "["
+                + getDate(startDate, resolution) + " TO "
+                + getDate(endDateInclusive, resolution) + "]");
+            assertQueryEquals(qp, field, field + ":{" + escapeDateString(startDate)
+                + " TO " + escapeDateString(endDate) + "}", "{"
+                + getDate(startDate, resolution) + " TO "
+                + getDate(endDate, resolution) + "}");
+        }
+
+        [Test]
+        public void testEscaped()
+        {
+            Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
+
+            assertQueryEquals("a\\-b:c", a, "a-b:c");
+            assertQueryEquals("a\\+b:c", a, "a+b:c");
+            assertQueryEquals("a\\:b:c", a, "a:b:c");
+            assertQueryEquals("a\\\\b:c", a, "a\\b:c");
+
+            assertQueryEquals("a:b\\-c", a, "a:b-c");
+            assertQueryEquals("a:b\\+c", a, "a:b+c");
+            assertQueryEquals("a:b\\:c", a, "a:b:c");
+            assertQueryEquals("a:b\\\\c", a, "a:b\\c");
+
+            assertQueryEquals("a:b\\-c*", a, "a:b-c*");
+            assertQueryEquals("a:b\\+c*", a, "a:b+c*");
+            assertQueryEquals("a:b\\:c*", a, "a:b:c*");
+
+            assertQueryEquals("a:b\\\\c*", a, "a:b\\c*");
+
+            assertQueryEquals("a:b\\-?c", a, "a:b-?c");
+            assertQueryEquals("a:b\\+?c", a, "a:b+?c");
+            assertQueryEquals("a:b\\:?c", a, "a:b:?c");
+
+            assertQueryEquals("a:b\\\\?c", a, "a:b\\?c");
+
+            assertQueryEquals("a:b\\-c~", a, "a:b-c~2");
+            assertQueryEquals("a:b\\+c~", a, "a:b+c~2");
+            assertQueryEquals("a:b\\:c~", a, "a:b:c~2");
+            assertQueryEquals("a:b\\\\c~", a, "a:b\\c~2");
+
+            assertQueryEquals("[ a\\- TO a\\+ ]", null, "[a- TO a+]");
+            assertQueryEquals("[ a\\: TO a\\~ ]", null, "[a: TO a~]");
+            assertQueryEquals("[ a\\\\ TO a\\* ]", null, "[a\\ TO a*]");
+        }
+
+        [Test]
+        public void testTabNewlineCarriageReturn()
+        {
+            assertQueryEqualsDOA("+weltbank +worlbank", null, "+weltbank +worlbank");
+
+            assertQueryEqualsDOA("+weltbank\n+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \n+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \n +worlbank", null, "+weltbank +worlbank");
+
+            assertQueryEqualsDOA("+weltbank\r+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r +worlbank", null, "+weltbank +worlbank");
+
+            assertQueryEqualsDOA("+weltbank\r\n+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r\n+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r\n +worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \r \n +worlbank", null,
+                "+weltbank +worlbank");
+
+            assertQueryEqualsDOA("+weltbank\t+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \t+worlbank", null, "+weltbank +worlbank");
+            assertQueryEqualsDOA("weltbank \t +worlbank", null, "+weltbank +worlbank");
+        }
+
+        [Test]
+        public void testSimpleDAO()
+        {
+            assertQueryEqualsDOA("term term term", null, "+term +term +term");
+            assertQueryEqualsDOA("term +term term", null, "+term +term +term");
+            assertQueryEqualsDOA("term term +term", null, "+term +term +term");
+            assertQueryEqualsDOA("term +term +term", null, "+term +term +term");
+            assertQueryEqualsDOA("-term term term", null, "-term +term +term");
+        }
+
+        [Test]
+        public void testBoost()
+        {
+            CharacterRunAutomaton stopSet = new CharacterRunAutomaton(BasicAutomata.MakeString("on"));
+            Analyzer oneStopAnalyzer = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, stopSet);
+
+            PrecedenceQueryParser qp = new PrecedenceQueryParser();
+            qp.Analyzer = (oneStopAnalyzer);
+            Query q = (Query)qp.Parse("on^1.0", "field");
+            assertNotNull(q);
+            q = (Query)qp.Parse("\"hello\"^2.0", "field");
+            assertNotNull(q);
+            assertEquals(q.Boost, (float)2.0, (float)0.5);
+            q = (Query)qp.Parse("hello^2.0", "field");
+            assertNotNull(q);
+            assertEquals(q.Boost, (float)2.0, (float)0.5);
+            q = (Query)qp.Parse("\"on\"^1.0", "field");
+            assertNotNull(q);
+
+            q = (Query)GetParser(new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, MockTokenFilter.ENGLISH_STOPSET)).Parse("the^3",
+                    "field");
+            assertNotNull(q);
+        }
+
+        [Test]
+        public void testException()
+        {
+            try
+            {
+                assertQueryEquals("\"some phrase", null, "abc");
+                fail("ParseException expected, not thrown");
+            }
+            catch (QueryNodeParseException expected)
+            {
+            }
+        }
+
+        [Test]
+        public void testBooleanQuery()
+        {
+            BooleanQuery.MaxClauseCount = (2);
+            try
+            {
+                GetParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false)).Parse("one two three", "field");
+                fail("ParseException expected due to too many boolean clauses");
+            }
+            catch (QueryNodeException expected)
+            {
+                // too many boolean clauses, so ParseException is expected
+            }
+        }
+
+        // LUCENE-792
+        [Test]
+        public void testNOT()
+        {
+            Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
+            assertQueryEquals("NOT foo AND bar", a, "-foo +bar");
+        }
+
+        /**
+         * This test differs from the original QueryParser, showing how the precedence
+         * issue has been corrected.
+         */
+        [Test]
+        public void testPrecedence()
+        {
+            PrecedenceQueryParser parser = GetParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
+            Query query1 = (Query)parser.Parse("A AND B OR C AND D", "field");
+            Query query2 = (Query)parser.Parse("(A AND B) OR (C AND D)", "field");
+            assertEquals(query1, query2);
+
+            query1 = (Query)parser.Parse("A OR B C", "field");
+            query2 = (Query)parser.Parse("(A B) C", "field");
+            assertEquals(query1, query2);
+
+            query1 = (Query)parser.Parse("A AND B C", "field");
+            query2 = (Query)parser.Parse("(+A +B) C", "field");
+            assertEquals(query1, query2);
+
+            query1 = (Query)parser.Parse("A AND NOT B", "field");
+            query2 = (Query)parser.Parse("+A -B", "field");
+            assertEquals(query1, query2);
+
+            query1 = (Query)parser.Parse("A OR NOT B", "field");
+            query2 = (Query)parser.Parse("A -B", "field");
+            assertEquals(query1, query2);
+
+            query1 = (Query)parser.Parse("A OR NOT B AND C", "field");
+            query2 = (Query)parser.Parse("A (-B +C)", "field");
+            assertEquals(query1, query2);
+
+            parser.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            query1 = (Query)parser.Parse("A AND B OR C AND D", "field");
+            query2 = (Query)parser.Parse("(A AND B) OR (C AND D)", "field");
+            assertEquals(query1, query2);
+
+            query1 = (Query)parser.Parse("A AND B C", "field");
+            query2 = (Query)parser.Parse("(A B) C", "field");
+            assertEquals(query1, query2);
+
+            query1 = (Query)parser.Parse("A AND B C", "field");
+            query2 = (Query)parser.Parse("(+A +B) C", "field");
+            assertEquals(query1, query2);
+
+            query1 = (Query)parser.Parse("A AND NOT B", "field");
+            query2 = (Query)parser.Parse("+A -B", "field");
+            assertEquals(query1, query2);
+
+            query1 = (Query)parser.Parse("A AND NOT B OR C", "field");
+            query2 = (Query)parser.Parse("(+A -B) OR C", "field");
+            assertEquals(query1, query2);
+
+        }
+
+
+        public override void TearDown()
+        {
+            BooleanQuery.MaxClauseCount = (originalMaxClauses);
+            base.TearDown();
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
new file mode 100644
index 0000000..c93c267
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
@@ -0,0 +1,50 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Builders;
+using Lucene.Net.Search;
+using Lucene.Net.Search.Spans;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// This builder creates {@link SpanOrQuery}s from a {@link BooleanQueryNode}.
+    /// <para/>
+    /// It assumes that the {@link BooleanQueryNode} instance has at least one child.
+    /// </summary>
+    public class SpanOrQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public virtual Query Build(IQueryNode node)
+        {
+
+            // validates node
+            BooleanQueryNode booleanNode = (BooleanQueryNode)node;
+
+            IList<IQueryNode> children = booleanNode.GetChildren();
+            SpanQuery[]
+            spanQueries = new SpanQuery[children.size()];
+
+            int i = 0;
+            foreach (IQueryNode child in children)
+            {
+                spanQueries[i++] = (SpanQuery)child
+                    .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+            }
+
+            return new SpanOrQuery(spanQueries);
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
new file mode 100644
index 0000000..30946d2
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
@@ -0,0 +1,40 @@
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Builders;
+using Lucene.Net.Search;
+using Lucene.Net.Search.Spans;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// This builder creates {@link SpanTermQuery}s from a {@link FieldQueryNode}
+    /// object.
+    /// </summary>
+    public class SpanTermQueryNodeBuilder : IStandardQueryBuilder
+    {
+
+        public Query Build(IQueryNode node)
+        {
+            FieldQueryNode fieldQueryNode = (FieldQueryNode)node;
+
+            return new SpanTermQuery(new Term(fieldQueryNode.GetFieldAsString(),
+                fieldQueryNode.GetTextAsString()));
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
new file mode 100644
index 0000000..a5b8f7a
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
@@ -0,0 +1,33 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// This query config handler only adds the {@link UniqueFieldAttribute} to it.
+    /// <para/>
+    /// It does not return any configuration for a field in specific.
+    /// </summary>
+    public class SpansQueryConfigHandler : QueryConfigHandler
+    {
+        public readonly static ConfigurationKey<string> UNIQUE_FIELD = ConfigurationKey.NewInstance<string>();
+
+        public SpansQueryConfigHandler()
+        {
+            // empty constructor
+        }
+
+
+        public override FieldConfig GetFieldConfig(string fieldName)
+        {
+
+            // there is no field configuration, always return null
+            return null;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
new file mode 100644
index 0000000..8810367
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
@@ -0,0 +1,44 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Builders;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// Sets up a query tree builder to build a span query tree from a query node
+    /// tree.
+    /// <para/>
+    /// The defined map is:
+    /// - every BooleanQueryNode instance is delegated to the SpanOrQueryNodeBuilder
+    /// - every FieldQueryNode instance is delegated to the SpanTermQueryNodeBuilder
+    /// </summary>
+    public class SpansQueryTreeBuilder : QueryTreeBuilder, IStandardQueryBuilder
+    {
+        public SpansQueryTreeBuilder()
+        {
+            SetBuilder(typeof(BooleanQueryNode), new SpanOrQueryNodeBuilder());
+            SetBuilder(typeof(FieldQueryNode), new SpanTermQueryNodeBuilder());
+
+        }
+
+
+        Query IStandardQueryBuilder.Build(IQueryNode queryTree)
+        {
+            return (Query)base.Build(queryTree);
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        public override object Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
new file mode 100644
index 0000000..c44c1f5
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
@@ -0,0 +1,55 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// Validates every query node in a query node tree. This processor will pass
+    /// fine if the query nodes are only {@link BooleanQueryNode}s,
+    /// {@link OrQueryNode}s or {@link FieldQueryNode}s, otherwise an exception will
+    /// be thrown.
+    /// <para/>
+    /// If they are {@link AndQueryNode} or an instance of anything else that
+    /// implements {@link FieldQueryNode} the exception will also be thrown.
+    /// </summary>
+    public class SpansValidatorQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            if (!((node is BooleanQueryNode && !(node is AndQueryNode)) || node
+                .GetType() == typeof(FieldQueryNode)))
+            {
+                throw new QueryNodeException(new MessageImpl(
+                    QueryParserMessages.NODE_ACTION_NOT_SUPPORTED));
+            }
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
new file mode 100644
index 0000000..eff0c6e
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
@@ -0,0 +1,238 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
+using Lucene.Net.Search.Spans;
+using Lucene.Net.Util;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// This test case demonstrates how the new query parser can be used.
+    /// <para/>
+    /// It tests queries likes "term", "field:term" "term1 term2" "term1 OR term2",
+    /// which are all already supported by the current syntax parser (
+    /// {@link StandardSyntaxParser}).
+    /// <para/>
+    /// The goals is to create a new query parser that supports only the pair
+    /// "field:term" or a list of pairs separated or not by an OR operator, and from
+    /// this query generate {@link SpanQuery} objects instead of the regular
+    /// {@link Query} objects. Basically, every pair will be converted to a
+    /// {@link SpanTermQuery} object and if there are more than one pair they will be
+    /// grouped by an {@link OrQueryNode}.
+    /// <para/>
+    /// Another functionality that will be added is the ability to convert every
+    /// field defined in the query to an unique specific field.
+    /// <para/>
+    /// The query generation is divided in three different steps: parsing (syntax),
+    /// processing (semantic) and building.
+    /// <para/>
+    /// The parsing phase, as already mentioned will be performed by the current
+    /// query parser: {@link StandardSyntaxParser}.
+    /// <para/>
+    /// The processing phase will be performed by a processor pipeline which is
+    /// compound by 2 processors: {@link SpansValidatorQueryNodeProcessor} and
+    /// {@link UniqueFieldQueryNodeProcessor}.
+    /// <para/>
+    /// 
+    ///     {@link SpansValidatorQueryNodeProcessor}: as it's going to use the current 
+    ///     query parser to parse the syntax, it will support more features than we want,
+    ///     this processor basically validates the query node tree generated by the parser
+    ///     and just let got through the elements we want, all the other elements as 
+    ///     wildcards, range queries, etc...if found, an exception is thrown.
+    ///     
+    ///     {@link UniqueFieldQueryNodeProcessor}: this processor will take care of reading
+    ///     what is the &quot;unique field&quot; from the configuration and convert every field defined
+    ///     in every pair to this &quot;unique field&quot;. For that, a {@link SpansQueryConfigHandler} is
+    ///     used, which has the {@link UniqueFieldAttribute} defined in it.
+    /// 
+    /// <para/>
+    /// The building phase is performed by the {@link SpansQueryTreeBuilder}, which
+    /// basically contains a map that defines which builder will be used to generate
+    /// {@link SpanQuery} objects from {@link QueryNode} objects.
+    /// </summary>
+    /// <seealso cref="SpansQueryConfigHandler"/>
+    /// <seealso cref="SpansQueryTreeBuilder"/>
+    /// <seealso cref="SpansValidatorQueryNodeProcessor"/>
+    /// <seealso cref="SpanOrQueryNodeBuilder"/>
+    /// <seealso cref="SpanTermQueryNodeBuilder"/>
+    /// <seealso cref="StandardSyntaxParser"/>
+    /// <seealso cref="UniqueFieldQueryNodeProcessor"/>
+    /// <seealso cref="IUniqueFieldAttribute"/>
+    public class TestSpanQueryParser : LuceneTestCase
+    {
+        private QueryNodeProcessorPipeline spanProcessorPipeline;
+
+        private SpansQueryConfigHandler spanQueryConfigHandler;
+
+        private SpansQueryTreeBuilder spansQueryTreeBuilder;
+
+        private ISyntaxParser queryParser = new StandardSyntaxParser();
+
+        public TestSpanQueryParser()
+        {
+            // empty constructor
+        }
+
+
+        public override void SetUp()
+        {
+            base.SetUp();
+
+            this.spanProcessorPipeline = new QueryNodeProcessorPipeline();
+            this.spanQueryConfigHandler = new SpansQueryConfigHandler();
+            this.spansQueryTreeBuilder = new SpansQueryTreeBuilder();
+
+            // set up the processor pipeline
+            this.spanProcessorPipeline
+                .SetQueryConfigHandler(this.spanQueryConfigHandler);
+
+            this.spanProcessorPipeline.Add(new WildcardQueryNodeProcessor());
+            this.spanProcessorPipeline.Add(new SpansValidatorQueryNodeProcessor());
+            this.spanProcessorPipeline.Add(new UniqueFieldQueryNodeProcessor());
+
+        }
+
+        public SpanQuery GetSpanQuery(/*CharSequence*/string query)
+        {
+            return GetSpanQuery("", query);
+        }
+
+        public SpanQuery GetSpanQuery(String uniqueField, /*CharSequence*/string query)
+        {
+
+            this.spanQueryConfigHandler.Set(SpansQueryConfigHandler.UNIQUE_FIELD, uniqueField);
+
+            IQueryNode queryTree = this.queryParser.Parse(query, "defaultField");
+            queryTree = this.spanProcessorPipeline.Process(queryTree);
+
+            return (SpanQuery)this.spansQueryTreeBuilder.Build(queryTree); // LUCENENET TODO: Find way to remove cast
+
+        }
+
+        [Test]
+        public void testTermSpans()
+        {
+            assertEquals(GetSpanQuery("field:term").toString(), "term");
+            assertEquals(GetSpanQuery("term").toString(), "term");
+
+            assertTrue(GetSpanQuery("field:term") is SpanTermQuery);
+            assertTrue(GetSpanQuery("term") is SpanTermQuery);
+
+        }
+
+        [Test]
+        public void testUniqueField()
+        {
+            assertEquals(GetSpanQuery("field", "term").toString(), "field:term");
+            assertEquals(GetSpanQuery("field", "field:term").toString(), "field:term");
+            assertEquals(GetSpanQuery("field", "anotherField:term").toString(),
+            "field:term");
+
+        }
+
+        [Test]
+        public void testOrSpans()
+        {
+            assertEquals(GetSpanQuery("term1 term2").toString(),
+            "spanOr([term1, term2])");
+            assertEquals(GetSpanQuery("term1 OR term2").toString(),
+            "spanOr([term1, term2])");
+
+            assertTrue(GetSpanQuery("term1 term2") is SpanOrQuery);
+            assertTrue(GetSpanQuery("term1 term2") is SpanOrQuery);
+
+        }
+
+        [Test]
+        public void testQueryValidator()
+        {
+
+            try
+            {
+                GetSpanQuery("term*");
+                fail("QueryNodeException was expected, wildcard queries should not be supported");
+
+            }
+            catch (QueryNodeException ex)
+            {
+                // expected exception
+            }
+
+            try
+            {
+                GetSpanQuery("[a TO z]");
+                fail("QueryNodeException was expected, range queries should not be supported");
+
+            }
+            catch (QueryNodeException ex)
+            {
+                // expected exception
+            }
+
+            try
+            {
+                GetSpanQuery("a~0.5");
+                fail("QueryNodeException was expected, boost queries should not be supported");
+
+            }
+            catch (QueryNodeException ex)
+            {
+                // expected exception
+            }
+
+            try
+            {
+                GetSpanQuery("a^0.5");
+                fail("QueryNodeException was expected, fuzzy queries should not be supported");
+
+            }
+            catch (QueryNodeException ex)
+            {
+                // expected exception
+            }
+
+            try
+            {
+                GetSpanQuery("\"a b\"");
+                fail("QueryNodeException was expected, quoted queries should not be supported");
+
+            }
+            catch (QueryNodeException ex)
+            {
+                // expected exception
+            }
+
+            try
+            {
+                GetSpanQuery("(a b)");
+                fail("QueryNodeException was expected, parenthesized queries should not be supported");
+
+            }
+            catch (QueryNodeException ex)
+            {
+                // expected exception
+            }
+
+            try
+            {
+                GetSpanQuery("a AND b");
+                fail("QueryNodeException was expected, and queries should not be supported");
+
+            }
+            catch (QueryNodeException ex)
+            {
+                // expected exception
+            }
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
new file mode 100644
index 0000000..1f8f8e4
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
@@ -0,0 +1,113 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.Search.Spans;
+using Lucene.Net.Util;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// This test case demonstrates how the new query parser can be used.
+    /// <para/>
+    /// It tests queries likes "term", "field:term" "term1 term2" "term1 OR term2",
+    /// which are all already supported by the current syntax parser (
+    /// {@link StandardSyntaxParser}).
+    /// <para/>
+    /// The goals is to create a new query parser that supports only the pair
+    /// "field:term" or a list of pairs separated or not by an OR operator, and from
+    /// this query generate {@link SpanQuery} objects instead of the regular
+    /// {@link Query} objects. Basically, every pair will be converted to a
+    /// {@link SpanTermQuery} object and if there are more than one pair they will be
+    /// grouped by an {@link OrQueryNode}.
+    /// <para/>
+    /// Another functionality that will be added is the ability to convert every
+    /// field defined in the query to an unique specific field.
+    /// <para/>
+    /// The query generation is divided in three different steps: parsing (syntax),
+    /// processing (semantic) and building.
+    /// <para/>
+    /// The parsing phase, as already mentioned will be performed by the current
+    /// query parser: {@link StandardSyntaxParser}.
+    /// <para/>
+    /// The processing phase will be performed by a processor pipeline which is
+    /// compound by 2 processors: {@link SpansValidatorQueryNodeProcessor} and
+    /// {@link UniqueFieldQueryNodeProcessor}.
+    /// <para/>
+    ///     {@link SpansValidatorQueryNodeProcessor}: as it's going to use the current 
+    ///     query parser to parse the syntax, it will support more features than we want,
+    ///     this processor basically validates the query node tree generated by the parser
+    ///     and just let got through the elements we want, all the other elements as 
+    ///     wildcards, range queries, etc...if found, an exception is thrown.
+    ///     <para/>
+    ///     {@link UniqueFieldQueryNodeProcessor}: this processor will take care of reading
+    ///     what is the &quot;unique field&quot; from the configuration and convert every field defined
+    ///     in every pair to this &quot;unique field&quot;. For that, a {@link SpansQueryConfigHandler} is
+    ///     used, which has the {@link UniqueFieldAttribute} defined in it.
+    /// <para/>
+    /// The building phase is performed by the {@link SpansQueryTreeBuilder}, which
+    /// basically contains a map that defines which builder will be used to generate
+    /// {@link SpanQuery} objects from {@link QueryNode} objects.
+    /// </summary>
+    /// <seealso cref="TestSpanQueryParser">for a more advanced example</seealso>
+    /// 
+    /// <seealso cref="SpansQueryConfigHandler"/>
+    /// <seealso cref="SpansQueryTreeBuilder"/>
+    /// <seealso cref="SpansValidatorQueryNodeProcessor"/>
+    /// <seealso cref="SpanOrQueryNodeBuilder"/>
+    /// <seealso cref="SpanTermQueryNodeBuilder"/>
+    /// <seealso cref="StandardSyntaxParser"/>
+    /// <seealso cref="UniqueFieldQueryNodeProcessor"/>
+    /// <seealso cref="IUniqueFieldAttribute"/>
+    public class TestSpanQueryParserSimpleSample : LuceneTestCase
+    {
+        [Test]
+        public void testBasicDemo()
+        {
+            ISyntaxParser queryParser = new StandardSyntaxParser();
+
+            // convert the CharSequence into a QueryNode tree
+            IQueryNode queryTree = queryParser.Parse("body:text", null);
+
+            // create a config handler with a attribute used in
+            // UniqueFieldQueryNodeProcessor
+            QueryConfigHandler spanQueryConfigHandler = new SpansQueryConfigHandler();
+            spanQueryConfigHandler.Set(SpansQueryConfigHandler.UNIQUE_FIELD, "index");
+
+            // set up the processor pipeline with the ConfigHandler
+            // and create the pipeline for this simple demo
+            QueryNodeProcessorPipeline spanProcessorPipeline = new QueryNodeProcessorPipeline(
+                spanQueryConfigHandler);
+            // @see SpansValidatorQueryNodeProcessor
+            spanProcessorPipeline.Add(new SpansValidatorQueryNodeProcessor());
+            // @see UniqueFieldQueryNodeProcessor
+            spanProcessorPipeline.Add(new UniqueFieldQueryNodeProcessor());
+
+            // print to show out the QueryNode tree before being processed
+            if (VERBOSE) Console.WriteLine(queryTree);
+
+            // Process the QueryTree using our new Processors
+            queryTree = spanProcessorPipeline.Process(queryTree);
+
+            // print to show out the QueryNode tree after being processed
+            if (VERBOSE) Console.WriteLine(queryTree);
+
+            // create a instance off the Builder
+            SpansQueryTreeBuilder spansQueryTreeBuilder = new SpansQueryTreeBuilder();
+
+            // convert QueryNode tree to span query Objects
+            SpanQuery spanquery = (SpanQuery)spansQueryTreeBuilder.Build(queryTree); // LUCENENET TODO: Find a way to remove the cast
+
+            assertTrue(spanquery is SpanTermQuery);
+            assertEquals(spanquery.toString(), "index:text");
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
new file mode 100644
index 0000000..5cc2628
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
@@ -0,0 +1,22 @@
+\ufeffusing Lucene.Net.Util;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// This attribute is used by the {@link UniqueFieldQueryNodeProcessor}
+    /// processor. It holds a value that defines which is the unique field name that
+    /// should be set in every {@link FieldableNode}.
+    /// </summary>
+    /// <seealso cref="UniqueFieldQueryNodeProcessor"/>
+    public interface IUniqueFieldAttribute : IAttribute
+    {
+        void SetUniqueField(string uniqueField);
+
+        string GetUniqueField();
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
new file mode 100644
index 0000000..1fc4fc6
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
@@ -0,0 +1,88 @@
+\ufeff//using System;
+using Lucene.Net.Util;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// This attribute is used by the {@link UniqueFieldQueryNodeProcessor}
+    /// processor. It holds a value that defines which is the unique field name that
+    /// should be set in every {@link FieldableNode}.
+    /// </summary>
+    /// <seealso cref="UniqueFieldQueryNodeProcessor"/>
+    public class UniqueFieldAttributeImpl : AttributeImpl, IUniqueFieldAttribute
+    {
+        private string uniqueField;
+
+        public UniqueFieldAttributeImpl()
+        {
+            Clear();
+        }
+
+
+        public override void Clear()
+        {
+            this.uniqueField = "";
+        }
+
+
+        public void SetUniqueField(string uniqueField)
+        {
+            this.uniqueField = uniqueField;
+        }
+
+
+        public string GetUniqueField()
+        {
+            return this.uniqueField;
+        }
+
+
+        public override void CopyTo(Attribute target)
+        {
+
+            if (!(target is UniqueFieldAttributeImpl))
+            {
+                throw new System.ArgumentException(
+                    "cannot copy the values from attribute UniqueFieldAttribute to an instance of "
+                        + target.GetType().Name);
+            }
+
+            UniqueFieldAttributeImpl uniqueFieldAttr = (UniqueFieldAttributeImpl)target;
+            uniqueFieldAttr.uniqueField = uniqueField.toString();
+
+        }
+
+
+        public override bool Equals(object other)
+        {
+
+            if (other is UniqueFieldAttributeImpl)
+            {
+
+                return ((UniqueFieldAttributeImpl)other).uniqueField
+                    .equals(this.uniqueField);
+
+            }
+
+            return false;
+
+        }
+
+
+        public override int GetHashCode()
+        {
+            return this.uniqueField.GetHashCode();
+        }
+
+
+        public override string ToString()
+        {
+            return "<uniqueField uniqueField='" + this.uniqueField + "'/>";
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
new file mode 100644
index 0000000..38ad997
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
@@ -0,0 +1,68 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Spans
+{
+    /// <summary>
+    /// This processor changes every field name of each {@link FieldableNode} query
+    /// node contained in the query tree to the field name defined in the
+    /// {@link UniqueFieldAttribute}. So, the {@link UniqueFieldAttribute} must be
+    /// defined in the {@link QueryConfigHandler} object set in this processor,
+    /// otherwise it throws an exception.
+    /// </summary>
+    /// <seealso cref="UniqueFieldAttribute"/>
+    public class UniqueFieldQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            if (node is IFieldableNode)
+            {
+                IFieldableNode fieldNode = (IFieldableNode)node;
+
+                QueryConfigHandler queryConfig = GetQueryConfigHandler();
+
+                if (queryConfig == null)
+                {
+                    throw new ArgumentException(
+                        "A config handler is expected by the processor UniqueFieldQueryNodeProcessor!");
+                }
+
+                if (!queryConfig.has(SpansQueryConfigHandler.UNIQUE_FIELD))
+                {
+                    throw new ArgumentException(
+                        "UniqueFieldAttribute should be defined in the config handler!");
+                }
+
+                String uniqueField = queryConfig.Get(SpansQueryConfigHandler.UNIQUE_FIELD);
+                fieldNode.Field = (uniqueField);
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
new file mode 100644
index 0000000..d67bcb7
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
@@ -0,0 +1,267 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.Analysis.Tokenattributes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.Util;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard
+{
+    /// <summary>
+    /// This test case is a copy of the core Lucene query parser test, it was adapted
+    /// to use new QueryParserHelper instead of the old query parser.
+    /// 
+    /// Test QueryParser's ability to deal with Analyzers that return more than one
+    /// token per position or that return tokens with a position increment &gt; 1.
+    /// </summary>
+    public class TestMultiAnalyzerQPHelper : LuceneTestCase
+    {
+        private static int multiToken = 0;
+
+        [Test]
+        public void testMultiAnalyzer()
+        {
+
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (new MultiAnalyzer());
+
+            // trivial, no multiple tokens:
+            assertEquals("foo", qp.Parse("foo", "").toString());
+            assertEquals("foo", qp.Parse("\"foo\"", "").toString());
+            assertEquals("foo foobar", qp.Parse("foo foobar", "").toString());
+            assertEquals("\"foo foobar\"", qp.Parse("\"foo foobar\"", "").toString());
+            assertEquals("\"foo foobar blah\"", qp.Parse("\"foo foobar blah\"", "")
+                .toString());
+
+            // two tokens at the same position:
+            assertEquals("(multi multi2) foo", qp.Parse("multi foo", "").toString());
+            assertEquals("foo (multi multi2)", qp.Parse("foo multi", "").toString());
+            assertEquals("(multi multi2) (multi multi2)", qp.Parse("multi multi", "")
+                .toString());
+            assertEquals("+(foo (multi multi2)) +(bar (multi multi2))", qp.Parse(
+                "+(foo multi) +(bar multi)", "").toString());
+            assertEquals("+(foo (multi multi2)) field:\"bar (multi multi2)\"", qp
+                .Parse("+(foo multi) field:\"bar multi\"", "").toString());
+
+            // phrases:
+            assertEquals("\"(multi multi2) foo\"", qp.Parse("\"multi foo\"", "")
+                .toString());
+            assertEquals("\"foo (multi multi2)\"", qp.Parse("\"foo multi\"", "")
+                .toString());
+            assertEquals("\"foo (multi multi2) foobar (multi multi2)\"", qp.Parse(
+                "\"foo multi foobar multi\"", "").toString());
+
+            // fields:
+            assertEquals("(field:multi field:multi2) field:foo", qp.Parse(
+                "field:multi field:foo", "").toString());
+            assertEquals("field:\"(multi multi2) foo\"", qp.Parse(
+                "field:\"multi foo\"", "").toString());
+
+            // three tokens at one position:
+            assertEquals("triplemulti multi3 multi2", qp.Parse("triplemulti", "")
+                .toString());
+            assertEquals("foo (triplemulti multi3 multi2) foobar", qp.Parse(
+                "foo triplemulti foobar", "").toString());
+
+            // phrase with non-default slop:
+            assertEquals("\"(multi multi2) foo\"~10", qp.Parse("\"multi foo\"~10", "")
+                .toString());
+
+            // phrase with non-default boost:
+            assertEquals("\"(multi multi2) foo\"^2.0", qp.Parse("\"multi foo\"^2", "")
+                .toString());
+
+            // phrase after changing default slop
+            qp.SetDefaultPhraseSlop(99);
+            assertEquals("\"(multi multi2) foo\"~99 bar", qp.Parse("\"multi foo\" bar",
+                "").toString());
+            assertEquals("\"(multi multi2) foo\"~99 \"foo bar\"~2", qp.Parse(
+                "\"multi foo\" \"foo bar\"~2", "").toString());
+            qp.SetDefaultPhraseSlop(0);
+
+            // non-default operator:
+            qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
+            assertEquals("+(multi multi2) +foo", qp.Parse("multi foo", "").toString());
+
+        }
+
+        // public void testMultiAnalyzerWithSubclassOfQueryParser() throws
+        // ParseException {
+        // this test doesn't make sense when using the new QueryParser API
+        // DumbQueryParser qp = new DumbQueryParser("", new MultiAnalyzer());
+        // qp.setPhraseSlop(99); // modified default slop
+        //
+        // // direct call to (super's) getFieldQuery to demonstrate differnce
+        // // between phrase and multiphrase with modified default slop
+        // assertEquals("\"foo bar\"~99",
+        // qp.getSuperFieldQuery("","foo bar").toString());
+        // assertEquals("\"(multi multi2) bar\"~99",
+        // qp.getSuperFieldQuery("","multi bar").toString());
+        //
+        //    
+        // // ask sublcass to parse phrase with modified default slop
+        // assertEquals("\"(multi multi2) foo\"~99 bar",
+        // qp.parse("\"multi foo\" bar").toString());
+        //    
+        // }
+
+        [Test]
+        public void testPosIncrementAnalyzer()
+        {
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = (new PosIncrementAnalyzer());
+
+            assertEquals("quick brown", qp.Parse("the quick brown", "").toString());
+            assertEquals("\"? quick brown\"", qp.Parse("\"the quick brown\"", "")
+                .toString());
+            assertEquals("quick brown fox", qp.Parse("the quick brown fox", "")
+                .toString());
+            assertEquals("\"? quick brown fox\"", qp.Parse("\"the quick brown fox\"", "")
+                .toString());
+        }
+
+        /**
+         * Expands "multi" to "multi" and "multi2", both at the same position, and
+         * expands "triplemulti" to "triplemulti", "multi3", and "multi2".
+         */
+        private class MultiAnalyzer : Analyzer
+        {
+
+
+            public override TokenStreamComponents CreateComponents(String fieldName, TextReader reader)
+            {
+                Tokenizer result = new MockTokenizer(reader, MockTokenizer.WHITESPACE, true);
+                return new TokenStreamComponents(result, new TestFilter(result));
+            }
+        }
+
+        private sealed class TestFilter : TokenFilter
+        {
+
+            private String prevType;
+            private int prevStartOffset;
+            private int prevEndOffset;
+
+            private readonly ICharTermAttribute termAtt;
+            private readonly IPositionIncrementAttribute posIncrAtt;
+            private readonly IOffsetAttribute offsetAtt;
+            private readonly ITypeAttribute typeAtt;
+
+            public TestFilter(TokenStream @in)
+                        : base(@in)
+            {
+                termAtt = AddAttribute<ICharTermAttribute>();
+                posIncrAtt = AddAttribute<IPositionIncrementAttribute>();
+                offsetAtt = AddAttribute<IOffsetAttribute>();
+                typeAtt = AddAttribute<ITypeAttribute>();
+            }
+
+
+            public override sealed bool IncrementToken()
+            {
+                if (multiToken > 0)
+                {
+                    termAtt.SetEmpty().Append("multi" + (multiToken + 1));
+                    offsetAtt.SetOffset(prevStartOffset, prevEndOffset);
+                    typeAtt.Type = (prevType);
+                    posIncrAtt.PositionIncrement = (0);
+                    multiToken--;
+                    return true;
+                }
+                else
+                {
+                    bool next = input.IncrementToken();
+                    if (!next)
+                    {
+                        return false;
+                    }
+                    prevType = typeAtt.Type;
+                    prevStartOffset = offsetAtt.StartOffset();
+                    prevEndOffset = offsetAtt.EndOffset();
+                    String text = termAtt.toString();
+                    if (text.equals("triplemulti"))
+                    {
+                        multiToken = 2;
+                        return true;
+                    }
+                    else if (text.equals("multi"))
+                    {
+                        multiToken = 1;
+                        return true;
+                    }
+                    else
+                    {
+                        return true;
+                    }
+                }
+            }
+
+
+            public override void Reset()
+            {
+                base.Reset();
+                this.prevType = null;
+                this.prevStartOffset = 0;
+                this.prevEndOffset = 0;
+            }
+        }
+
+        /**
+         * Analyzes "the quick brown" as: quick(incr=2) brown(incr=1). Does not work
+         * correctly for input other than "the quick brown ...".
+         */
+        private class PosIncrementAnalyzer : Analyzer
+        {
+
+
+            public override TokenStreamComponents CreateComponents(String fieldName, TextReader reader)
+            {
+                Tokenizer result = new MockTokenizer(reader, MockTokenizer.WHITESPACE, true);
+                return new TokenStreamComponents(result, new TestPosIncrementFilter(result));
+            }
+        }
+
+        private class TestPosIncrementFilter : TokenFilter
+        {
+
+            private readonly ICharTermAttribute termAtt;
+            private readonly IPositionIncrementAttribute posIncrAtt;
+
+            public TestPosIncrementFilter(TokenStream @in)
+                        : base(@in)
+            {
+                termAtt = AddAttribute<ICharTermAttribute>();
+                posIncrAtt = AddAttribute<IPositionIncrementAttribute>();
+            }
+
+
+            public override sealed bool IncrementToken()
+            {
+                while (input.IncrementToken())
+                {
+                    if (termAtt.toString().equals("the"))
+                    {
+                        // stopword, do nothing
+                    }
+                    else if (termAtt.toString().equals("quick"))
+                    {
+                        posIncrAtt.PositionIncrement = (2);
+                        return true;
+                    }
+                    else
+                    {
+                        posIncrAtt.PositionIncrement = (1);
+                        return true;
+                    }
+                }
+                return false;
+            }
+
+        }
+    }
+}


[46/58] lucenenet git commit: QueryParser.Classic + QueryParser.Surround refactor: Changed ICharStream.Backup() to ICharStream.BackUp()

Posted by ni...@apache.org.
QueryParser.Classic + QueryParser.Surround refactor: Changed ICharStream.Backup() to ICharStream.BackUp()


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

Branch: refs/heads/master
Commit: 98a37e1f4fd157b904fec6b0682fad0c4f74b54d
Parents: 3e2eb28
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Dec 6 00:01:40 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Dec 6 00:01:40 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.QueryParser/Classic/CharStream.cs               | 2 +-
 src/Lucene.Net.QueryParser/Classic/FastCharStream.cs           | 2 +-
 src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs  | 6 +++---
 src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs       | 2 +-
 src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs   | 2 +-
 .../Surround/Parser/QueryParserTokenManager.cs                 | 6 +++---
 6 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/98a37e1f/src/Lucene.Net.QueryParser/Classic/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/CharStream.cs b/src/Lucene.Net.QueryParser/Classic/CharStream.cs
index 7da1942..8f1783d 100644
--- a/src/Lucene.Net.QueryParser/Classic/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Classic/CharStream.cs
@@ -93,7 +93,7 @@ namespace Lucene.Net.QueryParsers.Classic
 		/// (longer) token. So, they will be used again as the prefix of the next
 		/// token and it is the implemetation's responsibility to do this right.
 		/// </summary>
-		void  Backup(int amount);
+		void BackUp(int amount);
 		
 		/// <summary> 
         /// Returns the next character that marks the beginning of the next token.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/98a37e1f/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs b/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs
index 954e425..8f963ee 100644
--- a/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs
@@ -96,7 +96,7 @@ namespace Lucene.Net.QueryParsers.Classic
 			return ReadChar();
 		}
 		
-		public void  Backup(int amount)
+		public void  BackUp(int amount)
 		{
 			bufferPosition -= amount;
 		}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/98a37e1f/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs b/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
index cc5191f..a2f6010 100644
--- a/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
@@ -1276,7 +1276,7 @@ namespace Lucene.Net.QueryParsers.Classic
 				if (jjmatchedKind != 0x7fffffff)
 				{
 					if (jjmatchedPos + 1 < curPos)
-						input_stream.Backup(curPos - jjmatchedPos - 1);
+						input_stream.BackUp(curPos - jjmatchedPos - 1);
 					if ((jjtoToken[jjmatchedKind >> 6] & ((ulong) 1L << (jjmatchedKind & 63))) != (ulong) 0L)
 					{
 						matchedToken = JjFillToken();
@@ -1297,7 +1297,7 @@ namespace Lucene.Net.QueryParsers.Classic
 				bool EOFSeen = false;
 				try
 				{
-					input_stream.ReadChar(); input_stream.Backup(1);
+					input_stream.ReadChar(); input_stream.BackUp(1);
 				}
 				catch (IOException)
 				{
@@ -1313,7 +1313,7 @@ namespace Lucene.Net.QueryParsers.Classic
 				}
 				if (!EOFSeen)
 				{
-					input_stream.Backup(1);
+					input_stream.BackUp(1);
 					error_after = curPos <= 1?"":input_stream.Image;
 				}
 				throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/98a37e1f/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs b/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs
index 8136f0f..f4d7326 100644
--- a/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs
@@ -93,7 +93,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
         /// (longer) token. So, they will be used again as the prefix of the next
         /// token and it is the implemetation's responsibility to do this right.
         /// </summary>
-        void Backup(int amount);
+        void BackUp(int amount);
 
         /// <summary> 
         /// Returns the next character that marks the beginning of the next token.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/98a37e1f/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs
index 24a7102..26eba8e 100644
--- a/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs
@@ -96,7 +96,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
             return ReadChar();
         }
 
-        public void Backup(int amount)
+        public void BackUp(int amount)
         {
             bufferPosition -= amount;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/98a37e1f/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs b/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs
index 84f7250..36774f9 100644
--- a/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs
@@ -685,7 +685,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
                 if (jjmatchedKind != 0x7fffffff)
                 {
                     if (jjmatchedPos + 1 < curPos)
-                        input_stream.Backup(curPos - jjmatchedPos - 1);
+                        input_stream.BackUp(curPos - jjmatchedPos - 1);
                     if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 63 /*077*/))) != 0L)
                     {
                         matchedToken = JjFillToken();
@@ -704,7 +704,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
                 int error_column = input_stream.EndColumn;
                 string error_after = null;
                 bool EOFSeen = false;
-                try { input_stream.ReadChar(); input_stream.Backup(1); }
+                try { input_stream.ReadChar(); input_stream.BackUp(1); }
                 catch (System.IO.IOException /*e1*/)
                 {
                     EOFSeen = true;
@@ -719,7 +719,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
                 }
                 if (!EOFSeen)
                 {
-                    input_stream.Backup(1);
+                    input_stream.BackUp(1);
                     error_after = curPos <= 1 ? "" : input_stream.Image;
                 }
                 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);


[23/58] lucenenet git commit: QueryParser: Fixed casing of test names > Test

Posted by ni...@apache.org.
QueryParser: Fixed casing of test names > Test


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

Branch: refs/heads/master
Commit: e2b7290a0ac7c7f6d5438c7d1228b594843d8c6d
Parents: 2ad30fb
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Dec 4 17:43:49 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Dec 4 22:00:47 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Nodes/TestQueryNode.cs        |  6 +-
 .../Flexible/Messages/TestNLS.cs                | 12 ++--
 .../Precedence/TestPrecedenceQueryParser.cs     | 32 ++++-----
 .../Flexible/Spans/TestSpanQueryParser.cs       |  8 +--
 .../Spans/TestSpanQueryParserSimpleSample.cs    |  2 +-
 .../Standard/TestMultiAnalyzerQPHelper.cs       |  6 +-
 .../Flexible/Standard/TestMultiFieldQPHelper.cs | 20 +++---
 .../Flexible/Standard/TestNumericQueryParser.cs | 20 +++---
 .../Flexible/Standard/TestQPHelper.cs           | 72 ++++++++++----------
 .../Simple/TestSimpleQueryParser.cs             |  4 +-
 10 files changed, 91 insertions(+), 91 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
index bc276ed..103bf37 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
@@ -13,7 +13,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     {
         /* LUCENE-2227 bug in QueryNodeImpl.add() */
         [Test]
-        public void testAddChildren()
+        public void TestAddChildren()
         {
             IQueryNode nodeA = new FieldQueryNode("foo", "A", 0, 1);
             IQueryNode nodeB = new FieldQueryNode("foo", "B", 1, 2);
@@ -25,7 +25,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         /* LUCENE-3045 bug in QueryNodeImpl.containsTag(String key)*/
         [Test]
-        public void testTags()
+        public void TestTags()
         {
             IQueryNode node = new FieldQueryNode("foo", "A", 0, 1);
 
@@ -38,7 +38,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         /* LUCENE-5099 - QueryNodeProcessorImpl should set parent to null before returning on processing */
         [Test]
-        public void testRemoveFromParent()
+        public void TestRemoveFromParent()
         {
             BooleanQueryNode booleanNode = new BooleanQueryNode(Collections.EmptyList<IQueryNode>());
             FieldQueryNode fieldNode = new FieldQueryNode("foo", "A", 0, 1);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
index a2cf735..841d3fb 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
@@ -12,7 +12,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
     public class TestNLS : LuceneTestCase
     {
         [Test]
-        public void testMessageLoading()
+        public void TestMessageLoading()
         {
             //string message = MessagesTestBundle.ResourceManager.GetString("Q0001E_INVALID_SYNTAX");
 
@@ -31,7 +31,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         }
 
         [Test]
-        public void testMessageLoading_ja()
+        public void TestMessageLoading_ja()
         {
             IMessage invalidSyntax = new MessageImpl(
                 MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
@@ -40,7 +40,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         }
 
         [Test]
-        public void testNLSLoading()
+        public void TestNLSLoading()
         {
             String message = NLS
                 .GetLocalizedMessage(MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION, new CultureInfo("en"));
@@ -65,7 +65,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         }
 
         [Test]
-        public void testNLSLoading_ja()
+        public void TestNLSLoading_ja()
         {
             String message = NLS.GetLocalizedMessage(
                 MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
@@ -78,7 +78,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         }
 
         [Test]
-        public void testNLSLoading_xx_XX()
+        public void TestNLSLoading_xx_XX()
         {
             //Locale locale = new Locale("xx", "XX", "");
             CultureInfo locale = new CultureInfo("xx-XX");
@@ -107,7 +107,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         // LUCENENET TODO: This doesn't compile because the resources don't contain this message
 
         [Test]
-        public void testMissingMessage()
+        public void TestMissingMessage()
         {
             //Locale locale = Locale.ENGLISH;
             CultureInfo locale = new CultureInfo("en");

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
index 6a3db29..677582c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
@@ -197,7 +197,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testSimple()
+        public void TestSimple()
         {
             assertQueryEquals("term term term", null, "term term term");
             assertQueryEquals("t�rm term term", null, "t�rm term term");
@@ -256,7 +256,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testPunct()
+        public void TestPunct()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
             assertQueryEquals("a&b", a, "a&b");
@@ -265,7 +265,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testSlop()
+        public void TestSlop()
         {
             assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
             assertQueryEquals("\"term germ\"~2 flork", null, "\"term germ\"~2 flork");
@@ -275,7 +275,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testNumber()
+        public void TestNumber()
         {
             // The numbers go away because SimpleAnalzyer ignores them
             assertQueryEquals("3", null, "");
@@ -289,7 +289,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testWildcard()
+        public void TestWildcard()
         {
             assertQueryEquals("term*", null, "term*");
             assertQueryEquals("term*^2", null, "term*^2.0");
@@ -360,7 +360,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testQPA()
+        public void TestQPA()
         {
             assertQueryEquals("term term term", qpAnalyzer, "term term term");
             assertQueryEquals("term +stop term", qpAnalyzer, "term term");
@@ -379,7 +379,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testRange()
+        public void TestRange()
         {
             assertQueryEquals("[ a TO z]", null, "[a TO z]");
             assertTrue(GetQuery("[ a TO z]", null) is TermRangeQuery);
@@ -448,7 +448,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testDateRange()
+        public void TestDateRange()
         {
             String startDate = getLocalizedDate(2002, 1, 1, false);
             String endDate = getLocalizedDate(2002, 1, 4, false);
@@ -532,7 +532,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testEscaped()
+        public void TestEscaped()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
 
@@ -569,7 +569,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testTabNewlineCarriageReturn()
+        public void TestTabNewlineCarriageReturn()
         {
             assertQueryEqualsDOA("+weltbank +worlbank", null, "+weltbank +worlbank");
 
@@ -593,7 +593,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testSimpleDAO()
+        public void TestSimpleDAO()
         {
             assertQueryEqualsDOA("term term term", null, "+term +term +term");
             assertQueryEqualsDOA("term +term term", null, "+term +term +term");
@@ -603,7 +603,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testBoost()
+        public void TestBoost()
         {
             CharacterRunAutomaton stopSet = new CharacterRunAutomaton(BasicAutomata.MakeString("on"));
             Analyzer oneStopAnalyzer = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, stopSet);
@@ -627,7 +627,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testException()
+        public void TestException()
         {
             try
             {
@@ -640,7 +640,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testBooleanQuery()
+        public void TestBooleanQuery()
         {
             BooleanQuery.MaxClauseCount = (2);
             try
@@ -656,7 +656,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
 
         // LUCENE-792
         [Test]
-        public void testNOT()
+        public void TestNOT()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
             assertQueryEquals("NOT foo AND bar", a, "-foo +bar");
@@ -667,7 +667,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
          * issue has been corrected.
          */
         [Test]
-        public void testPrecedence()
+        public void TestPrecedence()
         {
             PrecedenceQueryParser parser = GetParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
             Query query1 = parser.Parse("A AND B OR C AND D", "field");

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
index eff0c6e..a59da48 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
@@ -119,7 +119,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         }
 
         [Test]
-        public void testTermSpans()
+        public void TestTermSpans()
         {
             assertEquals(GetSpanQuery("field:term").toString(), "term");
             assertEquals(GetSpanQuery("term").toString(), "term");
@@ -130,7 +130,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         }
 
         [Test]
-        public void testUniqueField()
+        public void TestUniqueField()
         {
             assertEquals(GetSpanQuery("field", "term").toString(), "field:term");
             assertEquals(GetSpanQuery("field", "field:term").toString(), "field:term");
@@ -140,7 +140,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         }
 
         [Test]
-        public void testOrSpans()
+        public void TestOrSpans()
         {
             assertEquals(GetSpanQuery("term1 term2").toString(),
             "spanOr([term1, term2])");
@@ -153,7 +153,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         }
 
         [Test]
-        public void testQueryValidator()
+        public void TestQueryValidator()
         {
 
             try

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
index 1f8f8e4..5b40f51 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
@@ -69,7 +69,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
     public class TestSpanQueryParserSimpleSample : LuceneTestCase
     {
         [Test]
-        public void testBasicDemo()
+        public void TestBasicDemo()
         {
             ISyntaxParser queryParser = new StandardSyntaxParser();
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
index b5ab71c..942301d 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         private static int multiToken = 0;
 
         [Test]
-        public void testMultiAnalyzer()
+        public void TestMultiAnalyzer()
         {
 
             StandardQueryParser qp = new StandardQueryParser();
@@ -90,7 +90,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
 
-        // public void testMultiAnalyzerWithSubclassOfQueryParser() throws
+        // public void TestMultiAnalyzerWithSubclassOfQueryParser() throws
         // ParseException {
         // this test doesn't make sense when using the new QueryParser API
         // DumbQueryParser qp = new DumbQueryParser("", new MultiAnalyzer());
@@ -111,7 +111,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         // }
 
         [Test]
-        public void testPosIncrementAnalyzer()
+        public void TestPosIncrementAnalyzer()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new PosIncrementAnalyzer());

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
index 351be88..f5ce99c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
@@ -29,7 +29,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         * corresponding static form (qtxt, fields[]).
         */
         [Test]
-        public void testStopwordsParsing()
+        public void TestStopwordsParsing()
         {
             assertStopQueryEquals("one", "b:one t:one");
             assertStopQueryEquals("one stop", "b:one t:one");
@@ -59,7 +59,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testSimple()
+        public void TestSimple()
         {
             String[]
             fields = { "b", "t" };
@@ -128,7 +128,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testBoostsSimple()
+        public void TestBoostsSimple()
         {
             IDictionary<String, float?> boosts = new Dictionary<String, float?>(); // LUCENENET TODO: make this non-nullable..?
             boosts.Put("b", 5);
@@ -163,7 +163,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod1()
+        public void TestStaticMethod1()
         {
             String[]
             fields = { "b", "t" };
@@ -209,7 +209,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod2()
+        public void TestStaticMethod2()
         {
             String[]
             fields = { "b", "t" };
@@ -237,7 +237,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod2Old()
+        public void TestStaticMethod2Old()
         {
             String[]
             fields = { "b", "t" };
@@ -270,7 +270,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod3()
+        public void TestStaticMethod3()
         {
             String[]
             queries = { "one", "two", "three" };
@@ -298,7 +298,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod3Old()
+        public void TestStaticMethod3Old()
         {
             String[]
             queries = { "one", "two" };
@@ -326,7 +326,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testAnalyzerReturningNull()
+        public void TestAnalyzerReturningNull()
         {
             String[]
             fields = new String[] { "f1", "f2", "f3" };
@@ -347,7 +347,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStopWordSearching()
+        public void TestStopWordSearching()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
             Store.Directory ramDir = NewDirectory();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index a516a10..df31e3c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -337,7 +337,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testInclusiveNumericRange()
+        public void TestInclusiveNumericRange()
         {
             assertRangeQuery(NumberType.ZERO, NumberType.ZERO, true, true, 1);
             assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, true, 2);
@@ -349,7 +349,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Test]
         // test disabled since standard syntax parser does not work with inclusive and
         // exclusive at the same time
-        public void testInclusiveLowerNumericRange()
+        public void TestInclusiveLowerNumericRange()
         {
             assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, true, 1);
             assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, true, 1);
@@ -360,7 +360,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Test]
         // test disabled since standard syntax parser does not work with inclusive and
         // exclusive at the same time
-        public void testInclusiveUpperNumericRange()
+        public void TestInclusiveUpperNumericRange()
         {
             assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, false, 1);
             assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, false, 1);
@@ -369,7 +369,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testExclusiveNumericRange()
+        public void TestExclusiveNumericRange()
         {
             assertRangeQuery(NumberType.ZERO, NumberType.ZERO, false, false, 0);
             assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, false, 0);
@@ -379,7 +379,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testOpenRangeNumericQuery()
+        public void TestOpenRangeNumericQuery()
         {
             assertOpenRangeQuery(NumberType.ZERO, "<", 1);
             assertOpenRangeQuery(NumberType.POSITIVE, "<", 2);
@@ -417,7 +417,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testSimpleNumericQuery()
+        public void TestSimpleNumericQuery()
         {
             assertSimpleQuery(NumberType.ZERO, 1);
             assertSimpleQuery(NumberType.POSITIVE, 1);
@@ -499,7 +499,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                     upperInclusiveStr);
 
 
-            testQuery(sb.toString(), expectedDocCount);
+            TestQuery(sb.toString(), expectedDocCount);
 
         }
 
@@ -532,7 +532,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             sb.append("+").append(DATE_FIELD_NAME).append(@operator).append('"').append(boundDateStr).append('"');
 
 
-            testQuery(sb.toString(), expectedDocCount);
+            TestQuery(sb.toString(), expectedDocCount);
         }
 
         public void assertSimpleQuery(NumberType numberType, int expectedDocCount)
@@ -564,11 +564,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                     .append('"');
 
 
-            testQuery(sb.toString(), expectedDocCount);
+            TestQuery(sb.toString(), expectedDocCount);
 
         }
 
-        private void testQuery(String queryStr, int expectedDocCount)
+        private void TestQuery(String queryStr, int expectedDocCount)
         {
             if (VERBOSE) Console.WriteLine("Parsing: " + queryStr);
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
index b1cae18..7c7132f 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -303,7 +303,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testConstantScoreAutoRewrite()
+        public void TestConstantScoreAutoRewrite()
         {
             StandardQueryParser qp = new StandardQueryParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
             Query q = qp.Parse("foo*bar", "field");
@@ -319,7 +319,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((MultiTermQuery)q).GetRewriteMethod());
         }
         [Test]
-        public void testCJK()
+        public void TestCJK()
         {
             // Test Ideographic Space - As wide as a CJK character cell (fullwidth)
             // used google to translate the word "term" to japanese -> ??
@@ -360,7 +360,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testCJKTerm()
+        public void TestCJKTerm()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -380,7 +380,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
         [Test]
-        public void testCJKBoostedTerm()
+        public void TestCJKBoostedTerm()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -394,7 +394,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(expected, GetQuery("\u4e2d\u56fd^0.5", analyzer));
         }
         [Test]
-        public void testCJKPhrase()
+        public void TestCJKPhrase()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -407,7 +407,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(expected, GetQuery("\"\u4e2d\u56fd\"", analyzer));
         }
         [Test]
-        public void testCJKBoostedPhrase()
+        public void TestCJKBoostedPhrase()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -421,7 +421,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(expected, GetQuery("\"\u4e2d\u56fd\"^0.5", analyzer));
         }
         [Test]
-        public void testCJKSloppyPhrase()
+        public void TestCJKSloppyPhrase()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -435,7 +435,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(expected, GetQuery("\"\u4e2d\u56fd\"~3", analyzer));
         }
         [Test]
-        public void testSimple()
+        public void TestSimple()
         {
             assertQueryEquals("field=a", null, "a");
             assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
@@ -499,7 +499,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
         [Test]
-        public void testPunct()
+        public void TestPunct()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
             assertQueryEquals("a&b", a, "a&b");
@@ -507,7 +507,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals(".NET", a, ".NET");
         }
         [Test]
-        public void testGroup()
+        public void TestGroup()
         {
             assertQueryEquals("!(a AND b) OR c", null, "-(+a +b) c");
             assertQueryEquals("!(a AND b) AND c", null, "-(+a +b) +c");
@@ -517,7 +517,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals("(a AND b)^4 OR c", null, "((+a +b)^4.0) c");
         }
         [Test]
-        public void testSlop()
+        public void TestSlop()
         {
 
             assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
@@ -527,7 +527,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals("\"term germ\"~2^2", null, "\"term germ\"~2^2.0");
         }
         [Test]
-        public void testNumber()
+        public void TestNumber()
         {
             // The numbers go away because SimpleAnalzyer ignores them
             assertQueryEquals("3", null, "");
@@ -540,7 +540,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals("term term1 term2", a, "term term1 term2");
         }
         [Test]
-        public void testWildcard()
+        public void TestWildcard()
         {
             assertQueryEquals("term*", null, "term*");
             assertQueryEquals("term*^2", null, "term*^2.0");
@@ -633,7 +633,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertWildcardQueryEquals("?Term", true, "?term", true);
         }
         [Test]
-        public void testLeadingWildcardType()
+        public void TestLeadingWildcardType()
         {
             StandardQueryParser qp = GetParser(null);
             qp.AllowLeadingWildcard = (true);
@@ -642,7 +642,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(typeof(WildcardQuery), qp.Parse("*term*", "field").GetType());
         }
         [Test]
-        public void testQPA()
+        public void TestQPA()
         {
             assertQueryEquals("term term^3.0 term", qpAnalyzer, "term term^3.0 term");
             assertQueryEquals("term stop^3.0 term", qpAnalyzer, "term term");
@@ -674,7 +674,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertTrue(GetQuery("term +stop", qpAnalyzer) is TermQuery);
         }
         [Test]
-        public void testRange()
+        public void TestRange()
         {
             assertQueryEquals("[ a TO z]", null, "[a TO z]");
             assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((TermRangeQuery)GetQuery("[ a TO z]", null)).GetRewriteMethod());
@@ -759,7 +759,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             //return df.format(calendar.getTime());
         }
         [Test]
-        public void testDateRange()
+        public void TestDateRange()
         {
             String startDate = getLocalizedDate(2002, 1, 1);
             String endDate = getLocalizedDate(2002, 1, 4);
@@ -817,7 +817,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 + getDate(endDate, resolution) + "}");
         }
         [Test]
-        public void testEscaped()
+        public void TestEscaped()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
 
@@ -918,7 +918,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals("(\"a\\\\\") or (\"b\")", a, "a\\ or b");
         }
         [Test]
-        public void testQueryStringEscaping()
+        public void TestQueryStringEscaping()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
 
@@ -960,7 +960,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         [Test]
         [Ignore("flexible queryparser shouldn't escape wildcard terms")]
-        public void testEscapedWildcard()
+        public void TestEscapedWildcard()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
@@ -969,7 +969,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(q, qp.Parse("foo\\?ba?r", "field"));
         }
         [Test]
-        public void testTabNewlineCarriageReturn()
+        public void TestTabNewlineCarriageReturn()
         {
             assertQueryEqualsDOA("+weltbank +worlbank", null, "+weltbank +worlbank");
 
@@ -992,7 +992,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEqualsDOA("weltbank \t +worlbank", null, "+weltbank +worlbank");
         }
         [Test]
-        public void testSimpleDAO()
+        public void TestSimpleDAO()
         {
             assertQueryEqualsDOA("term term term", null, "+term +term +term");
             assertQueryEqualsDOA("term +term term", null, "+term +term +term");
@@ -1001,7 +1001,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEqualsDOA("-term term term", null, "-term +term +term");
         }
         [Test]
-        public void testBoost()
+        public void TestBoost()
         {
             CharacterRunAutomaton stopSet = new CharacterRunAutomaton(BasicAutomata.MakeString("on"));
             Analyzer oneStopAnalyzer = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, stopSet);
@@ -1042,7 +1042,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             fail("ParseException expected, not thrown");
         }
         [Test]
-        public void testException()
+        public void TestException()
         {
             assertQueryNodeException("*leadingWildcard"); // disallowed by default
             assertQueryNodeException("\"some phrase");
@@ -1053,7 +1053,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryNodeException("secret AND illegal) AND access:confidential");
         }
         [Test]
-        public void testCustomQueryParserWildcard()
+        public void TestCustomQueryParserWildcard()
         {
             try
             {
@@ -1066,7 +1066,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testCustomQueryParserFuzzy()
+        public void TestCustomQueryParserFuzzy()
         {
             try
             {
@@ -1080,7 +1080,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testBooleanQuery()
+        public void TestBooleanQuery()
         {
             BooleanQuery.MaxClauseCount = (2);
             try
@@ -1101,7 +1101,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * This test differs from TestPrecedenceQueryParser
          */
         [Test]
-        public void testPrecedence()
+        public void TestPrecedence()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
@@ -1114,7 +1114,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         // [Test]
         // Todo: Convert from DateField to DateUtil
-        //  public void testLocalDateFormat() throws IOException, QueryNodeException {
+        //  public void TestLocalDateFormat() throws IOException, QueryNodeException {
         //    Directory ramDir = newDirectory();
         //    IndexWriter iw = new IndexWriter(ramDir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random, MockTokenizer.WHITESPACE, false)));
         //    addDateDoc("a", 2005, 12, 2, 10, 15, 33, iw);
@@ -1143,7 +1143,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         //  }
 
         [Test]
-        public void testStarParsing()
+        public void TestStarParsing()
         {
             // final int[] type = new int[1];
             // StandardQueryParser qp = new StandardQueryParser("field", new
@@ -1207,7 +1207,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
         [Test]
-        public void testRegexps()
+        public void TestRegexps()
         {
             StandardQueryParser qp = new StandardQueryParser();
             String df = "field";
@@ -1258,7 +1258,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(two, qp.Parse("/foo/ /bar/", df));
         }
         [Test]
-        public void testStopwords()
+        public void TestStopwords()
         {
             StandardQueryParser qp = new StandardQueryParser();
             CharacterRunAutomaton stopSet = new CharacterRunAutomaton(new RegExp("the|foo").ToAutomaton());
@@ -1283,7 +1283,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 + 2, ((BooleanQuery)result).Clauses.size() == 2);
         }
         [Test]
-        public void testPositionIncrement()
+        public void TestPositionIncrement()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (
@@ -1307,7 +1307,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testMatchAllDocs()
+        public void TestMatchAllDocs()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
@@ -1399,7 +1399,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testMultiPhraseQuery()
+        public void TestMultiPhraseQuery()
         {
             Store.Directory dir = NewDirectory();
             IndexWriter w = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new CannedAnalyzer()));
@@ -1417,7 +1417,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             dir.Dispose();
         }
         [Test]
-        public void testRegexQueryParsing()
+        public void TestRegexQueryParsing()
         {
             String[]
             fields = { "b", "t" };

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs
index 1c8ccc6..2c66549 100644
--- a/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs
@@ -560,7 +560,7 @@ namespace Lucene.Net.QueryParsers.Simple
 
         /** test a more complex query with field weights */
         [Test]
-        public virtual void testWeightedOR()
+        public virtual void TestWeightedOR()
         {
             IDictionary<string, float> weights = new Dictionary<string, float>();
             weights["field0"] = 5f;
@@ -708,7 +708,7 @@ namespace Lucene.Net.QueryParsers.Simple
         }
 
         [Test]
-        public virtual void testRandomQueries2()
+        public virtual void TestRandomQueries2()
         {
             char[] chars = new char[] { 'a', '1', '|', '&', ' ', '(', ')', '"', '-', '~' };
             StringBuilder sb = new StringBuilder();


[08/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
new file mode 100644
index 0000000..f40040f
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
@@ -0,0 +1,60 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// This query tree builder only defines the necessary map to build a
+    /// {@link Query} tree object. It should be used to generate a {@link Query} tree
+    /// object from a query node tree processed by a
+    /// {@link StandardQueryNodeProcessorPipeline}.
+    /// </summary>
+    /// <seealso cref="QueryTreeBuilder"/>
+    /// <seealso cref="StandardQueryNodeProcessorPipeline"/>
+    public class StandardQueryTreeBuilder : QueryTreeBuilder, IStandardQueryBuilder
+    {
+        public StandardQueryTreeBuilder()
+        {
+            SetBuilder(typeof(GroupQueryNode), new GroupQueryNodeBuilder());
+            SetBuilder(typeof(FieldQueryNode), new FieldQueryNodeBuilder());
+            SetBuilder(typeof(BooleanQueryNode), new BooleanQueryNodeBuilder());
+            SetBuilder(typeof(FuzzyQueryNode), new FuzzyQueryNodeBuilder());
+            SetBuilder(typeof(NumericQueryNode), new DummyQueryNodeBuilder());
+            SetBuilder(typeof(NumericRangeQueryNode), new NumericRangeQueryNodeBuilder());
+            SetBuilder(typeof(BoostQueryNode), new BoostQueryNodeBuilder());
+            SetBuilder(typeof(ModifierQueryNode), new ModifierQueryNodeBuilder());
+            SetBuilder(typeof(WildcardQueryNode), new WildcardQueryNodeBuilder());
+            SetBuilder(typeof(TokenizedPhraseQueryNode), new PhraseQueryNodeBuilder());
+            SetBuilder(typeof(MatchNoDocsQueryNode), new MatchNoDocsQueryNodeBuilder());
+            SetBuilder(typeof(PrefixWildcardQueryNode),
+                new PrefixWildcardQueryNodeBuilder());
+            SetBuilder(typeof(TermRangeQueryNode), new TermRangeQueryNodeBuilder());
+            SetBuilder(typeof(RegexpQueryNode), new RegexpQueryNodeBuilder());
+            SetBuilder(typeof(SlopQueryNode), new SlopQueryNodeBuilder());
+            SetBuilder(typeof(StandardBooleanQueryNode),
+                new StandardBooleanQueryNodeBuilder());
+            SetBuilder(typeof(MultiPhraseQueryNode), new MultiPhraseQueryNodeBuilder());
+            SetBuilder(typeof(MatchAllDocsQueryNode), new MatchAllDocsQueryNodeBuilder());
+
+        }
+
+        public override object Build(IQueryNode queryNode)
+        {
+            return base.Build(queryNode);
+        }
+        /// <summary>
+        /// LUCENENET specific overload for supporting IStandardQueryBuilder
+        /// </summary>
+        Query IStandardQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return (Query)Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
new file mode 100644
index 0000000..f619137
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
@@ -0,0 +1,69 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link TermRangeQuery} object from a {@link TermRangeQueryNode}
+    /// object.
+    /// </summary>
+    public class TermRangeQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public TermRangeQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            TermRangeQueryNode rangeNode = (TermRangeQueryNode)queryNode;
+            FieldQueryNode upper = (FieldQueryNode)rangeNode.UpperBound;
+            FieldQueryNode lower = (FieldQueryNode)rangeNode.LowerBound;
+
+            string field = StringUtils.ToString(rangeNode.Field);
+            string lowerText = lower.GetTextAsString();
+            string upperText = upper.GetTextAsString();
+
+            if (lowerText.Length == 0)
+            {
+                lowerText = null;
+            }
+
+            if (upperText.Length == 0)
+            {
+                upperText = null;
+            }
+
+            TermRangeQuery rangeQuery = TermRangeQuery.NewStringRange(field, lowerText, upperText, rangeNode
+                .IsLowerInclusive, rangeNode.IsUpperInclusive);
+
+            MultiTermQuery.RewriteMethod method = (MultiTermQuery.RewriteMethod)queryNode
+                .GetTag(MultiTermRewriteMethodProcessor.TAG_ID);
+            if (method != null)
+            {
+                rangeQuery.SetRewriteMethod(method);
+            }
+
+            return rangeQuery;
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
new file mode 100644
index 0000000..eb74378
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
@@ -0,0 +1,51 @@
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link WildcardQuery} object from a {@link WildcardQueryNode}
+    /// object.
+    /// </summary>
+    public class WildcardQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public WildcardQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            WildcardQueryNode wildcardNode = (WildcardQueryNode)queryNode;
+
+            WildcardQuery q = new WildcardQuery(new Term(wildcardNode.GetFieldAsString(),
+                                                 wildcardNode.GetTextAsString()));
+
+            MultiTermQuery.RewriteMethod method = (MultiTermQuery.RewriteMethod)queryNode.GetTag(MultiTermRewriteMethodProcessor.TAG_ID);
+            if (method != null)
+            {
+                q.SetRewriteMethod(method);
+            }
+
+            return q;
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
index 35ec103..e2f5548 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
@@ -101,6 +101,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         /// Sets the default <see cref="T:DateTools.Resolution"/> used for certain field when
         /// no <see cref="T:DateTools.Resolution"/> is defined for this field.
         /// </summary>
-        void SetDateResolution(DateTools.Resolution dateResolution);
+        void SetDateResolution(DateTools.Resolution dateResolution); // LUCENENET TODO: Make into property set
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
new file mode 100644
index 0000000..02db0f5
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
@@ -0,0 +1,47 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
+{
+    /// <summary>
+    /// This listener listens for every field configuration request and assign a
+    /// {@link ConfigurationKeys#BOOST} to the
+    /// equivalent {@link FieldConfig} based on a defined map: fieldName -> boostValue stored in
+    /// {@link ConfigurationKeys#FIELD_BOOST_MAP}.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#FIELD_BOOST_MAP"/>
+    /// <seealso cref="ConfigurationKeys#BOOST"/>
+    /// <seealso cref="FieldConfig"/>
+    /// <seealso cref="IFieldConfigListener"/>
+    public class FieldBoostMapFCListener : IFieldConfigListener
+    {
+        private QueryConfigHandler config = null;
+
+        public FieldBoostMapFCListener(QueryConfigHandler config)
+        {
+            this.config = config;
+        }
+
+
+        public virtual void BuildFieldConfig(FieldConfig fieldConfig)
+        {
+            IDictionary<string, float?> fieldBoostMap = this.config.Get(ConfigurationKeys.FIELD_BOOST_MAP);
+
+            if (fieldBoostMap != null)
+            {
+                float? boost;// = fieldBoostMap.Get(fieldConfig.GetField());
+                fieldBoostMap.TryGetValue(fieldConfig.GetField(), out boost);
+
+                if (boost != null)
+                {
+                    fieldConfig.Set(ConfigurationKeys.BOOST, boost);
+                }
+
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
new file mode 100644
index 0000000..10c8403
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
@@ -0,0 +1,55 @@
+\ufeffusing Lucene.Net.Documents;
+using Lucene.Net.QueryParsers.Flexible.Core.Config;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
+{
+    /// <summary>
+    /// This listener listens for every field configuration request and assign a
+    /// {@link ConfigurationKeys#DATE_RESOLUTION} to the equivalent {@link FieldConfig} based
+    /// on a defined map: fieldName -> {@link Resolution} stored in
+    /// {@link ConfigurationKeys#FIELD_DATE_RESOLUTION_MAP}.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#DATE_RESOLUTION"/>
+    /// <seealso cref="ConfigurationKeys#FIELD_DATE_RESOLUTION_MAP"/>
+    /// <seealso cref="FieldConfig"/>
+    /// <seealso cref="IFieldConfigListener"/>
+    public class FieldDateResolutionFCListener : IFieldConfigListener
+    {
+        private QueryConfigHandler config = null;
+
+        public FieldDateResolutionFCListener(QueryConfigHandler config)
+        {
+            this.config = config;
+        }
+
+        
+        public virtual void BuildFieldConfig(FieldConfig fieldConfig)
+        {
+            DateTools.Resolution? dateRes = null;
+            IDictionary<string, DateTools.Resolution?> dateResMap = this.config.Get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP);
+
+            if (dateResMap != null)
+            {
+                dateResMap.TryGetValue(fieldConfig.GetField(), out dateRes);
+
+                //dateRes = dateResMap.Get(
+                //    fieldConfig.GetField());
+            }
+
+            if (dateRes == null)
+            {
+                dateRes = this.config.Get(ConfigurationKeys.DATE_RESOLUTION);
+            }
+
+            if (dateRes != null)
+            {
+                fieldConfig.Set(ConfigurationKeys.DATE_RESOLUTION, dateRes.Value);
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
new file mode 100644
index 0000000..1077329
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
@@ -0,0 +1,41 @@
+\ufeffusing Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
+{
+    /// <summary>
+    /// Configuration parameters for {@link FuzzyQuery}s
+    /// </summary>
+    public class FuzzyConfig
+    {
+        private int prefixLength = FuzzyQuery.DefaultPrefixLength;
+
+        private float minSimilarity = FuzzyQuery.DefaultMinSimilarity;
+
+        public FuzzyConfig() { }
+
+        public int GetPrefixLength()
+        {
+            return prefixLength;
+        }
+
+        public void SetPrefixLength(int prefixLength)
+        {
+            this.prefixLength = prefixLength;
+        }
+
+        public float GetMinSimilarity()
+        {
+            return minSimilarity;
+        }
+
+        public void SetMinSimilarity(float minSimilarity)
+        {
+            this.minSimilarity = minSimilarity;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
new file mode 100644
index 0000000..c7f9f63
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
@@ -0,0 +1,60 @@
+\ufeff// LUCENENET TODO: Do we need this class?
+
+//using System;
+//using System.Collections.Generic;
+//using System.Linq;
+//using System.Text;
+//using System.Threading.Tasks;
+
+//namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
+//{
+//    /// <summary>
+//    /// This {@link Format} parses {@link Long} into date strings and vice-versa. It
+//    /// uses the given {@link DateFormat} to parse and format dates, but before, it
+//    /// converts {@link Long} to {@link Date} objects or vice-versa.
+//    /// </summary>
+//    public class NumberDateFormat : NumberFormat
+//    {
+//        //private static readonly long serialVersionUID = 964823936071308283L;
+
+//        private readonly DateFormat dateFormat;
+
+//        /**
+//         * Constructs a {@link NumberDateFormat} object using the given {@link DateFormat}.
+//         * 
+//         * @param dateFormat {@link DateFormat} used to parse and format dates
+//         */
+//        public NumberDateFormat(DateFormat dateFormat)
+//        {
+//            this.dateFormat = dateFormat;
+//        }
+
+
+//        public override StringBuilder format(double number, StringBuilder toAppendTo,
+//            FieldPosition pos)
+//        {
+//            return dateFormat.format(new Date((long)number), toAppendTo, pos);
+//        }
+
+
+//        public override StringBuilder format(long number, StringBuilder toAppendTo,
+//            FieldPosition pos)
+//        {
+//            return dateFormat.format(new Date(number), toAppendTo, pos);
+//        }
+
+
+//        public override /*Number*/ object Parse(string source, ParsePosition parsePosition)
+//        {
+//            DateTime date = dateFormat.parse(source, parsePosition);
+//            return (date == null) ? null : date.getTime();
+//        }
+
+
+//        public override StringBuffer format(object number, StringBuilder toAppendTo,
+//            FieldPosition pos)
+//        {
+//            return dateFormat.format(number, toAppendTo, pos);
+//        }
+//    }
+//}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
new file mode 100644
index 0000000..b73ac0b
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
@@ -0,0 +1,155 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using static Lucene.Net.Documents.FieldType;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
+{
+    /// <summary>
+    /// This class holds the configuration used to parse numeric queries and create
+    /// {@link NumericRangeQuery}s.
+    /// </summary>
+    /// <seealso cref="NumericRangeQuery"/>
+    /// <seealso cref="NumberFormat"/>
+    public class NumericConfig
+    {
+        private int precisionStep;
+
+        private /*NumberFormat*/ string format;
+
+        private NumericType type;
+
+        /**
+         * Constructs a {@link NumericConfig} object.
+         * 
+         * @param precisionStep
+         *          the precision used to index the numeric values
+         * @param format
+         *          the {@link NumberFormat} used to parse a {@link String} to
+         *          {@link Number}
+         * @param type
+         *          the numeric type used to index the numeric values
+         * 
+         * @see NumericConfig#setPrecisionStep(int)
+         * @see NumericConfig#setNumberFormat(NumberFormat)
+         * @see #setType(org.apache.lucene.document.FieldType.NumericType)
+         */
+        public NumericConfig(int precisionStep, /*NumberFormat*/ string format,
+            NumericType type)
+        {
+            SetPrecisionStep(precisionStep);
+            SetNumberFormat(format);
+            SetType(type);
+
+        }
+
+        /**
+         * Returns the precision used to index the numeric values
+         * 
+         * @return the precision used to index the numeric values
+         * 
+         * @see NumericRangeQuery#getPrecisionStep()
+         */
+        public int GetPrecisionStep()
+        {
+            return precisionStep;
+        }
+
+        /**
+         * Sets the precision used to index the numeric values
+         * 
+         * @param precisionStep
+         *          the precision used to index the numeric values
+         * 
+         * @see NumericRangeQuery#getPrecisionStep()
+         */
+        public void SetPrecisionStep(int precisionStep)
+        {
+            this.precisionStep = precisionStep;
+        }
+
+        /**
+         * Returns the {@link NumberFormat} used to parse a {@link String} to
+         * {@link Number}
+         * 
+         * @return the {@link NumberFormat} used to parse a {@link String} to
+         *         {@link Number}
+         */
+        public /*NumberFormat*/ string GetNumberFormat()
+        {
+            return format;
+        }
+
+        /**
+         * Returns the numeric type used to index the numeric values
+         * 
+         * @return the numeric type used to index the numeric values
+         */
+        public NumericType GetType()
+        {
+            return type;
+        }
+
+        /**
+         * Sets the numeric type used to index the numeric values
+         * 
+         * @param type the numeric type used to index the numeric values
+         */
+        public void SetType(NumericType type)
+        {
+
+            //if (type == null)
+            //{
+            //    throw new ArgumentException("type cannot be null!");
+            //}
+
+            this.type = type;
+
+        }
+
+        /**
+         * Sets the {@link NumberFormat} used to parse a {@link String} to
+         * {@link Number}
+         * 
+         * @param format
+         *          the {@link NumberFormat} used to parse a {@link String} to
+         *          {@link Number}, cannot be <code>null</code>
+         */
+        public void SetNumberFormat(/*NumberFormat*/ string format)
+        {
+
+            if (format == null)
+            {
+                throw new ArgumentException("format cannot be null!");
+            }
+
+            this.format = format;
+
+        }
+
+
+        public override bool Equals(object obj)
+        {
+
+            if (obj == this) return true;
+
+            if (obj is NumericConfig)
+            {
+                NumericConfig other = (NumericConfig)obj;
+
+                if (this.precisionStep == other.precisionStep
+                    && this.type == other.type
+                    && (this.format == other.format || (this.format.Equals(other.format))))
+                {
+                    return true;
+                }
+
+            }
+
+            return false;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
new file mode 100644
index 0000000..65c4c2b
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
@@ -0,0 +1,59 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
+{
+    /// <summary>
+    /// This listener is used to listen to {@link FieldConfig} requests in
+    /// {@link QueryConfigHandler} and add {@link ConfigurationKeys#NUMERIC_CONFIG}
+    /// based on the {@link ConfigurationKeys#NUMERIC_CONFIG_MAP} set in the
+    /// {@link QueryConfigHandler}.
+    /// </summary>
+    /// <seealso cref="NumericConfig"/>
+    /// <seealso cref="QueryConfigHandler"/>
+    /// <seealso cref="ConfigurationKeys#NUMERIC_CONFIG"/>
+    /// <seealso cref="ConfigurationKeys#NUMERIC_CONFIG_MAP"/>
+    public class NumericFieldConfigListener : IFieldConfigListener
+    {
+        private readonly QueryConfigHandler config;
+
+        /**
+         * Construcs a {@link NumericFieldConfigListener} object using the given {@link QueryConfigHandler}.
+         * 
+         * @param config the {@link QueryConfigHandler} it will listen too
+         */
+        public NumericFieldConfigListener(QueryConfigHandler config)
+        {
+            if (config == null)
+            {
+                throw new ArgumentException("config cannot be null!");
+            }
+
+            this.config = config;
+        }
+
+        public virtual void BuildFieldConfig(FieldConfig fieldConfig)
+        {
+            IDictionary<string, NumericConfig> numericConfigMap = config
+                .Get(ConfigurationKeys.NUMERIC_CONFIG_MAP);
+
+            if (numericConfigMap != null)
+            {
+                //NumericConfig numericConfig = numericConfigMap
+                //    .Get(fieldConfig.GetField());
+                NumericConfig numericConfig;
+
+
+                //if (numericConfig != null)
+                if (numericConfigMap.TryGetValue(fieldConfig.GetField(), out numericConfig) && numericConfig != null)
+                {
+                    fieldConfig.Set(ConfigurationKeys.NUMERIC_CONFIG, numericConfig);
+                }
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
new file mode 100644
index 0000000..a3e10af
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
@@ -0,0 +1,200 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.Documents;
+using Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.Search;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using static Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
+{
+    /// <summary>
+    /// This query configuration handler is used for almost every processor defined
+    /// in the {@link StandardQueryNodeProcessorPipeline} processor pipeline. It holds
+    /// configuration methods that reproduce the configuration methods that could be set on the old
+    /// lucene 2.4 QueryParser class.
+    /// </summary>
+    /// <seealso cref="StandardQueryNodeProcessorPipeline"/>
+    public class StandardQueryConfigHandler : QueryConfigHandler
+    {
+        
+
+        public StandardQueryConfigHandler()
+        {
+            // Add listener that will build the FieldConfig.
+            AddFieldConfigListener(new FieldBoostMapFCListener(this));
+            AddFieldConfigListener(new FieldDateResolutionFCListener(this));
+            AddFieldConfigListener(new NumericFieldConfigListener(this));
+
+            // Default Values
+            Set(ConfigurationKeys.ALLOW_LEADING_WILDCARD, false); // default in 2.9
+            Set(ConfigurationKeys.ANALYZER, null); //default value 2.4
+            Set(ConfigurationKeys.DEFAULT_OPERATOR, Operator.OR);
+            Set(ConfigurationKeys.PHRASE_SLOP, 0); //default value 2.4
+            Set(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS, true); //default value 2.4
+            Set(ConfigurationKeys.ENABLE_POSITION_INCREMENTS, false); //default value 2.4
+            Set(ConfigurationKeys.FIELD_BOOST_MAP, new LinkedHashMap<string, float?>());
+            Set(ConfigurationKeys.FUZZY_CONFIG, new FuzzyConfig());
+            Set(ConfigurationKeys.LOCALE, CultureInfo.InvariantCulture);
+            Set(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD, MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT);
+            Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, new HashMap<string, DateTools.Resolution?>());
+
+        }
+    }
+
+    /**
+   * Class holding keys for StandardQueryNodeProcessorPipeline options.
+   */
+    public sealed class ConfigurationKeys
+    {
+
+        /**
+         * Key used to set whether position increments is enabled
+         * 
+         * @see StandardQueryParser#setEnablePositionIncrements(boolean)
+         * @see StandardQueryParser#getEnablePositionIncrements()
+         */
+        public readonly static ConfigurationKey<bool?> ENABLE_POSITION_INCREMENTS = ConfigurationKey.NewInstance<bool?>();
+
+        /**
+         * Key used to set whether expanded terms should be lower-cased
+         * 
+         * @see StandardQueryParser#setLowercaseExpandedTerms(boolean)
+         * @see StandardQueryParser#getLowercaseExpandedTerms()
+         */
+        public readonly static ConfigurationKey<bool?> LOWERCASE_EXPANDED_TERMS = ConfigurationKey.NewInstance<bool?>();
+
+        /**
+         * Key used to set whether leading wildcards are supported
+         * 
+         * @see StandardQueryParser#setAllowLeadingWildcard(boolean)
+         * @see StandardQueryParser#getAllowLeadingWildcard()
+         */
+        public readonly static ConfigurationKey<bool?> ALLOW_LEADING_WILDCARD = ConfigurationKey.NewInstance<bool?>();
+
+        /**
+         * Key used to set the {@link Analyzer} used for terms found in the query
+         * 
+         * @see StandardQueryParser#setAnalyzer(Analyzer)
+         * @see StandardQueryParser#getAnalyzer()
+         */
+        public readonly static ConfigurationKey<Analyzer> ANALYZER = ConfigurationKey.NewInstance<Analyzer>();
+
+        /**
+         * Key used to set the default boolean operator
+         * 
+         * @see StandardQueryParser#setDefaultOperator(org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.Operator)
+         * @see StandardQueryParser#getDefaultOperator()
+         */
+        public readonly static ConfigurationKey<Operator?> DEFAULT_OPERATOR = ConfigurationKey.NewInstance<Operator?>();
+
+        /**
+         * Key used to set the default phrase slop
+         * 
+         * @see StandardQueryParser#setPhraseSlop(int)
+         * @see StandardQueryParser#getPhraseSlop()
+         */
+        public readonly static ConfigurationKey<int?> PHRASE_SLOP = ConfigurationKey.NewInstance<int?>();
+
+        /**
+         * Key used to set the {@link Locale} used when parsing the query
+         * 
+         * @see StandardQueryParser#setLocale(Locale)
+         * @see StandardQueryParser#getLocale()
+         */
+        public readonly static ConfigurationKey<CultureInfo> LOCALE = ConfigurationKey.NewInstance<CultureInfo>();
+
+        public readonly static ConfigurationKey<TimeZoneInfo> TIMEZONE = ConfigurationKey.NewInstance<TimeZoneInfo>();
+
+        /**
+         * Key used to set the {@link RewriteMethod} used when creating queries
+         * 
+         * @see StandardQueryParser#setMultiTermRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod)
+         * @see StandardQueryParser#getMultiTermRewriteMethod()
+         */
+        public readonly static ConfigurationKey<MultiTermQuery.RewriteMethod> MULTI_TERM_REWRITE_METHOD = ConfigurationKey.NewInstance<MultiTermQuery.RewriteMethod>();
+
+        /**
+         * Key used to set the fields a query should be expanded to when the field
+         * is <code>null</code>
+         * 
+         * @see StandardQueryParser#setMultiFields(CharSequence[])
+         * @see StandardQueryParser#getMultiFields(CharSequence[])
+         */
+        public readonly static ConfigurationKey<string[]> MULTI_FIELDS = ConfigurationKey.NewInstance<string[]>();
+
+        /**
+         * Key used to set a field to boost map that is used to set the boost for each field
+         * 
+         * @see StandardQueryParser#setFieldsBoost(Map)
+         * @see StandardQueryParser#getFieldsBoost()
+         */
+        public readonly static ConfigurationKey<IDictionary<string, float?>> FIELD_BOOST_MAP = ConfigurationKey.NewInstance<IDictionary<string, float?>>();
+
+        /**
+         * Key used to set a field to {@link Resolution} map that is used
+         * to normalize each date field value.
+         * 
+         * @see StandardQueryParser#setDateResolutionMap(Map)
+         * @see StandardQueryParser#getDateResolutionMap()
+         */
+        public readonly static ConfigurationKey<IDictionary<string, DateTools.Resolution?>> FIELD_DATE_RESOLUTION_MAP = ConfigurationKey.NewInstance<IDictionary<string, DateTools.Resolution?>>();
+
+        /**
+         * Key used to set the {@link FuzzyConfig} used to create fuzzy queries.
+         * 
+         * @see StandardQueryParser#setFuzzyMinSim(float)
+         * @see StandardQueryParser#setFuzzyPrefixLength(int)
+         * @see StandardQueryParser#getFuzzyMinSim()
+         * @see StandardQueryParser#getFuzzyPrefixLength()
+         */
+        public readonly static ConfigurationKey<FuzzyConfig> FUZZY_CONFIG = ConfigurationKey.NewInstance<FuzzyConfig>();
+
+        /**
+         * Key used to set default {@link Resolution}.
+         * 
+         * @see StandardQueryParser#setDateResolution(org.apache.lucene.document.DateTools.Resolution)
+         * @see StandardQueryParser#getDateResolution()
+         */
+        public readonly static ConfigurationKey<DateTools.Resolution> DATE_RESOLUTION = ConfigurationKey.NewInstance<DateTools.Resolution>();
+
+        /**
+         * Key used to set the boost value in {@link FieldConfig} objects.
+         * 
+         * @see StandardQueryParser#setFieldsBoost(Map)
+         * @see StandardQueryParser#getFieldsBoost()
+         */
+        public readonly static ConfigurationKey<float?> BOOST = ConfigurationKey.NewInstance<float?>();
+
+        /**
+         * Key used to set a field to its {@link NumericConfig}.
+         * 
+         * @see StandardQueryParser#setNumericConfigMap(Map)
+         * @see StandardQueryParser#getNumericConfigMap()
+         */
+        public readonly static ConfigurationKey<NumericConfig> NUMERIC_CONFIG = ConfigurationKey.NewInstance<NumericConfig>();
+
+        /**
+         * Key used to set the {@link NumericConfig} in {@link FieldConfig} for numeric fields.
+         * 
+         * @see StandardQueryParser#setNumericConfigMap(Map)
+         * @see StandardQueryParser#getNumericConfigMap()
+         */
+        public readonly static ConfigurationKey<IDictionary<string, NumericConfig>> NUMERIC_CONFIG_MAP = ConfigurationKey.NewInstance<IDictionary<string, NumericConfig>>();
+
+    }
+
+    /**
+     * Boolean Operator: AND or OR
+     */
+    public enum Operator
+    {
+        AND,
+        OR
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
new file mode 100644
index 0000000..85fa044
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
@@ -0,0 +1,260 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// This class should be extended by nodes intending to represent range queries.
+    /// </summary>
+    /// <typeparam name="T">the type of the range query bounds (lower and upper)</typeparam>
+    public class AbstractRangeQueryNode<T> : QueryNodeImpl, IRangeQueryNode<IFieldableNode>, IAbstractRangeQueryNode where T : IFieldableNode /*IFieldValuePairQueryNode<?>*/
+    { /*IRangeQueryNode<IFieldValuePairQueryNode<?>>*/
+
+        private bool lowerInclusive, upperInclusive;
+
+        /**
+         * Constructs an {@link AbstractRangeQueryNode}, it should be invoked only by
+         * its extenders.
+         */
+        protected AbstractRangeQueryNode()
+        {
+            SetLeaf(false);
+            Allocate();
+        }
+
+        /**
+         * Gets or Sets the field associated with this node.
+         * 
+         * @return the field associated with this node
+         * 
+         * @see FieldableNode
+         */
+
+        public virtual string Field
+        {
+            get
+            {
+                string field = null;
+                T lower = (T)LowerBound;
+                T upper = (T)UpperBound;
+
+                if (lower != null)
+                {
+                    field = lower.Field;
+
+                }
+                else if (upper != null)
+                {
+                    field = upper.Field;
+                }
+
+                return field;
+            }
+            set
+            {
+                T lower = (T)LowerBound;
+                T upper = (T)UpperBound;
+
+                if (lower != null)
+                {
+                    lower.Field = value;
+                }
+
+                if (upper != null)
+                {
+                    upper.Field = value;
+                }
+            }
+        }
+
+        /**
+         * Sets the field associated with this node.
+         * 
+         * @param fieldName the field associated with this node
+         */
+        //      @Override
+        //public void setField(CharSequence fieldName)
+        //      {
+        //          T lower = getLowerBound();
+        //          T upper = getUpperBound();
+
+        //          if (lower != null)
+        //          {
+        //              lower.setField(fieldName);
+        //          }
+
+        //          if (upper != null)
+        //          {
+        //              upper.setField(fieldName);
+        //          }
+
+        //      }
+
+        /**
+         * Returns the lower bound node.
+         * 
+         * @return the lower bound node.
+         */
+        public virtual IFieldableNode LowerBound
+        {
+            get { return (IFieldableNode)GetChildren()[0]; }
+        }
+
+        /**
+         * Returns the upper bound node.
+         * 
+         * @return the upper bound node.
+         */
+        public virtual IFieldableNode UpperBound
+        {
+            get { return (IFieldableNode)GetChildren()[1]; }
+        }
+
+        /**
+         * Returns whether the lower bound is inclusive or exclusive.
+         * 
+         * @return <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
+         */
+
+        public virtual bool IsLowerInclusive
+        {
+            get { return lowerInclusive; }
+        }
+
+        /**
+         * Returns whether the upper bound is inclusive or exclusive.
+         * 
+         * @return <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
+         */
+        public virtual bool IsUpperInclusive
+        {
+            get { return upperInclusive; }
+        }
+
+        /**
+         * Sets the lower and upper bounds.
+         * 
+         * @param lower the lower bound, <code>null</code> if lower bound is open
+         * @param upper the upper bound, <code>null</code> if upper bound is open
+         * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
+         * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
+         * 
+         * @see #getLowerBound()
+         * @see #getUpperBound()
+         * @see #isLowerInclusive()
+         * @see #isUpperInclusive()
+         */
+        public void SetBounds(T lower, T upper, bool lowerInclusive,
+            bool upperInclusive)
+        {
+
+            if (lower != null && upper != null)
+            {
+                string lowerField = StringUtils.ToString(lower.Field);
+                string upperField = StringUtils.ToString(upper.Field);
+
+                if ((upperField != null || lowerField != null)
+                    && ((upperField != null && !upperField.Equals(lowerField)) || !lowerField
+                        .Equals(upperField)))
+                {
+                    throw new ArgumentException(
+                        "lower and upper bounds should have the same field name!");
+                }
+
+                this.lowerInclusive = lowerInclusive;
+                this.upperInclusive = upperInclusive;
+
+                List<IQueryNode> children = new List<IQueryNode>(2);
+                children.Add(lower);
+                children.Add(upper);
+
+                Set(children);
+
+            }
+
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            StringBuilder sb = new StringBuilder();
+
+            T lower = (T)LowerBound;
+            T upper = (T)UpperBound;
+
+            if (lowerInclusive)
+            {
+                sb.Append('[');
+
+            }
+            else
+            {
+                sb.Append('{');
+            }
+
+            if (lower != null)
+            {
+                sb.Append(lower.ToQueryString(escapeSyntaxParser));
+
+            }
+            else
+            {
+                sb.Append("...");
+            }
+
+            sb.Append(' ');
+
+            if (upper != null)
+            {
+                sb.Append(upper.ToQueryString(escapeSyntaxParser));
+
+            }
+            else
+            {
+                sb.Append("...");
+            }
+
+            if (upperInclusive)
+            {
+                sb.Append(']');
+
+            }
+            else
+            {
+                sb.Append('}');
+            }
+
+            return sb.ToString();
+
+        }
+
+
+        public override string ToString()
+        {
+            StringBuilder sb = new StringBuilder("<").Append(GetType().AssemblyQualifiedName);
+            sb.Append(" lowerInclusive=").Append(IsLowerInclusive);
+            sb.Append(" upperInclusive=").Append(IsUpperInclusive);
+            sb.Append(">\n\t");
+            sb.Append(UpperBound).Append("\n\t");
+            sb.Append(LowerBound).Append("\n");
+            sb.Append("</").Append(GetType().AssemblyQualifiedName).Append(">\n");
+
+            return sb.ToString();
+
+        }
+    }
+
+    /// <summary>
+    /// LUCENENET specific interface used to identify
+    /// an AbstractRangeQueryNode without referring to 
+    /// its generic closing type
+    /// </summary>
+    public interface IAbstractRangeQueryNode
+    { }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
new file mode 100644
index 0000000..31f7853
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
@@ -0,0 +1,23 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// A {@link BooleanModifierNode} has the same behaviour as
+    /// {@link ModifierQueryNode}, it only indicates that this modifier was added by
+    /// {@link GroupQueryNodeProcessor} and not by the user. 
+    /// </summary>
+    /// <seealso cref="ModifierQueryNode"/>
+    public class BooleanModifierNode : ModifierQueryNode
+    {
+        public BooleanModifierNode(IQueryNode node, Modifier mod)
+            : base(node, mod)
+        {
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
new file mode 100644
index 0000000..f111313
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
@@ -0,0 +1,104 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// A {@link MultiPhraseQueryNode} indicates that its children should be used to
+    /// build a {@link MultiPhraseQuery} instead of {@link PhraseQuery}.
+    /// </summary>
+    public class MultiPhraseQueryNode : QueryNodeImpl, IFieldableNode
+    {
+        public MultiPhraseQueryNode()
+        {
+            SetLeaf(false);
+            Allocate();
+
+        }
+
+        public override string ToString()
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "<multiPhrase/>";
+            StringBuilder sb = new StringBuilder();
+            sb.Append("<multiPhrase>");
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append("\n");
+                sb.Append(child.ToString());
+            }
+            sb.Append("\n</multiPhrase>");
+            return sb.ToString();
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "";
+
+            StringBuilder sb = new StringBuilder();
+            string filler = "";
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
+                filler = ",";
+            }
+
+            return "[MTP[" + sb.ToString() + "]]";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            MultiPhraseQueryNode clone = (MultiPhraseQueryNode)base.CloneTree();
+
+            // nothing to do
+
+            return clone;
+        }
+
+
+        public virtual string Field
+        {
+            get
+            {
+                IList<IQueryNode> children = GetChildren();
+
+                if (children == null || children.Count == 0)
+                {
+                    return null;
+
+                }
+                else
+                {
+                    return ((IFieldableNode)children[0]).Field;
+                }
+            }
+            set
+            {
+                IList<IQueryNode> children = GetChildren();
+
+                if (children != null)
+                {
+
+                    foreach (IQueryNode child in children)
+                    {
+
+                        if (child is IFieldableNode)
+                        {
+                            ((IFieldableNode)child).Field = value;
+                        }
+
+                    }
+                }
+            }
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
new file mode 100644
index 0000000..0375858
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
@@ -0,0 +1,146 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// This query node represents a field query that holds a numeric value. It is
+    /// similar to {@link FieldQueryNode}, however the {@link #getValue()} returns a
+    /// {@link Number}.
+    /// </summary>
+    /// <seealso cref="NumericConfig"/>
+    public class NumericQueryNode : QueryNodeImpl, IFieldValuePairQueryNode<object> // LUCENENET TODO: Can we use Decimal??
+    {
+        private /*NumberFormat*/ string numberFormat;
+
+        private string field;
+
+        private /*Number*/ object value;
+
+        /**
+         * Creates a {@link NumericQueryNode} object using the given field,
+         * {@link Number} value and {@link NumberFormat} used to convert the value to
+         * {@link String}.
+         * 
+         * @param field the field associated with this query node
+         * @param value the value hold by this node
+         * @param numberFormat the {@link NumberFormat} used to convert the value to {@link String}
+         */
+        public NumericQueryNode(string field, /*Number*/ object value,
+            /*NumberFormat*/ string numberFormat)
+            : base()
+        {
+            SetNumberFormat(numberFormat);
+            Field = field;
+            Value = value;
+
+        }
+
+        /**
+         * Returns the field associated with this node.
+         * 
+         * @return the field associated with this node
+         */
+
+        public virtual string Field
+        {
+            get { return this.field; }
+            set { this.field = value; }
+        }
+
+        /**
+         * Sets the field associated with this node.
+         * 
+         * @param fieldName the field associated with this node
+         */
+        //      @Override
+        //public void setField(CharSequence fieldName)
+        //      {
+        //          this.field = fieldName;
+        //      }
+
+        /**
+         * This method is used to get the value converted to {@link String} and
+         * escaped using the given {@link EscapeQuerySyntax}.
+         * 
+         * @param escaper the {@link EscapeQuerySyntax} used to escape the value {@link String}
+         * 
+         * @return the value converte to {@link String} and escaped
+         */
+        protected string GetTermEscaped(IEscapeQuerySyntax escaper)
+        {
+            return escaper.Escape(new StringCharSequenceWrapper(string.Format(numberFormat, this.value)) /*numberFormat.format(this.value)*/,
+                CultureInfo.CurrentCulture, EscapeQuerySyntax.Type.NORMAL).ToString();
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (IsDefaultField(this.field))
+            {
+                return GetTermEscaped(escapeSyntaxParser);
+            }
+            else
+            {
+                return this.field + ":" + GetTermEscaped(escapeSyntaxParser);
+            }
+        }
+
+        /**
+         * Sets the {@link NumberFormat} used to convert the value to {@link String}.
+         * 
+         * @param format the {@link NumberFormat} used to convert the value to {@link String}
+         */
+        public void SetNumberFormat(/*NumberFormat*/ string format)
+        {
+            this.numberFormat = format;
+        }
+
+        /**
+         * Returns the {@link NumberFormat} used to convert the value to {@link String}.
+         * 
+         * @return the {@link NumberFormat} used to convert the value to {@link String}
+         */
+        public /*NumberFormat*/ string GetNumberFormat()
+        {
+            return this.numberFormat;
+        }
+
+        /**
+         * Returns the numeric value as {@link Number}.
+         * 
+         * @return the numeric value
+         */
+
+        public virtual object Value
+        {
+            get { return value; }
+            set { this.value = value; }
+        }
+
+        /**
+         * Sets the numeric value.
+         * 
+         * @param value the numeric value
+         */
+        //      @Override
+        //public void setValue(Number value)
+        //      {
+        //          this.value = value;
+        //      }
+
+
+        public override string ToString()
+        {
+            return "<numeric field='" + this.field + "' number='"
+                + string.Format(numberFormat, value) + "'/>";
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
new file mode 100644
index 0000000..11dbffc
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
@@ -0,0 +1,160 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using static Lucene.Net.Documents.FieldType;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// This query node represents a range query composed by {@link NumericQueryNode}
+    /// bounds, which means the bound values are {@link Number}s.
+    /// </summary>
+    /// <seealso cref="NumericQueryNode"/>
+    /// <seealso cref="AbstractRangeQueryNode{T}"/>
+    public class NumericRangeQueryNode : AbstractRangeQueryNode<NumericQueryNode>
+    {
+        public NumericConfig numericConfig;
+
+        /**
+       * Constructs a {@link NumericRangeQueryNode} object using the given
+       * {@link NumericQueryNode} as its bounds and {@link NumericConfig}.
+       * 
+       * @param lower the lower bound
+       * @param upper the upper bound
+       * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
+       * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
+       * @param numericConfig the {@link NumericConfig} that represents associated with the upper and lower bounds
+       * 
+       * @see #setBounds(NumericQueryNode, NumericQueryNode, boolean, boolean, NumericConfig)
+       */
+        public NumericRangeQueryNode(NumericQueryNode lower, NumericQueryNode upper,
+            bool lowerInclusive, bool upperInclusive, NumericConfig numericConfig)
+        {
+            SetBounds(lower, upper, lowerInclusive, upperInclusive, numericConfig);
+        }
+
+        private static NumericType GetNumericDataType(/*Number*/ object number)
+        {
+
+            if (number is long)
+            {
+                return NumericType.LONG;
+            }
+            else if (number is int)
+            {
+                return NumericType.INT;
+            }
+            else if (number is double)
+            {
+                return NumericType.DOUBLE;
+            }
+            else if (number is float)
+            {
+                return NumericType.FLOAT;
+            }
+            else
+            {
+                throw new QueryNodeException(
+                    new MessageImpl(
+                        QueryParserMessages.NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY,
+                        number.GetType()));
+            }
+
+        }
+
+        /**
+         * Sets the upper and lower bounds of this range query node and the
+         * {@link NumericConfig} associated with these bounds.
+         * 
+         * @param lower the lower bound
+         * @param upper the upper bound
+         * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
+         * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
+         * @param numericConfig the {@link NumericConfig} that represents associated with the upper and lower bounds
+         * 
+         */
+        public virtual void SetBounds(NumericQueryNode lower, NumericQueryNode upper,
+            bool lowerInclusive, bool upperInclusive, NumericConfig numericConfig)
+        {
+
+            if (numericConfig == null)
+            {
+                throw new ArgumentException("numericConfig cannot be null!");
+            }
+
+            NumericType? lowerNumberType, upperNumberType;
+
+            if (lower != null && lower.Value != null)
+            {
+                lowerNumberType = GetNumericDataType(lower.Value);
+            }
+            else
+            {
+                lowerNumberType = null;
+            }
+
+            if (upper != null && upper.Value != null)
+            {
+                upperNumberType = GetNumericDataType(upper.Value);
+            }
+            else
+            {
+                upperNumberType = null;
+            }
+
+            if (lowerNumberType != null
+                && !lowerNumberType.Equals(numericConfig.GetType()))
+            {
+                throw new ArgumentException(
+                    "lower value's type should be the same as numericConfig type: "
+                        + lowerNumberType + " != " + numericConfig.GetType());
+            }
+
+            if (upperNumberType != null
+                && !upperNumberType.Equals(numericConfig.GetType()))
+            {
+                throw new ArgumentException(
+                    "upper value's type should be the same as numericConfig type: "
+                        + upperNumberType + " != " + numericConfig.GetType());
+            }
+
+            base.SetBounds(lower, upper, lowerInclusive, upperInclusive);
+            this.numericConfig = numericConfig;
+
+        }
+
+        /**
+         * Returns the {@link NumericConfig} associated with the lower and upper bounds.
+         * 
+         * @return the {@link NumericConfig} associated with the lower and upper bounds
+         */
+        public NumericConfig GetNumericConfig()
+        {
+            return this.numericConfig;
+        }
+
+
+        public override string ToString()
+        {
+            StringBuilder sb = new StringBuilder("<numericRange lowerInclusive='");
+
+            sb.Append(IsLowerInclusive).Append("' upperInclusive='").Append(
+                IsUpperInclusive).Append(
+                "' precisionStep='" + numericConfig.GetPrecisionStep()).Append(
+                "' type='" + numericConfig.GetType()).Append("'>\n");
+
+            sb.Append(LowerBound).Append('\n');
+            sb.Append(UpperBound).Append('\n');
+            sb.Append("</numericRange>");
+
+            return sb.ToString();
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
new file mode 100644
index 0000000..d76bafe
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
@@ -0,0 +1,74 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// A {@link PrefixWildcardQueryNode} represents wildcardquery that matches abc*
+    /// or *. This does not apply to phrases, this is a special case on the original
+    /// lucene parser. TODO: refactor the code to remove this special case from the
+    /// parser. and probably do it on a Processor
+    /// </summary>
+    public class PrefixWildcardQueryNode : WildcardQueryNode
+    {
+        /**
+        * @param field
+        *          - field name
+        * @param text
+        *          - value including the wildcard
+        * @param begin
+        *          - position in the query string
+        * @param end
+        *          - position in the query string
+        */
+        // LUCENENET specific overload for passing text as string
+        public PrefixWildcardQueryNode(string field, string text,
+            int begin, int end)
+            : this(field, new StringCharSequenceWrapper(text), begin, end)
+        {
+        }
+
+        /**
+        * @param field
+        *          - field name
+        * @param text
+        *          - value including the wildcard
+        * @param begin
+        *          - position in the query string
+        * @param end
+        *          - position in the query string
+        */
+        public PrefixWildcardQueryNode(string field, ICharSequence text,
+            int begin, int end)
+            : base(field, text, begin, end)
+        {
+        }
+
+        public PrefixWildcardQueryNode(FieldQueryNode fqn)
+            : this(fqn.Field, fqn.Text, fqn.GetBegin(), fqn.GetEnd())
+        {
+        }
+
+
+        public override string ToString()
+        {
+            return "<prefixWildcard field='" + this.field + "' term='" + this.text
+                + "'/>";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            PrefixWildcardQueryNode clone = (PrefixWildcardQueryNode)base.CloneTree();
+
+            // nothing to do here
+
+            return clone;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
new file mode 100644
index 0000000..58b38a0
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
@@ -0,0 +1,99 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.Support;
+using Lucene.Net.Util;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// A {@link RegexpQueryNode} represents {@link RegexpQuery} query Examples: /[a-z]|[0-9]/
+    /// </summary>
+    public class RegexpQueryNode : QueryNodeImpl, ITextableQueryNode, IFieldableNode
+    {
+        private ICharSequence text;
+        private string field;
+
+        /**
+         * @param field
+         *          - field name
+         * @param text
+         *          - value that contains a regular expression
+         * @param begin
+         *          - position in the query string
+         * @param end
+         *          - position in the query string
+         */
+         // LUCENENET specific overload for passing text as string
+        public RegexpQueryNode(string field, string text, int begin,
+            int end)
+            : this(field, new StringCharSequenceWrapper(text), begin, end)
+        {
+        }
+
+        /**
+         * @param field
+         *          - field name
+         * @param text
+         *          - value that contains a regular expression
+         * @param begin
+         *          - position in the query string
+         * @param end
+         *          - position in the query string
+         */
+        public RegexpQueryNode(string field, ICharSequence text, int begin,
+            int end)
+        {
+            this.field = field;
+            this.text = text.SubSequence(begin, end);
+        }
+
+        public BytesRef TextToBytesRef()
+        {
+            return new BytesRef(text.ToString());
+        }
+
+
+        public override string ToString()
+        {
+            return "<regexp field='" + this.field + "' term='" + this.text + "'/>";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            RegexpQueryNode clone = (RegexpQueryNode)base.CloneTree();
+            clone.field = this.field;
+            clone.text = this.text;
+            return clone;
+        }
+
+
+        public virtual ICharSequence Text
+        {
+            get { return text; }
+            set { this.text = value; }
+        }
+
+        public virtual string Field
+        {
+            get { return field; }
+            set { this.field = value; }
+        }
+
+        public virtual string FieldAsString
+        {
+            get { return field.ToString(); }
+        }
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            return IsDefaultField(field) ? "/" + text + "/" : field + ":/" + text + "/";
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
new file mode 100644
index 0000000..de38d03
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
@@ -0,0 +1,32 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// A {@link StandardBooleanQueryNode} has the same behavior as
+    /// {@link BooleanQueryNode}. It only indicates if the coord should be enabled or
+    /// not for this boolean query. 
+    /// </summary>
+    /// <seealso cref="Similarity#coord(int, int)"/>
+    /// <seealso cref="BooleanQuery"/>
+    public class StandardBooleanQueryNode : BooleanQueryNode
+    {
+        private bool disableCoord;
+
+        public StandardBooleanQueryNode(IList<IQueryNode> clauses, bool disableCoord)
+            : base(clauses)
+        {
+            this.disableCoord = disableCoord;
+        }
+
+        public bool IsDisableCoord
+        {
+            get { return this.disableCoord; }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
new file mode 100644
index 0000000..a4a35c1
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
@@ -0,0 +1,33 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// This query node represents a range query composed by {@link FieldQueryNode}
+    /// bounds, which means the bound values are strings.
+    /// </summary>
+    /// <seealso cref="FieldQueryNode"/>
+    /// <seealso cref="AbstractRangeQueryNode{T}"/>
+    public class TermRangeQueryNode : AbstractRangeQueryNode<FieldQueryNode>
+    {
+        /**
+   * Constructs a {@link TermRangeQueryNode} object using the given
+   * {@link FieldQueryNode} as its bounds.
+   * 
+   * @param lower the lower bound
+   * @param upper the upper bound
+   * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
+   * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
+   */
+        public TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper,
+            bool lowerInclusive, bool upperInclusive)
+        {
+            SetBounds(lower, upper, lowerInclusive, upperInclusive);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
new file mode 100644
index 0000000..4ff25eb
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
@@ -0,0 +1,84 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
+{
+    /// <summary>
+    /// A {@link WildcardQueryNode} represents wildcard query This does not apply to
+    /// phrases. Examples: a*b*c Fl?w? m?ke*g
+    /// </summary>
+    public class WildcardQueryNode : FieldQueryNode
+    {
+        /**
+        * @param field
+        *          - field name
+        * @param text
+        *          - value that contains one or more wild card characters (? or *)
+        * @param begin
+        *          - position in the query string
+        * @param end
+        *          - position in the query string
+        */
+        // LUCENENET specific overload for passing text as string
+        public WildcardQueryNode(string field, string text, int begin,
+            int end)
+            : this(field, new StringCharSequenceWrapper(text), begin, end)
+        {
+        }
+
+        /**
+        * @param field
+        *          - field name
+        * @param text
+        *          - value that contains one or more wild card characters (? or *)
+        * @param begin
+        *          - position in the query string
+        * @param end
+        *          - position in the query string
+        */
+        public WildcardQueryNode(string field, ICharSequence text, int begin,
+            int end)
+            : base(field, text, begin, end)
+        {
+        }
+
+        public WildcardQueryNode(FieldQueryNode fqn)
+            : this(fqn.Field, fqn.Text, fqn.GetBegin(), fqn.GetEnd())
+        {
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escaper)
+        {
+            if (IsDefaultField(this.field))
+            {
+                return this.text.ToString();
+            }
+            else
+            {
+                return this.field + ":" + this.text;
+            }
+        }
+
+        public override string ToString()
+        {
+            return "<wildcard field='" + this.field + "' term='" + this.text + "'/>";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            WildcardQueryNode clone = (WildcardQueryNode)base.CloneTree();
+
+            // nothing to do here
+
+            return clone;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
new file mode 100644
index 0000000..0e392a2
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
@@ -0,0 +1,117 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+{
+    /// <summary>
+    /// This interface describes a character stream that maintains line and
+    /// column number positions of the characters.  It also has the capability
+    /// to backup the stream to some extent.  An implementation of this
+    /// interface is used in the TokenManager implementation generated by
+    /// JavaCCParser.
+    /// 
+    /// All the methods except backup can be implemented in any fashion. backup
+    /// needs to be implemented correctly for the correct operation of the lexer.
+    /// Rest of the methods are all used to get information like line number,
+    /// column number and the String that constitutes a token and are not used
+    /// by the lexer. Hence their implementation won't affect the generated lexer's
+    /// operation.
+    /// </summary>
+    public interface ICharStream
+    {
+        /**
+        * Returns the next character from the selected input.  The method
+        * of selecting the input is the responsibility of the class
+        * implementing this interface.  Can throw any java.io.IOException.
+        */
+        char ReadChar();
+
+        [Obsolete]
+        /**
+         * Returns the column position of the character last read.
+         * @deprecated
+         * @see #getEndColumn
+         */
+        int GetColumn();
+
+        [Obsolete]
+        /**
+         * Returns the line number of the character last read.
+         * @deprecated
+         * @see #getEndLine
+         */
+        int GetLine();
+
+        /**
+         * Returns the column number of the last character for current token (being
+         * matched after the last call to BeginTOken).
+         */
+        int GetEndColumn();
+
+        /**
+         * Returns the line number of the last character for current token (being
+         * matched after the last call to BeginTOken).
+         */
+        int GetEndLine();
+
+        /**
+         * Returns the column number of the first character for current token (being
+         * matched after the last call to BeginTOken).
+         */
+        int GetBeginColumn();
+
+        /**
+         * Returns the line number of the first character for current token (being
+         * matched after the last call to BeginTOken).
+         */
+        int GetBeginLine();
+
+        /**
+         * Backs up the input stream by amount steps. Lexer calls this method if it
+         * had already read some characters, but could not use them to match a
+         * (longer) token. So, they will be used again as the prefix of the next
+         * token and it is the implemetation's responsibility to do this right.
+         */
+        void BackUp(int amount);
+
+        /**
+         * Returns the next character that marks the beginning of the next token.
+         * All characters must remain in the buffer between two successive calls
+         * to this method to implement backup correctly.
+         */
+        char BeginToken();
+
+        /**
+         * Returns a string made up of characters from the marked token beginning
+         * to the current buffer position. Implementations have the choice of returning
+         * anything that they want to. For example, for efficiency, one might decide
+         * to just return null, which is a valid implementation.
+         */
+        string GetImage();
+
+        /**
+         * Returns an array of characters that make up the suffix of length 'len' for
+         * the currently matched token. This is used to build up the matched string
+         * for use in actions in the case of MORE. A simple and inefficient
+         * implementation of this is as follows :
+         *
+         *   {
+         *      String t = GetImage();
+         *      return t.substring(t.length() - len, t.length()).toCharArray();
+         *   }
+         */
+        char[] GetSuffix(int len);
+
+        /**
+         * The lexer calls this function to indicate that it is done with the stream
+         * and hence implementations can free any resources held by this class.
+         * Again, the body of this function can be just empty and it will not
+         * affect the lexer's operation.
+         */
+        void Done();
+
+    }
+}


[17/58] lucenenet git commit: QueryParser.Flexible Refactor: Properties

Posted by ni...@apache.org.
QueryParser.Flexible Refactor: Properties


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

Branch: refs/heads/master
Commit: 0aa30ca8fde051ba163cf572cbe211790fdb4864
Parents: 8076b1e
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Nov 29 22:28:12 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Nov 29 22:28:12 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Config/FieldConfig.cs         |   4 +-
 .../Flexible/Core/Nodes/AndQueryNode.cs         |  14 +-
 .../Flexible/Core/Nodes/AnyQueryNode.cs         |  38 ++--
 .../Flexible/Core/Nodes/BooleanQueryNode.cs     |  14 +-
 .../Flexible/Core/Nodes/BoostQueryNode.cs       |  29 +--
 .../Flexible/Core/Nodes/FieldQueryNode.cs       |  79 ++------
 .../Flexible/Core/Nodes/FieldableNode.cs        |  17 +-
 .../Flexible/Core/Nodes/FuzzyQueryNode.cs       |  27 +--
 .../Flexible/Core/Nodes/ModifierQueryNode.cs    |   6 +-
 .../Flexible/Core/Nodes/OpaqueQueryNode.cs      |   8 +-
 .../Flexible/Core/Nodes/OrQueryNode.cs          |  14 +-
 .../Flexible/Core/Nodes/PhraseSlopQueryNode.cs  |   4 +-
 .../Flexible/Core/Nodes/ProximityQueryNode.cs   |  72 ++++---
 .../Flexible/Core/Nodes/QueryNode.cs            |   6 +-
 .../Flexible/Core/Nodes/QueryNodeImpl.cs        |  28 +--
 .../Flexible/Core/Nodes/RangeQueryNode.cs       |  10 +-
 .../Flexible/Core/Nodes/SlopQueryNode.cs        |   4 +-
 .../Core/Nodes/TokenizedPhraseQueryNode.cs      |  15 +-
 .../RemoveDeletedQueryNodesProcessor.cs         |   2 +-
 .../Flexible/Core/QueryNodeParseException.cs    |  49 ++---
 .../Flexible/Core/QueryParserHelper.cs          |  28 +--
 .../Flexible/Messages/NLS.cs                    |   4 +-
 .../Precedence/PrecedenceQueryParser.cs         |   4 +-
 .../BooleanModifiersQueryNodeProcessor.cs       |   2 +-
 .../Standard/Builders/AnyQueryNodeBuilder.cs    |   2 +-
 .../Builders/BooleanQueryNodeBuilder.cs         |   2 +-
 .../Standard/Builders/BoostQueryNodeBuilder.cs  |   4 +-
 .../Standard/Builders/FuzzyQueryNodeBuilder.cs  |   4 +-
 .../Builders/MultiPhraseQueryNodeBuilder.cs     |   4 +-
 .../Builders/NumericRangeQueryNodeBuilder.cs    |   6 +-
 .../Standard/Builders/PhraseQueryNodeBuilder.cs |   2 +-
 .../Standard/Builders/RegexpQueryNodeBuilder.cs |   2 +-
 .../Standard/Builders/SlopQueryNodeBuilder.cs   |   4 +-
 .../Builders/StandardBooleanQueryNodeBuilder.cs |   2 +-
 .../Standard/CommonQueryParserConfiguration.cs  |   2 +-
 .../Standard/Config/FieldBoostMapFCListener.cs  |   2 +-
 .../Config/FieldDateResolutionFCListener.cs     |   2 +-
 .../Flexible/Standard/Config/FuzzyConfig.cs     |  20 +-
 .../Flexible/Standard/Config/NumericConfig.cs   |  89 +++------
 .../Config/NumericFieldConfigListener.cs        |   2 +-
 .../Standard/Nodes/MultiPhraseQueryNode.cs      |  10 +-
 .../Flexible/Standard/Nodes/NumericQueryNode.cs |  21 +-
 .../Standard/Nodes/NumericRangeQueryNode.cs     |  16 +-
 .../Standard/Nodes/PrefixWildcardQueryNode.cs   |   2 +-
 .../Flexible/Standard/Nodes/RegexpQueryNode.cs  |   4 +-
 .../Standard/Nodes/WildcardQueryNode.cs         |   2 +-
 .../Flexible/Standard/Parser/CharStream.cs      |  12 +-
 .../Standard/Parser/EscapeQuerySyntaxImpl.cs    | 196 ++++++++++---------
 .../Flexible/Standard/Parser/FastCharStream.cs  |  24 +--
 .../Parser/StandardSyntaxParserTokenManager.cs  |  12 +-
 .../Flexible/Standard/Parser/Token.cs           |   4 +-
 .../Processors/AnalyzerQueryNodeProcessor.cs    |  14 +-
 .../BooleanQuery2ModifierNodeProcessor.cs       |   6 +-
 ...SingleChildOptimizationQueryNodeProcessor.cs |   2 +-
 .../Processors/BoostQueryNodeProcessor.cs       |   2 +-
 .../Processors/FuzzyQueryNodeProcessor.cs       |   8 +-
 .../Processors/GroupQueryNodeProcessor.cs       |  10 +-
 .../LowercaseExpandedTermsQueryNodeProcessor.cs |   2 +-
 .../Processors/NumericQueryNodeProcessor.cs     |   6 +-
 .../NumericRangeQueryNodeProcessor.cs           |   4 +-
 .../RemoveEmptyNonLeafQueryNodeProcessor.cs     |   4 +-
 .../Processors/WildcardQueryNodeProcessor.cs    |   2 +-
 .../Flexible/Standard/StandardQueryParser.cs    | 166 ++++++++--------
 .../Flexible/Core/Nodes/TestQueryNode.cs        |  12 +-
 .../Precedence/TestPrecedenceQueryParser.cs     |  16 +-
 .../Standard/TestMultiAnalyzerQPHelper.cs       |   2 +-
 .../Flexible/Standard/TestMultiFieldQPHelper.cs |   6 +-
 .../Flexible/Standard/TestQPHelper.cs           |   8 +-
 .../Flexible/Standard/TestStandardQP.cs         |  14 +-
 69 files changed, 540 insertions(+), 674 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
index 33045ab..cd5d124 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
@@ -36,9 +36,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          * 
          * @return the field name
          */
-        public virtual string GetField()
+        public virtual string Field
         {
-            return this.fieldName;
+            get { return this.fieldName; }
         }
 
         public override string ToString()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
index fa2b365..5b6aed2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
@@ -30,11 +30,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public override string ToString()
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "<boolean operation='and'/>";
             StringBuilder sb = new StringBuilder();
             sb.Append("<boolean operation='and'>");
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append("\n");
                 sb.Append(child.ToString());
@@ -47,20 +48,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "";
 
             StringBuilder sb = new StringBuilder();
             string filler = "";
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
                 filler = " AND ";
             }
 
             // in case is root or the parent is a group node avoid parenthesis
-            if ((GetParent() != null && GetParent() is GroupQueryNode)
-        || IsRoot())
+            if ((Parent != null && Parent is GroupQueryNode)
+                || IsRoot)
                 return sb.ToString();
             else
                 return "( " + sb.ToString() + " )";

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
index 29768ff..72ed581 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
@@ -53,9 +53,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         }
 
-        public virtual int GetMinimumMatchingElements()
+        public virtual int MinimumMatchingElements
         {
-            return this.minimumMatchingmElements;
+            get { return this.minimumMatchingmElements; }
         }
 
         /**
@@ -63,11 +63,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the field
          */
-        public virtual string GetField()
+        public virtual string Field
         {
-            return this.field;
+            get { return this.field; }
+            set { this.field = value; }
         }
 
+
+        // LUCENENET TODO: No need for GetFieldAsString method because
+        // field is already type string
         /**
          * returns - null if the field was not specified
          * 
@@ -81,14 +85,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return this.field.ToString();
         }
 
-        /**
-         * @param field
-         *          - the field to set
-         */
-        public virtual void SetField(string field)
-        {
-            this.field = field;
-        }
+        ///**
+        // * @param field
+        // *          - the field to set
+        // */
+        //public virtual void SetField(string field)
+        //{
+        //    this.field = field;
+        //}
 
 
         public override IQueryNode CloneTree()
@@ -104,13 +108,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public override string ToString()
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "<any field='" + this.field + "'  matchelements="
                     + this.minimumMatchingmElements + "/>";
             StringBuilder sb = new StringBuilder();
             sb.Append("<any field='" + this.field + "'  matchelements="
                 + this.minimumMatchingmElements + ">");
-            foreach (IQueryNode clause in GetChildren())
+            foreach (IQueryNode clause in children)
             {
                 sb.Append("\n");
                 sb.Append(clause.ToString());
@@ -124,14 +129,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             string anySTR = "ANY " + this.minimumMatchingmElements;
 
             StringBuilder sb = new StringBuilder();
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
             {
                 // no childs case
             }
             else
             {
                 string filler = "";
-                foreach (IQueryNode clause in GetChildren())
+                foreach (IQueryNode clause in children)
                 {
                     sb.Append(filler).Append(clause.ToQueryString(escapeSyntaxParser));
                     filler = " ";

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
index 6a3e21e..d8b7c66 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
@@ -28,11 +28,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public override string ToString()
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "<boolean operation='default'/>";
             StringBuilder sb = new StringBuilder();
             sb.Append("<boolean operation='default'>");
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append("\n");
                 sb.Append(child.ToString());
@@ -44,20 +45,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "";
 
             StringBuilder sb = new StringBuilder();
             string filler = "";
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
                 filler = " ";
             }
 
             // in case is root or the parent is a group node avoid parenthesis
-            if ((GetParent() != null && GetParent() is GroupQueryNode)
-                || IsRoot())
+            if ((Parent != null && Parent is GroupQueryNode)
+                || IsRoot)
                 return sb.ToString();
             else
                 return "( " + sb.ToString() + " )";

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
index b9a1b27..f0a0a7f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
@@ -46,16 +46,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the single child which this node boosts
          */
-        public virtual IQueryNode GetChild()
+        public virtual IQueryNode Child
         {
-            IList<IQueryNode> children = GetChildren();
-
-            if (children == null || children.Count == 0)
+            get
             {
-                return null;
-            }
+                IList<IQueryNode> children = GetChildren();
 
-            return children[0];
+                if (children == null || children.Count == 0)
+                {
+                    return null;
+                }
+
+                return children[0];
+            }
 
         }
 
@@ -64,9 +67,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the boost value
          */
-        public virtual float GetValue()
+        public virtual float Value
         {
-            return this.value;
+            get { return this.value; }
         }
 
         /**
@@ -80,7 +83,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             if (f == (long)f)
                 return "" + (long)f;
             else
-                return "" + f;
+                return "" + f.ToString("0.0#######"); // LUCENENET TODO: Culture
 
         }
 
@@ -88,15 +91,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         public override string ToString()
         {
             return "<boost value='" + GetValueString() + "'>" + "\n"
-                + GetChild().ToString() + "\n</boost>";
+                + Child.ToString() + "\n</boost>";
         }
 
 
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
-            if (GetChild() == null)
+            if (Child == null)
                 return "";
-            return GetChild().ToQueryString(escapeSyntaxParser) + "^"
+            return Child.ToQueryString(escapeSyntaxParser) + "^"
                 + GetValueString();
         }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
index 3930b6a..45161e2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
@@ -118,6 +118,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return this.text.ToString();
         }
 
+        // LUCENENET TODO: this method is not required because Field is already type string in .NET
         /**
          * returns null if the field was not specified in the query string
          * 
@@ -131,24 +132,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return this.field.ToString();
         }
 
-        public virtual int GetBegin()
+        public virtual int Begin
         {
-            return this.begin;
+            get { return this.begin; }
+            set { this.begin = value; }
         }
 
-        public virtual void SetBegin(int begin)
+        public virtual int End
         {
-            this.begin = begin;
-        }
-
-        public virtual int GetEnd()
-        {
-            return this.end;
-        }
-
-        public virtual void SetEnd(int end)
-        {
-            this.end = end;
+            get { return this.end; }
+            set { this.end = value; }
         }
 
         public virtual string Field
@@ -157,56 +150,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             set { this.field = value; }
         }
 
-        //      @Override
-        //public CharSequence getField()
-        //      {
-        //          return this.field;
-        //      }
-
-        //      @Override
-        //public void setField(CharSequence field)
-        //      {
-        //          this.field = field;
-        //      }
-
-        public virtual int GetPositionIncrement()
+        public virtual int PositionIncrement
         {
-            return this.positionIncrement;
-        }
-
-        public virtual void SetPositionIncrement(int pi)
-        {
-            this.positionIncrement = pi;
+            get { return this.positionIncrement; }
+            set { this.positionIncrement = value; }
         }
 
+        /// <summary>
+        /// Gets or Sets the "original" form of the term.
+        /// </summary>
         public virtual ICharSequence Text
         {
             get { return this.text; }
             set { this.text = value; }
         }
 
-        ///**
-        // * Returns the term.
-        // * 
-        // * @return The "original" form of the term.
-        // */
-
-        //public override string GetText()
-        //{
-        //    return this.text;
-        //}
-
-        ///**
-        // * @param text
-        // *          the text to set
-        // */
-
-        //public override void SetText(string text)
-        //{
-        //    this.text = text;
-        //}
-
-
         public override IQueryNode CloneTree()
         {
             FieldQueryNode fqn = (FieldQueryNode)base.CloneTree();
@@ -226,16 +184,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             get { return Text.ToString(); }
             set { Text = value.ToCharSequence(); }
         }
-
-        //public override string GetValue()
-        //{
-        //    return GetText();
-        //}
-
-
-        //public override void SetValue(string value)
-        //{
-        //    SetText(value);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
index e9b6439..922c456 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
@@ -16,23 +16,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     public interface IFieldableNode : IQueryNode
     {
         /// <summary>
-        /// Gets or Sets the field associated to the node and every node under it.
+        /// Gets or Sets the field name associated to the node and every node under it.
         /// </summary>
         string Field { get; set; }
-
-        //     /**
-        //* Returns the field associated to the node and every node under it.
-        //* 
-        //* @return the field name
-        //*/
-        //     string GetField(); 
-
-        //     /**
-        //      * Associates the node to a field.
-        //      * 
-        //      * @param fieldName
-        //      *          the field name
-        //      */
-        //     void SetField(string fieldName);
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
index f80e4fb..81b0cb7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
@@ -63,14 +63,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             SetLeaf(true);
         }
 
-        public virtual void SetPrefixLength(int prefixLength)
+        public virtual int PrefixLength
         {
-            this.prefixLength = prefixLength;
-        }
-
-        public virtual int GetPrefixLength()
-        {
-            return this.prefixLength;
+            get { return this.prefixLength; }
+            set { this.prefixLength = value; }
         }
 
 
@@ -93,12 +89,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 + "' term='" + this.text + "'/>";
         }
 
-        public virtual void SetSimilarity(float similarity)
+        /**
+         * @return the similarity
+         */
+        public virtual float Similarity
         {
-            this.similarity = similarity;
+            get { return this.similarity; }
+            set { this.similarity = value; }
         }
 
-
         public override IQueryNode CloneTree()
         {
             FuzzyQueryNode clone = (FuzzyQueryNode)base.CloneTree();
@@ -107,13 +106,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
             return clone;
         }
-
-        /**
-         * @return the similarity
-         */
-        public virtual float GetSimilarity()
-        {
-            return this.similarity;
-        }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
index b4fb148..9626f2d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
@@ -25,7 +25,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
 
 
-        private Modifier modifier = Modifier.MOD_NONE;
+        private Modifier modifier = Nodes.Modifier.MOD_NONE;
 
         /**
          * Used to store the modifier value on the original query string
@@ -54,9 +54,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return GetChildren()[0];
         }
 
-        public virtual Modifier GetModifier()
+        public virtual Modifier Modifier
         {
-            return this.modifier;
+            get { return this.modifier; }
         }
 
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
index 6be66a7..ebdb6ec 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
@@ -59,17 +59,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
          * @return the schema
          */
-        public virtual string GetSchema()
+        public virtual string Schema
         {
-            return this.schema;
+            get { return this.schema; }
         }
 
         /**
          * @return the value
          */
-        public virtual string GetValue()
+        public virtual string Value
         {
-            return this.value;
+            get { return this.value; }
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
index edd3577..b8596f6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
@@ -29,11 +29,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public override string ToString()
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "<boolean operation='or'/>";
             StringBuilder sb = new StringBuilder();
             sb.Append("<boolean operation='or'>");
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append("\n");
                 sb.Append(child.ToString());
@@ -46,20 +47,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "";
 
             StringBuilder sb = new StringBuilder();
             string filler = "";
-            for (IEnumerator<IQueryNode> it = GetChildren().GetEnumerator(); it.MoveNext();)
+            for (IEnumerator<IQueryNode> it = children.GetEnumerator(); it.MoveNext();)
             {
                 sb.Append(filler).Append(it.Current.ToQueryString(escapeSyntaxParser));
                 filler = " OR ";
             }
 
             // in case is root or the parent is a group node avoid parenthesis
-            if ((GetParent() != null && GetParent() is GroupQueryNode)
-                || IsRoot())
+            if ((Parent != null && Parent is GroupQueryNode)
+                || IsRoot)
                 return sb.ToString();
             else
                 return "( " + sb.ToString() + " )";

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
index a578691..9cf9042 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
@@ -38,9 +38,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return GetChildren()[0];
         }
 
-        public virtual int GetValue()
+        public virtual int Value
         {
-            return this.value;
+            get { return this.value; }
         }
 
         private string GetValueString()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
index 4bdb237..a825017 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
@@ -50,24 +50,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         //    internal abstract string ToQueryString();
         //}
 
-        /** utility class containing the distance condition and number */
-        public class ProximityType
-        {
-            internal int pDistance = 0;
-
-            ProximityQueryNode.Type pType/* = null*/;
-
-            public ProximityType(ProximityQueryNode.Type type)
-                    : this(type, 0)
-            {
-            }
-
-            public ProximityType(ProximityQueryNode.Type type, int distance)
-            {
-                this.pType = type;
-                this.pDistance = distance;
-            }
-        }
+        // LUCENENET NOTE: Moved ProximityType class outside of ProximityQueryNode class to
+        // prevent a naming conflict witht eh ProximityType property.
 
         private ProximityQueryNode.Type proximityType = ProximityQueryNode.Type.SENTENCE;
         private int distance = -1;
@@ -148,9 +132,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-        public virtual ProximityQueryNode.Type GetProximityType()
+        public virtual ProximityQueryNode.Type ProximityType
         {
-            return this.proximityType;
+            get { return this.proximityType; }
         }
 
         public override string ToString()
@@ -158,14 +142,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             string distanceSTR = ((this.distance == -1) ? ("")
                 : (" distance='" + this.distance) + "'");
 
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "<proximity field='" + this.field + "' inorder='" + this.inorder
                     + "' type='" + this.proximityType.ToString() + "'" + distanceSTR
                     + "/>";
             StringBuilder sb = new StringBuilder();
             sb.Append("<proximity field='" + this.field + "' inorder='" + this.inorder
                 + "' type='" + this.proximityType.ToString() + "'" + distanceSTR + ">");
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append("\n");
                 sb.Append(child.ToString());
@@ -182,14 +167,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 + ((this.inorder) ? (" INORDER") : (""));
 
             StringBuilder sb = new StringBuilder();
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
             {
                 // no children case
             }
             else
             {
                 string filler = "";
-                foreach (IQueryNode child in GetChildren())
+                foreach (IQueryNode child in children)
                 {
                     sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
                     filler = " ";
@@ -221,9 +207,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
          * @return the distance
          */
-        public virtual int GetDistance()
+        public virtual int Distance
         {
-            return this.distance;
+            get { return this.distance; }
         }
 
         /**
@@ -231,11 +217,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the field
          */
-        public virtual string GetField()
+        public virtual string Field
         {
-            return this.field;
+            get { return this.field; }
+            set { this.field = value; }
         }
 
+        // LUCENENET TODO: This method is not required because Field is already a string property
         /**
          * returns null if the field was not specified in the query string
          * 
@@ -250,20 +238,30 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         }
 
         /**
-         * @param field
-         *          the field to set
+         * @return terms must be matched in the specified order
          */
-        public virtual void SetField(string field)
+        public virtual bool IsInOrder
         {
-            this.field = field;
+            get { return this.inorder; }
         }
+    }
 
-        /**
-         * @return terms must be matched in the specified order
-         */
-        public virtual bool IsInOrder()
+    /** utility class containing the distance condition and number */
+    public class ProximityType
+    {
+        internal int pDistance = 0;
+
+        ProximityQueryNode.Type pType/* = null*/;
+
+        public ProximityType(ProximityQueryNode.Type type)
+                : this(type, 0)
+        {
+        }
+
+        public ProximityType(ProximityQueryNode.Type type, int distance)
         {
-            return this.inorder;
+            this.pType = type;
+            this.pDistance = distance;
         }
     }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
index 004611b..32dd875 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
@@ -25,7 +25,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         IList<IQueryNode> GetChildren();
 
         /** verify if a node is a Leaf node */
-        bool IsLeaf();
+        bool IsLeaf { get; }
 
         /** verify if a node contains a tag */
         bool ContainsTag(string tagName);
@@ -35,7 +35,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          */
         object GetTag(string tagName);
 
-        IQueryNode GetParent();
+        IQueryNode Parent { get; }
 
         /**
          * Recursive clone the QueryNode tree The tags are not copied to the new tree
@@ -73,7 +73,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return a map containing all tags attached to this query node
          */
-        IDictionary<string, object> GetTagMap();
+        IDictionary<string, object> TagMap { get; }
 
         /**
          * Removes this query node from its parent.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
index b22e95c..b7d7c39 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
@@ -45,7 +45,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         public void Add(IQueryNode child)
         {
 
-            if (IsLeaf() || this.clauses == null || child == null)
+            if (IsLeaf || this.clauses == null || child == null)
             {
                 throw new ArgumentException(NLS
                     .GetLocalizedMessage(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED));
@@ -60,7 +60,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         public void Add(IList<IQueryNode> children)
         {
 
-            if (IsLeaf() || this.clauses == null)
+            if (IsLeaf || this.clauses == null)
             {
                 throw new ArgumentException(NLS
                     .GetLocalizedMessage(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED));
@@ -74,16 +74,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         }
 
 
-        public virtual bool IsLeaf()
+        public virtual bool IsLeaf
         {
-            return this.isLeaf;
+            get { return this.isLeaf; }
         }
 
 
         public void Set(IList<IQueryNode> children)
         {
 
-            if (IsLeaf() || this.clauses == null)
+            if (IsLeaf || this.clauses == null)
             {
                 //ResourceBundle bundle = ResourceBundle
                 //    .getBundle("org.apache.lucene.queryParser.messages.QueryParserMessages");
@@ -101,7 +101,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 child.RemoveFromParent();
             }
 
-            List<IQueryNode> existingChildren = new List<IQueryNode>(GetChildren());
+            // LUCENENET specific: GetChildren already creates a new list, there is
+            // no need to do it again here and have another O(n) operation
+            IList<IQueryNode> existingChildren = GetChildren();
             foreach (IQueryNode existingChild in existingChildren)
             {
                 existingChild.RemoveFromParent();
@@ -155,7 +157,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public IList<IQueryNode> GetChildren()
         {
-            if (IsLeaf() || this.clauses == null)
+            if (IsLeaf || this.clauses == null)
             {
                 return null;
             }
@@ -197,14 +199,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         }
 
 
-        public virtual IQueryNode GetParent()
+        public virtual IQueryNode Parent
         {
-            return this.parent;
+            get { return this.parent; }
         }
 
-        protected virtual bool IsRoot()
+        protected virtual bool IsRoot
         {
-            return GetParent() == null;
+            get { return Parent == null; }
         }
 
         /**
@@ -252,9 +254,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return a map containing all tags attached to this query node
          */
-        public virtual IDictionary<string, object> GetTagMap()
+        public virtual IDictionary<string, object> TagMap
         {
-            return new Dictionary<string, object>(this.tags);
+            get { return new Dictionary<string, object>(this.tags); }
         }
 
         public virtual void RemoveFromParent()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
index 6e64892..58b480a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
@@ -17,10 +17,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         T LowerBound { get; }
 
         T UpperBound { get; }
-
-        bool IsLowerInclusive { get; }
-
-        bool IsUpperInclusive { get; }
     }
 
     /// <summary>
@@ -28,5 +24,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     /// RangeQueryNode without specifying its generic closing type
     /// </summary>
     public interface IRangeQueryNode
-    { }
+    {
+        bool IsLowerInclusive { get; }
+
+        bool IsUpperInclusive { get; }
+    }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
index daf2dbb..20daf9f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
@@ -48,9 +48,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return GetChildren()[0];
         }
 
-        public virtual int GetValue()
+        public virtual int Value
         {
-            return this.value;
+            get { return this.value; }
         }
 
         private string GetValueString()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
index 6a4d98e..58f19ab 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
@@ -22,11 +22,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public override string ToString()
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "<tokenizedphrase/>";
             StringBuilder sb = new StringBuilder();
             sb.Append("<tokenizedtphrase>");
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append("\n");
                 sb.Append(child.ToString());
@@ -39,12 +40,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "";
 
             StringBuilder sb = new StringBuilder();
             string filler = "";
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
                 filler = ",";
@@ -85,19 +87,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
                 if (children != null)
                 {
-
-                    foreach (IQueryNode child in GetChildren())
+                    foreach (IQueryNode child in children)
                     {
 
                         if (child is IFieldableNode)
                         {
                             ((IFieldableNode)child).Field = value;
                         }
-
                     }
                 }
             }
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
index 95214f9..ef3fa43 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
@@ -40,7 +40,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
 
-            if (!node.IsLeaf())
+            if (!node.IsLeaf)
             {
                 IList<IQueryNode> children = node.GetChildren();
                 bool removeBoolean = false;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
index b02fae1..d5ad632 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
@@ -48,23 +48,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
                 QueryParserMessages.INVALID_SYNTAX_CANNOT_PARSE, query, "");
         }
 
-        public virtual string GetQuery()
+        public virtual string Query
         {
-            return this.query;
+            get { return this.query; }
         }
 
-        /**
-         * @param errorToken
-         *          the errorToken in the query
-         */
-        protected virtual void SetErrorToken(string errorToken)
-        {
-            this.errorToken = errorToken;
-        }
-
-        public virtual string GetErrorToken()
+        /// <summary>
+        /// The errorToken in the query
+        /// </summary>
+        public virtual string ErrorToken
         {
-            return this.errorToken;
+            get { return this.errorToken; }
+            protected set { this.errorToken = value; }
         }
 
         public virtual void SetNonLocalizedMessage(IMessage message)
@@ -79,9 +74,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * 
          * @return line where the problem was found
          */
-        public virtual int GetBeginLine()
+        public virtual int BeginLine
         {
-            return this.beginLine;
+            get { return this.beginLine; }
+            protected set { this.beginLine = value; }
         }
 
         /**
@@ -91,27 +87,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * 
          * @return column of the first char where the problem was found
          */
-        public virtual int GetBeginColumn()
-        {
-            return this.beginColumn;
-        }
-
-        /**
-         * @param beginLine
-         *          the beginLine to set
-         */
-        protected virtual void SetBeginLine(int beginLine)
-        {
-            this.beginLine = beginLine;
-        }
-
-        /**
-         * @param beginColumn
-         *          the beginColumn to set
-         */
-        protected virtual void SetBeginColumn(int beginColumn)
+        public virtual int BeginColumn
         {
-            this.beginColumn = beginColumn;
+            get { return this.beginColumn; }
+            protected set { this.beginColumn = value; }
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
index ff8f98a..73e582b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
@@ -23,7 +23,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
     /// <seealso cref="IQueryNodeProcessor"/>
     /// <seealso cref="ISyntaxParser"/>
     /// <seealso cref="QueryBuilder"/>
-    /// <seealso cref="QueryConfigHandler"/>
+    /// <seealso cref="Config.QueryConfigHandler"/>
     public class QueryParserHelper<TQuery> // LUCENENET: Made this class generic so we can avoid the cast (to Query) on the Parse method
     {
         private IQueryNodeProcessor processor;
@@ -78,9 +78,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see QueryNodeProcessor
          * @see #setQueryNodeProcessor(QueryNodeProcessor)
          */
-        public virtual IQueryNodeProcessor GetQueryNodeProcessor()
+        public virtual IQueryNodeProcessor QueryNodeProcessor
         {
-            return processor;
+            get { return processor; }
         }
 
         /**
@@ -100,7 +100,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
         public virtual void SetQueryNodeProcessor(IQueryNodeProcessor processor)
         {
             this.processor = processor;
-            this.processor.SetQueryConfigHandler(GetQueryConfigHandler());
+            this.processor.SetQueryConfigHandler(QueryConfigHandler);
 
         }
 
@@ -158,9 +158,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see QueryConfigHandler
          * @see #setQueryConfigHandler(QueryConfigHandler)
          */
-        public virtual QueryConfigHandler GetQueryConfigHandler()
+        public virtual QueryConfigHandler QueryConfigHandler
         {
-            return config;
+            get { return config; }
         }
 
         /**
@@ -173,9 +173,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see #setQueryBuilder(QueryBuilder)
          * @see QueryBuilder
          */
-        public virtual IQueryBuilder<TQuery> GetQueryBuilder()
+        public virtual IQueryBuilder<TQuery> QueryBuilder
         {
-            return this.builder;
+            get { return this.builder; }
         }
 
         /**
@@ -188,9 +188,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see SyntaxParser
          * @see #setSyntaxParser(SyntaxParser)
          */
-        public virtual ISyntaxParser GetSyntaxParser()
+        public virtual ISyntaxParser SyntaxParser
         {
-            return this.syntaxParser;
+            get { return this.syntaxParser; }
         }
 
         /**
@@ -208,7 +208,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
         public virtual void SetQueryConfigHandler(QueryConfigHandler config)
         {
             this.config = config;
-            IQueryNodeProcessor processor = GetQueryNodeProcessor();
+            IQueryNodeProcessor processor = QueryNodeProcessor;
 
             if (processor != null)
             {
@@ -244,16 +244,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          */
         public virtual /*object*/ TQuery Parse(string query, string defaultField)
         {
-            IQueryNode queryTree = GetSyntaxParser().Parse(query, defaultField);
+            IQueryNode queryTree = SyntaxParser.Parse(query, defaultField);
 
-            IQueryNodeProcessor processor = GetQueryNodeProcessor();
+            IQueryNodeProcessor processor = QueryNodeProcessor;
 
             if (processor != null)
             {
                 queryTree = processor.Process(queryTree);
             }
 
-            return GetQueryBuilder().Build(queryTree);
+            return QueryBuilder.Build(queryTree);
 
         }
     }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
index 94f6b53..30f31d8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
@@ -152,11 +152,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
             for (int i = 0; i < len; i++)
             {
                 fields[fieldArray[i].Name] = fieldArray[i];
-                loadfieldValue(fieldArray[i], /*isFieldAccessible,*/ clazz);
+                LoadFieldValue(fieldArray[i], /*isFieldAccessible,*/ clazz);
             }
         }
 
-        private static void loadfieldValue(FieldInfo field, Type clazz)
+        private static void LoadFieldValue(FieldInfo field, Type clazz)
         {
             field.SetValue(null, field.Name);
             ValidateMessage(field.Name, clazz);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
index e1583cb..8a8633c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
@@ -26,7 +26,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
    */
         public PrecedenceQueryParser()
         {
-            SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(GetQueryConfigHandler()));
+            SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler));
         }
 
         /**
@@ -35,7 +35,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         public PrecedenceQueryParser(Analyzer analyer)
             : base(analyer)
         {
-            SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(GetQueryConfigHandler()));
+            SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler));
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
index 45ed21f..02fd07b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
@@ -99,7 +99,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
             {
                 ModifierQueryNode modNode = (ModifierQueryNode)node;
 
-                if (modNode.GetModifier() == Modifier.MOD_NONE)
+                if (modNode.Modifier == Modifier.MOD_NONE)
                 {
                     return new ModifierQueryNode(modNode.GetChild(), mod);
                 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
index 142a88e..d30a524 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
@@ -63,7 +63,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             }
 
-            bQuery.MinimumNumberShouldMatch = andNode.GetMinimumMatchingElements();
+            bQuery.MinimumNumberShouldMatch = andNode.MinimumMatchingElements;
 
             return bQuery;
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
index 81576d3..8aae6e7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
@@ -88,7 +88,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             if (node is ModifierQueryNode)
             {
                 ModifierQueryNode mNode = ((ModifierQueryNode)node);
-                switch (mNode.GetModifier())
+                switch (mNode.Modifier)
                 {
 
                     case Modifier.MOD_REQ:

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
index 82a5ac9..4021391 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
@@ -25,7 +25,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
         public virtual Query Build(IQueryNode queryNode)
         {
             BoostQueryNode boostNode = (BoostQueryNode)queryNode;
-            IQueryNode child = boostNode.GetChild();
+            IQueryNode child = boostNode.Child;
 
             if (child == null)
             {
@@ -34,7 +34,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             Query query = (Query)child
                 .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
-            query.Boost = boostNode.GetValue();
+            query.Boost = boostNode.Value;
 
             return query;
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
index 77b43c0..bba33b4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
@@ -28,12 +28,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             string text = fuzzyNode.GetTextAsString();
 
 
-            int numEdits = FuzzyQuery.FloatToEdits(fuzzyNode.GetSimilarity(),
+            int numEdits = FuzzyQuery.FloatToEdits(fuzzyNode.Similarity,
                 text.CodePointCount(0, text.Length));
 
             return new FuzzyQuery(new Term(fuzzyNode.GetFieldAsString(), fuzzyNode
                 .GetTextAsString()), numEdits, fuzzyNode
-                .GetPrefixLength());
+                .PrefixLength);
 
         }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
index 81007e6..e0eea41 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
@@ -46,10 +46,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                     //List<Term> termList = positionTermMap[termNode.GetPositionIncrement()];
                     //if (termList == null)
                     List<Term> termList;
-                    if (!positionTermMap.TryGetValue(termNode.GetPositionIncrement(), out termList) || termList == null)
+                    if (!positionTermMap.TryGetValue(termNode.PositionIncrement, out termList) || termList == null)
                     {
                         termList = new List<Term>();
-                        positionTermMap[termNode.GetPositionIncrement()] = termList;
+                        positionTermMap[termNode.PositionIncrement] = termList;
 
                     }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
index 911aaea..b616069 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
@@ -44,12 +44,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             /*Number*/
             object upperNumber = upperNumericNode.Value;
 
-            NumericConfig numericConfig = numericRangeNode.GetNumericConfig();
-            FieldType.NumericType numberType = numericConfig.GetType();
+            NumericConfig numericConfig = numericRangeNode.NumericConfig;
+            FieldType.NumericType numberType = numericConfig.Type;
             string field = StringUtils.ToString(numericRangeNode.Field);
             bool minInclusive = numericRangeNode.IsLowerInclusive;
             bool maxInclusive = numericRangeNode.IsUpperInclusive;
-            int precisionStep = numericConfig.GetPrecisionStep();
+            int precisionStep = numericConfig.PrecisionStep;
 
             switch (numberType)
             {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
index 15343cc..3683797 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
@@ -38,7 +38,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                         .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
                     FieldQueryNode termNode = (FieldQueryNode)child;
 
-                    phraseQuery.Add(termQuery.Term, termNode.GetPositionIncrement());
+                    phraseQuery.Add(termQuery.Term, termNode.PositionIncrement);
 
                 }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
index c138d8b..1811d76 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
@@ -27,7 +27,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
         {
             RegexpQueryNode regexpNode = (RegexpQueryNode)queryNode;
 
-            RegexpQuery q = new RegexpQuery(new Term(regexpNode.FieldAsString,
+            RegexpQuery q = new RegexpQuery(new Term(regexpNode.GetFieldAsString(),
                 regexpNode.TextToBytesRef()));
 
             MultiTermQuery.RewriteMethod method = (MultiTermQuery.RewriteMethod)queryNode

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
index caeb118..13d1fa0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
@@ -32,12 +32,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
             if (query is PhraseQuery)
             {
-                ((PhraseQuery)query).Slop = phraseSlopNode.GetValue();
+                ((PhraseQuery)query).Slop = phraseSlopNode.Value;
 
             }
             else
             {
-                ((MultiPhraseQuery)query).Slop = phraseSlopNode.GetValue();
+                ((MultiPhraseQuery)query).Slop = phraseSlopNode.Value;
             }
 
             return query;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
index 2c1031a..57f8b14 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
@@ -86,7 +86,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             if (node is ModifierQueryNode)
             {
                 ModifierQueryNode mNode = ((ModifierQueryNode)node);
-                Modifier modifier = mNode.GetModifier();
+                Modifier modifier = mNode.Modifier;
 
                 if (Modifier.MOD_NONE.Equals(modifier))
                 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
index e2f5548..35ec103 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
@@ -101,6 +101,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         /// Sets the default <see cref="T:DateTools.Resolution"/> used for certain field when
         /// no <see cref="T:DateTools.Resolution"/> is defined for this field.
         /// </summary>
-        void SetDateResolution(DateTools.Resolution dateResolution); // LUCENENET TODO: Make into property set
+        void SetDateResolution(DateTools.Resolution dateResolution);
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
index 02db0f5..6758c8f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
@@ -34,7 +34,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             if (fieldBoostMap != null)
             {
                 float? boost;// = fieldBoostMap.Get(fieldConfig.GetField());
-                fieldBoostMap.TryGetValue(fieldConfig.GetField(), out boost);
+                fieldBoostMap.TryGetValue(fieldConfig.Field, out boost);
 
                 if (boost != null)
                 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
index 10c8403..edfdb4d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
@@ -35,7 +35,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
             if (dateResMap != null)
             {
-                dateResMap.TryGetValue(fieldConfig.GetField(), out dateRes);
+                dateResMap.TryGetValue(fieldConfig.Field, out dateRes);
 
                 //dateRes = dateResMap.Get(
                 //    fieldConfig.GetField());

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
index f5c8132..43e4021 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
@@ -18,24 +18,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
         public FuzzyConfig() { }
 
-        public virtual int GetPrefixLength()
+        public virtual int PrefixLength
         {
-            return prefixLength;
+            get { return prefixLength; }
+            set { this.prefixLength = value; }
         }
 
-        public virtual void SetPrefixLength(int prefixLength)
+        public virtual float MinSimilarity
         {
-            this.prefixLength = prefixLength;
-        }
-
-        public virtual float GetMinSimilarity()
-        {
-            return minSimilarity;
-        }
-
-        public virtual void SetMinSimilarity(float minSimilarity)
-        {
-            this.minSimilarity = minSimilarity;
+            get { return minSimilarity; }
+            set { this.minSimilarity = value; }
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
index cf8a94d..1147a6d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
@@ -39,97 +39,56 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
         public NumericConfig(int precisionStep, /*NumberFormat*/ string format,
             NumericType type)
         {
-            SetPrecisionStep(precisionStep);
-            SetNumberFormat(format);
-            SetType(type);
-
+            PrecisionStep = precisionStep;
+            NumberFormat = format;
+            Type = type;
         }
 
         /**
-         * Returns the precision used to index the numeric values
+         * Gets or sets the precision used to index the numeric values
          * 
          * @return the precision used to index the numeric values
          * 
          * @see NumericRangeQuery#getPrecisionStep()
          */
-        public virtual int GetPrecisionStep()
-        {
-            return precisionStep;
-        }
-
-        /**
-         * Sets the precision used to index the numeric values
-         * 
-         * @param precisionStep
-         *          the precision used to index the numeric values
-         * 
-         * @see NumericRangeQuery#getPrecisionStep()
-         */
-        public virtual void SetPrecisionStep(int precisionStep)
+        public virtual int PrecisionStep
         {
-            this.precisionStep = precisionStep;
+            get { return precisionStep; }
+            set { precisionStep = value; }
         }
 
         /**
-         * Returns the {@link NumberFormat} used to parse a {@link String} to
-         * {@link Number}
+         * Gets or Sets the {@link NumberFormat} used to parse a {@link String} to
+         * {@link Number}, cannot be <code>null</code>
          * 
          * @return the {@link NumberFormat} used to parse a {@link String} to
          *         {@link Number}
          */
-        public virtual /*NumberFormat*/ string GetNumberFormat()
-        {
-            return format;
-        }
-
-        /**
-         * Returns the numeric type used to index the numeric values
-         * 
-         * @return the numeric type used to index the numeric values
-         */
-        public virtual NumericType GetType()
+        public virtual /*NumberFormat*/ string NumberFormat
         {
-            return type;
-        }
-
-        /**
-         * Sets the numeric type used to index the numeric values
-         * 
-         * @param type the numeric type used to index the numeric values
-         */
-        public virtual void SetType(NumericType type)
-        {
-
-            //if (type == null)
-            //{
-            //    throw new ArgumentException("type cannot be null!");
-            //}
-
-            this.type = type;
+            get { return format; }
+            set
+            {
+                if (value == null)
+                {
+                    throw new ArgumentException("format cannot be null!");
+                }
 
+                this.format = value;
+            }
         }
 
         /**
-         * Sets the {@link NumberFormat} used to parse a {@link String} to
-         * {@link Number}
+         * Gets or Sets the numeric type used to index the numeric values
          * 
-         * @param format
-         *          the {@link NumberFormat} used to parse a {@link String} to
-         *          {@link Number}, cannot be <code>null</code>
+         * @return the numeric type used to index the numeric values
          */
-        public virtual void SetNumberFormat(/*NumberFormat*/ string format)
+        public virtual NumericType Type
         {
-
-            if (format == null)
-            {
-                throw new ArgumentException("format cannot be null!");
-            }
-
-            this.format = format;
-
+            get { return type; }
+            set { type = value; }
         }
 
-
         public override bool Equals(object obj)
         {
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
index 65c4c2b..b419bc6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
@@ -49,7 +49,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
 
                 //if (numericConfig != null)
-                if (numericConfigMap.TryGetValue(fieldConfig.GetField(), out numericConfig) && numericConfig != null)
+                if (numericConfigMap.TryGetValue(fieldConfig.Field, out numericConfig) && numericConfig != null)
                 {
                     fieldConfig.Set(ConfigurationKeys.NUMERIC_CONFIG, numericConfig);
                 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
index f111313..83b23bd 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
@@ -23,11 +23,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
         public override string ToString()
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "<multiPhrase/>";
             StringBuilder sb = new StringBuilder();
             sb.Append("<multiPhrase>");
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append("\n");
                 sb.Append(child.ToString());
@@ -39,12 +40,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
-            if (GetChildren() == null || GetChildren().Count == 0)
+            var children = GetChildren();
+            if (children == null || children.Count == 0)
                 return "";
 
             StringBuilder sb = new StringBuilder();
             string filler = "";
-            foreach (IQueryNode child in GetChildren())
+            foreach (IQueryNode child in children)
             {
                 sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
                 filler = ",";

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
index 2a40158..01526f3 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
@@ -37,7 +37,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             /*NumberFormat*/ string numberFormat)
             : base()
         {
-            SetNumberFormat(numberFormat);
+            NumberFormat = numberFormat;
             Field = field;
             Value = value;
 
@@ -94,27 +94,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         }
 
         /**
-         * Sets the {@link NumberFormat} used to convert the value to {@link String}.
-         * 
-         * @param format the {@link NumberFormat} used to convert the value to {@link String}
-         */
-        public virtual void SetNumberFormat(/*NumberFormat*/ string format)
-        {
-            this.numberFormat = format;
-        }
-
-        /**
-         * Returns the {@link NumberFormat} used to convert the value to {@link String}.
+         * Gets or Sets the {@link NumberFormat} used to convert the value to {@link String}.
          * 
          * @return the {@link NumberFormat} used to convert the value to {@link String}
          */
-        public virtual /*NumberFormat*/ string GetNumberFormat()
+        public virtual /*NumberFormat*/ string NumberFormat
         {
-            return this.numberFormat;
+            get { return this.numberFormat; }
+            set { this.numberFormat = value; }
         }
 
         /**
-         * Returns the numeric value as {@link Number}.
+         * Gets or Sets the numeric value as {@link Number}.
          * 
          * @return the numeric value
          */

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
index 9565a94..64d09cf 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
@@ -109,19 +109,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             }
 
             if (lowerNumberType != null
-                && !lowerNumberType.Equals(numericConfig.GetType()))
+                && !lowerNumberType.Equals(numericConfig.Type))
             {
                 throw new ArgumentException(
                     "lower value's type should be the same as numericConfig type: "
-                        + lowerNumberType + " != " + numericConfig.GetType());
+                        + lowerNumberType + " != " + numericConfig.Type);
             }
 
             if (upperNumberType != null
-                && !upperNumberType.Equals(numericConfig.GetType()))
+                && !upperNumberType.Equals(numericConfig.Type))
             {
                 throw new ArgumentException(
                     "upper value's type should be the same as numericConfig type: "
-                        + upperNumberType + " != " + numericConfig.GetType());
+                        + upperNumberType + " != " + numericConfig.Type);
             }
 
             base.SetBounds(lower, upper, lowerInclusive, upperInclusive);
@@ -134,9 +134,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          * 
          * @return the {@link NumericConfig} associated with the lower and upper bounds
          */
-        public virtual NumericConfig GetNumericConfig()
+        public virtual NumericConfig NumericConfig
         {
-            return this.numericConfig;
+            get { return this.numericConfig; }
         }
 
 
@@ -146,8 +146,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
             sb.Append(IsLowerInclusive).Append("' upperInclusive='").Append(
                 IsUpperInclusive).Append(
-                "' precisionStep='" + numericConfig.GetPrecisionStep()).Append(
-                "' type='" + numericConfig.GetType()).Append("'>\n");
+                "' precisionStep='" + numericConfig.PrecisionStep).Append(
+                "' type='" + numericConfig.Type).Append("'>\n");
 
             sb.Append(LowerBound).Append('\n');
             sb.Append(UpperBound).Append('\n');

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
index d76bafe..dd79211 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
@@ -50,7 +50,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         }
 
         public PrefixWildcardQueryNode(FieldQueryNode fqn)
-            : this(fqn.Field, fqn.Text, fqn.GetBegin(), fqn.GetEnd())
+            : this(fqn.Field, fqn.Text, fqn.Begin, fqn.End)
         {
         }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
index a1e0d75..4fc079b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
@@ -85,9 +85,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             set { this.field = value; }
         }
 
-        public virtual string FieldAsString
+        public virtual string GetFieldAsString()
         {
-            get { return field.ToString(); }
+            return field.ToString();
         }
 
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
index 4ff25eb..e68817d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
@@ -49,7 +49,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         }
 
         public WildcardQueryNode(FieldQueryNode fqn)
-            : this(fqn.Field, fqn.Text, fqn.GetBegin(), fqn.GetEnd())
+            : this(fqn.Field, fqn.Text, fqn.Begin, fqn.End)
         {
         }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0aa30ca8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
index 0e392a2..2cd0b49 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
@@ -35,7 +35,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
          * @deprecated
          * @see #getEndColumn
          */
-        int GetColumn();
+        int Column { get; }
 
         [Obsolete]
         /**
@@ -43,31 +43,31 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
          * @deprecated
          * @see #getEndLine
          */
-        int GetLine();
+        int Line { get; }
 
         /**
          * Returns the column number of the last character for current token (being
          * matched after the last call to BeginTOken).
          */
-        int GetEndColumn();
+        int EndColumn { get; }
 
         /**
          * Returns the line number of the last character for current token (being
          * matched after the last call to BeginTOken).
          */
-        int GetEndLine();
+        int EndLine { get; }
 
         /**
          * Returns the column number of the first character for current token (being
          * matched after the last call to BeginTOken).
          */
-        int GetBeginColumn();
+        int BeginColumn { get; }
 
         /**
          * Returns the line number of the first character for current token (being
          * matched after the last call to BeginTOken).
          */
-        int GetBeginLine();
+        int BeginLine { get; }
 
         /**
          * Backs up the input stream by amount steps. Lexer calls this method if it


[41/58] lucenenet git commit: QueryParser.Flexible: Documentation comments

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
index 2ed96f6..94d14f5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
@@ -21,52 +21,49 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
      */
 
     /// <summary>
-    /// A {@link QueryNodeProcessor} is an interface for classes that process a
-    /// {@link QueryNode} tree.
+    /// An <see cref="IQueryNodeProcessor"/> is an interface for classes that process a
+    /// <see cref="IQueryNode"/> tree.
     /// <para>
     /// The implementor of this class should perform some operation on a query node
     /// tree and return the same or another query node tree.
     /// </para>
     /// <para>
-    /// It also may carry a {@link QueryConfigHandler} object that contains
+    /// It also may carry a <see cref="QueryConfigHandler"/> object that contains
     /// configuration about the query represented by the query tree or the
     /// collection/index where it's intended to be executed.
     /// </para>
     /// <para>
-    /// In case there is any {@link QueryConfigHandler} associated to the query tree
+    /// In case there is any <see cref="QueryConfigHandler"/> associated to the query tree
     /// to be processed, it should be set using
-    /// {@link QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)} before
-    /// {@link QueryNodeProcessor#process(QueryNode)} is invoked.
+    /// <see cref="SetQueryConfigHandler(QueryConfigHandler)"/> before
+    /// <see cref="Process(IQueryNode)"/> is invoked.
     /// </para>
     /// </summary>
     /// <seealso cref="IQueryNode"/>
-    /// <seealso cref="QueryNodeProcessor"/>
+    /// <seealso cref="IQueryNodeProcessor"/>
     /// <seealso cref="QueryConfigHandler"/>
     public interface IQueryNodeProcessor
     {
-        /**
-        * Processes a query node tree. It may return the same or another query tree.
-        * I should never return <code>null</code>.
-        * 
-        * @param queryTree
-        *          tree root node
-        * 
-        * @return the processed query tree
-        */
+        /// <summary>
+        /// Processes a query node tree. It may return the same or another query tree.
+        /// I should never return <c>null</c>.
+        /// </summary>
+        /// <param name="queryTree">tree root node</param>
+        /// <returns>the processed query tree</returns>
         IQueryNode Process(IQueryNode queryTree);
 
-        /**
-         * Sets the {@link QueryConfigHandler} associated to the query tree.
-         */
+        /// <summary>
+        /// Sets the <see cref="QueryConfigHandler"/> associated to the query tree.
+        /// </summary>
+        /// <param name="queryConfigHandler"></param>
         void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler);
 
-        /**
-         * Returns the {@link QueryConfigHandler} associated to the query tree if any,
-         * otherwise it returns <code>null</code>
-         * 
-         * @return the {@link QueryConfigHandler} associated to the query tree if any,
-         *         otherwise it returns <code>null</code>
-         */
+        /// <summary>
+        /// Returns the <see cref="QueryConfigHandler"/> associated to the query tree if any,
+        /// otherwise it returns <c>null</c>
+        /// </summary>
+        /// <returns>the <see cref="QueryConfigHandler"/> associated to the query tree if any,
+        /// otherwise it returns <c>null</c></returns>
         QueryConfigHandler GetQueryConfigHandler();
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
index b41a07e..d2965a0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
@@ -22,6 +22,49 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
      * limitations under the License.
      */
 
+    /// <summary>
+    /// This is a default implementation for the <see cref="IQueryNodeProcessor"/>
+    /// interface, it's an abstract class, so it should be extended by classes that
+    /// want to process a <see cref="IQueryNode"/> tree.
+    /// <para>
+    /// This class process <see cref="IQueryNode"/>s from left to right in the tree. While
+    /// it's walking down the tree, for every node,
+    /// <see cref="PreProcessNode(IQueryNode)"/> is invoked. After a node's children are
+    /// processed, <see cref="PostProcessNode(IQueryNode)"/> is invoked for that node.
+    /// <see cref="SetChildrenOrder(IList{IQueryNode})"/> is invoked before
+    /// <see cref="PostProcessNode(IQueryNode)"/> only if the node has at least one child,
+    /// in <see cref="SetChildrenOrder(IList{IQueryNode})"/> the implementor might redefine the
+    /// children order or remove any children from the children list.
+    /// </para>
+    /// <para>
+    /// Here is an example about how it process the nodes:
+    /// </para>
+    /// <pre>
+    ///      a
+    ///     / \
+    ///    b   e
+    ///   / \
+    ///  c   d
+    /// </pre>
+    /// <para>
+    /// Here is the order the methods would be invoked for the tree described above:
+    /// </para>
+    /// <code>
+    ///     PreProcessNode( a );
+    ///     PreProcessNode( b );
+    ///     PreProcessNode( c );
+    ///     PostProcessNode( c );
+    ///     PreProcessNode( d );
+    ///     PostProcessNode( d );
+    ///     SetChildrenOrder( bChildrenList );
+    ///     PostProcessNode( b );
+    ///     PreProcessNode( e );
+    ///     PostProcessNode( e );
+    ///     SetChildrenOrder( aChildrenList );
+    ///     PostProcessNode( a )
+    /// </code>
+    /// </summary>
+    /// <seealso cref="IQueryNodeProcessor"/>
     public abstract class QueryNodeProcessorImpl : IQueryNodeProcessor
     {
         private List<ChildrenList> childrenListPool = new List<ChildrenList>();
@@ -54,14 +97,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             return queryTree;
         }
 
-        /**
-         * This method is called every time a child is processed.
-         * 
-         * @param queryTree
-         *          the query node child to be processed
-         * @throws QueryNodeException
-         *           if something goes wrong during the query node processing
-         */
+        /// <summary>
+        /// This method is called every time a child is processed.
+        /// </summary>
+        /// <param name="queryTree">the query node child to be processed</param>
+        /// <exception cref="QueryNodeException">if something goes wrong during the query node processing</exception>
         protected virtual void ProcessChildren(IQueryNode queryTree)
         {
             IList<IQueryNode> children = queryTree.GetChildren();
@@ -123,74 +163,53 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             return list;
         }
 
-        /**
-         * For reference about this method check:
-         * {@link QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)}.
-         * 
-         * @param queryConfigHandler
-         *          the query configuration handler to be set.
-         * 
-         * @see QueryNodeProcessor#getQueryConfigHandler()
-         * @see QueryConfigHandler
-         */
+        /// <summary>
+        /// For reference about this method check:
+        /// <see cref="IQueryNodeProcessor.SetQueryConfigHandler(QueryConfigHandler)"/>.
+        /// </summary>
+        /// <param name="queryConfigHandler">the query configuration handler to be set.</param>
+        /// <seealso cref="IQueryNodeProcessor.SetQueryConfigHandler(QueryConfigHandler)"/>
+        /// <seealso cref="QueryConfigHandler"/>
         public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
         {
             this.queryConfig = queryConfigHandler;
         }
 
-        /**
-         * For reference about this method check:
-         * {@link QueryNodeProcessor#getQueryConfigHandler()}.
-         * 
-         * @return QueryConfigHandler the query configuration handler to be set.
-         * 
-         * @see QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)
-         * @see QueryConfigHandler
-         */
+        /// <summary>
+        /// For reference about this method check:
+        /// <see cref="IQueryNodeProcessor.GetQueryConfigHandler()"/>.
+        /// </summary>
+        /// <returns><see cref="QueryConfigHandler"/> the query configuration handler to be set.</returns>
+        /// <seealso cref="IQueryNodeProcessor.SetQueryConfigHandler(QueryConfigHandler)"/>
+        /// <seealso cref="QueryConfigHandler"/>
         public virtual QueryConfigHandler GetQueryConfigHandler()
         {
             return this.queryConfig;
         }
 
-        /**
-         * This method is invoked for every node when walking down the tree.
-         * 
-         * @param node
-         *          the query node to be pre-processed
-         * 
-         * @return a query node
-         * 
-         * @throws QueryNodeException
-         *           if something goes wrong during the query node processing
-         */
+        /// <summary>
+        /// This method is invoked for every node when walking down the tree.
+        /// </summary>
+        /// <param name="node">the query node to be pre-processed</param>
+        /// <returns>a query node</returns>
+        /// <exception cref="QueryNodeException">if something goes wrong during the query node processing</exception>
         protected abstract IQueryNode PreProcessNode(IQueryNode node);
 
-        /**
-         * This method is invoked for every node when walking up the tree.
-         * 
-         * @param node
-         *          node the query node to be post-processed
-         * 
-         * @return a query node
-         * 
-         * @throws QueryNodeException
-         *           if something goes wrong during the query node processing
-         */
+        /// <summary>
+        /// This method is invoked for every node when walking up the tree.
+        /// </summary>
+        /// <param name="node">node the query node to be post-processed</param>
+        /// <returns>a query node</returns>
+        /// <exception cref="QueryNodeException">if something goes wrong during the query node processing</exception>
         protected abstract IQueryNode PostProcessNode(IQueryNode node);
 
-        /**
-         * This method is invoked for every node that has at least on child. It's
-         * invoked right before {@link #postProcessNode(QueryNode)} is invoked.
-         * 
-         * @param children
-         *          the list containing all current node's children
-         * 
-         * @return a new list containing all children that should be set to the
-         *         current node
-         * 
-         * @throws QueryNodeException
-         *           if something goes wrong during the query node processing
-         */
+        /// <summary>
+        /// This method is invoked for every node that has at least on child. It's
+        /// invoked right before <see cref="PostProcessNode(IQueryNode)"/> is invoked.
+        /// </summary>
+        /// <param name="children">the list containing all current node's children</param>
+        /// <returns>a new list containing all children that should be set to the current node</returns>
+        /// <exception cref="QueryNodeException">if something goes wrong during the query node processing</exception>
         protected abstract IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children);
 
         private class ChildrenList : List<IQueryNode>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
index 3c6f548..d894c4f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
@@ -23,54 +23,60 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
      * limitations under the License.
      */
 
+    /// <summary>
+    /// A <see cref="QueryNodeProcessorPipeline"/> class should be used to build a query
+    /// node processor pipeline.
+    /// <para/>
+    /// When a query node tree is processed using this class, it passes the query
+    /// node tree to each processor on the pipeline and the result from each
+    /// processor is passed to the next one, always following the order the
+    /// processors were on the pipeline.
+    /// <para/>
+    /// When a <see cref="QueryConfigHandler"/> object is set on a
+    /// <see cref="QueryNodeProcessorPipeline"/>, it also takes care of setting this
+    /// <see cref="QueryConfigHandler"/> on all processor on pipeline.
+    /// </summary>
     public class QueryNodeProcessorPipeline : IQueryNodeProcessor, IList<IQueryNodeProcessor>
     {
         private List<IQueryNodeProcessor> processors = new List<IQueryNodeProcessor>();
 
         private QueryConfigHandler queryConfig;
 
-        /**
-         * Constructs an empty query node processor pipeline.
-         */
+        /// <summary>
+        /// Constructs an empty query node processor pipeline.
+        /// </summary>
         public QueryNodeProcessorPipeline()
         {
             // empty constructor
         }
 
-        /**
-         * Constructs with a {@link QueryConfigHandler} object.
-         */
+        /// <summary>
+        /// Constructs with a <see cref="QueryConfigHandler"/> object.
+        /// </summary>
         public QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler)
         {
             this.queryConfig = queryConfigHandler;
         }
 
-        /**
-         * For reference about this method check:
-         * {@link QueryNodeProcessor#getQueryConfigHandler()}.
-         * 
-         * @return QueryConfigHandler the query configuration handler to be set.
-         * 
-         * @see QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)
-         * @see QueryConfigHandler
-         */
+        /// <summary>
+        /// For reference about this method check:
+        /// <see cref="IQueryNodeProcessor.GetQueryConfigHandler()"/>.
+        /// </summary>
+        /// <returns><see cref="QueryConfigHandler"/> the query configuration handler to be set.</returns>
+        /// <seealso cref="IQueryNodeProcessor.SetQueryConfigHandler(QueryConfigHandler)"/>
+        /// <seealso cref="QueryConfigHandler"/>
         public virtual QueryConfigHandler GetQueryConfigHandler()
         {
             return this.queryConfig;
         }
 
-        /**
-         * For reference about this method check:
-         * {@link QueryNodeProcessor#process(QueryNode)}.
-         * 
-         * @param queryTree the query node tree to be processed
-         * 
-         * @throws QueryNodeException if something goes wrong during the query node
-         *         processing
-         * 
-         * @see QueryNode
-         */
-
+        /// <summary>
+        /// For reference about this method check:
+        /// <see cref="IQueryNodeProcessor.Process(IQueryNode)"/>.
+        /// </summary>
+        /// <param name="queryTree">the query node tree to be processed</param>
+        /// <exception cref="QueryNodeException">if something goes wrong during the query node processing</exception>
+        /// <seealso cref="IQueryNode"/>
         public virtual IQueryNode Process(IQueryNode queryTree)
         {
             foreach (IQueryNodeProcessor processor in this.processors)
@@ -81,15 +87,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             return queryTree;
         }
 
-        /**
-         * For reference about this method check:
-         * {@link QueryNodeProcessor#setQueryConfigHandler(QueryConfigHandler)}.
-         * 
-         * @param queryConfigHandler the query configuration handler to be set.
-         * 
-         * @see QueryNodeProcessor#getQueryConfigHandler()
-         * @see QueryConfigHandler
-         */
+        /// <summary>
+        /// For reference about this method check:
+        /// <see cref="IQueryNodeProcessor.SetQueryConfigHandler(QueryConfigHandler)"/>.
+        /// </summary>
+        /// <param name="queryConfigHandler">the query configuration handler to be set.</param>
+        /// <seealso cref="IQueryNodeProcessor.GetQueryConfigHandler()"/>
+        /// <seealso cref="QueryConfigHandler"/>
         public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
         {
             this.queryConfig = queryConfigHandler;
@@ -100,9 +104,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             }
         }
 
-        /**
-         * @see List#add(Object)
-         */
+        /// <summary>
+        /// <see cref="ICollection{IQueryNodeProcessor}.Add(IQueryNodeProcessor)"/> 
+        /// </summary>
         public virtual bool Add(IQueryNodeProcessor processor)
         {
             this.processors.Add(processor);
@@ -116,22 +120,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             return added;
         }
 
-        /**
-         * @see List#clear()
-         */
+        /// <summary>
+        /// <see cref="ICollection{IQueryNodeProcessor}.Clear()"/> 
+        /// </summary>
         public virtual void Clear()
         {
             this.processors.Clear();
         }
 
-        /**
-         * @see List#contains(Object)
-         */
         public virtual bool Contains(object o)
         {
             return this.processors.Contains(o);
         }
 
+        /// <summary>
+        /// <see cref="IList{IQueryNodeProcessor}.this[int]"/> 
+        /// </summary>
         public virtual IQueryNodeProcessor this[int index]
         {
             get
@@ -150,33 +154,34 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             }
         }
 
-        /**
-        * @see List#indexOf(Object)
-        */
+        /// <summary>
+        /// <see cref="IList{IQueryNodeProcessor}.IndexOf(IQueryNodeProcessor)"/>
+        /// </summary>
         public virtual int IndexOf(IQueryNodeProcessor o)
         {
             return this.processors.IndexOf(o);
         }
 
-        /**
-         * @see List#iterator()
-         */
+        /// <summary>
+        /// <see cref="IEnumerable{IQueryNodeProcessor}.GetEnumerator()"/>
+        /// </summary>
         public virtual IEnumerator<IQueryNodeProcessor> GetEnumerator()
         {
             return this.processors.GetEnumerator();
         }
 
-        /**
-         * @see List#remove(Object)
-         */
+        /// <summary>
+        /// <see cref="ICollection{IQueryNodeProcessor}.Remove(IQueryNodeProcessor)"/> 
+        /// </summary>
         public virtual bool Remove(IQueryNodeProcessor o)
         {
             return this.processors.Remove(o);
         }
 
-        /**
-         * @see List#remove(int)
-         */
+        /// <summary>
+        /// <see cref="IList{IQueryNodeProcessor}.RemoveAt(int)"/> 
+        /// </summary>
+        /// <param name="index"></param>
         public virtual void RemoveAt(int index)
         {
             this.processors.RemoveAt(index);
@@ -187,9 +192,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             this.processors.RemoveRange(index, count);
         }
 
-        /**
-         * @see List#set(int, Object)
-         */
         public virtual IQueryNodeProcessor Set(int index, IQueryNodeProcessor processor)
         {
             IQueryNodeProcessor oldProcessor = this.processors[index];
@@ -203,11 +205,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             return oldProcessor;
         }
 
+        /// <summary>
+        /// <see cref="ICollection{IQueryNodeProcessor}.Count"/> 
+        /// </summary>
         public virtual int Count
         {
             get { return this.processors.Count; }
         }
 
+        /// <summary>
+        /// <see cref="ICollection{IQueryNodeProcessor}.IsReadOnly"/> 
+        /// </summary>
         public virtual bool IsReadOnly
         {
             get
@@ -227,21 +235,34 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             item.SetQueryConfigHandler(this.queryConfig);
         }
 
+        /// <summary>
+        /// <see cref="ICollection{IQueryNodeProcessor}.Add(IQueryNodeProcessor)"/> 
+        /// </summary>
         void ICollection<IQueryNodeProcessor>.Add(IQueryNodeProcessor item)
         {
             this.Add(item);
         }
 
+        /// <summary>
+        /// <see cref="ICollection{IQueryNodeProcessor}.Contains(IQueryNodeProcessor)"/> 
+        /// </summary>
         public virtual bool Contains(IQueryNodeProcessor item)
         {
             return this.processors.Contains(item);
         }
 
+        /// <summary>
+        /// <see cref="ICollection{IQueryNodeProcessor}.CopyTo(IQueryNodeProcessor[], int)"/> 
+        /// </summary>
         public virtual void CopyTo(IQueryNodeProcessor[] array, int arrayIndex)
         {
             this.processors.CopyTo(array, arrayIndex);
         }
 
+        /// <summary>
+        /// <see cref="IEnumerable.GetEnumerator()"/> 
+        /// </summary>
+        /// <returns></returns>
         IEnumerator IEnumerable.GetEnumerator()
         {
             return GetEnumerator();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
index 79103e1..1284ac2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
@@ -21,9 +21,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
      */
 
     /// <summary>
-    /// A {@link QueryNodeProcessorPipeline} class removes every instance of
-    /// {@link DeletedQueryNode} from a query node tree. If the resulting root node
-    /// is a {@link DeletedQueryNode}, {@link MatchNoDocsQueryNode} is returned.
+    /// A <see cref="QueryNodeProcessorPipeline"/> class removes every instance of
+    /// <see cref=""/> from a query node tree. If the resulting root node
+    /// is a <see cref="DeletedQueryNode"/>, <see cref="MatchNoDocsQueryNode"/> is returned.
     /// </summary>
     public class RemoveDeletedQueryNodesProcessor : QueryNodeProcessorImpl
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
index a07c8ed..b16b16e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
@@ -23,17 +23,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
     /// <summary>
     /// Error class with NLS support
     /// </summary>
-    /// <seealso cref="Messages.NLS"/>
-    /// <seealso cref="Messages.Message"/>
+    /// <seealso cref="NLS"/>
+    /// <seealso cref="IMessage"/>
     [Serializable]
     public class QueryNodeError : Exception, INLSException
     {
         private IMessage message;
 
-        /**
-         * @param message
-         *          - NLS Message Object
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="message">NLS Message Object</param>
         public QueryNodeError(IMessage message)
             : base(message.Key)
         {
@@ -41,32 +41,29 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
 
         }
 
-        /**
-         * @param throwable
-         *          - @see java.lang.Error
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="throwable">An exception instance to wrap</param>
         public QueryNodeError(Exception throwable)
             : base(throwable.Message, throwable)
         {
         }
 
-        /**
-         * @param message
-         *          - NLS Message Object
-         * @param throwable
-         *          - @see java.lang.Error
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="message">NLS Message Object</param>
+        /// <param name="throwable">An exception instance to wrap</param>
         public QueryNodeError(IMessage message, Exception throwable)
             : base(message.Key, throwable)
         {
             this.message = message;
         }
 
-        /*
-         * (non-Javadoc)
-         * 
-         * @see org.apache.lucene.messages.NLSException#getMessageObject()
-         */
+        /// <summary>
+        /// <see cref="INLSException.MessageObject"/> 
+        /// </summary>
         public virtual IMessage MessageObject
         {
             get { return this.message; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
index 3178300..1f9ceb0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
@@ -24,15 +24,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
 
     /// <summary>
     /// This exception should be thrown if something wrong happens when dealing with
-    /// {@link QueryNode}s.
+    /// <see cref="Nodes.IQueryNode"/>s.
     /// <para>
     /// It also supports NLS messages.
     /// </para>
     /// </summary>
-    /// <seealso cref="Message"/>
+    /// <seealso cref="IMessage"/>
     /// <seealso cref="NLS"/>
-    /// <seealso cref="NLSException"/>
-    /// <seealso cref="IQueryNode"/>
+    /// <seealso cref="INLSException"/>
+    /// <seealso cref="Nodes.IQueryNode"/>
     [Serializable]
     public class QueryNodeException : Exception, INLSException
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
index cc88048..6eced96 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
@@ -26,8 +26,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
     /// string to the query node tree.
     /// </summary>
     /// <seealso cref="QueryNodeException"/>
-    /// <seealso cref="ISyntaxParser"/>
-    /// <seealso cref="IQueryNode"/>
+    /// <seealso cref="Parser.ISyntaxParser"/>
+    /// <seealso cref="Nodes.IQueryNode"/>
     [Serializable]
     public class QueryNodeParseException : QueryNodeException
     {
@@ -80,26 +80,24 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             this.message = message;
         }
 
-        /**
-         * For EndOfLine and EndOfFile ("&lt;EOF&gt;") parsing problems the last char in the
-         * string is returned For the case where the parser is not able to figure out
-         * the line and column number -1 will be returned
-         * 
-         * @return line where the problem was found
-         */
+        /// <summary>
+        /// For EndOfLine and EndOfFile ("&lt;EOF&gt;") parsing problems the last char in the
+        /// string is returned. For the case where the parser is not able to figure out
+        /// the line and column number -1 will be returned.
+        /// Returns line where the problem was found.
+        /// </summary>
         public virtual int BeginLine
         {
             get { return this.beginLine; }
             protected set { this.beginLine = value; }
         }
 
-        /**
-         * For EndOfLine and EndOfFile ("&lt;EOF&gt;") parsing problems the last char in the
-         * string is returned For the case where the parser is not able to figure out
-         * the line and column number -1 will be returned
-         * 
-         * @return column of the first char where the problem was found
-         */
+        /// <summary>
+        /// For EndOfLine and EndOfFile ("&lt;EOF&gt;") parsing problems the last char in the
+        /// string is returned. For the case where the parser is not able to figure out
+        /// the line and column number -1 will be returned. 
+        /// Returns column of the first char where the problem was found.
+        /// </summary>
         public virtual int BeginColumn
         {
             get { return this.beginColumn; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
index 76f8cf6..d2ba77e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
@@ -35,7 +35,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
     /// </summary>
     /// <seealso cref="IQueryNodeProcessor"/>
     /// <seealso cref="ISyntaxParser"/>
-    /// <seealso cref="QueryBuilder"/>
+    /// <seealso cref="Builders.IQueryBuilder{TQuery}"/>
     /// <seealso cref="Config.QueryConfigHandler"/>
     public class QueryParserHelper<TQuery> // LUCENENET: Made this class generic so we can avoid the cast (to Query) on the Parse method
     {
@@ -47,25 +47,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
 
         private QueryConfigHandler config;
 
-        /**
-         * Creates a query parser helper object using the specified configuration,
-         * text parser, processor and builder.
-         * 
-         * @param queryConfigHandler
-         *          the query configuration handler that will be initially set to this
-         *          helper
-         * @param syntaxParser
-         *          the text parser that will be initially set to this helper
-         * @param processor
-         *          the query processor that will be initially set to this helper
-         * @param builder
-         *          the query builder that will be initially set to this helper
-         * 
-         * @see QueryNodeProcessor
-         * @see SyntaxParser
-         * @see QueryBuilder
-         * @see QueryConfigHandler
-         */
+        /// <summary>
+        /// Creates a query parser helper object using the specified configuration,
+        /// text parser, processor and builder.
+        /// </summary>
+        /// <param name="queryConfigHandler">the query configuration handler that will be initially set to this helper</param>
+        /// <param name="syntaxParser">the text parser that will be initially set to this helper</param>
+        /// <param name="processor">the query processor that will be initially set to this helper</param>
+        /// <param name="builder">the query builder that will be initially set to this helper</param>
+        /// <seealso cref="IQueryNodeProcessor"/>
+        /// <seealso cref="ISyntaxParser"/>
+        /// <seealso cref="IQueryBuilder{TQuery}"/>
+        /// <seealso cref="Config.QueryConfigHandler"/>
         public QueryParserHelper(QueryConfigHandler queryConfigHandler, ISyntaxParser syntaxParser, IQueryNodeProcessor processor,
             IQueryBuilder<TQuery> builder)
         {
@@ -80,51 +73,41 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             }
         }
 
-        /**
-         * Returns the processor object used to process the query node tree, it
-         * returns <code>null</code> if no processor is used.
-         * 
-         * @return the actual processor used to process the query node tree,
-         *         <code>null</code> if no processor is used
-         * 
-         * @see QueryNodeProcessor
-         * @see #setQueryNodeProcessor(QueryNodeProcessor)
-         */
+        /// <summary>
+        /// Gets the processor object used to process the query node tree, it
+        /// returns <c>null</c> if no processor is used.
+        /// </summary>
+        /// <seealso cref="IQueryNodeProcessor"/>.
+        /// <seealso cref="SetQueryNodeProcessor(IQueryNodeProcessor)"/>
         public virtual IQueryNodeProcessor QueryNodeProcessor
         {
             get { return processor; }
         }
 
-        /**
-         * Sets the processor that will be used to process the query node tree. If
-         * there is any {@link QueryConfigHandler} returned by
-         * {@link #getQueryConfigHandler()}, it will be set on the processor. The
-         * argument can be <code>null</code>, which means that no processor will be
-         * used to process the query node tree.
-         * 
-         * @param processor
-         *          the processor that will be used to process the query node tree,
-         *          this argument can be <code>null</code>
-         * 
-         * @see #getQueryNodeProcessor()
-         * @see QueryNodeProcessor
-         */
+        /// <summary>
+        /// Sets the processor that will be used to process the query node tree. If
+        /// there is any <see cref="Config.QueryConfigHandler"/> returned by
+        /// <see cref="QueryConfigHandler"/>, it will be set on the processor. The
+        /// argument can be <c>null</c>, which means that no processor will be
+        /// used to process the query node tree.
+        /// </summary>
+        /// <param name="processor">the processor that will be used to process the query node tree,
+        /// this argument can be <c>null</c></param>
+        /// <seealso cref="QueryNodeProcessor"/>
+        /// <seealso cref="IQueryNodeProcessor"/>
         public virtual void SetQueryNodeProcessor(IQueryNodeProcessor processor)
         {
             this.processor = processor;
             this.processor.SetQueryConfigHandler(QueryConfigHandler);
         }
 
-        /**
-         * Sets the text parser that will be used to parse the query string, it cannot
-         * be <code>null</code>.
-         * 
-         * @param syntaxParser
-         *          the text parser that will be used to parse the query string
-         * 
-         * @see #getSyntaxParser()
-         * @see SyntaxParser
-         */
+        /// <summary>
+        /// Sets the text parser that will be used to parse the query string, it cannot
+        /// be <c>null</c>.
+        /// </summary>
+        /// <param name="syntaxParser">the text parser that will be used to parse the query string</param>
+        /// <seealso cref="SyntaxParser"/>
+        /// <seealso cref="ISyntaxParser"/>
         public virtual void SetSyntaxParser(ISyntaxParser syntaxParser)
         {
             if (syntaxParser == null)
@@ -135,16 +118,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             this.syntaxParser = syntaxParser;
         }
 
-        /**
-         * The query builder that will be used to build an object from the query node
-         * tree. It cannot be <code>null</code>.
-         * 
-         * @param queryBuilder
-         *          the query builder used to build something from the query node tree
-         * 
-         * @see #getQueryBuilder()
-         * @see QueryBuilder
-         */
+        /// <summary>
+        /// The query builder that will be used to build an object from the query node
+        /// tree. It cannot be <c>null</c>.
+        /// </summary>
+        /// <param name="queryBuilder">the query builder used to build something from the query node tree</param>
+        /// <seealso cref="QueryBuilder"/>
+        /// <seealso cref="IQueryBuilder{TQuery}"/>
         public virtual void SetQueryBuilder(IQueryBuilder<TQuery> queryBuilder)
         {
             if (queryBuilder == null)
@@ -155,63 +135,49 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             this.builder = queryBuilder;
         }
 
-        /**
-         * Returns the query configuration handler, which is used during the query
-         * node tree processing. It can be <code>null</code>.
-         * 
-         * @return the query configuration handler used on the query processing,
-         *         <code>null</code> if not query configuration handler is defined
-         * 
-         * @see QueryConfigHandler
-         * @see #setQueryConfigHandler(QueryConfigHandler)
-         */
+        /// <summary>
+        /// Returns the query configuration handler, which is used during the query
+        /// node tree processing. It can be <c>null</c>.
+        /// </summary>
+        /// <seealso cref="Config.QueryConfigHandler"/>
+        /// <seealso cref="SetQueryConfigHandler(QueryConfigHandler)"/>
         public virtual QueryConfigHandler QueryConfigHandler
         {
             get { return config; }
         }
 
-        /**
-         * Returns the query builder used to build a object from the query node tree.
-         * The object produced by this builder is returned by
-         * {@link #parse(String, String)}.
-         * 
-         * @return the query builder
-         * 
-         * @see #setQueryBuilder(QueryBuilder)
-         * @see QueryBuilder
-         */
+        /// <summary>
+        /// Returns the query builder used to build a object from the query node tree.
+        /// The object produced by this builder is returned by <see cref="Parse(string, string)"/>.
+        /// </summary>
+        /// <seealso cref="SetQueryBuilder(IQueryBuilder{TQuery})"/>
+        /// <seealso cref="IQueryBuilder{TQuery}"/>
         public virtual IQueryBuilder<TQuery> QueryBuilder
         {
             get { return this.builder; }
         }
 
-        /**
-         * Returns the text parser used to build a query node tree from a query
-         * string. The default text parser instance returned by this method is a
-         * {@link SyntaxParser}.
-         * 
-         * @return the text parse used to build query node trees.
-         * 
-         * @see SyntaxParser
-         * @see #setSyntaxParser(SyntaxParser)
-         */
+        /// <summary>
+        /// Returns the text parser used to build a query node tree from a query
+        /// string. The default text parser instance returned by this method is a
+        /// <see cref="ISyntaxParser"/>.
+        /// </summary>
+        /// <seealso cref="ISyntaxParser"/>
+        /// <seealso cref="SetSyntaxParser(ISyntaxParser)"/>
         public virtual ISyntaxParser SyntaxParser
         {
             get { return this.syntaxParser; }
         }
 
-        /**
-         * Sets the query configuration handler that will be used during query
-         * processing. It can be <code>null</code>. It's also set to the processor
-         * returned by {@link #getQueryNodeProcessor()}.
-         * 
-         * @param config
-         *          the query configuration handler used during query processing, it
-         *          can be <code>null</code>
-         * 
-         * @see #getQueryConfigHandler()
-         * @see QueryConfigHandler
-         */
+        /// <summary>
+        /// Sets the query configuration handler that will be used during query
+        /// processing. It can be <c>null</c>. It's also set to the processor
+        /// returned by <see cref="QueryNodeProcessor"/>.
+        /// </summary>
+        /// <param name="config">the query configuration handler used during query processing, it
+        /// can be <c>null</c></param>
+        /// <seealso cref="QueryConfigHandler"/>
+        /// <seealso cref="Config.QueryConfigHandler"/>
         public virtual void SetQueryConfigHandler(QueryConfigHandler config)
         {
             this.config = config;
@@ -223,31 +189,25 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
             }
         }
 
-        /**
-         * Parses a query string to an object, usually some query object. <br/>
-         * <br/>
-         * In this method the three phases are executed: <br/>
-         * <br/>
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1st - the query string is parsed using the
-         * text parser returned by {@link #getSyntaxParser()}, the result is a query
-         * node tree <br/>
-         * <br/>
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2nd - the query node tree is processed by the
-         * processor returned by {@link #getQueryNodeProcessor()} <br/>
-         * <br/>
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3th - a object is built from the query node
-         * tree using the builder returned by {@link #getQueryBuilder()}
-         * 
-         * @param query
-         *          the query string
-         * @param defaultField
-         *          the default field used by the text parser
-         * 
-         * @return the object built from the query
-         * 
-         * @throws QueryNodeException
-         *           if something wrong happens along the three phases
-         */
+        /// <summary>
+        /// Parses a query string to an object, usually some query object.
+        /// <para/>
+        /// In this method the three phases are executed:
+        /// <para/>
+        /// &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1st - the query string is parsed using the
+        /// text parser returned by <see cref="SyntaxParser"/>, the result is a query
+        /// node tree
+        /// <para/>
+        /// &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2nd - the query node tree is processed by the
+        /// processor returned by <see cref="QueryNodeProcessor"/>
+        /// <para/>
+        /// &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3th - a object is built from the query node
+        /// tree using the builder returned by <see cref="QueryBuilder"/>
+        /// </summary>
+        /// <param name="query">the query string</param>
+        /// <param name="defaultField">the default field used by the text parser</param>
+        /// <returns>the object built from the query</returns>
+        /// <exception cref="QueryNodeException">if something wrong happens along the three phases</exception>
         public virtual TQuery Parse(string query, string defaultField)
         {
             IQueryNode queryTree = SyntaxParser.Parse(query, defaultField);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
index dbc470e..8f8a241 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
@@ -35,15 +35,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
             BOTH, Q1, Q2, NONE
         }
 
-        /**
-         * perform a logical and of 2 QueryNode trees. if q1 and q2 are ANDQueryNode
-         * nodes it uses head Node from q1 and adds the children of q2 to q1 if q1 is
-         * a AND node and q2 is not, add q2 as a child of the head node of q1 if q2 is
-         * a AND node and q1 is not, add q1 as a child of the head node of q2 if q1
-         * and q2 are not ANDQueryNode nodes, create a AND node and make q1 and q2
-         * children of that node if q1 or q2 is null it returns the not null node if
-         * q1 = q2 = null it returns null
-         */
+        /// <summary>
+        /// perform a logical and of 2 QueryNode trees. if q1 and q2 are ANDQueryNode
+        /// nodes it uses head Node from q1 and adds the children of q2 to q1 if q1 is
+        /// a AND node and q2 is not, add q2 as a child of the head node of q1 if q2 is
+        /// a AND node and q1 is not, add q1 as a child of the head node of q2 if q1
+        /// and q2 are not ANDQueryNode nodes, create a AND node and make q1 and q2
+        /// children of that node if q1 or q2 is null it returns the not null node if
+        /// q1 = q2 = null it returns null
+        /// </summary>
         public static IQueryNode LogicalAnd(IQueryNode q1, IQueryNode q2)
         {
             if (q1 == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
index 6b05a60..3de67f8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
@@ -22,7 +22,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
      */
 
     /// <summary>
-    /// CharsSequence with escaped chars information.
+    /// <see cref="ICharSequence"/> with escaped chars information.
     /// </summary>
     public sealed class UnescapedCharSequence : ICharSequence
     {
@@ -30,9 +30,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
 
         private bool[] wasEscaped;
 
-        /**
-         * Create a escaped CharSequence
-         */
+        /// <summary>
+        /// Create a escaped <see cref="ICharSequence"/>
+        /// </summary>
         public UnescapedCharSequence(char[] chars, bool[] wasEscaped, int offset,
             int length)
         {
@@ -42,9 +42,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
             System.Array.Copy(wasEscaped, offset, this.wasEscaped, 0, length);
         }
 
-        /**
-         * Create a non-escaped CharSequence
-         */
+        /// <summary>
+        /// Create a non-escaped <see cref="ICharSequence"/>
+        /// </summary>
         public UnescapedCharSequence(ICharSequence text)
         {
             this.chars = new char[text.Length];
@@ -56,9 +56,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
             }
         }
 
-        /**
-         * Create a non-escaped CharSequence
-         */
+        /// <summary>
+        /// Create a non-escaped <see cref="ICharSequence"/>
+        /// </summary>
          // LUCENENET specific overload for text as string
         public UnescapedCharSequence(string text)
         {
@@ -71,9 +71,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
             }
         }
 
-        /**
-         * Create a copy of an existent UnescapedCharSequence
-         */
+        /// <summary>
+        /// Create a copy of an existent <see cref="UnescapedCharSequence"/>
+        /// </summary>
         private UnescapedCharSequence(UnescapedCharSequence text)
         {
             this.chars = new char[text.Length];
@@ -117,11 +117,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
             return new string(this.chars);
         }
 
-        /**
-         * Return a escaped String
-         * 
-         * @return a escaped String
-         */
+        /// <summary>
+        /// Return an escaped <see cref="string"/>
+        /// </summary>
+        /// <returns>an escaped <see cref="string"/></returns>
         public string ToStringEscaped()
         {
             // non efficient implementation
@@ -140,13 +139,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
             return result.ToString();
         }
 
-        /**
-         * Return a escaped String
-         * 
-         * @param enabledChars
-         *          - array of chars to be escaped
-         * @return a escaped String
-         */
+        /// <summary>
+        /// Return an escaped <see cref="string"/>
+        /// </summary>
+        /// <param name="enabledChars">array of chars to be escaped</param>
+        /// <returns>an escaped <see cref="string"/></returns>
         public ICharSequence ToStringEscaped(char[] enabledChars)
         {
             // TODO: non efficient implementation, refactor this code

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
index 5d326f6..1af997a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
@@ -42,31 +42,26 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
             this.arguments = args;
         }
 
-
         public virtual object[] GetArguments()
         {
             return this.arguments;
         }
 
-
         public virtual string Key
         {
             get { return this.key; }
         }
 
-
         public virtual string GetLocalizedMessage()
         {
             return GetLocalizedMessage(CultureInfo.CurrentUICulture);
         }
 
-
         public virtual string GetLocalizedMessage(CultureInfo locale)
         {
             return NLS.GetLocalizedMessage(Key, locale, GetArguments());
         }
 
-
         public override string ToString()
         {
             object[] args = GetArguments();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
index 9693891..17d5a13 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
@@ -81,15 +81,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
             return GetLocalizedMessage(key, CultureInfo.CurrentUICulture, args);
         }
 
-        /**
-         * Initialize a given class with the message bundle Keys Should be called from
-         * a class that extends NLS in a static block at class load time.
-         * 
-         * @param bundleName
-         *          Property file with that contains the message bundle
-         * @param clazz
-         *          where constants will reside
-         */
+        /// <summary>
+        /// Initialize a given class with the message bundle Keys Should be called from
+        /// a class that extends NLS in a static block at class load time.
+        /// </summary>
+        /// <param name="bundleName">Property file with that contains the message bundle</param>
+        /// <param name="clazz">where constants will reside</param>
         protected static void InitializeMessages(string bundleName, Type clazz)
         {
             try
@@ -155,10 +152,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
             ValidateMessage(field.Name, clazz);
         }
 
-        /**
-         * @param key
-         *          - Message Key
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="key">Message Key</param>
+        /// <param name="clazz"></param>
         private static void ValidateMessage(string key, Type clazz)
         {
             // Test if the message is present in the resource bundle

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
index d10baf9..d660060 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
@@ -22,28 +22,28 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
      */
 
     /// <summary>
-    /// This query parser works exactly as the standard query parser ( {@link StandardQueryParser} ), 
+    /// This query parser works exactly as the standard query parser ( <see cref="StandardQueryParser"/> ), 
     /// except that it respect the boolean precedence, so &lt;a AND b OR c AND d&gt; is parsed to &lt;(+a +b) (+c +d)&gt;
     /// instead of &lt;+a +b +c +d&gt;.
     /// <para>
-    /// EXPERT: This class extends {@link StandardQueryParser}, but uses {@link PrecedenceQueryNodeProcessorPipeline}
-    /// instead of {@link StandardQueryNodeProcessorPipeline} to process the query tree.
+    /// EXPERT: This class extends <see cref="StandardQueryParser"/>, but uses <see cref="PrecedenceQueryNodeProcessorPipeline"/>
+    /// instead of <see cref="Standard.Processors.StandardQueryNodeProcessorPipeline"/> to process the query tree.
     /// </para>
     /// </summary>
     /// <seealso cref="StandardQueryParser"/>
     public class PrecedenceQueryParser : StandardQueryParser
     {
-        /**
-   * @see StandardQueryParser#StandardQueryParser()
-   */
+        /// <summary>
+        /// <see cref="StandardQueryParser.StandardQueryParser()"/> 
+        /// </summary>
         public PrecedenceQueryParser()
         {
             SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler));
         }
 
-        /**
-         * @see StandardQueryParser#StandardQueryParser(Analyzer)
-         */
+        /// <summary>
+        /// <see cref="StandardQueryParser.StandardQueryParser(Analyzer)"/>
+        /// </summary>
         public PrecedenceQueryParser(Analyzer analyer)
             : base(analyer)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
index 8e9a1bb..85b05d7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
@@ -25,17 +25,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
      */
 
     /// <summary>
-    /// This processor is used to apply the correct {@link ModifierQueryNode} to {@link BooleanQueryNode}s children.
+    /// This processor is used to apply the correct <see cref="ModifierQueryNode"/> to <see cref="BooleanQueryNode"/>s children.
     /// <para>
-    /// It walks through the query node tree looking for {@link BooleanQueryNode}s. If an {@link AndQueryNode} is found,
-    /// every child, which is not a {@link ModifierQueryNode} or the {@link ModifierQueryNode} 
-    /// is {@link Modifier#MOD_NONE}, becomes a {@link Modifier#MOD_REQ}. For any other
-    /// {@link BooleanQueryNode} which is not an {@link OrQueryNode}, it checks the default operator is {@link Operator#AND},
-    /// if it is, the same operation when an {@link AndQueryNode} is found is applied to it.
+    /// It walks through the query node tree looking for <see cref="BooleanQueryNode"/>s. If an <see cref="AndQueryNode"/> is found,
+    /// every child, which is not a <see cref="ModifierQueryNode"/> or the <see cref="ModifierQueryNode"/> 
+    /// is <see cref="Modifier.MOD_NONE"/>, becomes a <see cref="Modifier.MOD_REQ"/>. For any other
+    /// <see cref="BooleanQueryNode"/> which is not an <see cref="OrQueryNode"/>, it checks the default operator is <see cref="Operator.AND"/>,
+    /// if it is, the same operation when an <see cref="AndQueryNode"/> is found is applied to it.
     /// </para>
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#DEFAULT_OPERATOR"/>
-    /// <seealso cref="PrecedenceQueryParser#setDefaultOperator"/>
+    /// <seealso cref="ConfigurationKeys.DEFAULT_OPERATOR"/>
     public class BooleanModifiersQueryNodeProcessor : QueryNodeProcessorImpl
     {
         private List<IQueryNode> childrenBuffer = new List<IQueryNode>();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
index dc9d03d..71a2cd9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
@@ -21,11 +21,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
      */
 
     /// <summary>
-    /// This processor pipeline extends {@link StandardQueryNodeProcessorPipeline} and enables
+    /// This processor pipeline extends <see cref="StandardQueryNodeProcessorPipeline"/> and enables
     /// boolean precedence on it.
     /// <para>
-    /// EXPERT: the precedence is enabled by removing {@link GroupQueryNodeProcessor} from the
-    /// {@link StandardQueryNodeProcessorPipeline} and appending {@link BooleanModifiersQueryNodeProcessor}
+    /// EXPERT: the precedence is enabled by removing <see cref="GroupQueryNodeProcessor"/> from the
+    /// <see cref="StandardQueryNodeProcessorPipeline"/> and appending <see cref="BooleanModifiersQueryNodeProcessor"/>
     /// to the pipeline.
     /// </para>
     /// </summary>
@@ -33,9 +33,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
     /// <seealso cref="StandardQueryNodeProcessorPipeline"/>
     public class PrecedenceQueryNodeProcessorPipeline : StandardQueryNodeProcessorPipeline
     {
-        /**
-   * @see StandardQueryNodeProcessorPipeline#StandardQueryNodeProcessorPipeline(QueryConfigHandler)
-   */
+        /// <summary>
+        /// <see cref="StandardQueryNodeProcessorPipeline.StandardQueryNodeProcessorPipeline(QueryConfigHandler)"/>
+        /// </summary>
         public PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler queryConfig)
             : base(queryConfig)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
index e3c09ab..cb6f1d1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
@@ -26,7 +26,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a BooleanQuery of SHOULD clauses, possibly with
+    /// Builds a <see cref="BooleanQuery"/> of SHOULD clauses, possibly with
     /// some minimum number to match.
     /// </summary>
     public class AnyQueryNodeBuilder : IStandardQueryBuilder
@@ -60,10 +60,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                         catch (BooleanQuery.TooManyClauses ex)
                         {
                             throw new QueryNodeException(new MessageImpl(
-                               /*
-                                * IQQQ.Q0028E_TOO_MANY_BOOLEAN_CLAUSES,
-                                * BooleanQuery.getMaxClauseCount()
-                                */QueryParserMessages.EMPTY_MESSAGE), ex);
+                                /*
+                                 * IQQQ.Q0028E_TOO_MANY_BOOLEAN_CLAUSES,
+                                 * BooleanQuery.getMaxClauseCount()
+                                 */QueryParserMessages.EMPTY_MESSAGE), ex);
                         }
                     }
                 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
index 8f29be5..4c849db 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
@@ -27,13 +27,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link BooleanQuery} object from a {@link BooleanQueryNode} object.
-    /// Every children in the {@link BooleanQueryNode} object must be already tagged
-    /// using {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} with a {@link Query}
+    /// Builds a <see cref="BooleanQuery"/> object from a <see cref="BooleanQueryNode"/> object.
+    /// Every children in the <see cref="BooleanQueryNode"/> object must be already tagged
+    /// using <see cref="QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID"/> with a <see cref="Query"/>
     /// object.
     /// <para>
-    /// It takes in consideration if the children is a {@link ModifierQueryNode} to
-    /// define the {@link BooleanClause}.
+    /// It takes in consideration if the children is a <see cref="ModifierQueryNode"/> to
+    /// define the <see cref="BooleanClause"/>.
     /// </para>
     /// </summary>
     public class BooleanQueryNodeBuilder : IStandardQueryBuilder

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
index afa01ab..53fcc9f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
@@ -22,10 +22,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// This builder basically reads the {@link Query} object set on the
-    /// {@link BoostQueryNode} child using
-    /// {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} and applies the boost value
-    /// defined in the {@link BoostQueryNode}.
+    /// This builder basically reads the <see cref="Query"/> object set on the
+    /// <see cref="BoostQueryNode"/> child using
+    /// <see cref="QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID"/> and applies the boost value
+    /// defined in the <see cref="BoostQueryNode"/>.
     /// </summary>
     public class BoostQueryNodeBuilder : IStandardQueryBuilder
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
index 7a86b52..c2e8e7d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
@@ -21,15 +21,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// This builder does nothing. Commonly used for {@link QueryNode} objects that
+    /// This builder does nothing. Commonly used for <see cref="IQueryNode"/> objects that
     /// are built by its parent's builder.
     /// </summary>
     /// <seealso cref="IStandardQueryBuilder"/>
-    /// <seealso cref="QueryTreeBuilder"/>
+    /// <seealso cref="Core.Builders.QueryTreeBuilder{TQuery}"/>
     public class DummyQueryNodeBuilder : IStandardQueryBuilder
     {
         /// <summary>
-        /// Constructs a {@link DummyQueryNodeBuilder} object.
+        /// Constructs a <see cref="DummyQueryNodeBuilder"/> object.
         /// </summary>
         public DummyQueryNodeBuilder()
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
index c8da71b..d0b10a4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
@@ -22,7 +22,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link TermQuery} object from a {@link FieldQueryNode} object.
+    /// Builds a <see cref="TermQuery"/> object from a <see cref="FieldQueryNode"/> object.
     /// </summary>
     public class FieldQueryNodeBuilder : IStandardQueryBuilder
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
index 9215ac5..e0a9a61 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
@@ -23,7 +23,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link FuzzyQuery} object from a {@link FuzzyQueryNode} object.
+    /// Builds a <see cref="FuzzyQuery"/> object from a <see cref="FuzzyQueryNode"/> object.
     /// </summary>
     public class FuzzyQueryNodeBuilder : IStandardQueryBuilder
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
index 69490b6..68ad84c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
@@ -22,9 +22,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds no object, it only returns the {@link Query} object set on the
-    /// {@link GroupQueryNode} object using a
-    /// {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} tag.
+    /// Builds no object, it only returns the <see cref="Query"/> object set on the
+    /// <see cref="GroupQueryNode"/> object using a
+    /// <see cref="QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID"/> tag.
     /// </summary>
     public class GroupQueryNodeBuilder : IStandardQueryBuilder
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
index fe079d5..21381bb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
@@ -25,8 +25,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link MatchAllDocsQuery} object from a
-    /// {@link MatchAllDocsQueryNode} object.
+    /// Builds a <see cref="MatchAllDocsQuery"/> object from a
+    /// <see cref="MatchAllDocsQueryNode"/> object.
     /// </summary>
     public class MatchAllDocsQueryNodeBuilder : IStandardQueryBuilder
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
index 1889513..8d52cba 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
@@ -25,8 +25,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds an empty {@link BooleanQuery} object from a
-    /// {@link MatchNoDocsQueryNode} object.
+    /// Builds an empty <see cref="BooleanQuery"/> object from a
+    /// <see cref="MatchNoDocsQueryNode"/> object.
     /// </summary>
     public class MatchNoDocsQueryNodeBuilder : IStandardQueryBuilder
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
index f7f9572..e13eef2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
@@ -22,9 +22,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds no object, it only returns the {@link Query} object set on the
-    /// {@link ModifierQueryNode} object using a
-    /// {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} tag.
+    /// Builds no object, it only returns the <see cref="Query"/> object set on the
+    /// <see cref="ModifierQueryNode"/> object using a
+    /// <see cref="QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID"/> tag.
     /// </summary>
     public class ModifierQueryNodeBuilder : IStandardQueryBuilder
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
index 6eb883c..38eb07b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
@@ -25,7 +25,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link MultiPhraseQuery} object from a {@link MultiPhraseQueryNode}
+    /// Builds a <see cref="MultiPhraseQuery"/> object from a <see cref="MultiPhraseQueryNode"/>
     /// object.
     /// </summary>
     public class MultiPhraseQueryNodeBuilder : IStandardQueryBuilder

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
index 51b4eef..ce1be4e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
@@ -28,15 +28,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds {@link NumericRangeQuery}s out of {@link NumericRangeQueryNode}s.
+    /// Builds <see cref="NumericRangeQuery"/>s out of <see cref="NumericRangeQueryNode"/>s.
     /// </summary>
     /// <seealso cref="NumericRangeQuery"/>
     /// <seealso cref="NumericRangeQueryNode"/>
     public class NumericRangeQueryNodeBuilder : IStandardQueryBuilder
     {
-        /**
-   * Constructs a {@link NumericRangeQueryNodeBuilder} object.
-   */
+        /// <summary>
+        /// Constructs a <see cref="NumericRangeQueryNodeBuilder"/> object.
+        /// </summary>
         public NumericRangeQueryNodeBuilder()
         {
             // empty constructor

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
index 79f3dba..a515053 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
@@ -23,7 +23,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link PhraseQuery} object from a {@link TokenizedPhraseQueryNode}
+    /// Builds a <see cref="PhraseQuery"/> object from a <see cref="TokenizedPhraseQueryNode"/>
     /// object.
     /// </summary>
     public class PhraseQueryNodeBuilder : IStandardQueryBuilder

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
index c9c0352..7473c6a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link PrefixQuery} object from a {@link PrefixWildcardQueryNode}
+    /// Builds a <see cref="PrefixQuery"/> object from a <see cref="PrefixWildcardQueryNode"/>
     /// object.
     /// </summary>
     public class PrefixWildcardQueryNodeBuilder : IStandardQueryBuilder

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
index 956a3e5..7db6650 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link RegexpQuery} object from a {@link RegexpQueryNode} object.
+    /// Builds a <see cref="RegexpQuery"/> object from a <see cref="RegexpQueryNode"/> object.
     /// </summary>
     public class RegexpQueryNodeBuilder : IStandardQueryBuilder
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
index bf3156e..d58cf70 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
@@ -22,10 +22,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// This builder basically reads the {@link Query} object set on the
-    /// {@link SlopQueryNode} child using
-    /// {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} and applies the slop value
-    /// defined in the {@link SlopQueryNode}.
+    /// This builder basically reads the <see cref="Query"/> object set on the
+    /// <see cref="SlopQueryNode"/> child using
+    /// <see cref="QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID"/> and applies the slop value
+    /// defined in the <see cref="SlopQueryNode"/>.
     /// </summary>
     public class SlopQueryNodeBuilder : IStandardQueryBuilder
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
index 428a75e..fe3f30c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
@@ -28,13 +28,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// This builder does the same as the {@link BooleanQueryNodeBuilder}, but this
-    /// considers if the built {@link BooleanQuery} should have its coord disabled or
+    /// This builder does the same as the <see cref="BooleanQueryNodeBuilder"/>, but this
+    /// considers if the built <see cref="BooleanQuery"/> should have its coord disabled or
     /// not.
     /// </summary>
     /// <seealso cref="BooleanQueryNodeBuilder"/>
     /// <seealso cref="BooleanQuery"/>
-    /// <seealso cref="Similarity#coord(int, int)"/>
+    /// <seealso cref="Search.Similarities.Similarity.Coord(int, int)"/>
     public class StandardBooleanQueryNodeBuilder : IStandardQueryBuilder
     {
         public StandardBooleanQueryNodeBuilder()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
index 4c15b8e..4bb8997 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
@@ -22,9 +22,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
     /// <summary>
     /// This interface should be implemented by every class that wants to build
-    /// {@link Query} objects from {@link QueryNode} objects. 
+    /// <see cref="Query"/> objects from <see cref="Core.Nodes.IQueryNode"/> objects. 
     /// </summary>
-    /// <seealso cref="IQueryBuilder"/>
+    /// <seealso cref="IQueryBuilder{TQuery}"/>
     /// <seealso cref="QueryTreeBuilder"/>
     public interface IStandardQueryBuilder : IQueryBuilder<Query>
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
index b589d7b..265b059 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
@@ -24,12 +24,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
     /// <summary>
     /// This query tree builder only defines the necessary map to build a
-    /// {@link Query} tree object. It should be used to generate a {@link Query} tree
+    /// <see cref="Query"/> tree object. It should be used to generate a <see cref="Query"/> tree
     /// object from a query node tree processed by a
-    /// {@link StandardQueryNodeProcessorPipeline}.
+    /// <see cref="Processors.StandardQueryNodeProcessorPipeline"/>.
     /// </summary>
     /// <seealso cref="QueryTreeBuilder"/>
-    /// <seealso cref="StandardQueryNodeProcessorPipeline"/>
+    /// <seealso cref="Processors.StandardQueryNodeProcessorPipeline"/>
     public class StandardQueryTreeBuilder : QueryTreeBuilder<Query>, IStandardQueryBuilder
     {
         public StandardQueryTreeBuilder()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
index 3a58fe4..3ee8e16 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link TermRangeQuery} object from a {@link TermRangeQueryNode}
+    /// Builds a <see cref="TermRangeQuery"/> object from a <see cref="TermRangeQueryNode"/>
     /// object.
     /// </summary>
     public class TermRangeQueryNodeBuilder : IStandardQueryBuilder

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
index aaafeb5..f6ed0b2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
      */
 
     /// <summary>
-    /// Builds a {@link WildcardQuery} object from a {@link WildcardQueryNode}
+    /// Builds a <see cref="WildcardQuery"/> object from a <see cref="WildcardQueryNode"/>
     /// object.
     /// </summary>
     public class WildcardQueryNodeBuilder : IStandardQueryBuilder

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
index 35ec103..fbf7964 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/CommonQueryParserConfiguration.cs
@@ -31,39 +31,39 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         /// <summary>
         /// Whether terms of multi-term queries (e.g., wildcard,
         /// prefix, fuzzy and range) should be automatically
-        /// lower-cased or not.  Default is <code>true</code>.
+        /// lower-cased or not.  Default is <c>true</c>.
         /// </summary>
         bool LowercaseExpandedTerms { get; set; }
 
         /// <summary>
-        /// Set to <code>true</code> to allow leading wildcard characters.
-        /// <p>
-        /// When set, <code>*</code> or <code>?</code> are allowed as the first
-        /// character of a PrefixQuery and WildcardQuery. Note that this can produce
+        /// Set to <c>true</c> to allow leading wildcard characters.
+        /// <para/>
+        /// When set, <c>*</c> or <c>?</c> are allowed as the first
+        /// character of a <see cref="PrefixQuery"/> and <see cref="WildcardQuery"/>. Note that this can produce
         /// very slow queries on big indexes.
-        /// <p>
+        /// <para/>
         /// Default: false.
         /// </summary>
         bool AllowLeadingWildcard { get; set; }
 
         /// <summary>
-        /// Set to <code>true</code> to enable position increments in result query.
-        /// <p>
+        /// Set to <c>true</c> to enable position increments in result query.
+        /// <para/>
         /// When set, result phrase and multi-phrase queries will be aware of position
-        /// increments. Useful when e.g. a StopFilter increases the position increment
+        /// increments. Useful when e.g. a <see cref="Analysis.Core.StopFilter"/> increases the position increment
         /// of the token that follows an omitted token.
-        /// <p>
+        /// <para/>
         /// Default: false.
         /// </summary>
         bool EnablePositionIncrements { get; set; }
 
         /// <summary>
         /// By default, it uses 
-        /// {@link MultiTermQuery#CONSTANT_SCORE_AUTO_REWRITE_DEFAULT} when creating a
+        /// <see cref="MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT"/> when creating a
         /// prefix, wildcard and range queries. This implementation is generally
         /// preferable because it a) Runs faster b) Does not have the scarcity of terms
-        /// unduly influence score c) avoids any {@link TooManyListenersException}
-        /// exception. However, if your application really needs to use the
+        /// unduly influence score c) avoids any exception due to too many listeners.
+        /// However, if your application really needs to use the
         /// old-fashioned boolean queries expansion rewriting and the above points are
         /// not relevant then use this change the rewrite method.
         /// </summary>
@@ -98,8 +98,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         float FuzzyMinSim { get; set; }
 
         /// <summary>
-        /// Sets the default <see cref="T:DateTools.Resolution"/> used for certain field when
-        /// no <see cref="T:DateTools.Resolution"/> is defined for this field.
+        /// Sets the default <see cref="DateTools.Resolution"/> used for certain field when
+        /// no <see cref="DateTools.Resolution"/> is defined for this field.
         /// </summary>
         void SetDateResolution(DateTools.Resolution dateResolution);
     }


[15/58] lucenenet git commit: QueryParser.Flexible Refactor: Set member accessibility to the same as Lucene

Posted by ni...@apache.org.
QueryParser.Flexible Refactor: Set member accessibility to the same as Lucene


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

Branch: refs/heads/master
Commit: 8076b1e7cafbeafecd07d3ef22eef9aff196eaf8
Parents: 97a0905
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Nov 29 17:17:14 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Nov 29 17:17:14 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Builders/QueryTreeBuilder.cs  |  4 +-
 .../Flexible/Core/Config/AbstractQueryConfig.cs |  8 ++--
 .../Flexible/Core/Config/FieldConfig.cs         |  2 +-
 .../Flexible/Core/Nodes/AnyQueryNode.cs         |  8 ++--
 .../Flexible/Core/Nodes/BooleanQueryNode.cs     |  6 +--
 .../Flexible/Core/Nodes/BoostQueryNode.cs       |  4 +-
 .../Flexible/Core/Nodes/FieldQueryNode.cs       | 22 ++++-----
 .../Flexible/Core/Nodes/FuzzyQueryNode.cs       |  8 ++--
 .../Flexible/Core/Nodes/GroupQueryNode.cs       |  4 +-
 .../Flexible/Core/Nodes/ModifierQueryNode.cs    |  6 +--
 .../Core/Nodes/NoTokenFoundQueryNode.cs         |  6 +--
 .../Flexible/Core/Nodes/OpaqueQueryNode.cs      |  4 +-
 .../Flexible/Core/Nodes/PathQueryNode.cs        | 36 +++++++--------
 .../Flexible/Core/Nodes/PhraseSlopQueryNode.cs  |  4 +-
 .../Flexible/Core/Nodes/ProximityQueryNode.cs   | 13 +++---
 .../Flexible/Core/Nodes/QueryNode.cs            |  3 +-
 .../Flexible/Core/Nodes/QueryNodeImpl.cs        |  4 +-
 .../Flexible/Core/Nodes/SlopQueryNode.cs        |  4 +-
 .../Core/Nodes/TokenizedPhraseQueryNode.cs      |  4 +-
 .../Processors/QueryNodeProcessorPipeline.cs    | 31 ++++++-------
 .../Flexible/Core/QueryNodeException.cs         |  4 +-
 .../Flexible/Core/QueryNodeParseException.cs    | 18 ++++----
 .../Flexible/Core/QueryParserHelper.cs          | 18 ++++----
 .../Flexible/Core/Util/UnescapedCharSequence.cs |  1 +
 .../Standard/Builders/PhraseQueryNodeBuilder.cs |  2 +-
 .../Builders/PrefixWildcardQueryNodeBuilder.cs  |  2 +-
 .../Builders/StandardBooleanQueryNodeBuilder.cs |  2 +-
 .../Flexible/Standard/Config/FuzzyConfig.cs     |  8 ++--
 .../Flexible/Standard/Config/NumericConfig.cs   | 12 ++---
 .../Standard/Nodes/AbstractRangeQueryNode.cs    |  2 +-
 .../Flexible/Standard/Nodes/NumericQueryNode.cs |  4 +-
 .../Standard/Nodes/NumericRangeQueryNode.cs     |  2 +-
 .../Flexible/Standard/Nodes/RegexpQueryNode.cs  |  2 +-
 .../Standard/Nodes/StandardBooleanQueryNode.cs  |  2 +-
 .../Flexible/Standard/Parser/ParseException.cs  |  4 +-
 .../Standard/Parser/StandardSyntaxParser.cs     |  2 +-
 .../BooleanQuery2ModifierNodeProcessor.cs       | 10 ++---
 .../Processors/PhraseSlopQueryNodeProcessor.cs  |  2 +-
 .../Flexible/Standard/StandardQueryParser.cs    | 47 ++++++++++----------
 .../Spans/UniqueFieldQueryNodeProcessor.cs      |  2 +-
 40 files changed, 163 insertions(+), 164 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
index c21aadb..26c1989 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
@@ -80,7 +80,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
          * @param fieldName the field name
          * @param builder the builder to be associated
          */
-        public void SetBuilder(string fieldName, IQueryBuilder<TQuery> builder)
+        public virtual void SetBuilder(string fieldName, IQueryBuilder<TQuery> builder)
         {
 
             if (this.fieldNameBuilders == null)
@@ -97,7 +97,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
          * @param queryNodeClass the class
          * @param builder the builder to be associated
          */
-        public void SetBuilder(Type queryNodeClass,
+        public virtual void SetBuilder(Type queryNodeClass,
             IQueryBuilder<TQuery> builder)
         {
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
index 41bc528..be1d910 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
@@ -34,7 +34,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          * 
          * @return the value held by the given key
          */
-        public T Get<T>(ConfigurationKey<T> key)
+        public virtual T Get<T>(ConfigurationKey<T> key)
         {
 
             if (key == null)
@@ -55,7 +55,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          * @param key the key, cannot be <code>null</code>
          * @return true if there is a value set with the given key, otherwise false
          */
-        public bool has<T>(ConfigurationKey<T> key)
+        public virtual bool Has<T>(ConfigurationKey<T> key)
         {
 
             if (key == null)
@@ -74,7 +74,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          * @param key the key, cannot be <code>null</code>
          * @param value value to set
          */
-        public void Set<T>(ConfigurationKey<T> key, T value)
+        public virtual void Set<T>(ConfigurationKey<T> key, T value)
         {
 
             if (key == null)
@@ -101,7 +101,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          * @param key the key
          * @return true if the key and value was set and removed, otherwise false
          */
-        public bool Unset<T>(ConfigurationKey<T> key)
+        public virtual bool Unset<T>(ConfigurationKey<T> key)
         {
             if (key == null)
             {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
index 1633f53..33045ab 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
@@ -36,7 +36,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Config
          * 
          * @return the field name
          */
-        public string GetField()
+        public virtual string GetField()
         {
             return this.fieldName;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
index da91a96..29768ff 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
@@ -53,7 +53,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         }
 
-        public int GetMinimumMatchingElements()
+        public virtual int GetMinimumMatchingElements()
         {
             return this.minimumMatchingmElements;
         }
@@ -63,7 +63,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the field
          */
-        public string GetField()
+        public virtual string GetField()
         {
             return this.field;
         }
@@ -73,7 +73,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the field as a String
          */
-        public string GetFieldAsString()
+        public virtual string GetFieldAsString()
         {
             if (this.field == null)
                 return null;
@@ -85,7 +85,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * @param field
          *          - the field to set
          */
-        public void setField(string field)
+        public virtual void SetField(string field)
         {
             this.field = field;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
index de68cbd..6a3e21e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
@@ -15,9 +15,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     public class BooleanQueryNode : QueryNodeImpl
     {
         /**
-   * @param clauses
-   *          - the query nodes to be and'ed
-   */
+        * @param clauses
+        *          - the query nodes to be and'ed
+        */
         public BooleanQueryNode(IList<IQueryNode> clauses)
         {
             SetLeaf(false);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
index 0b27d31..b9a1b27 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
@@ -46,7 +46,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the single child which this node boosts
          */
-        public IQueryNode GetChild()
+        public virtual IQueryNode GetChild()
         {
             IList<IQueryNode> children = GetChildren();
 
@@ -64,7 +64,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the boost value
          */
-        public float GetValue()
+        public virtual float GetValue()
         {
             return this.value;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
index cad1c8a..3930b6a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
@@ -77,12 +77,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         }
 
-        protected string GetTermEscaped(IEscapeQuerySyntax escaper)
+        protected virtual string GetTermEscaped(IEscapeQuerySyntax escaper)
         {
             return escaper.Escape(this.text, CultureInfo.InvariantCulture /*Locale.getDefault()*/, EscapeQuerySyntax.Type.NORMAL).ToString();
         }
 
-        protected string GetTermEscapeQuoted(IEscapeQuerySyntax escaper)
+        protected virtual string GetTermEscapeQuoted(IEscapeQuerySyntax escaper)
         {
             return escaper.Escape(this.text, CultureInfo.InvariantCulture /*Locale.getDefault()*/, EscapeQuerySyntax.Type.STRING).ToString();
         }
@@ -110,7 +110,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
          * @return the term
          */
-        public string GetTextAsString()
+        public virtual string GetTextAsString()
         {
             if (this.text == null)
                 return null;
@@ -123,7 +123,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the field
          */
-        public string GetFieldAsString()
+        public virtual string GetFieldAsString()
         {
             if (this.field == null)
                 return null;
@@ -131,22 +131,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 return this.field.ToString();
         }
 
-        public int GetBegin()
+        public virtual int GetBegin()
         {
             return this.begin;
         }
 
-        public void SetBegin(int begin)
+        public virtual void SetBegin(int begin)
         {
             this.begin = begin;
         }
 
-        public int GetEnd()
+        public virtual int GetEnd()
         {
             return this.end;
         }
 
-        public void setEnd(int end)
+        public virtual void SetEnd(int end)
         {
             this.end = end;
         }
@@ -169,12 +169,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         //          this.field = field;
         //      }
 
-        public int GetPositionIncrement()
+        public virtual int GetPositionIncrement()
         {
             return this.positionIncrement;
         }
 
-        public void SetPositionIncrement(int pi)
+        public virtual void SetPositionIncrement(int pi)
         {
             this.positionIncrement = pi;
         }
@@ -224,7 +224,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         public virtual string Value
         {
             get { return Text.ToString(); }
-            set { Text = new StringCharSequenceWrapper(value); }
+            set { Text = value.ToCharSequence(); }
         }
 
         //public override string GetValue()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
index 8f64793..f80e4fb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
@@ -63,12 +63,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             SetLeaf(true);
         }
 
-        public void SetPrefixLength(int prefixLength)
+        public virtual void SetPrefixLength(int prefixLength)
         {
             this.prefixLength = prefixLength;
         }
 
-        public int GetPrefixLength()
+        public virtual int GetPrefixLength()
         {
             return this.prefixLength;
         }
@@ -93,7 +93,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
                 + "' term='" + this.text + "'/>";
         }
 
-        public void SetSimilarity(float similarity)
+        public virtual void SetSimilarity(float similarity)
         {
             this.similarity = similarity;
         }
@@ -111,7 +111,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
          * @return the similarity
          */
-        public float GetSimilarity()
+        public virtual float GetSimilarity()
         {
             return this.similarity;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
index 246b30c..9dcdbcb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
@@ -34,7 +34,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             Add(query);
         }
 
-        public IQueryNode GetChild()
+        public virtual IQueryNode GetChild()
         {
             return GetChildren()[0];
         }
@@ -62,7 +62,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return clone;
         }
 
-        public void setChild(IQueryNode child)
+        public virtual void SetChild(IQueryNode child)
         {
             List<IQueryNode> list = new List<IQueryNode>();
             list.Add(child);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
index 900f117..b4fb148 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
@@ -49,12 +49,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             this.modifier = mod;
         }
 
-        public IQueryNode GetChild()
+        public virtual IQueryNode GetChild()
         {
             return GetChildren()[0];
         }
 
-        public Modifier GetModifier()
+        public virtual Modifier GetModifier()
         {
             return this.modifier;
         }
@@ -103,7 +103,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return clone;
         }
 
-        public void setChild(IQueryNode child)
+        public virtual void SetChild(IQueryNode child)
         {
             List<IQueryNode> list = new List<IQueryNode>();
             list.Add(child);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
index d321df8..2152922 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
@@ -13,9 +13,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     /// </summary>
     public class NoTokenFoundQueryNode : DeletedQueryNode
     {
-        //public NoTokenFoundQueryNode()
-        //{
-        //}
+        public NoTokenFoundQueryNode()
+        {
+        }
 
 
         public override string ToQueryString(IEscapeQuerySyntax escaper)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
index fcae411..6be66a7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
@@ -59,7 +59,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
          * @return the schema
          */
-        public string GetSchema()
+        public virtual string GetSchema()
         {
             return this.schema;
         }
@@ -67,7 +67,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
          * @return the value
          */
-        public string GetValue()
+        public virtual string GetValue()
         {
             return this.value;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
index 264f9fd..4b893f1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
@@ -32,16 +32,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
    */
         public class QueryText : ICloneable
         {
-            internal string value = null;
+            private string value = null;
             /**
              * != null The term's begin position.
              */
-            internal int begin;
+            private int begin;
 
             /**
              * The term's end position.
              */
-            internal int end;
+            private int end;
 
             /**
              * @param value
@@ -72,25 +72,25 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             /**
              * @return the value
              */
-            public string GetValue()
+            public virtual string Value
             {
-                return value;
+                get { return value; }
             }
 
             /**
              * @return the begin
              */
-            public int GetBegin()
+            public virtual int Begin
             {
-                return begin;
+                get { return begin; }
             }
 
             /**
              * @return the end
              */
-            public int GetEnd()
+            public virtual int End
             {
-                return end;
+                get { return end; }
             }
 
             public override string ToString()
@@ -121,7 +121,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return QueryText List size
          */
-        public IList<QueryText> GetPathElements()
+        public virtual IList<QueryText> GetPathElements()
         {
             return values;
         }
@@ -129,7 +129,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
          * Returns the a List with all QueryText elements
          */
-        public void SetPathElements(IList<QueryText> elements)
+        public virtual void SetPathElements(IList<QueryText> elements)
         {
             this.values = elements;
         }
@@ -139,7 +139,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return QueryText List size
          */
-        public QueryText GetPathElement(int index)
+        public virtual QueryText GetPathElement(int index)
         {
             return values[index];
         }
@@ -149,9 +149,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the CharSequence for a specific QueryText element
          */
-        public string GetFirstPathElement()
+        public virtual string GetFirstPathElement()
         {
-            return values[0].value;
+            return values[0].Value;
         }
 
         /**
@@ -159,7 +159,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return a List QueryText element from position startIndex
          */
-        public IList<QueryText> GetPathElements(int startIndex)
+        public virtual IList<QueryText> GetPathElements(int startIndex)
         {
             List<PathQueryNode.QueryText> rValues = new List<PathQueryNode.QueryText>();
             for (int i = startIndex; i < this.values.Count; i++)
@@ -182,7 +182,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
             foreach (QueryText pathelement in values)
             {
-                path.Append("/").Append(pathelement.value);
+                path.Append("/").Append(pathelement.Value);
             }
             return path.ToString();
         }
@@ -195,7 +195,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
             foreach (QueryText pathelement in GetPathElements(1))
             {
-                string value = escaper.Escape(new StringCharSequenceWrapper(pathelement.value), 
+                string value = escaper.Escape(new StringCharSequenceWrapper(pathelement.Value), 
                     CultureInfo.InvariantCulture, EscapeQuerySyntax.Type.STRING).ToString();
                 path.Append("/\"").Append(value).Append("\"");
             }
@@ -207,7 +207,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         {
             QueryText text = this.values[0];
 
-            return "<path start='" + text.begin + "' end='" + text.end + "' path='"
+            return "<path start='" + text.Begin + "' end='" + text.End + "' path='"
                 + GetPathString() + "'/>";
         }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
index 63b19c1..a578691 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
@@ -33,12 +33,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             Add(query);
         }
 
-        public IQueryNode GetChild()
+        public virtual IQueryNode GetChild()
         {
             return GetChildren()[0];
         }
 
-        public int GetValue()
+        public virtual int GetValue()
         {
             return this.value;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
index da1bf0b..4bdb237 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
@@ -47,7 +47,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         //    };*/
         //        }
 
-        // LUCENENET TODO: Implement this on enum
         //    internal abstract string ToQueryString();
         //}
 
@@ -149,7 +148,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-        public ProximityQueryNode.Type GetProximityType()
+        public virtual ProximityQueryNode.Type GetProximityType()
         {
             return this.proximityType;
         }
@@ -222,7 +221,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
          * @return the distance
          */
-        public int GetDistance()
+        public virtual int GetDistance()
         {
             return this.distance;
         }
@@ -232,7 +231,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the field
          */
-        public string GetField()
+        public virtual string GetField()
         {
             return this.field;
         }
@@ -242,7 +241,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * 
          * @return the field
          */
-        public string GetFieldAsString()
+        public virtual string GetFieldAsString()
         {
             if (this.field == null)
                 return null;
@@ -254,7 +253,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
          * @param field
          *          the field to set
          */
-        public void SetField(string field)
+        public virtual void SetField(string field)
         {
             this.field = field;
         }
@@ -262,7 +261,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         /**
          * @return terms must be matched in the specified order
          */
-        public bool IsInOrder()
+        public virtual bool IsInOrder()
         {
             return this.inorder;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
index ad641eb..004611b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
@@ -19,8 +19,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser);
 
         /** for printing */
-        
-  //public override string ToString();
+        string ToString();
 
         /** get Children nodes */
         IList<IQueryNode> GetChildren();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
index 31186de..b22e95c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
@@ -202,7 +202,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             return this.parent;
         }
 
-        protected bool IsRoot()
+        protected virtual bool IsRoot()
         {
             return GetParent() == null;
         }
@@ -223,7 +223,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         // to figure out what is the default field, however, {@link
         // #toQueryString(org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax)}
         // should receive the default field value directly by parameter
-        protected bool IsDefaultField(string fld)
+        protected virtual bool IsDefaultField(string fld)
         {
             if (this.toQueryStringIgnoreFields)
                 return true;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
index 98fd5c1..daf2dbb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
@@ -43,12 +43,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             Add(query);
         }
 
-        public IQueryNode GetChild()
+        public virtual IQueryNode GetChild()
         {
             return GetChildren()[0];
         }
 
-        public int GetValue()
+        public virtual int GetValue()
         {
             return this.value;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
index 4cb5452..6a4d98e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
@@ -56,14 +56,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         public override IQueryNode CloneTree()
         {
             TokenizedPhraseQueryNode clone = (TokenizedPhraseQueryNode)base
-        .CloneTree();
+                .CloneTree();
 
             // nothing to do
 
             return clone;
         }
 
-        public string Field
+        public virtual string Field
         {
             get
             {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
index 7ffdd1e..a19c390 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
@@ -113,12 +113,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
          * @see List#add(int, Object)
          */
 
-        public virtual void Add(int index, IQueryNodeProcessor processor)
-        {
-            this.processors.Insert(index, processor);
-            processor.SetQueryConfigHandler(this.queryConfig);
+        //public virtual void Add(int index, IQueryNodeProcessor processor)
+        //{
+        //    this.processors.Insert(index, processor);
+        //    processor.SetQueryConfigHandler(this.queryConfig);
 
-        }
+        //}
 
         //      /**
         //       * @see List#addAll(Collection)
@@ -278,10 +278,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
          * @see List#remove(Object)
          */
 
-        public bool Remove(object o)
-        {
-            return this.processors.Remove(o as IQueryNodeProcessor);
-        }
+        //public virtual bool Remove(object o)
+        //{
+        //    return this.processors.Remove(o as IQueryNodeProcessor);
+        //}
 
         public virtual bool Remove(IQueryNodeProcessor o)
         {
@@ -352,12 +352,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
         //          return this.processors.size();
         //      }
 
-        public int Count
+        public virtual int Count
         {
             get { return this.processors.Count; }
         }
 
-        public bool IsReadOnly
+        public virtual bool IsReadOnly
         {
             get
             {
@@ -379,22 +379,23 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
             return this.processors.GetRange(index, count);
         }
 
-        public void Insert(int index, IQueryNodeProcessor item)
+        public virtual void Insert(int index, IQueryNodeProcessor item)
         {
             this.processors.Insert(index, item);
+            item.SetQueryConfigHandler(this.queryConfig);
         }
 
         void ICollection<IQueryNodeProcessor>.Add(IQueryNodeProcessor item)
         {
-            this.processors.Add(item);
+            this.Add(item);
         }
 
-        public bool Contains(IQueryNodeProcessor item)
+        public virtual bool Contains(IQueryNodeProcessor item)
         {
             return this.processors.Contains(item);
         }
 
-        public void CopyTo(IQueryNodeProcessor[] array, int arrayIndex)
+        public virtual void CopyTo(IQueryNodeProcessor[] array, int arrayIndex)
         {
             this.processors.CopyTo(array, arrayIndex);
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
index 881f738..1a6accd 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
@@ -56,12 +56,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
         }
 
 
-        public string GetLocalizedMessage()
+        public virtual string GetLocalizedMessage()
         {
             return GetLocalizedMessage(CultureInfo.InvariantCulture);
         }
 
-        public string GetLocalizedMessage(CultureInfo locale)
+        public virtual string GetLocalizedMessage(CultureInfo locale)
         {
             return this.message.GetLocalizedMessage(locale);
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
index c6cd651..b02fae1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
@@ -41,14 +41,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
         {
         }
 
-        public void SetQuery(string query)
+        public virtual void SetQuery(string query)
         {
             this.query = query;
             this.message = new MessageImpl(
                 QueryParserMessages.INVALID_SYNTAX_CANNOT_PARSE, query, "");
         }
 
-        public string GetQuery()
+        public virtual string GetQuery()
         {
             return this.query;
         }
@@ -57,17 +57,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @param errorToken
          *          the errorToken in the query
          */
-        protected void SetErrorToken(string errorToken)
+        protected virtual void SetErrorToken(string errorToken)
         {
             this.errorToken = errorToken;
         }
 
-        public string GetErrorToken()
+        public virtual string GetErrorToken()
         {
             return this.errorToken;
         }
 
-        public void SetNonLocalizedMessage(IMessage message)
+        public virtual void SetNonLocalizedMessage(IMessage message)
         {
             this.message = message;
         }
@@ -79,7 +79,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * 
          * @return line where the problem was found
          */
-        public int GetBeginLine()
+        public virtual int GetBeginLine()
         {
             return this.beginLine;
         }
@@ -91,7 +91,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * 
          * @return column of the first char where the problem was found
          */
-        public int GetBeginColumn()
+        public virtual int GetBeginColumn()
         {
             return this.beginColumn;
         }
@@ -100,7 +100,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @param beginLine
          *          the beginLine to set
          */
-        protected void SetBeginLine(int beginLine)
+        protected virtual void SetBeginLine(int beginLine)
         {
             this.beginLine = beginLine;
         }
@@ -109,7 +109,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @param beginColumn
          *          the beginColumn to set
          */
-        protected void SetBeginColumn(int beginColumn)
+        protected virtual void SetBeginColumn(int beginColumn)
         {
             this.beginColumn = beginColumn;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
index 8d60978..ff8f98a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
     /// <seealso cref="ISyntaxParser"/>
     /// <seealso cref="QueryBuilder"/>
     /// <seealso cref="QueryConfigHandler"/>
-    public class QueryParserHelper<TQuery> // Made this class generic so we can avoid the cast (to Query) on the Parse method
+    public class QueryParserHelper<TQuery> // LUCENENET: Made this class generic so we can avoid the cast (to Query) on the Parse method
     {
         private IQueryNodeProcessor processor;
 
@@ -78,7 +78,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see QueryNodeProcessor
          * @see #setQueryNodeProcessor(QueryNodeProcessor)
          */
-        public IQueryNodeProcessor GetQueryNodeProcessor()
+        public virtual IQueryNodeProcessor GetQueryNodeProcessor()
         {
             return processor;
         }
@@ -97,7 +97,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see #getQueryNodeProcessor()
          * @see QueryNodeProcessor
          */
-        public void SetQueryNodeProcessor(IQueryNodeProcessor processor)
+        public virtual void SetQueryNodeProcessor(IQueryNodeProcessor processor)
         {
             this.processor = processor;
             this.processor.SetQueryConfigHandler(GetQueryConfigHandler());
@@ -114,7 +114,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see #getSyntaxParser()
          * @see SyntaxParser
          */
-        public void SetSyntaxParser(ISyntaxParser syntaxParser)
+        public virtual void SetSyntaxParser(ISyntaxParser syntaxParser)
         {
 
             if (syntaxParser == null)
@@ -136,7 +136,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see #getQueryBuilder()
          * @see QueryBuilder
          */
-        public void SetQueryBuilder(IQueryBuilder<TQuery> queryBuilder)
+        public virtual void SetQueryBuilder(IQueryBuilder<TQuery> queryBuilder)
         {
 
             if (queryBuilder == null)
@@ -158,7 +158,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see QueryConfigHandler
          * @see #setQueryConfigHandler(QueryConfigHandler)
          */
-        public QueryConfigHandler GetQueryConfigHandler()
+        public virtual QueryConfigHandler GetQueryConfigHandler()
         {
             return config;
         }
@@ -173,7 +173,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see #setQueryBuilder(QueryBuilder)
          * @see QueryBuilder
          */
-        public IQueryBuilder<TQuery> GetQueryBuilder()
+        public virtual IQueryBuilder<TQuery> GetQueryBuilder()
         {
             return this.builder;
         }
@@ -188,7 +188,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see SyntaxParser
          * @see #setSyntaxParser(SyntaxParser)
          */
-        public ISyntaxParser GetSyntaxParser()
+        public virtual ISyntaxParser GetSyntaxParser()
         {
             return this.syntaxParser;
         }
@@ -205,7 +205,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see #getQueryConfigHandler()
          * @see QueryConfigHandler
          */
-        public void SetQueryConfigHandler(QueryConfigHandler config)
+        public virtual void SetQueryConfigHandler(QueryConfigHandler config)
         {
             this.config = config;
             IQueryNodeProcessor processor = GetQueryNodeProcessor();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
index ef074fa..c2c61a6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
@@ -46,6 +46,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
         /**
          * Create a non-escaped CharSequence
          */
+         // LUCENENET specific overload for text as string
         public UnescapedCharSequence(string text)
         {
             this.chars = new char[text.Length];

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
index 09229f6..15343cc 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
@@ -21,7 +21,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
         }
 
 
-        public Query Build(IQueryNode queryNode)
+        public virtual Query Build(IQueryNode queryNode)
         {
             TokenizedPhraseQueryNode phraseNode = (TokenizedPhraseQueryNode)queryNode;
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
index 69371fb..137c952 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
         }
 
 
-        public Query Build(IQueryNode queryNode)
+        public virtual Query Build(IQueryNode queryNode)
         {
 
             PrefixWildcardQueryNode wildcardNode = (PrefixWildcardQueryNode)queryNode;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
index 7d82b99..2c1031a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
@@ -34,7 +34,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
         {
             StandardBooleanQueryNode booleanNode = (StandardBooleanQueryNode)queryNode;
 
-            BooleanQuery bQuery = new BooleanQuery(booleanNode.IsDisableCoord);
+            BooleanQuery bQuery = new BooleanQuery(booleanNode.DisableCoord);
             IList<IQueryNode> children = booleanNode.GetChildren();
 
             if (children != null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
index 1077329..f5c8132 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
@@ -18,22 +18,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
         public FuzzyConfig() { }
 
-        public int GetPrefixLength()
+        public virtual int GetPrefixLength()
         {
             return prefixLength;
         }
 
-        public void SetPrefixLength(int prefixLength)
+        public virtual void SetPrefixLength(int prefixLength)
         {
             this.prefixLength = prefixLength;
         }
 
-        public float GetMinSimilarity()
+        public virtual float GetMinSimilarity()
         {
             return minSimilarity;
         }
 
-        public void SetMinSimilarity(float minSimilarity)
+        public virtual void SetMinSimilarity(float minSimilarity)
         {
             this.minSimilarity = minSimilarity;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
index b73ac0b..cf8a94d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
@@ -52,7 +52,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          * 
          * @see NumericRangeQuery#getPrecisionStep()
          */
-        public int GetPrecisionStep()
+        public virtual int GetPrecisionStep()
         {
             return precisionStep;
         }
@@ -65,7 +65,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          * 
          * @see NumericRangeQuery#getPrecisionStep()
          */
-        public void SetPrecisionStep(int precisionStep)
+        public virtual void SetPrecisionStep(int precisionStep)
         {
             this.precisionStep = precisionStep;
         }
@@ -77,7 +77,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          * @return the {@link NumberFormat} used to parse a {@link String} to
          *         {@link Number}
          */
-        public /*NumberFormat*/ string GetNumberFormat()
+        public virtual /*NumberFormat*/ string GetNumberFormat()
         {
             return format;
         }
@@ -87,7 +87,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          * 
          * @return the numeric type used to index the numeric values
          */
-        public NumericType GetType()
+        public virtual NumericType GetType()
         {
             return type;
         }
@@ -97,7 +97,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          * 
          * @param type the numeric type used to index the numeric values
          */
-        public void SetType(NumericType type)
+        public virtual void SetType(NumericType type)
         {
 
             //if (type == null)
@@ -117,7 +117,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          *          the {@link NumberFormat} used to parse a {@link String} to
          *          {@link Number}, cannot be <code>null</code>
          */
-        public void SetNumberFormat(/*NumberFormat*/ string format)
+        public virtual void SetNumberFormat(/*NumberFormat*/ string format)
         {
 
             if (format == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
index 85fa044..33c5fab 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
@@ -150,7 +150,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          * @see #isLowerInclusive()
          * @see #isUpperInclusive()
          */
-        public void SetBounds(T lower, T upper, bool lowerInclusive,
+        public virtual void SetBounds(T lower, T upper, bool lowerInclusive,
             bool upperInclusive)
         {
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
index 0375858..2a40158 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
@@ -98,7 +98,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          * 
          * @param format the {@link NumberFormat} used to convert the value to {@link String}
          */
-        public void SetNumberFormat(/*NumberFormat*/ string format)
+        public virtual void SetNumberFormat(/*NumberFormat*/ string format)
         {
             this.numberFormat = format;
         }
@@ -108,7 +108,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          * 
          * @return the {@link NumberFormat} used to convert the value to {@link String}
          */
-        public /*NumberFormat*/ string GetNumberFormat()
+        public virtual /*NumberFormat*/ string GetNumberFormat()
         {
             return this.numberFormat;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
index 11dbffc..9565a94 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
@@ -134,7 +134,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          * 
          * @return the {@link NumericConfig} associated with the lower and upper bounds
          */
-        public NumericConfig GetNumericConfig()
+        public virtual NumericConfig GetNumericConfig()
         {
             return this.numericConfig;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
index 58b38a0..a1e0d75 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
@@ -52,7 +52,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             this.text = text.SubSequence(begin, end);
         }
 
-        public BytesRef TextToBytesRef()
+        public virtual BytesRef TextToBytesRef()
         {
             return new BytesRef(text.ToString());
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
index de38d03..e746f8d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             this.disableCoord = disableCoord;
         }
 
-        public bool IsDisableCoord
+        public virtual bool DisableCoord
         {
             get { return this.disableCoord; }
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
index 9b0ad90..e9de2e5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
@@ -34,9 +34,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
          * "expectedTokenSequences", and "tokenImage" set.
          */
         public ParseException(Token currentTokenVal,
-           int[][] expectedTokenSequencesVal, string[] tokenImageVal)
+            int[][] expectedTokenSequencesVal, string[] tokenImageVal)
             : base(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, Initialize(
-            currentTokenVal, expectedTokenSequencesVal, tokenImageVal)))
+                currentTokenVal, expectedTokenSequencesVal, tokenImageVal)))
         {
             this.currentToken = currentTokenVal;
             this.expectedTokenSequences = expectedTokenSequencesVal;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
index 6324ca1..7507b9d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
@@ -1145,7 +1145,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         }
 
         /** Generate ParseException. */
-        public ParseException generateParseException()
+        public virtual ParseException generateParseException()
         {
             jj_expentries.Clear();
             bool[] la1tokens = new bool[34];

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
index 8b02976..6e986d7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
@@ -68,7 +68,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
         }
 
 
-        protected void ProcessChildren(IQueryNode queryTree)
+        protected virtual void ProcessChildren(IQueryNode queryTree)
         {
             IList<IQueryNode> children = queryTree.GetChildren();
             if (children != null && children.Count > 0)
@@ -113,7 +113,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             }
         }
 
-        protected IQueryNode PostProcessNode(IQueryNode node)
+        protected virtual IQueryNode PostProcessNode(IQueryNode node)
         {
             if (node.ContainsTag(TAG_BOOLEAN_ROOT))
             {
@@ -125,7 +125,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
         }
 
-        protected IQueryNode PreProcessNode(IQueryNode node)
+        protected virtual IQueryNode PreProcessNode(IQueryNode node)
         {
             IQueryNode parent = node.GetParent();
             if (node is BooleanQueryNode)
@@ -150,7 +150,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             return node;
         }
 
-        protected bool IsDefaultBooleanQueryNode(IQueryNode toTest)
+        protected virtual bool IsDefaultBooleanQueryNode(IQueryNode toTest)
         {
             return toTest != null && typeof(BooleanQueryNode).Equals(toTest.GetType());
         }
@@ -179,7 +179,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
         }
 
-        protected void TagModifierButDoNotOverride(IQueryNode node, Modifier mod)
+        protected virtual void TagModifierButDoNotOverride(IQueryNode node, Modifier mod)
         {
             if (node is ModifierQueryNode)
             {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
index 9755442..2aa76de 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
@@ -31,7 +31,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 SlopQueryNode phraseSlopNode = (SlopQueryNode)node;
 
                 if (!(phraseSlopNode.GetChild() is TokenizedPhraseQueryNode)
-          && !(phraseSlopNode.GetChild() is MultiPhraseQueryNode))
+                    && !(phraseSlopNode.GetChild() is MultiPhraseQueryNode))
                 {
                     return phraseSlopNode.GetChild();
                 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index 29e28f7..7d7d94e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -81,7 +81,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * Gets implicit operator setting, which will be either {@link Operator#AND}
          * or {@link Operator#OR}.
          */
-        public Operator? GetDefaultOperator()
+        public virtual Operator? GetDefaultOperator()
         {
             return GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);
         }
@@ -94,13 +94,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * In {@link Operator#AND} mode terms are considered to be in conjunction: the
          * above mentioned query is parsed as <code>capital AND of AND Hungary</code>
          */
-        public void SetDefaultOperator(Operator @operator)
+        public virtual void SetDefaultOperator(Operator @operator)
         {
             GetQueryConfigHandler().Set(ConfigurationKeys.DEFAULT_OPERATOR, @operator);
         }
 
 
-        public bool LowercaseExpandedTerms
+        public virtual bool LowercaseExpandedTerms
         {
             get
             {
@@ -148,7 +148,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         //}
 
-        public bool AllowLeadingWildcard
+        public virtual bool AllowLeadingWildcard
         {
             get
             {
@@ -176,7 +176,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         //    GetQueryConfigHandler().Set(ConfigurationKeys.ALLOW_LEADING_WILDCARD, allowLeadingWildcard);
         //}
 
-        public bool EnablePositionIncrements
+        public virtual bool EnablePositionIncrements
         {
             get
             {
@@ -224,7 +224,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         //}
 
-        public MultiTermQuery.RewriteMethod MultiTermRewriteMethod
+        public virtual MultiTermQuery.RewriteMethod MultiTermRewriteMethod
         {
             get
             {
@@ -267,7 +267,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @param fields the fields used to expand the query
          */
-        public void SetMultiFields(string[] fields)
+        public virtual void SetMultiFields(string[] fields)
         {
 
             if (fields == null)
@@ -285,12 +285,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @param fields the fields used to expand the query
          */
-        public void GetMultiFields(string[] fields)
+        public virtual void GetMultiFields(string[] fields)
         {
             GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_FIELDS);
         }
 
-        public int FuzzyPrefixLength
+        public virtual int FuzzyPrefixLength
         {
             get
             {
@@ -342,17 +342,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         //}
 
-        public void SetNumericConfigMap(IDictionary<string, NumericConfig> numericConfigMap)
+        public virtual void SetNumericConfigMap(IDictionary<string, NumericConfig> numericConfigMap)
         {
             GetQueryConfigHandler().Set(ConfigurationKeys.NUMERIC_CONFIG_MAP, numericConfigMap);
         }
 
-        public IDictionary<string, NumericConfig> GetNumericConfigMap()
+        public virtual IDictionary<string, NumericConfig> GetNumericConfigMap()
         {
             return GetQueryConfigHandler().Get(ConfigurationKeys.NUMERIC_CONFIG_MAP);
         }
 
-        public CultureInfo Locale
+        public virtual CultureInfo Locale
         {
             get
             {
@@ -382,7 +382,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         //    return GetQueryConfigHandler().Get(ConfigurationKeys.LOCALE);
         //}
 
-        public TimeZoneInfo TimeZone
+        public virtual TimeZoneInfo TimeZone
         {
             get
             {
@@ -412,7 +412,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * @deprecated renamed to {@link #setPhraseSlop(int)}
          */
         [Obsolete]
-        public void SetDefaultPhraseSlop(int defaultPhraseSlop)
+        public virtual void SetDefaultPhraseSlop(int defaultPhraseSlop)
         {
             GetQueryConfigHandler().Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop);
         }
@@ -427,7 +427,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         //    GetQueryConfigHandler().Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop);
         //}
 
-        public Analyzer Analyzer
+        public virtual Analyzer Analyzer
         {
             get
             {
@@ -498,14 +498,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         //    }
         //}
 
-        public int PhraseSlop
+        public virtual int PhraseSlop
         {
             get
             {
                 int? phraseSlop = GetQueryConfigHandler().Get(ConfigurationKeys.PHRASE_SLOP);
                 return phraseSlop.HasValue ? phraseSlop.Value : 0;
             }
-
             set // LUCENENET TODO: obsolete
             {
                 GetQueryConfigHandler().Set(ConfigurationKeys.PHRASE_SLOP, value);
@@ -531,7 +530,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         //    }
         //}
 
-        public float FuzzyMinSim
+        public virtual float FuzzyMinSim
         {
             get
             {
@@ -577,7 +576,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @param boosts a collection that maps a field to its boost 
          */
-        public void SetFieldsBoost(IDictionary<string, float?> boosts)
+        public virtual void SetFieldsBoost(IDictionary<string, float?> boosts)
         {
             GetQueryConfigHandler().Set(ConfigurationKeys.FIELD_BOOST_MAP, boosts);
         }
@@ -587,7 +586,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @return the field to boost map 
          */
-        public IDictionary<string, float?> GetFieldsBoost()
+        public virtual IDictionary<string, float?> GetFieldsBoost()
         {
             return GetQueryConfigHandler().Get(ConfigurationKeys.FIELD_BOOST_MAP);
         }
@@ -610,7 +609,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @return the default {@link Resolution}
          */
-        public DateTools.Resolution? GetDateResolution()
+        public virtual DateTools.Resolution? GetDateResolution()
         {
             return GetQueryConfigHandler().Get(ConfigurationKeys.DATE_RESOLUTION);
         }
@@ -623,7 +622,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * @deprecated this method was renamed to {@link #setDateResolutionMap(Map)} 
          */
         [Obsolete]
-        public void SetDateResolution(IDictionary<string, DateTools.Resolution?> dateRes)
+        public virtual void SetDateResolution(IDictionary<string, DateTools.Resolution?> dateRes)
         {
             SetDateResolutionMap(dateRes);
         }
@@ -633,7 +632,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @return the field to {@link Resolution} map
          */
-        public IDictionary<string, DateTools.Resolution?> GetDateResolutionMap()
+        public virtual IDictionary<string, DateTools.Resolution?> GetDateResolutionMap()
         {
             return GetQueryConfigHandler().Get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP);
         }
@@ -643,7 +642,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * 
          * @param dateRes a collection that maps a field to its {@link Resolution}
          */
-        public void SetDateResolutionMap(IDictionary<string, DateTools.Resolution?> dateRes)
+        public virtual void SetDateResolutionMap(IDictionary<string, DateTools.Resolution?> dateRes)
         {
             GetQueryConfigHandler().Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, dateRes);
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8076b1e7/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
index 38ad997..11230b8 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
@@ -42,7 +42,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
                         "A config handler is expected by the processor UniqueFieldQueryNodeProcessor!");
                 }
 
-                if (!queryConfig.has(SpansQueryConfigHandler.UNIQUE_FIELD))
+                if (!queryConfig.Has(SpansQueryConfigHandler.UNIQUE_FIELD))
                 {
                     throw new ArgumentException(
                         "UniqueFieldAttribute should be defined in the config handler!");


[38/58] lucenenet git commit: QueryParser.Flexible refactor: Made TimeZone into a public property of NumberDateFormat rather than a constructor parameter

Posted by ni...@apache.org.
QueryParser.Flexible refactor: Made TimeZone into a public property of NumberDateFormat rather than a constructor parameter


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

Branch: refs/heads/master
Commit: 07007472c5f1b1ad2601a361952e9eeadb063c6f
Parents: 70725ed
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Dec 5 20:10:32 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Dec 5 20:13:47 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Standard/Config/NumberDateFormat.cs         | 11 ++++++++---
 .../Flexible/Standard/TestNumericQueryParser.cs          |  5 ++++-
 2 files changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/07007472/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
index f1f1589..55f222e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
@@ -45,7 +45,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
         private readonly string dateFormat;
         private readonly DateFormat dateStyle;
         private readonly DateFormat timeStyle;
-        private readonly TimeZoneInfo timeZone;
+        private TimeZoneInfo timeZone = TimeZoneInfo.Local;
 
         /**
          * Constructs a {@link NumberDateFormat} object using the given {@link DateFormat}.
@@ -58,12 +58,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             this.dateFormat = dateFormat;
         }
 
-        public NumberDateFormat(DateFormat dateStyle, DateFormat timeStyle, CultureInfo locale, TimeZoneInfo timeZone)
+        public NumberDateFormat(DateFormat dateStyle, DateFormat timeStyle, CultureInfo locale)
             : base(locale)
         {
             this.dateStyle = dateStyle;
             this.timeStyle = timeStyle;
-            this.timeZone = timeZone;
+        }
+
+        public virtual TimeZoneInfo TimeZone
+        {
+            get { return this.timeZone; }
+            set { this.timeZone = value; }
         }
 
         public override string Format(double number)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/07007472/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index 8f1c4dc..3c1e220 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -110,7 +110,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 //dateFormat.applyPattern(dateFormat.toPattern() + " G s Z yyyy");
                 //dateFormat.setTimeZone(TIMEZONE);
 
-                DATE_FORMAT = new NumberDateFormat(DATE_STYLE, TIME_STYLE, LOCALE, TIMEZONE);
+                DATE_FORMAT = new NumberDateFormat(DATE_STYLE, TIME_STYLE, LOCALE)
+                {
+                    TimeZone = TIMEZONE
+                };
                 dateFormat = DATE_FORMAT.GetDateFormat();
 
                 do


[35/58] lucenenet git commit: QueryParser.Flexible refactor: Changed PathQueryNode.PathElements to property

Posted by ni...@apache.org.
QueryParser.Flexible refactor: Changed PathQueryNode.PathElements to property


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

Branch: refs/heads/master
Commit: 1d4a68577823c13589aaa5a70eb1128886263aae
Parents: 4de4c9a
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Dec 5 19:58:35 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Dec 5 20:13:46 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Nodes/PathQueryNode.cs        | 22 +++++++-------------
 1 file changed, 7 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1d4a6857/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
index 0ca1f72..794fff5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
@@ -131,22 +131,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-        /**
-         * Returns the a List with all QueryText elements
-         * 
-         * @return QueryText List size
-         */
-        public virtual IList<QueryText> GetPathElements()
-        {
-            return values;
-        }
-
-        /**
-         * Returns the a List with all QueryText elements
-         */
-        public virtual void SetPathElements(IList<QueryText> elements)
+        /// <summary>
+        /// Gets or Sets the a List with all QueryText elements
+        /// </summary>
+        /// <returns>QueryText List size</returns>
+        public virtual IList<QueryText> PathElements
         {
-            this.values = elements;
+            get { return values; }
+            set { this.values = value; }
         }
 
         /**


[40/58] lucenenet git commit: QueryParser.Flexible: Documentation comments

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
index e0d173e..c701b07 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
@@ -22,12 +22,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
     /// <summary>
     /// This listener listens for every field configuration request and assign a
-    /// {@link ConfigurationKeys#BOOST} to the
-    /// equivalent {@link FieldConfig} based on a defined map: fieldName -> boostValue stored in
-    /// {@link ConfigurationKeys#FIELD_BOOST_MAP}.
+    /// <see cref="ConfigurationKeys.BOOST"/> to the
+    /// equivalent <see cref="FieldConfig"/> based on a defined map: fieldName -> boostValue stored in
+    /// <see cref="ConfigurationKeys.FIELD_BOOST_MAP"/>.
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#FIELD_BOOST_MAP"/>
-    /// <seealso cref="ConfigurationKeys#BOOST"/>
+    /// <seealso cref="ConfigurationKeys.FIELD_BOOST_MAP"/>
+    /// <seealso cref="ConfigurationKeys.BOOST"/>
     /// <seealso cref="FieldConfig"/>
     /// <seealso cref="IFieldConfigListener"/>
     public class FieldBoostMapFCListener : IFieldConfigListener

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
index c276813..121b4f1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
@@ -23,9 +23,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
     /// <summary>
     /// This listener listens for every field configuration request and assign a
-    /// {@link ConfigurationKeys#DATE_RESOLUTION} to the equivalent {@link FieldConfig} based
-    /// on a defined map: fieldName -> {@link Resolution} stored in
-    /// {@link ConfigurationKeys#FIELD_DATE_RESOLUTION_MAP}.
+    /// <see cref="ConfigurationKeys.DATE_RESOLUTION"/> to the equivalent <see cref="FieldConfig"/> based
+    /// on a defined map: fieldName -> <see cref="DateTools.Resolution"/> stored in
+    /// <see cref="ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP"/>.
     /// </summary>
     /// <seealso cref="ConfigurationKeys#DATE_RESOLUTION"/>
     /// <seealso cref="ConfigurationKeys#FIELD_DATE_RESOLUTION_MAP"/>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
index 6d38037..4e879fd 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
@@ -20,7 +20,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
      */
 
     /// <summary>
-    /// Configuration parameters for {@link FuzzyQuery}s
+    /// Configuration parameters for <see cref="FuzzyQuery"/>s
     /// </summary>
     public class FuzzyConfig
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
index 55f222e..9d65a3b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
@@ -31,9 +31,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
     }
 
     /// <summary>
-    /// This {@link Format} parses {@link Long} into date strings and vice-versa. It
-    /// uses the given {@link DateFormat} to parse and format dates, but before, it
-    /// converts {@link Long} to {@link Date} objects or vice-versa.
+    /// This <see cref="NumberFormat"/> parses <see cref="long"/> into date strings and vice-versa. It
+    /// uses the given <paramref name="dateFormat"/> and <see cref="CultureInfo">locale</see> to parse and format dates, but before, it
+    /// converts <see cref="long"/> to <see cref="DateTime"/> objects or vice-versa.
+    /// <para/>
+    /// Note that the <see cref="long"/> value the dates are parsed into and out of represent the number of milliseconds
+    /// since January 1, 1970 0:00:00, also known as the "epoch".
     /// </summary>
     public class NumberDateFormat : NumberFormat
     {
@@ -47,17 +50,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
         private readonly DateFormat timeStyle;
         private TimeZoneInfo timeZone = TimeZoneInfo.Local;
 
-        /**
-         * Constructs a {@link NumberDateFormat} object using the given {@link DateFormat}.
-         * 
-         * @param dateFormat {@link DateFormat} used to parse and format dates
-         */
+        /// <summary>
+        /// Constructs a <see cref="NumberDateFormat"/> object using the given <paramref name="dateFormat"/>
+        /// and <paramref name="locale"/>.
+        /// </summary>
+        /// <param name="dateFormat">Date format used to parse and format dates</param>
+        /// <param name="locale"></param>
         public NumberDateFormat(string dateFormat, CultureInfo locale)
             : base(locale)
         {
             this.dateFormat = dateFormat;
         }
 
+        /// <summary>
+        /// Constructs a <see cref="NumberDateFormat"/> object using the given <paramref name="dateStyle"/>,
+        /// <paramref name="timeStyle"/>, and <paramref name="locale"/>.
+        /// </summary>
         public NumberDateFormat(DateFormat dateStyle, DateFormat timeStyle, CultureInfo locale)
             : base(locale)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
index 4f1fb39..a1f94f4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
@@ -23,10 +23,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
     /// <summary>
     /// This class holds the configuration used to parse numeric queries and create
-    /// {@link NumericRangeQuery}s.
+    /// <see cref="Search.NumericRangeQuery"/>s.
     /// </summary>
-    /// <seealso cref="NumericRangeQuery"/>
-    /// <seealso cref="NumberFormat"/>
+    /// <seealso cref="Search.NumericRangeQuery"/>
+    /// <seealso cref="Support.NumberFormat"/>
     public class NumericConfig
     {
         private int precisionStep;
@@ -35,21 +35,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
         private NumericType type;
 
-        /**
-         * Constructs a {@link NumericConfig} object.
-         * 
-         * @param precisionStep
-         *          the precision used to index the numeric values
-         * @param format
-         *          the {@link NumberFormat} used to parse a {@link String} to
-         *          {@link Number}
-         * @param type
-         *          the numeric type used to index the numeric values
-         * 
-         * @see NumericConfig#setPrecisionStep(int)
-         * @see NumericConfig#setNumberFormat(NumberFormat)
-         * @see #setType(org.apache.lucene.document.FieldType.NumericType)
-         */
+        /// <summary>
+        /// Constructs a <see cref="NumericConfig"/> object.
+        /// </summary>
+        /// <param name="precisionStep">the precision used to index the numeric values</param>
+        /// <param name="format">the <see cref="NumberFormat"/> used to parse a <see cref="string"/> to an <see cref="object"/> representing a .NET numeric type.</param>
+        /// <param name="type">the numeric type used to index the numeric values</param>
+        /// <seealso cref="NumericConfig.PrecisionStep"/>
+        /// <seealso cref="NumericConfig.NumberFormat"/>
+        /// <seealso cref="Type"/>
         public NumericConfig(int precisionStep, NumberFormat format,
             NumericType type)
         {
@@ -58,26 +52,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             Type = type;
         }
 
-        /**
-         * Gets or sets the precision used to index the numeric values
-         * 
-         * @return the precision used to index the numeric values
-         * 
-         * @see NumericRangeQuery#getPrecisionStep()
-         */
+        /// <summary>
+        /// Gets or sets the precision used to index the numeric values
+        /// </summary>
+        /// <seealso cref="Search.NumericRangeQuery{T}.PrecisionStep"/>
         public virtual int PrecisionStep
         {
             get { return precisionStep; }
             set { precisionStep = value; }
         }
 
-        /**
-         * Gets or Sets the {@link NumberFormat} used to parse a {@link String} to
-         * {@link Number}, cannot be <code>null</code>
-         * 
-         * @return the {@link NumberFormat} used to parse a {@link String} to
-         *         {@link Number}
-         */
+        /// <summary>
+        /// Gets or Sets the <seealso cref="Support.NumberFormat"/> used to parse a <see cref="string"/> to
+        /// <see cref="object"/> representing a .NET numeric type, cannot be <c>null</c>
+        /// </summary>
         public virtual NumberFormat NumberFormat
         {
             get { return format; }
@@ -92,11 +80,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             }
         }
 
-        /**
-         * Gets or Sets the numeric type used to index the numeric values
-         * 
-         * @return the numeric type used to index the numeric values
-         */
+        /// <summary>
+        /// Gets or Sets the numeric type used to index the numeric values
+        /// </summary>
         public virtual NumericType Type
         {
             get { return type; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
index 977c1ff..f17ce30 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
@@ -22,24 +22,23 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
      */
 
     /// <summary>
-    /// This listener is used to listen to {@link FieldConfig} requests in
-    /// {@link QueryConfigHandler} and add {@link ConfigurationKeys#NUMERIC_CONFIG}
-    /// based on the {@link ConfigurationKeys#NUMERIC_CONFIG_MAP} set in the
-    /// {@link QueryConfigHandler}.
+    /// This listener is used to listen to <see cref="FieldConfig"/> requests in
+    /// <see cref="QueryConfigHandler"/> and add <see cref="ConfigurationKeys.NUMERIC_CONFIG"/>
+    /// based on the <see cref="ConfigurationKeys.NUMERIC_CONFIG_MAP"/> set in the
+    /// <see cref="QueryConfigHandler"/>.
     /// </summary>
     /// <seealso cref="NumericConfig"/>
     /// <seealso cref="QueryConfigHandler"/>
-    /// <seealso cref="ConfigurationKeys#NUMERIC_CONFIG"/>
-    /// <seealso cref="ConfigurationKeys#NUMERIC_CONFIG_MAP"/>
+    /// <seealso cref="ConfigurationKeys.NUMERIC_CONFIG"/>
+    /// <seealso cref="ConfigurationKeys.NUMERIC_CONFIG_MAP"/>
     public class NumericFieldConfigListener : IFieldConfigListener
     {
         private readonly QueryConfigHandler config;
 
-        /**
-         * Construcs a {@link NumericFieldConfigListener} object using the given {@link QueryConfigHandler}.
-         * 
-         * @param config the {@link QueryConfigHandler} it will listen too
-         */
+        /// <summary>
+        /// Constructs a <see cref="NumericFieldConfigListener"/> object using the given <see cref="QueryConfigHandler"/>.
+        /// </summary>
+        /// <param name="config">the <see cref="QueryConfigHandler"/> it will listen too</param>
         public NumericFieldConfigListener(QueryConfigHandler config)
         {
             if (config == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
index 5c214cd..f526f36 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
@@ -29,11 +29,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 
     /// <summary>
     /// This query configuration handler is used for almost every processor defined
-    /// in the {@link StandardQueryNodeProcessorPipeline} processor pipeline. It holds
+    /// in the <see cref="Processors.StandardQueryNodeProcessorPipeline"/> processor pipeline. It holds
     /// configuration methods that reproduce the configuration methods that could be set on the old
     /// lucene 2.4 QueryParser class.
     /// </summary>
-    /// <seealso cref="StandardQueryNodeProcessorPipeline"/>
+    /// <seealso cref="Processors.StandardQueryNodeProcessorPipeline"/>
     public class StandardQueryConfigHandler : QueryConfigHandler
     {
         public StandardQueryConfigHandler()
@@ -57,9 +57,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
             Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, new HashMap<string, DateTools.Resolution?>());
         }
 
-        /**
-        * Boolean Operator: AND or OR
-        */
+        /// <summary>
+        /// Boolean Operator: AND or OR
+        /// </summary>
         public enum Operator
         {
             AND,
@@ -67,143 +67,112 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
         }
     }
 
-    /**
-   * Class holding keys for StandardQueryNodeProcessorPipeline options.
-   */
+    /// <summary>
+    /// Class holding keys for <see cref="Processors.StandardQueryNodeProcessorPipeline"/> options.
+    /// </summary>
     public sealed class ConfigurationKeys
     {
-        /**
-         * Key used to set whether position increments is enabled
-         * 
-         * @see StandardQueryParser#setEnablePositionIncrements(boolean)
-         * @see StandardQueryParser#getEnablePositionIncrements()
-         */
+        /// <summary>
+        /// Key used to set whether position increments is enabled
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.EnablePositionIncrements"/>
         public readonly static ConfigurationKey<bool?> ENABLE_POSITION_INCREMENTS = ConfigurationKey.NewInstance<bool?>();
 
-        /**
-         * Key used to set whether expanded terms should be lower-cased
-         * 
-         * @see StandardQueryParser#setLowercaseExpandedTerms(boolean)
-         * @see StandardQueryParser#getLowercaseExpandedTerms()
-         */
+        /// <summary>
+        /// Key used to set whether expanded terms should be lower-cased
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.LowercaseExpandedTerms"/>
         public readonly static ConfigurationKey<bool?> LOWERCASE_EXPANDED_TERMS = ConfigurationKey.NewInstance<bool?>();
 
-        /**
-         * Key used to set whether leading wildcards are supported
-         * 
-         * @see StandardQueryParser#setAllowLeadingWildcard(boolean)
-         * @see StandardQueryParser#getAllowLeadingWildcard()
-         */
+        /// <summary>
+        /// Key used to set whether leading wildcards are supported
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.AllowLeadingWildcard"/>
         public readonly static ConfigurationKey<bool?> ALLOW_LEADING_WILDCARD = ConfigurationKey.NewInstance<bool?>();
 
-        /**
-         * Key used to set the {@link Analyzer} used for terms found in the query
-         * 
-         * @see StandardQueryParser#setAnalyzer(Analyzer)
-         * @see StandardQueryParser#getAnalyzer()
-         */
+        /// <summary>
+        /// Key used to set the <see cref="Analyzer"/> used for terms found in the query
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.Analyzer"/>
         public readonly static ConfigurationKey<Analyzer> ANALYZER = ConfigurationKey.NewInstance<Analyzer>();
 
-        /**
-         * Key used to set the default boolean operator
-         * 
-         * @see StandardQueryParser#setDefaultOperator(org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.Operator)
-         * @see StandardQueryParser#getDefaultOperator()
-         */
+        /// <summary>
+        /// Key used to set the default boolean operator
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.DefaultOperator"/>
         public readonly static ConfigurationKey<Operator?> DEFAULT_OPERATOR = ConfigurationKey.NewInstance<Operator?>();
 
-        /**
-         * Key used to set the default phrase slop
-         * 
-         * @see StandardQueryParser#setPhraseSlop(int)
-         * @see StandardQueryParser#getPhraseSlop()
-         */
+        /// <summary>
+        /// Key used to set the default phrase slop
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.PhraseSlop"/>
         public readonly static ConfigurationKey<int?> PHRASE_SLOP = ConfigurationKey.NewInstance<int?>();
 
-        /**
-         * Key used to set the {@link Locale} used when parsing the query
-         * 
-         * @see StandardQueryParser#setLocale(Locale)
-         * @see StandardQueryParser#getLocale()
-         */
+        /// <summary>
+        ///  Key used to set the <see cref="CultureInfo">locale</see> used when parsing the query
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.Locale"/>
         public readonly static ConfigurationKey<CultureInfo> LOCALE = ConfigurationKey.NewInstance<CultureInfo>();
 
         public readonly static ConfigurationKey<TimeZoneInfo> TIMEZONE = ConfigurationKey.NewInstance<TimeZoneInfo>();
 
-        /**
-         * Key used to set the {@link RewriteMethod} used when creating queries
-         * 
-         * @see StandardQueryParser#setMultiTermRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod)
-         * @see StandardQueryParser#getMultiTermRewriteMethod()
-         */
+        /// <summary>
+        /// Key used to set the <see cref="MultiTermQuery.RewriteMethod"/> used when creating queries
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.MultiTermRewriteMethod"/> 
         public readonly static ConfigurationKey<MultiTermQuery.RewriteMethod> MULTI_TERM_REWRITE_METHOD = ConfigurationKey.NewInstance<MultiTermQuery.RewriteMethod>();
 
-        /**
-         * Key used to set the fields a query should be expanded to when the field
-         * is <code>null</code>
-         * 
-         * @see StandardQueryParser#setMultiFields(CharSequence[])
-         * @see StandardQueryParser#getMultiFields(CharSequence[])
-         */
+        /// <summary>
+        /// Key used to set the fields a query should be expanded to when the field
+        /// is <c>null</c>
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.SetMultiFields(string[])"/>
+        /// <seealso cref="StandardQueryParser.GetMultiFields()"/>
         public readonly static ConfigurationKey<string[]> MULTI_FIELDS = ConfigurationKey.NewInstance<string[]>();
 
-        /**
-         * Key used to set a field to boost map that is used to set the boost for each field
-         * 
-         * @see StandardQueryParser#setFieldsBoost(Map)
-         * @see StandardQueryParser#getFieldsBoost()
-         */
+        /// <summary>
+        /// Key used to set a field to boost map that is used to set the boost for each field
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.FieldsBoost"/>
         public readonly static ConfigurationKey<IDictionary<string, float?>> FIELD_BOOST_MAP = ConfigurationKey.NewInstance<IDictionary<string, float?>>();
 
-        /**
-         * Key used to set a field to {@link Resolution} map that is used
-         * to normalize each date field value.
-         * 
-         * @see StandardQueryParser#setDateResolutionMap(Map)
-         * @see StandardQueryParser#getDateResolutionMap()
-         */
+        /// <summary>
+        /// Key used to set a field to <see cref="DateTools.Resolution"/> map that is used
+        /// to normalize each date field value.
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.DateResolutionMap"/>
         public readonly static ConfigurationKey<IDictionary<string, DateTools.Resolution?>> FIELD_DATE_RESOLUTION_MAP = ConfigurationKey.NewInstance<IDictionary<string, DateTools.Resolution?>>();
 
-        /**
-         * Key used to set the {@link FuzzyConfig} used to create fuzzy queries.
-         * 
-         * @see StandardQueryParser#setFuzzyMinSim(float)
-         * @see StandardQueryParser#setFuzzyPrefixLength(int)
-         * @see StandardQueryParser#getFuzzyMinSim()
-         * @see StandardQueryParser#getFuzzyPrefixLength()
-         */
+        /// <summary>
+        /// Key used to set the <see cref="FuzzyConfig"/> used to create fuzzy queries.
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.FuzzyMinSim"/>
+        /// <seealso cref="StandardQueryParser.FuzzyPrefixLength"/>
         public readonly static ConfigurationKey<FuzzyConfig> FUZZY_CONFIG = ConfigurationKey.NewInstance<FuzzyConfig>();
 
-        /**
-         * Key used to set default {@link Resolution}.
-         * 
-         * @see StandardQueryParser#setDateResolution(org.apache.lucene.document.DateTools.Resolution)
-         * @see StandardQueryParser#getDateResolution()
-         */
+        /// <summary>
+        /// Key used to set default <see cref="DateTools.Resolution"/>.
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.SetDateResolution(DateTools.Resolution)"/>
+        /// <seealso cref="StandardQueryParser.DateResolution"/>
         public readonly static ConfigurationKey<DateTools.Resolution> DATE_RESOLUTION = ConfigurationKey.NewInstance<DateTools.Resolution>();
 
-        /**
-         * Key used to set the boost value in {@link FieldConfig} objects.
-         * 
-         * @see StandardQueryParser#setFieldsBoost(Map)
-         * @see StandardQueryParser#getFieldsBoost()
-         */
+        /// <summary>
+        /// Key used to set the boost value in <see cref="FieldConfig"/> objects.
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.FieldsBoost"/>
         public readonly static ConfigurationKey<float?> BOOST = ConfigurationKey.NewInstance<float?>();
 
-        /**
-         * Key used to set a field to its {@link NumericConfig}.
-         * 
-         * @see StandardQueryParser#setNumericConfigMap(Map)
-         * @see StandardQueryParser#getNumericConfigMap()
-         */
+        /// <summary>
+        /// Key used to set a field to its <see cref="NumericConfig"/>.
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.NumericConfigMap"/>
         public readonly static ConfigurationKey<NumericConfig> NUMERIC_CONFIG = ConfigurationKey.NewInstance<NumericConfig>();
 
-        /**
-         * Key used to set the {@link NumericConfig} in {@link FieldConfig} for numeric fields.
-         * 
-         * @see StandardQueryParser#setNumericConfigMap(Map)
-         * @see StandardQueryParser#getNumericConfigMap()
-         */
+        /// <summary>
+        /// Key used to set the <see cref="NumericConfig"/> in <see cref="FieldConfig"/> for numeric fields.
+        /// </summary>
+        /// <seealso cref="StandardQueryParser.NumericConfigMap"/>
         public readonly static ConfigurationKey<IDictionary<string, NumericConfig>> NUMERIC_CONFIG_MAP = ConfigurationKey.NewInstance<IDictionary<string, NumericConfig>>();
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
index e3170a4..b27b2ff 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
@@ -33,24 +33,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
         private bool lowerInclusive, upperInclusive;
 
-        /**
-         * Constructs an {@link AbstractRangeQueryNode}, it should be invoked only by
-         * its extenders.
-         */
+        /// <summary>
+        /// Constructs an <see cref="AbstractRangeQueryNode{T}"/>, it should be invoked only by
+        /// its extenders.
+        /// </summary>
         protected AbstractRangeQueryNode()
         {
             IsLeaf = false;
             Allocate();
         }
 
-        /**
-         * Gets or Sets the field associated with this node.
-         * 
-         * @return the field associated with this node
-         * 
-         * @see FieldableNode
-         */
-
+        /// <summary>
+        /// Gets or Sets the field associated with this node.
+        /// </summary>
+        /// <seealso cref="IFieldableNode"/>
         public virtual string Field
         {
             get
@@ -88,60 +84,55 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             }
         }
 
-        /**
-         * Returns the lower bound node.
-         * 
-         * @return the lower bound node.
-         */
+        /// <summary>
+        /// Gets the lower bound node.
+        /// </summary>
         public virtual IFieldableNode LowerBound
         {
             get { return (IFieldableNode)GetChildren()[0]; }
         }
 
-        /**
-         * Returns the upper bound node.
-         * 
-         * @return the upper bound node.
-         */
+        /// <summary>
+        /// Gets the upper bound node.
+        /// </summary>
         public virtual IFieldableNode UpperBound
         {
             get { return (IFieldableNode)GetChildren()[1]; }
         }
 
-        /**
-         * Returns whether the lower bound is inclusive or exclusive.
-         * 
-         * @return <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
-         */
-
+        /// <summary>
+        /// Gets whether the lower bound is inclusive or exclusive. 
+        /// </summary>
+        /// <remarks>
+        /// <c>true</c> if the lower bound is inclusive, otherwise, <c>false</c>
+        /// </remarks>
         public virtual bool IsLowerInclusive
         {
             get { return lowerInclusive; }
         }
 
-        /**
-         * Returns whether the upper bound is inclusive or exclusive.
-         * 
-         * @return <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
-         */
+        /// <summary>
+        /// Gets whether the upper bound is inclusive or exclusive.
+        /// </summary>
+        /// <remarks>
+        /// <c>true</c> if the upper bound is inclusive, otherwise, <c>false</c>
+        /// </remarks>
         public virtual bool IsUpperInclusive
         {
             get { return upperInclusive; }
         }
 
-        /**
-         * Sets the lower and upper bounds.
-         * 
-         * @param lower the lower bound, <code>null</code> if lower bound is open
-         * @param upper the upper bound, <code>null</code> if upper bound is open
-         * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
-         * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
-         * 
-         * @see #getLowerBound()
-         * @see #getUpperBound()
-         * @see #isLowerInclusive()
-         * @see #isUpperInclusive()
-         */
+        /// <summary>
+        /// Sets the lower and upper bounds.
+        /// </summary>
+        /// <param name="lower">the lower bound, <c>null</c> if lower bound is open</param>
+        /// <param name="upper">the upper bound, <c>null</c> if upper bound is open</param>
+        /// <param name="lowerInclusive"><c>true</c> if the lower bound is inclusive, otherwise, <c>false</c></param>
+        /// <param name="upperInclusive"><c>true</c> if the upper bound is inclusive, otherwise, <c>false</c></param>
+        /// <seealso cref="LowerBound"/>
+        /// <seealso cref="UpperBound"/>
+        /// <seealso cref="IsLowerInclusive"/>
+        /// <seealso cref="IsUpperInclusive"/>
         public virtual void SetBounds(T lower, T upper, bool lowerInclusive,
             bool upperInclusive)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
index b73a42f..c4a51cb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
@@ -20,9 +20,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
      */
 
     /// <summary>
-    /// A {@link BooleanModifierNode} has the same behaviour as
-    /// {@link ModifierQueryNode}, it only indicates that this modifier was added by
-    /// {@link GroupQueryNodeProcessor} and not by the user. 
+    /// A <see cref="BooleanModifierNode"/> has the same behaviour as
+    /// <see cref="ModifierQueryNode"/>, it only indicates that this modifier was added by
+    /// <see cref="Processors.GroupQueryNodeProcessor"/> and not by the user. 
     /// </summary>
     /// <seealso cref="ModifierQueryNode"/>
     public class BooleanModifierNode : ModifierQueryNode

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
index 704760b..9988a38 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
@@ -23,8 +23,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
      */
 
     /// <summary>
-    /// A {@link MultiPhraseQueryNode} indicates that its children should be used to
-    /// build a {@link MultiPhraseQuery} instead of {@link PhraseQuery}.
+    /// A <see cref="MultiPhraseQueryNode"/> indicates that its children should be used to
+    /// build a <see cref="Search.MultiPhraseQuery"/> instead of <see cref="Search.PhraseQuery"/>.
     /// </summary>
     public class MultiPhraseQueryNode : QueryNodeImpl, IFieldableNode
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
index 13c5c45..3ee9568 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
@@ -24,8 +24,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
     /// <summary>
     /// This query node represents a field query that holds a numeric value. It is
-    /// similar to {@link FieldQueryNode}, however the {@link #getValue()} returns a
-    /// {@link Number}.
+    /// similar to <see cref="FieldQueryNode"/>, however the <see cref="Value"/> returns an
+    /// <see cref="object"/> representing a .NET numeric type.
     /// </summary>
     /// <seealso cref="NumericConfig"/>
     public class NumericQueryNode : QueryNodeImpl, IFieldValuePairQueryNode<object> // LUCENENET TODO: Can we use Decimal??
@@ -36,15 +36,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
         private /*Number*/ object value;
 
-        /**
-         * Creates a {@link NumericQueryNode} object using the given field,
-         * {@link Number} value and {@link NumberFormat} used to convert the value to
-         * {@link String}.
-         * 
-         * @param field the field associated with this query node
-         * @param value the value hold by this node
-         * @param numberFormat the {@link NumberFormat} used to convert the value to {@link String}
-         */
+        /// <summary>
+        /// Creates a <see cref="NumericQueryNode"/> object using the given field,
+        /// <see cref="object"/> (representing a .NET numeric type) value and <see cref="Support.NumberFormat"/> used to convert the value to
+        /// <see cref="string"/>.
+        /// </summary>
+        /// <param name="field">the field associated with this query node</param>
+        /// <param name="value">the value hold by this node</param>
+        /// <param name="numberFormat">the <see cref="Support.NumberFormat"/> used to convert the value to <see cref="string"/></param>
         public NumericQueryNode(string field, /*Number*/ object value,
             NumberFormat numberFormat)
             : base()
@@ -55,33 +54,27 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 
         }
 
-        /**
-         * Gets or Sets the field associated with this node.
-         * 
-         * @return the field associated with this node
-         */
-
+        /// <summary>
+        /// Gets or Sets the field associated with this node.
+        /// </summary>
         public virtual string Field
         {
             get { return this.field; }
             set { this.field = value; }
         }
 
-        /**
-         * This method is used to get the value converted to {@link String} and
-         * escaped using the given {@link EscapeQuerySyntax}.
-         * 
-         * @param escaper the {@link EscapeQuerySyntax} used to escape the value {@link String}
-         * 
-         * @return the value converte to {@link String} and escaped
-         */
+        /// <summary>
+        /// This method is used to get the value converted to <see cref="string"/> and
+        /// escaped using the given <see cref="IEscapeQuerySyntax"/.
+        /// </summary>
+        /// <param name="escaper">The <see cref="IEscapeQuerySyntax"/> used to escape the value <see cref="string"/></param>
+        /// <returns>The value converted to <see cref="string"/> and escaped</returns>
         protected string GetTermEscaped(IEscapeQuerySyntax escaper)
         {
             return escaper.Escape(numberFormat.Format(this.value),
                 CultureInfo.CurrentCulture, EscapeQuerySyntax.Type.NORMAL);
         }
 
-
         public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
         {
             if (IsDefaultField(this.field))
@@ -94,22 +87,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             }
         }
 
-        /**
-         * Gets or Sets the {@link NumberFormat} used to convert the value to {@link String}.
-         * 
-         * @return the {@link NumberFormat} used to convert the value to {@link String}
-         */
+        /// <summary>
+        /// Gets or Sets the <see cref="Support.NumberFormat"/> used to convert the value to <see cref="string"/>.
+        /// </summary>
         public virtual NumberFormat NumberFormat
         {
             get { return this.numberFormat; }
             set { this.numberFormat = value; }
         }
 
-        /**
-         * Gets or Sets the numeric value as {@link Number}.
-         * 
-         * @return the numeric value
-         */
+        /// <summary>
+        /// Gets or Sets the numeric value as <see cref="object"/> representing a .NET numeric type.
+        /// </summary>
         public virtual object Value
         {
             get { return value; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
index 4739567..ccdfa2c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
@@ -26,8 +26,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
      */
 
     /// <summary>
-    /// This query node represents a range query composed by {@link NumericQueryNode}
-    /// bounds, which means the bound values are {@link Number}s.
+    /// This query node represents a range query composed by <see cref="NumericQueryNode"/>
+    /// bounds, which means the bound values are <see cref="object"/>s representing a .NET numeric type.
     /// </summary>
     /// <seealso cref="NumericQueryNode"/>
     /// <seealso cref="AbstractRangeQueryNode{T}"/>
@@ -35,18 +35,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
     {
         public NumericConfig numericConfig;
 
-        /**
-       * Constructs a {@link NumericRangeQueryNode} object using the given
-       * {@link NumericQueryNode} as its bounds and {@link NumericConfig}.
-       * 
-       * @param lower the lower bound
-       * @param upper the upper bound
-       * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
-       * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
-       * @param numericConfig the {@link NumericConfig} that represents associated with the upper and lower bounds
-       * 
-       * @see #setBounds(NumericQueryNode, NumericQueryNode, boolean, boolean, NumericConfig)
-       */
+        /// <summary>
+        /// Constructs a <see cref="NumericRangeQueryNode"/> object using the given
+        /// <see cref="NumericQueryNode"/> as its bounds and <see cref="Config.NumericConfig"/>.
+        /// </summary>
+        /// <param name="lower">the lower bound</param>
+        /// <param name="upper">the upper bound</param>
+        /// <param name="lowerInclusive"><c>true</c> if the lower bound is inclusive, otherwise, <c>false</c></param>
+        /// <param name="upperInclusive"><c>true</c> if the upper bound is inclusive, otherwise, <c>false</c></param>
+        /// <param name="numericConfig">the <see cref="Config.NumericConfig"/> that represents associated with the upper and lower bounds</param>
+        /// <seealso cref="SetBounds(NumericQueryNode, NumericQueryNode, bool, bool, NumericConfig)"/>
         public NumericRangeQueryNode(NumericQueryNode lower, NumericQueryNode upper,
             bool lowerInclusive, bool upperInclusive, NumericConfig numericConfig)
         {
@@ -80,17 +78,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             }
         }
 
-        /**
-         * Sets the upper and lower bounds of this range query node and the
-         * {@link NumericConfig} associated with these bounds.
-         * 
-         * @param lower the lower bound
-         * @param upper the upper bound
-         * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
-         * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
-         * @param numericConfig the {@link NumericConfig} that represents associated with the upper and lower bounds
-         * 
-         */
+        /// <summary>
+        /// Sets the upper and lower bounds of this range query node and the
+        /// <see cref="Config.NumericConfig"/> associated with these bounds.
+        /// </summary>
+        /// <param name="lower">the lower bound</param>
+        /// <param name="upper">the upper bound</param>
+        /// <param name="lowerInclusive"><c>true</c> if the lower bound is inclusive, otherwise, <c>false</c></param>
+        /// <param name="upperInclusive"><c>true</c> if the upper bound is inclusive, otherwise, <c>false</c></param>
+        /// <param name="numericConfig">the <see cref="Config.NumericConfig"/> that represents associated with the upper and lower bounds</param>
         public virtual void SetBounds(NumericQueryNode lower, NumericQueryNode upper,
             bool lowerInclusive, bool upperInclusive, NumericConfig numericConfig)
         {
@@ -140,11 +136,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
             this.numericConfig = numericConfig;
         }
 
-        /**
-         * Returns the {@link NumericConfig} associated with the lower and upper bounds.
-         * 
-         * @return the {@link NumericConfig} associated with the lower and upper bounds
-         */
+        /// <summary>
+        /// Gets the <see cref="Config.NumericConfig"/> associated with the lower and upper bounds.
+        /// </summary>
         public virtual NumericConfig NumericConfig
         {
             get { return this.numericConfig; }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
index 4610da9..0348f34 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs
@@ -21,23 +21,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
      */
 
     /// <summary>
-    /// A {@link PrefixWildcardQueryNode} represents wildcardquery that matches abc*
+    /// A <see cref="PrefixWildcardQueryNode"/> represents wildcardquery that matches abc*
     /// or *. This does not apply to phrases, this is a special case on the original
     /// lucene parser. TODO: refactor the code to remove this special case from the
     /// parser. and probably do it on a Processor
     /// </summary>
     public class PrefixWildcardQueryNode : WildcardQueryNode
     {
-        /**
-        * @param field
-        *          - field name
-        * @param text
-        *          - value including the wildcard
-        * @param begin
-        *          - position in the query string
-        * @param end
-        *          - position in the query string
-        */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value including the wildcard</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
         // LUCENENET specific overload for passing text as string
         public PrefixWildcardQueryNode(string field, string text,
             int begin, int end)
@@ -45,16 +42,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         {
         }
 
-        /**
-        * @param field
-        *          - field name
-        * @param text
-        *          - value including the wildcard
-        * @param begin
-        *          - position in the query string
-        * @param end
-        *          - position in the query string
-        */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value including the wildcard</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
         public PrefixWildcardQueryNode(string field, ICharSequence text,
             int begin, int end)
             : base(field, text, begin, end)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
index 33de8b7..647cfa8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/RegexpQueryNode.cs
@@ -23,40 +23,34 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
      */
 
     /// <summary>
-    /// A {@link RegexpQueryNode} represents {@link RegexpQuery} query Examples: /[a-z]|[0-9]/
+    /// A <see cref="RegexpQueryNode"/> represents <see cref="Search.RegexpQuery"/> query Examples: /[a-z]|[0-9]/
     /// </summary>
     public class RegexpQueryNode : QueryNodeImpl, ITextableQueryNode, IFieldableNode
     {
         private ICharSequence text;
         private string field;
 
-        /**
-         * @param field
-         *          - field name
-         * @param text
-         *          - value that contains a regular expression
-         * @param begin
-         *          - position in the query string
-         * @param end
-         *          - position in the query string
-         */
-         // LUCENENET specific overload for passing text as string
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value that contains a regular expression</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
+        // LUCENENET specific overload for passing text as string
         public RegexpQueryNode(string field, string text, int begin,
             int end)
             : this(field, new StringCharSequenceWrapper(text), begin, end)
         {
         }
 
-        /**
-         * @param field
-         *          - field name
-         * @param text
-         *          - value that contains a regular expression
-         * @param begin
-         *          - position in the query string
-         * @param end
-         *          - position in the query string
-         */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value that contains a regular expression</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
         public RegexpQueryNode(string field, ICharSequence text, int begin,
             int end)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
index e629a28..4638158 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/StandardBooleanQueryNode.cs
@@ -21,12 +21,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
      */
 
     /// <summary>
-    /// A {@link StandardBooleanQueryNode} has the same behavior as
-    /// {@link BooleanQueryNode}. It only indicates if the coord should be enabled or
+    /// A <see cref="StandardBooleanQueryNode"/> has the same behavior as
+    /// <see cref="BooleanQueryNode"/>. It only indicates if the coord should be enabled or
     /// not for this boolean query. 
     /// </summary>
-    /// <seealso cref="Similarity#coord(int, int)"/>
-    /// <seealso cref="BooleanQuery"/>
+    /// <seealso cref="Search.Similarities.Similarity.Coord(int, int)"/>
+    /// <seealso cref="Search.BooleanQuery"/>
     public class StandardBooleanQueryNode : BooleanQueryNode
     {
         private bool disableCoord;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
index 064b9f7..0e99d6a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/TermRangeQueryNode.cs
@@ -20,22 +20,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
      */
 
     /// <summary>
-    /// This query node represents a range query composed by {@link FieldQueryNode}
+    /// This query node represents a range query composed by <see cref="FieldQueryNode"/>
     /// bounds, which means the bound values are strings.
     /// </summary>
     /// <seealso cref="FieldQueryNode"/>
     /// <seealso cref="AbstractRangeQueryNode{T}"/>
     public class TermRangeQueryNode : AbstractRangeQueryNode<FieldQueryNode>
     {
-        /**
-   * Constructs a {@link TermRangeQueryNode} object using the given
-   * {@link FieldQueryNode} as its bounds.
-   * 
-   * @param lower the lower bound
-   * @param upper the upper bound
-   * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code>
-   * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code>
-   */
+        /// <summary>
+        /// Constructs a <see cref="TermRangeQueryNode"/> object using the given
+        /// <see cref="FieldQueryNode"/> as its bounds.
+        /// </summary>
+        /// <param name="lower">the lower bound</param>
+        /// <param name="upper">the upper bound</param>
+        /// <param name="lowerInclusive"><c>true</c> if the lower bound is inclusive, otherwise, <c>false</c></param>
+        /// <param name="upperInclusive"><c>true</c> if the upper bound is inclusive, otherwise, <c>false</c></param>
         public TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper,
             bool lowerInclusive, bool upperInclusive)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
index 80352da..1228b02 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/WildcardQueryNode.cs
@@ -22,21 +22,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
      */
 
     /// <summary>
-    /// A {@link WildcardQueryNode} represents wildcard query This does not apply to
+    /// A <see cref="WildcardQueryNode"/> represents wildcard query This does not apply to
     /// phrases. Examples: a*b*c Fl?w? m?ke*g
     /// </summary>
     public class WildcardQueryNode : FieldQueryNode
     {
-        /**
-        * @param field
-        *          - field name
-        * @param text
-        *          - value that contains one or more wild card characters (? or *)
-        * @param begin
-        *          - position in the query string
-        * @param end
-        *          - position in the query string
-        */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value that contains one or more wild card characters (? or *)</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
         // LUCENENET specific overload for passing text as string
         public WildcardQueryNode(string field, string text, int begin,
             int end)
@@ -44,16 +41,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         {
         }
 
-        /**
-        * @param field
-        *          - field name
-        * @param text
-        *          - value that contains one or more wild card characters (? or *)
-        * @param begin
-        *          - position in the query string
-        * @param end
-        *          - position in the query string
-        */
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="field">field name</param>
+        /// <param name="text">value that contains one or more wild card characters (? or *)</param>
+        /// <param name="begin">position in the query string</param>
+        /// <param name="end">position in the query string</param>
         public WildcardQueryNode(string field, ICharSequence text, int begin,
             int end)
             : base(field, text, begin, end)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
index ca47c8c..f4c15d6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
@@ -26,104 +26,104 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
     /// interface is used in the TokenManager implementation generated by
     /// JavaCCParser.
     /// 
-    /// All the methods except backup can be implemented in any fashion. backup
+    /// All the methods except <see cref="BackUp(int)"/> can be implemented in any fashion. <see cref="BackUp(int)"/>
     /// needs to be implemented correctly for the correct operation of the lexer.
     /// Rest of the methods are all used to get information like line number,
-    /// column number and the String that constitutes a token and are not used
+    /// column number and the string that constitutes a token and are not used
     /// by the lexer. Hence their implementation won't affect the generated lexer's
     /// operation.
     /// </summary>
     public interface ICharStream
     {
-        /**
-        * Returns the next character from the selected input.  The method
-        * of selecting the input is the responsibility of the class
-        * implementing this interface.  Can throw any java.io.IOException.
-        */
+        /// <summary>
+        /// Returns the next character from the selected input.  The method
+        /// of selecting the input is the responsibility of the class
+        /// implementing this interface. Can throw any <see cref="System.IO.IOException"/>.
+        /// </summary>
+        /// <returns>the next character from the selected input.</returns>
         char ReadChar();
 
+        /// <summary>
+        /// Gets the column position of the character last read.
+        /// </summary>
+        /// <seealso cref="EndColumn"/>
         [Obsolete]
-        /**
-         * Returns the column position of the character last read.
-         * @deprecated
-         * @see #getEndColumn
-         */
         int Column { get; }
 
+        /// <summary>
+        /// Gets the line number of the character last read.
+        /// </summary>
+        /// <seealso cref="EndLine"/>
         [Obsolete]
-        /**
-         * Returns the line number of the character last read.
-         * @deprecated
-         * @see #getEndLine
-         */
         int Line { get; }
 
-        /**
-         * Returns the column number of the last character for current token (being
-         * matched after the last call to BeginTOken).
-         */
+        /// <summary>
+        /// Returns the column number of the last character for current token (being
+        /// matched after the last call to BeginTOken).
+        /// </summary>
         int EndColumn { get; }
 
-        /**
-         * Returns the line number of the last character for current token (being
-         * matched after the last call to BeginTOken).
-         */
+        /// <summary>
+        /// Returns the line number of the last character for current token (being
+        /// matched after the last call to BeginTOken).
+        /// </summary>
         int EndLine { get; }
 
-        /**
-         * Returns the column number of the first character for current token (being
-         * matched after the last call to BeginTOken).
-         */
+        /// <summary>
+        /// Returns the column number of the first character for current token (being
+        /// matched after the last call to BeginTOken).
+        /// </summary>
         int BeginColumn { get; }
 
-        /**
-         * Returns the line number of the first character for current token (being
-         * matched after the last call to BeginTOken).
-         */
+        /// <summary>
+        /// Returns the line number of the first character for current token (being
+        /// matched after the last call to BeginTOken).
+        /// </summary>
         int BeginLine { get; }
 
-        /**
-         * Backs up the input stream by amount steps. Lexer calls this method if it
-         * had already read some characters, but could not use them to match a
-         * (longer) token. So, they will be used again as the prefix of the next
-         * token and it is the implemetation's responsibility to do this right.
-         */
+        /// <summary>
+        /// Backs up the input stream by amount steps. Lexer calls this method if it
+        /// had already read some characters, but could not use them to match a
+        /// (longer) token. So, they will be used again as the prefix of the next
+        /// token and it is the implemetation's responsibility to do this right.
+        /// </summary>
         void BackUp(int amount);
 
-        /**
-         * Returns the next character that marks the beginning of the next token.
-         * All characters must remain in the buffer between two successive calls
-         * to this method to implement backup correctly.
-         */
+        /// <summary>
+        /// Returns the next character that marks the beginning of the next token.
+        /// All characters must remain in the buffer between two successive calls
+        /// to this method to implement backup correctly.
+        /// </summary>
         char BeginToken();
 
-        /**
-         * Returns a string made up of characters from the marked token beginning
-         * to the current buffer position. Implementations have the choice of returning
-         * anything that they want to. For example, for efficiency, one might decide
-         * to just return null, which is a valid implementation.
-         */
+        /// <summary>
+        /// Returns a string made up of characters from the marked token beginning
+        /// to the current buffer position. Implementations have the choice of returning
+        /// anything that they want to. For example, for efficiency, one might decide
+        /// to just return null, which is a valid implementation.
+        /// </summary>
         string GetImage();
 
-        /**
-         * Returns an array of characters that make up the suffix of length 'len' for
-         * the currently matched token. This is used to build up the matched string
-         * for use in actions in the case of MORE. A simple and inefficient
-         * implementation of this is as follows :
-         *
-         *   {
-         *      String t = GetImage();
-         *      return t.substring(t.length() - len, t.length()).toCharArray();
-         *   }
-         */
+        /// <summary>
+        /// Returns an array of characters that make up the suffix of length 'len' for
+        /// the currently matched token. This is used to build up the matched string
+        /// for use in actions in the case of MORE. A simple and inefficient
+        /// implementation of this is as follows :
+        /// <code>
+        /// {
+        ///     string t = GetImage();
+        ///     return t.Substring(t.Length - len, t.Length - (t.Length - len)).ToCharArray();
+        /// }
+        /// </code>
+        /// </summary>
         char[] GetSuffix(int len);
 
-        /**
-         * The lexer calls this function to indicate that it is done with the stream
-         * and hence implementations can free any resources held by this class.
-         * Again, the body of this function can be just empty and it will not
-         * affect the lexer's operation.
-         */
+        /// <summary>
+        /// The lexer calls this function to indicate that it is done with the stream
+        /// and hence implementations can free any resources held by this class.
+        /// Again, the body of this function can be just empty and it will not
+        /// affect the lexer's operation.
+        /// </summary>
         void Done();
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
index 8f5d074..6785ae0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
@@ -27,7 +27,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
      */
 
     /// <summary>
-    /// Implementation of {@link EscapeQuerySyntax} for the standard lucene
+    /// Implementation of <see cref="IEscapeQuerySyntax"/> for the standard lucene
     /// syntax.
     /// </summary>
     public class EscapeQuerySyntaxImpl : IEscapeQuerySyntax
@@ -107,17 +107,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return term;
         }
 
-        /**
-         * replace with ignore case
-         * 
-         * @param string
-         *          string to get replaced
-         * @param sequence1
-         *          the old character sequence in lowercase
-         * @param escapeChar
-         *          the new character to prefix sequence1 in return string.
-         * @return the new String
-         */
+        /// <summary>
+        /// replace with ignore case
+        /// </summary>
+        /// <param name="string">string to get replaced</param>
+        /// <param name="sequence1">the old character sequence in lowercase</param>
+        /// <param name="escapeChar">the new character to prefix sequence1 in return string.</param>
+        /// <param name="locale"></param>
+        /// <returns>the new <see cref="ICharSequence"/></returns>
         private static ICharSequence ReplaceIgnoreCase(ICharSequence @string,
             string sequence1, string escapeChar, CultureInfo locale)
         {
@@ -183,15 +180,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return result.ToString().ToCharSequence();
         }
 
-        /**
-         * escape all tokens that are part of the parser syntax on a given string
-         * 
-         * @param str
-         *          string to get replaced
-         * @param locale
-         *          locale to be used when performing string compares
-         * @return the new String
-         */
+        /// <summary>
+        /// escape all tokens that are part of the parser syntax on a given string
+        /// </summary>
+        /// <param name="str">string to get replaced</param>
+        /// <param name="locale">locale to be used when performing string compares</param>
+        /// <returns>the new <see cref="ICharSequence"/></returns>
         private static ICharSequence EscapeWhiteChar(ICharSequence str,
             CultureInfo locale)
         {
@@ -245,14 +239,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             }
         }
 
-        /**
-         * Returns a String where the escape char has been removed, or kept only once
-         * if there was a double escape.
-         * 
-         * Supports escaped unicode characters, e. g. translates <code>A</code> to
-         * <code>A</code>.
-         * 
-         */
+        /// <summary>
+        /// Returns a string where the escape char has been removed, or kept only once
+        /// if there was a double escape.
+        /// <para/>
+        /// Supports escaped unicode characters, e. g. translates <c>A</c> to
+        /// <c>A</c>.
+        /// </summary>
         public static UnescapedCharSequence DiscardEscapeChar(string input)
         {
             // Create char array to hold unescaped char sequence
@@ -334,7 +327,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return new UnescapedCharSequence(output, wasEscaped, 0, length);
         }
 
-        /** Returns the numeric value of the hexadecimal character */
+        /// <summary>
+        /// Returns the numeric value of the hexadecimal character
+        /// </summary>
         private static int HexToInt(char c)
         {
             if ('0' <= c && c <= '9')

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
index 8307a29..8538374 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
@@ -22,8 +22,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
     /// <summary>
     /// An efficient implementation of JavaCC's CharStream interface.  <p>Note that
     /// this does not do line-number counting, but instead keeps track of the
-    /// character position of the token in the input, as required by Lucene's {@link
-    /// org.apache.lucene.analysis.Token} API. 
+    /// character position of the token in the input, as required by Lucene's
+    /// <see cref="Token"/> API. 
     /// </summary>
     public sealed class FastCharStream : ICharStream
     {
@@ -37,7 +37,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 
         TextReader input;            // source of chars
 
-        /** Constructs from a Reader. */
+        /// <summary>
+        /// Constructs from a <see cref="TextReader"/>.
+        /// </summary>
         public FastCharStream(TextReader r)
         {
             input = r;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
index 8959255..f1b4ea9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
@@ -35,12 +35,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
     [Serializable]
     public class ParseException : QueryNodeParseException
     {
-        /**
-         * This constructor is used by the method "generateParseException"
-         * in the generated parser.  Calling this constructor generates
-         * a new object of this type with the fields "currentToken",
-         * "expectedTokenSequences", and "tokenImage" set.
-         */
+        /// <summary>
+        /// This constructor is used by the method "generateParseException"
+        /// in the generated parser.  Calling this constructor generates
+        /// a new object of this type with the fields "currentToken",
+        /// "expectedTokenSequences", and "tokenImage" set.
+        /// </summary>
         public ParseException(Token currentTokenVal,
             int[][] expectedTokenSequencesVal, string[] tokenImageVal)
             : base(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, Initialize(
@@ -51,54 +51,60 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             this.tokenImage = tokenImageVal;
         }
 
-        /**
-         * The following constructors are for use by you for whatever
-         * purpose you can think of.  Constructing the exception in this
-         * manner makes the exception behave in the normal way - i.e., as
-         * documented in the class "Throwable".  The fields "errorToken",
-         * "expectedTokenSequences", and "tokenImage" do not contain
-         * relevant information.  The JavaCC generated code does not use
-         * these constructors.
-         */
+        /// <summary>
+        /// The following constructors are for use by you for whatever
+        /// purpose you can think of.  Constructing the exception in this
+        /// manner makes the exception behave in the normal way - i.e., as
+        /// documented in the class "Throwable".  The fields "errorToken",
+        /// "expectedTokenSequences", and "tokenImage" do not contain
+        /// relevant information.  The JavaCC generated code does not use
+        /// these constructors.
+        /// </summary>
         public ParseException()
             : base(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, "Error"))
         {
         }
 
-        /** Constructor with message. */
+        /// <summary>
+        /// Constructor with message.
+        /// </summary>
         public ParseException(IMessage message)
             : base(message)
         {
         }
 
-        /**
-         * This is the last token that has been consumed successfully.  If
-         * this object has been created due to a parse error, the token
-         * followng this token will (therefore) be the first error token.
-         */
+        /// <summary>
+        /// This is the last token that has been consumed successfully.  If
+        /// this object has been created due to a parse error, the token
+        /// followng this token will (therefore) be the first error token.
+        /// </summary>
         public Token currentToken;
 
-        /**
-         * Each entry in this array is an array of integers.  Each array
-         * of integers represents a sequence of tokens (by their ordinal
-         * values) that is expected at this point of the parse.
-         */
+        /// <summary>
+        /// Each entry in this array is an array of integers.  Each array
+        /// of integers represents a sequence of tokens (by their ordinal
+        /// values) that is expected at this point of the parse.
+        /// </summary>
         public int[][] expectedTokenSequences;
 
-        /**
-         * This is a reference to the "tokenImage" array of the generated
-         * parser within which the parse error occurred.  This array is
-         * defined in the generated ...Constants interface.
-         */
+        /// <summary>
+        /// This is a reference to the "tokenImage" array of the generated
+        /// parser within which the parse error occurred.  This array is
+        /// defined in the generated ...Constants interface.
+        /// </summary>
         public string[] tokenImage;
 
-        /**
-         * It uses "currentToken" and "expectedTokenSequences" to generate a parse
-         * error message and returns it.  If this object has been created
-         * due to a parse error, and you do not catch it (it gets thrown
-         * from the parser) the correct error message
-         * gets displayed.
-         */
+        /// <summary>
+        /// It uses <paramref name="currentToken"/> and <paramref name="expectedTokenSequences"/> to generate a parse
+        /// error message and returns it.  If this object has been created
+        /// due to a parse error, and you do not catch it (it gets thrown
+        /// from the parser) the correct error message
+        /// gets displayed.
+        /// </summary>
+        /// <param name="currentToken"></param>
+        /// <param name="expectedTokenSequences"></param>
+        /// <param name="tokenImage"></param>
+        /// <returns></returns>
         private static string Initialize(Token currentToken,
                                  int[][] expectedTokenSequences,
                                  string[] tokenImage)
@@ -153,16 +159,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return retval;
         }
 
-        /**
-         * The end of line string for this machine.
-         */
+        /// <summary>
+        /// The end of line string for this machine.
+        /// </summary>
         protected string eol = Environment.NewLine;
 
-        /**
-         * Used to convert raw characters to their escaped version
-         * when these raw version cannot be used as part of an ASCII
-         * string literal.
-         */
+        /// <summary>
+        /// Used to convert raw characters to their escaped version
+        /// when these raw version cannot be used as part of an ASCII
+        /// string literal.
+        /// </summary>
         static string Add_Escapes(string str)
         {
             StringBuilder retval = new StringBuilder();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
index afb3801..9f75881 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
@@ -44,10 +44,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         {
         }
 
-        /** Parses a query string, returning a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode}.
-        *  @param query  the query string to be parsed.
-        *  @throws ParseException if the parsing fails
-        */
+        /// <summary>
+        /// Parses a query string, returning a <see cref="IQueryNode"/>.
+        /// </summary>
+        /// <param name="query">the query string to be parsed.</param>
+        /// <param name="field"></param>
+        /// <returns></returns>
+        /// <exception cref="ParseException">if the parsing fails</exception>
         public IQueryNode Parse(string query, string field)
         {
             ReInit(new FastCharStream(new StringReader(query)));
@@ -952,11 +955,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return false;
         }
 
-        /** Generated Token Manager. */
+        /// <summary>Generated Token Manager.</summary>
         public StandardSyntaxParserTokenManager token_source;
-        /** Current token. */
+        /// <summary>Current token.</summary>
         public Token token;
-        /** Next token. */
+        /// <summary>Next token.</summary>
         public Token jj_nt;
         private int jj_ntk;
         private Token jj_scanpos, jj_lastpos;
@@ -982,7 +985,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         private bool jj_rescan = false;
         private int jj_gc = 0;
 
-        /** Constructor with user supplied CharStream. */
+        /// <summary>
+        /// Constructor with user supplied <see cref="ICharStream"/>.
+        /// </summary>
         public StandardSyntaxParser(ICharStream stream)
         {
             token_source = new StandardSyntaxParserTokenManager(stream);
@@ -993,7 +998,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
         }
 
-        /** Reinitialise. */
+        /// <summary>Reinitialize.</summary>
         public void ReInit(ICharStream stream)
         {
             token_source.ReInit(stream);
@@ -1004,7 +1009,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
         }
 
-        /** Constructor with generated Token Manager. */
+        /// <summary>Constructor with generated Token Manager.</summary>
         public StandardSyntaxParser(StandardSyntaxParserTokenManager tm)
         {
             token_source = tm;
@@ -1015,7 +1020,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
         }
 
-        /** Reinitialise. */
+        /// <summary>Reinitialize.</summary>
         public void ReInit(StandardSyntaxParserTokenManager tm)
         {
             token_source = tm;
@@ -1087,7 +1092,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         }
 
 
-        /** Get the next Token. */
+        /// <summary>Get the next Token.</summary>
         public Token getNextToken()
         {
             if (token.next != null) token = token.next;
@@ -1097,7 +1102,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return token;
         }
 
-        /** Get the specific Token. */
+        /// <summary>Get the specific Token.</summary>
         public Token getToken(int index)
         {
             Token t = token;
@@ -1159,7 +1164,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             }
         }
 
-        /** Generate ParseException. */
+        /// <summary>Generate ParseException.</summary>
         public virtual ParseException generateParseException()
         {
             jj_expentries.Clear();
@@ -1206,12 +1211,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return new ParseException(token, exptokseq, StandardSyntaxParserConstants.TokenImage);
         }
 
-        /** Enable tracing. */
+        /// <summary>Enable tracing.</summary>
         public void enable_tracing()
         {
         }
 
-        /** Disable tracing. */
+        /// <summary>Disable tracing.</summary>
         public void disable_tracing()
         {
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
index 9642186..f1aaef7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserConstants.cs
@@ -97,6 +97,9 @@
         public const int DEFAULT = 2;
     }
 
+    /// <summary>
+    /// Token literal values and constants.
+    /// </summary>
     public static class StandardSyntaxParserConstants
     {
         /// <summary>Literal token values.</summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
index 0774c21..8095ef6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
@@ -25,9 +25,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
     /// </summary>
     public class StandardSyntaxParserTokenManager /*: StandardSyntaxParserConstants*/
     {
-        /** Debug output. */
+        /// <summary>Debug output.</summary>
         public TextWriter debugStream = Console.Out;
-        /** Set debug output. */
+        /// <summary>Set debug output.</summary>
         public void setDebugStream(TextWriter ds) { debugStream = ds; }
         private int jjStopStringLiteralDfa_2(int pos, long active0)
         {
@@ -751,21 +751,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             }
         }
 
-        /** Token literal values. */
+        /// <summary>Token literal values.</summary>
         public static readonly string[] jjstrLiteralImages = {
             "", null, null, null, null, null, null, null, null, null, null, "\x002B", "\x002D",
             "\x0028", "\x0029", "\x003A", "\x003D", "\x003C", "\x003C\x003D", "\x003E", "\x003E\x003D", "\x005E", null, null,
             null, null, "\x005B", "\x007B", null, "\x0054\x004F", "\x005D", "\x007D", null, null,
         };
 
-        /** Lexer state names. */
+        /// <summary>Lexer state names.</summary>
         public static readonly string[] lexStateNames = {
            "Boost",
            "Range",
            "DEFAULT",
         };
 
-        /** Lex State array. */
+        /// <summary>Lex State array.</summary>
         public static readonly int[] jjnewLexState = {
            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1,
            -1, 1, 1, 2, -1, 2, 2, -1, -1,
@@ -780,20 +780,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         private readonly uint[] jjrounds = new uint[33];
         private readonly int[] jjstateSet = new int[66];
         protected char curChar;
-        /** Constructor. */
+        /// <summary>Constructor.</summary>
         public StandardSyntaxParserTokenManager(ICharStream stream)
         {
             input_stream = stream;
         }
 
-        /** Constructor. */
+        /// <summary>Constructor.</summary>
         public StandardSyntaxParserTokenManager(ICharStream stream, int lexState)
             : this(stream)
         {
             SwitchTo(lexState);
         }
 
-        /** Reinitialise parser. */
+        /// <summary>Reinitialize parser.</summary>
         public void ReInit(ICharStream stream)
         {
             jjmatchedPos = jjnewStateCnt = 0;
@@ -809,14 +809,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 jjrounds[i] = 0x80000000;
         }
 
-        /** Reinitialise parser. */
+        /// <summary>Reinitialize parser.</summary>
         public void ReInit(ICharStream stream, int lexState)
         {
             ReInit(stream);
             SwitchTo(lexState);
         }
 
-        /** Switch to specified lex state. */
+        /// <summary>Switch to specified lex state.</summary>
         public void SwitchTo(int lexState)
         {
             if (lexState >= 3 || lexState < 0)
@@ -856,7 +856,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         internal int jjmatchedPos;
         internal int jjmatchedKind;
 
-        /** Get the next Token. */
+        /// <summary>Get the next Token.</summary>
         public Token getNextToken()
         {
             Token matchedToken;


[05/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
new file mode 100644
index 0000000..59fc57d
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
@@ -0,0 +1,75 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor iterates the query node tree looking for every
+    /// {@link FuzzyQueryNode}, when this kind of node is found, it checks on the
+    /// query configuration for
+    /// {@link ConfigurationKeys#FUZZY_CONFIG}, gets the
+    /// fuzzy prefix length and default similarity from it and set to the fuzzy node.
+    /// For more information about fuzzy prefix length check: {@link FuzzyQuery}.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#FUZZY_CONFIG"/>
+    /// <seealso cref="FuzzyQuery"/>
+    /// <seealso cref="FuzzyQueryNode"/>
+    public class FuzzyQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            if (node is FuzzyQueryNode)
+            {
+                FuzzyQueryNode fuzzyNode = (FuzzyQueryNode)node;
+                QueryConfigHandler config = GetQueryConfigHandler();
+
+                FuzzyConfig fuzzyConfig = null;
+
+                if (config != null && (fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG)) != null)
+                {
+                    fuzzyNode.SetPrefixLength(fuzzyConfig.GetPrefixLength());
+
+                    if (fuzzyNode.GetSimilarity() < 0)
+                    {
+                        fuzzyNode.SetSimilarity(fuzzyConfig.GetMinSimilarity());
+                    }
+
+                }
+                else if (fuzzyNode.GetSimilarity() < 0)
+                {
+                    throw new ArgumentException("No FUZZY_CONFIG set in the config");
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
new file mode 100644
index 0000000..d13f79e
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
@@ -0,0 +1,240 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// The {@link SyntaxParser}
+    /// generates query node trees that consider the boolean operator precedence, but
+    /// Lucene current syntax does not support boolean precedence, so this processor
+    /// remove all the precedence and apply the equivalent modifier according to the
+    /// boolean operation defined on an specific query node.
+    /// <para/>
+    /// If there is a {@link GroupQueryNode} in the query node tree, the query node
+    /// tree is not merged with the one above it.
+    /// <para/>
+    /// Example: TODO: describe a good example to show how this processor works
+    /// </summary>
+    /// <seealso cref="StandardQueryConfigHandler"/>
+    [Obsolete("Use BooleanQuery2ModifierNodeProcessor instead")]
+    public class GroupQueryNodeProcessor : IQueryNodeProcessor
+    {
+        private List<IQueryNode> queryNodeList;
+
+        private bool latestNodeVerified;
+
+        private QueryConfigHandler queryConfig;
+
+        private bool usingAnd = false;
+
+        public GroupQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        public virtual IQueryNode Process(IQueryNode queryTree)
+        {
+            Operator? defaultOperator = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);
+
+            if (defaultOperator == null)
+            {
+                throw new ArgumentException(
+                    "DEFAULT_OPERATOR should be set on the QueryConfigHandler");
+            }
+
+            this.usingAnd = Operator.AND == defaultOperator;
+
+            if (queryTree is GroupQueryNode)
+            {
+                queryTree = ((GroupQueryNode)queryTree).GetChild();
+            }
+
+            this.queryNodeList = new List<IQueryNode>();
+            this.latestNodeVerified = false;
+            ReadTree(queryTree);
+
+            List<IQueryNode> actualQueryNodeList = this.queryNodeList;
+
+            for (int i = 0; i < actualQueryNodeList.Count; i++)
+            {
+                IQueryNode node = actualQueryNodeList[i];
+
+                if (node is GroupQueryNode)
+                {
+                    actualQueryNodeList[i] = Process(node);
+                }
+
+            }
+
+            this.usingAnd = false;
+
+            if (queryTree is BooleanQueryNode)
+            {
+                queryTree.Set(actualQueryNodeList);
+
+                return queryTree;
+
+            }
+            else
+            {
+                return new BooleanQueryNode(actualQueryNodeList);
+            }
+
+        }
+
+        /**
+         */
+        private IQueryNode ApplyModifier(IQueryNode node, IQueryNode parent)
+        {
+
+            if (this.usingAnd)
+            {
+
+                if (parent is OrQueryNode)
+                {
+
+                    if (node is ModifierQueryNode)
+                    {
+
+                        ModifierQueryNode modNode = (ModifierQueryNode)node;
+
+                        if (modNode.GetModifier() == Modifier.MOD_REQ)
+                        {
+                            return modNode.GetChild();
+                        }
+
+                    }
+
+                }
+                else
+                {
+
+                    if (node is ModifierQueryNode)
+                    {
+
+                        ModifierQueryNode modNode = (ModifierQueryNode)node;
+
+                        if (modNode.GetModifier() == Modifier.MOD_NONE)
+                        {
+                            return new BooleanModifierNode(modNode.GetChild(), Modifier.MOD_REQ);
+                        }
+
+                    }
+                    else
+                    {
+                        return new BooleanModifierNode(node, Modifier.MOD_REQ);
+                    }
+
+                }
+
+            }
+            else
+            {
+
+                if (node.GetParent() is AndQueryNode)
+                {
+
+                    if (node is ModifierQueryNode)
+                    {
+
+                        ModifierQueryNode modNode = (ModifierQueryNode)node;
+
+                        if (modNode.GetModifier() == Modifier.MOD_NONE)
+                        {
+                            return new BooleanModifierNode(modNode.GetChild(), Modifier.MOD_REQ);
+                        }
+
+                    }
+                    else
+                    {
+                        return new BooleanModifierNode(node, Modifier.MOD_REQ);
+                    }
+
+                }
+
+            }
+
+            return node;
+
+        }
+
+        private void ReadTree(IQueryNode node)
+        {
+
+            if (node is BooleanQueryNode)
+            {
+                IList<IQueryNode> children = node.GetChildren();
+
+                if (children != null && children.Count > 0)
+                {
+
+                    for (int i = 0; i < children.Count - 1; i++)
+                    {
+                        ReadTree(children[i]);
+                    }
+
+                    ProcessNode(node);
+                    ReadTree(children[children.Count - 1]);
+
+                }
+                else
+                {
+                    ProcessNode(node);
+                }
+
+            }
+            else
+            {
+                ProcessNode(node);
+            }
+
+        }
+
+        private void ProcessNode(IQueryNode node)
+        {
+
+            if (node is AndQueryNode || node is OrQueryNode)
+            {
+
+                if (!this.latestNodeVerified && this.queryNodeList.Any())
+                {
+                    var value = this.queryNodeList[this.queryNodeList.Count - 1];
+                    this.queryNodeList.Remove(value);
+
+                    this.queryNodeList.Add(ApplyModifier(value, node));
+                    this.latestNodeVerified = true;
+
+                }
+
+            }
+            else if (!(node is BooleanQueryNode))
+            {
+                this.queryNodeList.Add(ApplyModifier(node, node.GetParent()));
+                this.latestNodeVerified = false;
+
+            }
+
+        }
+
+
+        public virtual QueryConfigHandler GetQueryConfigHandler()
+        {
+            return this.queryConfig;
+        }
+
+
+        public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
+        {
+            this.queryConfig = queryConfigHandler;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
new file mode 100644
index 0000000..ce22ea0
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
@@ -0,0 +1,87 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor verifies if 
+    /// {@link ConfigurationKeys#LOWERCASE_EXPANDED_TERMS} is defined in the
+    /// {@link QueryConfigHandler}. If it is and the expanded terms should be
+    /// lower-cased, it looks for every {@link WildcardQueryNode},
+    /// {@link FuzzyQueryNode} and children of a {@link RangeQueryNode} and lower-case its
+    /// term.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#LOWERCASE_EXPANDED_TERMS"/>.
+    public class LowercaseExpandedTermsQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        public LowercaseExpandedTermsQueryNodeProcessor()
+        {
+        }
+
+
+        public override IQueryNode Process(IQueryNode queryTree)
+        {
+            bool? lowercaseExpandedTerms = GetQueryConfigHandler().Get(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS);
+
+            if (lowercaseExpandedTerms != null && lowercaseExpandedTerms.Value)
+            {
+                return base.Process(queryTree);
+            }
+
+            return queryTree;
+
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            CultureInfo locale = GetQueryConfigHandler().Get(ConfigurationKeys.LOCALE);
+            if (locale == null)
+            {
+                locale = CultureInfo.InvariantCulture; //Locale.getDefault();
+            }
+
+            if (node is WildcardQueryNode
+                || node is FuzzyQueryNode
+                || (node is FieldQueryNode && node.GetParent() is IRangeQueryNode)
+                || node is RegexpQueryNode)
+            {
+
+                ITextableQueryNode txtNode = (ITextableQueryNode)node;
+                ICharSequence text = txtNode.Text;
+                txtNode.Text = text != null ? UnescapedCharSequence.ToLowerCase(text, locale) : null;
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
new file mode 100644
index 0000000..4b216ac
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
@@ -0,0 +1,62 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor converts every {@link WildcardQueryNode} that is "*:*" to
+    /// {@link MatchAllDocsQueryNode}.
+    /// </summary>
+    /// <seealso cref="MatchAllDocsQueryNode"/>
+    /// <seealso cref="MatchAllDocsQuery"/>
+    public class MatchAllDocsQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        public MatchAllDocsQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is FieldQueryNode)
+            {
+                FieldQueryNode fqn = (FieldQueryNode)node;
+
+                if (fqn.Field.ToString().Equals("*")
+                    && fqn.Text.Equals("*"))
+                {
+
+                    return new MatchAllDocsQueryNode();
+
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
new file mode 100644
index 0000000..1ec617d
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
@@ -0,0 +1,130 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor is used to expand terms so the query looks for the same term
+    /// in different fields. It also boosts a query based on its field.
+    /// <para/>
+    /// This processor looks for every {@link FieldableNode} contained in the query
+    /// node tree. If a {@link FieldableNode} is found, it checks if there is a
+    /// {@link ConfigurationKeys#MULTI_FIELDS} defined in the {@link QueryConfigHandler}. If
+    /// there is, the {@link FieldableNode} is cloned N times and the clones are
+    /// added to a {@link BooleanQueryNode} together with the original node. N is
+    /// defined by the number of fields that it will be expanded to. The
+    /// {@link BooleanQueryNode} is returned.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#MULTI_FIELDS"/>
+    public class MultiFieldQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        private bool processChildren = true;
+
+        public MultiFieldQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override void ProcessChildren(IQueryNode queryTree)
+        {
+
+            if (this.processChildren)
+            {
+                base.ProcessChildren(queryTree);
+
+            }
+            else
+            {
+                this.processChildren = true;
+            }
+
+        }
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            if (node is IFieldableNode)
+            {
+                this.processChildren = false;
+                IFieldableNode fieldNode = (IFieldableNode)node;
+
+                if (fieldNode.Field == null)
+                {
+                    string[] fields = GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_FIELDS);
+
+                    if (fields == null)
+                    {
+                        throw new ArgumentException(
+                            "StandardQueryConfigHandler.ConfigurationKeys.MULTI_FIELDS should be set on the QueryConfigHandler");
+                    }
+
+                    if (fields != null && fields.Length > 0)
+                    {
+                        fieldNode.Field = fields[0];
+
+                        if (fields.Length == 1)
+                        {
+                            return fieldNode;
+
+                        }
+                        else
+                        {
+                            List<IQueryNode> children = new List<IQueryNode>();
+                            children.Add(fieldNode);
+
+                            for (int i = 1; i < fields.Length; i++)
+                            {
+                                //try
+                                //{
+                                fieldNode = (IFieldableNode)fieldNode.CloneTree();
+                                fieldNode.Field = fields[i];
+
+                                children.Add(fieldNode);
+
+                                //}
+                                //catch (CloneNotSupportedException e)
+                                //{
+                                //    // should never happen
+                                //}
+
+                            }
+
+                            return new GroupQueryNode(new OrQueryNode(children));
+
+                        }
+
+                    }
+
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
new file mode 100644
index 0000000..33e31b5
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
@@ -0,0 +1,64 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor instates the default
+    /// {@link org.apache.lucene.search.MultiTermQuery.RewriteMethod},
+    /// {@link MultiTermQuery#CONSTANT_SCORE_AUTO_REWRITE_DEFAULT}, for multi-term
+    /// query nodes.
+    /// </summary>
+    public class MultiTermRewriteMethodProcessor : QueryNodeProcessorImpl
+    {
+        public static readonly string TAG_ID = "MultiTermRewriteMethodConfiguration";
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            // set setMultiTermRewriteMethod for WildcardQueryNode and
+            // PrefixWildcardQueryNode
+            if (node is WildcardQueryNode
+                || node is IAbstractRangeQueryNode || node is RegexpQueryNode)
+            {
+
+                MultiTermQuery.RewriteMethod rewriteMethod = GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD);
+
+                if (rewriteMethod == null)
+                {
+                    // This should not happen, this configuration is set in the
+                    // StandardQueryConfigHandler
+                    throw new ArgumentException(
+                        "StandardQueryConfigHandler.ConfigurationKeys.MULTI_TERM_REWRITE_METHOD should be set on the QueryConfigHandler");
+                }
+
+                // use a TAG to take the value to the Builder
+                node.SetTag(MultiTermRewriteMethodProcessor.TAG_ID, rewriteMethod);
+
+            }
+
+            return node;
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+            return node;
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+            return children;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
new file mode 100644
index 0000000..de5a5b4
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
@@ -0,0 +1,150 @@
+\ufeffusing Lucene.Net.Documents;
+using Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor is used to convert {@link FieldQueryNode}s to
+    /// {@link NumericRangeQueryNode}s. It looks for
+    /// {@link ConfigurationKeys#NUMERIC_CONFIG} set in the {@link FieldConfig} of
+    /// every {@link FieldQueryNode} found. If
+    /// {@link ConfigurationKeys#NUMERIC_CONFIG} is found, it considers that
+    /// {@link FieldQueryNode} to be a numeric query and convert it to
+    /// {@link NumericRangeQueryNode} with upper and lower inclusive and lower and
+    /// upper equals to the value represented by the {@link FieldQueryNode} converted
+    /// to {@link Number}. It means that <b>field:1</b> is converted to <b>field:[1
+    /// TO 1]</b>.
+    /// <para/>
+    /// Note that {@link FieldQueryNode}s children of a
+    /// {@link RangeQueryNode} are ignored.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#NUMERIC_CONFIG"/>
+    /// <seealso cref="FieldQueryNode"/>
+    /// <seealso cref="NumericConfig"/>
+    /// <seealso cref="NumericQueryNode"/>
+    public class NumericQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        /**
+   * Constructs a {@link NumericQueryNodeProcessor} object.
+   */
+        public NumericQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is FieldQueryNode
+                && !(node.GetParent() is IRangeQueryNode))
+            {
+
+                QueryConfigHandler config = GetQueryConfigHandler();
+
+                if (config != null)
+                {
+                    FieldQueryNode fieldNode = (FieldQueryNode)node;
+                    FieldConfig fieldConfig = config.GetFieldConfig(fieldNode
+                        .GetFieldAsString());
+
+                    if (fieldConfig != null)
+                    {
+                        NumericConfig numericConfig = fieldConfig
+                            .Get(ConfigurationKeys.NUMERIC_CONFIG);
+
+                        if (numericConfig != null)
+                        {
+
+                            /*NumberFormat*/
+                            string numberFormat = numericConfig.GetNumberFormat();
+                            string text = fieldNode.GetTextAsString();
+                            /*Number*/
+                            object number = null;
+
+                            if (text.Length > 0)
+                            {
+
+                                try
+                                {
+                                    //number = numberFormat.parse(text);
+                                    number = decimal.Parse(text, NumberStyles.Any);// LUCENENET TODO: use the current culture?
+
+                                }
+                                catch (FormatException e)
+                                {
+                                    throw new QueryNodeParseException(new MessageImpl(
+                                        QueryParserMessages.COULD_NOT_PARSE_NUMBER, fieldNode
+                                            .GetTextAsString(), numberFormat.GetType()
+                                            .AssemblyQualifiedName), e);
+                                }
+
+                                switch (numericConfig.GetType())
+                                {
+                                    case FieldType.NumericType.LONG:
+                                        number = Convert.ToInt64(number);
+                                        break;
+                                    case FieldType.NumericType.INT:
+                                        number = Convert.ToInt32(number);
+                                        break;
+                                    case FieldType.NumericType.DOUBLE:
+                                        number = Convert.ToDouble(number);
+                                        break;
+                                    case FieldType.NumericType.FLOAT:
+                                        number = Convert.ToSingle(number);
+                                        break;
+                                }
+
+                            }
+                            else
+                            {
+                                throw new QueryNodeParseException(new MessageImpl(
+                                    QueryParserMessages.NUMERIC_CANNOT_BE_EMPTY, fieldNode.GetFieldAsString()));
+                            }
+
+                            NumericQueryNode lowerNode = new NumericQueryNode(fieldNode
+                                .Field, number, numberFormat);
+                            NumericQueryNode upperNode = new NumericQueryNode(fieldNode
+                                .Field, number, numberFormat);
+
+                            return new NumericRangeQueryNode(lowerNode, upperNode, true, true,
+                                numericConfig);
+
+                        }
+
+                    }
+
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+            return node;
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+            return children;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
new file mode 100644
index 0000000..f78e218
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
@@ -0,0 +1,164 @@
+\ufeffusing Lucene.Net.Documents;
+using Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor is used to convert {@link TermRangeQueryNode}s to
+    /// {@link NumericRangeQueryNode}s. It looks for
+    /// {@link ConfigurationKeys#NUMERIC_CONFIG} set in the {@link FieldConfig} of
+    /// every {@link TermRangeQueryNode} found. If
+    /// {@link ConfigurationKeys#NUMERIC_CONFIG} is found, it considers that
+    /// {@link TermRangeQueryNode} to be a numeric range query and convert it to
+    /// {@link NumericRangeQueryNode}.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#NUMERIC_CONFIG"/>
+    /// <seealso cref="TermRangeQueryNode"/>
+    /// <seealso cref="NumericConfig"/>
+    /// <seealso cref="NumericRangeQueryNode"/>
+    public class NumericRangeQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        /**
+   * Constructs an empty {@link NumericRangeQueryNode} object.
+   */
+        public NumericRangeQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is TermRangeQueryNode)
+            {
+                QueryConfigHandler config = GetQueryConfigHandler();
+
+                if (config != null)
+                {
+                    TermRangeQueryNode termRangeNode = (TermRangeQueryNode)node;
+                    FieldConfig fieldConfig = config.GetFieldConfig(StringUtils
+                        .ToString(termRangeNode.Field));
+
+                    if (fieldConfig != null)
+                    {
+
+                        NumericConfig numericConfig = fieldConfig
+                            .Get(ConfigurationKeys.NUMERIC_CONFIG);
+
+                        if (numericConfig != null)
+                        {
+
+                            FieldQueryNode lower = (FieldQueryNode)termRangeNode.LowerBound;
+                            FieldQueryNode upper = (FieldQueryNode)termRangeNode.UpperBound;
+
+                            string lowerText = lower.GetTextAsString();
+                            string upperText = upper.GetTextAsString();
+                            /*NumberFormat*/ string numberFormat = numericConfig.GetNumberFormat();
+                            /*Number*/
+                            object lowerNumber = null, upperNumber = null;
+
+                            if (lowerText.Length > 0)
+                            {
+
+                                try
+                                {
+                                    //lowerNumber = numberFormat.parse(lowerText);
+                                    lowerNumber = decimal.Parse(lowerText, NumberStyles.Any);// LUCENENET TODO: use the current culture?
+                                }
+                                catch (FormatException e)
+                                {
+                                    throw new QueryNodeParseException(new MessageImpl(
+                                        QueryParserMessages.COULD_NOT_PARSE_NUMBER, lower
+                                            .GetTextAsString(), numberFormat.GetType()
+                                            .AssemblyQualifiedName), e);
+                                }
+
+                            }
+
+                            if (upperText.Length > 0)
+                            {
+
+                                try
+                                {
+                                    //upperNumber = numberFormat.parse(upperText);
+                                    upperNumber = decimal.Parse(upperText, NumberStyles.Any);// LUCENENET TODO: use the current culture?
+                                }
+                                catch (FormatException e)
+                                {
+                                    throw new QueryNodeParseException(new MessageImpl(
+                                        QueryParserMessages.COULD_NOT_PARSE_NUMBER, upper
+                                            .GetTextAsString(), numberFormat.GetType()
+                                            .AssemblyQualifiedName), e);
+                                }
+
+                            }
+
+                            switch (numericConfig.GetType())
+                            {
+                                case FieldType.NumericType.LONG:
+                                    if (upperNumber != null) upperNumber = Convert.ToInt64(upperNumber);
+                                    if (lowerNumber != null) lowerNumber = Convert.ToInt64(lowerNumber);
+                                    break;
+                                case FieldType.NumericType.INT:
+                                    if (upperNumber != null) upperNumber = Convert.ToInt32(upperNumber);
+                                    if (lowerNumber != null) lowerNumber = Convert.ToInt32(lowerNumber);
+                                    break;
+                                case FieldType.NumericType.DOUBLE:
+                                    if (upperNumber != null) upperNumber = Convert.ToDouble(upperNumber);
+                                    if (lowerNumber != null) lowerNumber = Convert.ToDouble(lowerNumber);
+                                    break;
+                                case FieldType.NumericType.FLOAT:
+                                    if (upperNumber != null) upperNumber = Convert.ToSingle(upperNumber);
+                                    if (lowerNumber != null) lowerNumber = Convert.ToSingle(lowerNumber);
+                                    break;
+                            }
+
+                            NumericQueryNode lowerNode = new NumericQueryNode(
+                                termRangeNode.Field, lowerNumber, numberFormat);
+                            NumericQueryNode upperNode = new NumericQueryNode(
+                                termRangeNode.Field, upperNumber, numberFormat);
+
+                            bool lowerInclusive = termRangeNode.IsLowerInclusive;
+                            bool upperInclusive = termRangeNode.IsUpperInclusive;
+
+                            return new NumericRangeQueryNode(lowerNode, upperNode,
+                                lowerInclusive, upperInclusive, numericConfig);
+
+                        }
+
+                    }
+
+                }
+
+            }
+
+            return node;
+
+        }
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+            return node;
+        }
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+            return children;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
new file mode 100644
index 0000000..9fbf008
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
@@ -0,0 +1,69 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// Processes {@link TermRangeQuery}s with open ranges.
+    /// </summary>
+    public class OpenRangeQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        public readonly static string OPEN_RANGE_TOKEN = "*";
+
+        public OpenRangeQueryNodeProcessor() { }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is TermRangeQueryNode)
+            {
+                TermRangeQueryNode rangeNode = (TermRangeQueryNode)node;
+                FieldQueryNode lowerNode = (FieldQueryNode)rangeNode.LowerBound;
+                FieldQueryNode upperNode = (FieldQueryNode)rangeNode.UpperBound;
+                ICharSequence lowerText = lowerNode.Text;
+                ICharSequence upperText = upperNode.Text;
+
+                if (OPEN_RANGE_TOKEN.Equals(upperNode.GetTextAsString())
+                    && (!(upperText is UnescapedCharSequence) || !((UnescapedCharSequence)upperText)
+                        .WasEscaped(0)))
+                {
+                    upperText = "".ToCharSequence();
+                }
+
+                if (OPEN_RANGE_TOKEN.Equals(lowerNode.GetTextAsString())
+                    && (!(lowerText is UnescapedCharSequence) || !((UnescapedCharSequence)lowerText)
+                        .WasEscaped(0)))
+                {
+                    lowerText = "".ToCharSequence();
+                }
+
+                lowerNode.Text = lowerText;
+                upperNode.Text = upperText;
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+            return node;
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+            return children;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
new file mode 100644
index 0000000..9755442
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
@@ -0,0 +1,61 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor removes invalid {@link SlopQueryNode} objects in the query
+    /// node tree. A {@link SlopQueryNode} is invalid if its child is neither a
+    /// {@link TokenizedPhraseQueryNode} nor a {@link MultiPhraseQueryNode}.
+    /// </summary>
+    /// <seealso cref="SlopQueryNode"/>
+    public class PhraseSlopQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        public PhraseSlopQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is SlopQueryNode)
+            {
+                SlopQueryNode phraseSlopNode = (SlopQueryNode)node;
+
+                if (!(phraseSlopNode.GetChild() is TokenizedPhraseQueryNode)
+          && !(phraseSlopNode.GetChild() is MultiPhraseQueryNode))
+                {
+                    return phraseSlopNode.GetChild();
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
new file mode 100644
index 0000000..896f749
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
@@ -0,0 +1,110 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor removes every {@link QueryNode} that is not a leaf and has not
+    /// children. If after processing the entire tree the root node is not a leaf and
+    /// has no children, a {@link MatchNoDocsQueryNode} object is returned.
+    /// <para/>
+    /// This processor is used at the end of a pipeline to avoid invalid query node
+    /// tree structures like a {@link GroupQueryNode} or {@link ModifierQueryNode}
+    /// with no children.
+    /// </summary>
+    /// <seealso cref="QueryNode"/>
+    /// <seealso cref="MatchNoDocsQueryNode"/>
+    public class RemoveEmptyNonLeafQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        private List<IQueryNode> childrenBuffer = new List<IQueryNode>();
+
+        public RemoveEmptyNonLeafQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        public override IQueryNode Process(IQueryNode queryTree)
+        {
+            queryTree = base.Process(queryTree);
+
+            if (!queryTree.IsLeaf())
+            {
+
+                IList<IQueryNode> children = queryTree.GetChildren();
+
+                if (children == null || children.Count == 0)
+                {
+                    return new MatchNoDocsQueryNode();
+                }
+
+            }
+
+            return queryTree;
+
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            try
+            {
+
+                foreach (IQueryNode child in children)
+                {
+
+                    if (!child.IsLeaf())
+                    {
+
+                        IList<IQueryNode> grandChildren = child.GetChildren();
+
+                        if (grandChildren != null && grandChildren.Count > 0)
+                        {
+                            this.childrenBuffer.Add(child);
+                        }
+
+                    }
+                    else
+                    {
+                        this.childrenBuffer.Add(child);
+                    }
+
+                }
+
+                children.Clear();
+                children.AddRange(this.childrenBuffer);
+
+            }
+            finally
+            {
+                this.childrenBuffer.Clear();
+            }
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
new file mode 100644
index 0000000..35b4491
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
@@ -0,0 +1,54 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This pipeline has all the processors needed to process a query node tree,
+    /// generated by {@link StandardSyntaxParser}, already assembled.
+    /// <para/>
+    /// The order they are assembled affects the results.
+    /// <para/>
+    /// This processor pipeline was designed to work with
+    /// {@link StandardQueryConfigHandler}.
+    /// <para/>
+    /// The result query node tree can be used to build a {@link Query} object using
+    /// {@link StandardQueryTreeBuilder}.
+    /// </summary>
+    /// <seealso cref="StandardQueryTreeBuilder"/>
+    /// <seealso cref="StandardQueryConfigHandler"/>
+    /// <seealso cref="StandardSyntaxParser"/>
+    public class StandardQueryNodeProcessorPipeline : QueryNodeProcessorPipeline
+    {
+        public StandardQueryNodeProcessorPipeline(QueryConfigHandler queryConfig)
+            : base(queryConfig)
+        {
+            Add(new WildcardQueryNodeProcessor());
+            Add(new MultiFieldQueryNodeProcessor());
+            Add(new FuzzyQueryNodeProcessor());
+            Add(new MatchAllDocsQueryNodeProcessor());
+            Add(new OpenRangeQueryNodeProcessor());
+            Add(new NumericQueryNodeProcessor());
+            Add(new NumericRangeQueryNodeProcessor());
+            Add(new LowercaseExpandedTermsQueryNodeProcessor());
+            Add(new TermRangeQueryNodeProcessor());
+            Add(new AllowLeadingWildcardProcessor());
+            Add(new AnalyzerQueryNodeProcessor());
+            Add(new PhraseSlopQueryNodeProcessor());
+            //add(new GroupQueryNodeProcessor());
+            Add(new BooleanQuery2ModifierNodeProcessor());
+            Add(new NoChildOptimizationQueryNodeProcessor());
+            Add(new RemoveDeletedQueryNodesProcessor());
+            Add(new RemoveEmptyNonLeafQueryNodeProcessor());
+            Add(new BooleanSingleChildOptimizationQueryNodeProcessor());
+            Add(new DefaultPhraseSlopQueryNodeProcessor());
+            Add(new BoostQueryNodeProcessor());
+            Add(new MultiTermRewriteMethodProcessor());
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
new file mode 100644
index 0000000..6ddbd75
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
@@ -0,0 +1,164 @@
+\ufeffusing Lucene.Net.Documents;
+using Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processors process {@link TermRangeQueryNode}s. It reads the lower and
+    /// upper bounds value from the {@link TermRangeQueryNode} object and try
+    /// to parse their values using a {@link DateFormat}. If the values cannot be
+    /// parsed to a date value, it will only create the {@link TermRangeQueryNode}
+    /// using the non-parsed values.
+    /// <para/>
+    /// If a {@link ConfigurationKeys#LOCALE} is defined in the
+    /// {@link QueryConfigHandler} it will be used to parse the date, otherwise
+    /// {@link Locale#getDefault()} will be used.
+    /// <para/>
+    /// If a {@link ConfigurationKeys#DATE_RESOLUTION} is defined and the
+    /// {@link Resolution} is not <code>null</code> it will also be used to parse the
+    /// date value.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#DATE_RESOLUTION"/>
+    /// <seealso cref="ConfigurationKeys#LOCALE"/>
+    /// <seealso cref="TermRangeQueryNode"/>
+    public class TermRangeQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        public TermRangeQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is TermRangeQueryNode)
+            {
+                TermRangeQueryNode termRangeNode = (TermRangeQueryNode)node;
+                FieldQueryNode upper = (FieldQueryNode)termRangeNode.UpperBound;
+                FieldQueryNode lower = (FieldQueryNode)termRangeNode.LowerBound;
+
+                // LUCENENET TODO: Add a NOT_SET value so we have a logical default?
+                DateTools.Resolution dateRes = DateTools.Resolution.MINUTE/* = null*/;
+                bool inclusive = false;
+                CultureInfo locale = GetQueryConfigHandler().Get(ConfigurationKeys.LOCALE);
+
+                if (locale == null)
+                {
+                    locale = CultureInfo.CurrentCulture; //Locale.getDefault();
+                }
+
+                TimeZoneInfo timeZone = GetQueryConfigHandler().Get(ConfigurationKeys.TIMEZONE);
+
+                if (timeZone == null)
+                {
+                    timeZone = TimeZoneInfo.Local; //TimeZone.getDefault();
+                }
+
+                string field = termRangeNode.Field;
+                string fieldStr = null;
+
+                if (field != null)
+                {
+                    fieldStr = field.ToString();
+                }
+
+                FieldConfig fieldConfig = GetQueryConfigHandler()
+                    .GetFieldConfig(fieldStr);
+
+                if (fieldConfig != null)
+                {
+                    dateRes = fieldConfig.Get(ConfigurationKeys.DATE_RESOLUTION);
+                }
+
+                if (termRangeNode.IsUpperInclusive)
+                {
+                    inclusive = true;
+                }
+
+                string part1 = lower.GetTextAsString();
+                string part2 = upper.GetTextAsString();
+
+                try
+                {
+                    //DateFormat df = DateFormat.GetDateInstance(DateFormat.SHORT, locale);
+                    //df.setLenient(true);
+
+                    if (part1.Length > 0)
+                    {
+                        //DateTime d1 = df.parse(part1);
+                        DateTime d1 = DateTime.Parse(part1, locale);
+                        part1 = DateTools.DateToString(d1, dateRes);
+                        lower.Text = new StringCharSequenceWrapper(part1);
+                    }
+
+                    if (part2.Length > 0)
+                    {
+                        //DateTime d2 = df.parse(part2);
+                        DateTime d2 = DateTime.Parse(part2, locale);
+                        if (inclusive)
+                        {
+                            // The user can only specify the date, not the time, so make sure
+                            // the time is set to the latest possible time of that date to
+                            // really
+                            // include all documents:
+                            //Calendar cal = Calendar.getInstance(timeZone, locale);
+                            //cal.setTime(d2);
+                            //cal.set(Calendar.HOUR_OF_DAY, 23);
+                            //cal.set(Calendar.MINUTE, 59);
+                            //cal.set(Calendar.SECOND, 59);
+                            //cal.set(Calendar.MILLISECOND, 999);
+                            //d2 = cal.getTime();
+
+                            var cal = locale.Calendar;
+                            d2 = cal.AddHours(d2, 23);
+                            d2 = cal.AddMinutes(d2, 59);
+                            d2 = cal.AddSeconds(d2, 59);
+                            d2 = cal.AddMilliseconds(d2, 999);
+                        }
+
+                        part2 = DateTools.DateToString(d2, dateRes);
+                        upper.Text = new StringCharSequenceWrapper(part2);
+
+                    }
+
+                }
+                catch (Exception e)
+                {
+                    // do nothing
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
new file mode 100644
index 0000000..b38f60b
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
@@ -0,0 +1,131 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// The {@link StandardSyntaxParser} creates {@link PrefixWildcardQueryNode} nodes which
+    /// have values containing the prefixed wildcard. However, Lucene
+    /// {@link PrefixQuery} cannot contain the prefixed wildcard. So, this processor
+    /// basically removed the prefixed wildcard from the
+    /// {@link PrefixWildcardQueryNode} value.
+    /// </summary>
+    /// <seealso cref="PrefixQuery"/>
+    /// <seealso cref="PrefixWildcardQueryNode"/>
+    public class WildcardQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        public WildcardQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            // the old Lucene Parser ignores FuzzyQueryNode that are also PrefixWildcardQueryNode or WildcardQueryNode
+            // we do the same here, also ignore empty terms
+            if (node is FieldQueryNode || node is FuzzyQueryNode)
+            {
+                FieldQueryNode fqn = (FieldQueryNode)node;
+                string text = fqn.Text.ToString();
+
+                // do not process wildcards for TermRangeQueryNode children and 
+                // QuotedFieldQueryNode to reproduce the old parser behavior
+                if (fqn.GetParent() is TermRangeQueryNode
+                    || fqn is QuotedFieldQueryNode
+                    || text.Length <= 0)
+                {
+                    // Ignore empty terms
+                    return node;
+                }
+
+                // Code below simulates the old lucene parser behavior for wildcards
+
+                if (IsPrefixWildcard(text))
+                {
+                    PrefixWildcardQueryNode prefixWildcardQN = new PrefixWildcardQueryNode(fqn);
+                    return prefixWildcardQN;
+
+                }
+                else if (IsWildcard(text))
+                {
+                    WildcardQueryNode wildcardQN = new WildcardQueryNode(fqn);
+                    return wildcardQN;
+                }
+
+            }
+
+            return node;
+
+        }
+
+        private bool IsWildcard(string text)
+        {
+            if (text == null || text.Length <= 0) return false;
+
+            // If a un-escaped '*' or '?' if found return true
+            // start at the end since it's more common to put wildcards at the end
+            for (int i = text.Length - 1; i >= 0; i--)
+            {
+                if ((text[i] == '*' || text[i] == '?') && !UnescapedCharSequence.WasEscaped(new StringCharSequenceWrapper(text), i))
+                {
+                    return true;
+                }
+            }
+
+            return false;
+        }
+
+        private bool IsPrefixWildcard(string text)
+        {
+            if (text == null || text.Length <= 0 || !IsWildcard(text)) return false;
+
+            // Validate last character is a '*' and was not escaped
+            // If single '*' is is a wildcard not prefix to simulate old queryparser
+            if (text[text.Length - 1] != '*') return false;
+            if (UnescapedCharSequence.WasEscaped(new StringCharSequenceWrapper(text), text.Length - 1)) return false;
+            if (text.Length == 1) return false;
+
+            // Only make a prefix if there is only one single star at the end and no '?' or '*' characters
+            // If single wildcard return false to mimic old queryparser
+            for (int i = 0; i < text.Length; i++)
+            {
+                if (text[i] == '?') return false;
+                if (text[i] == '*' && !UnescapedCharSequence.WasEscaped(new StringCharSequenceWrapper(text), i))
+                {
+                    if (i == text.Length - 1)
+                        return true;
+                    else
+                        return false;
+                }
+            }
+
+            return false;
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
new file mode 100644
index 0000000..55eb099
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
@@ -0,0 +1,202 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard
+{
+    /// <summary>
+    /// This class defines utility methods to (help) parse query strings into
+    /// {@link Query} objects.
+    /// </summary>
+    public sealed class QueryParserUtil
+    {
+        /**
+   * Parses a query which searches on the fields specified.
+   * <p>
+   * If x fields are specified, this effectively constructs:
+   * 
+   * <pre>
+   * <code>
+   * (field1:query1) (field2:query2) (field3:query3)...(fieldx:queryx)
+   * </code>
+   * </pre>
+   * 
+   * @param queries
+   *          Queries strings to parse
+   * @param fields
+   *          Fields to search on
+   * @param analyzer
+   *          Analyzer to use
+   * @throws IllegalArgumentException
+   *           if the length of the queries array differs from the length of the
+   *           fields array
+   */
+        public static Query Parse(string[] queries, string[] fields, Analyzer analyzer)
+        {
+            if (queries.Length != fields.Length)
+                throw new ArgumentException("queries.length != fields.length");
+            BooleanQuery bQuery = new BooleanQuery();
+
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = analyzer;
+
+            for (int i = 0; i < fields.Length; i++)
+            {
+                Query q = qp.Parse(queries[i], fields[i]) as Query;
+
+                if (q != null && // q never null, just being defensive
+                    (!(q is BooleanQuery) || ((BooleanQuery)q).GetClauses().Count > 0))
+                {
+                    bQuery.Add(q, BooleanClause.Occur.SHOULD);
+                }
+            }
+            return bQuery;
+        }
+
+        /**
+         * Parses a query, searching on the fields specified. Use this if you need to
+         * specify certain fields as required, and others as prohibited.
+         * <p>
+         * 
+         * Usage:
+         * <pre class="prettyprint">
+         * <code>
+         * String[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
+         * BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
+         *                BooleanClause.Occur.MUST,
+         *                BooleanClause.Occur.MUST_NOT};
+         * MultiFieldQueryParser.parse(&quot;query&quot;, fields, flags, analyzer);
+         * </code>
+         * </pre>
+         *<p>
+         * The code above would construct a query:
+         * 
+         * <pre>
+         * <code>
+         * (filename:query) +(contents:query) -(description:query)
+         * </code>
+         * </pre>
+         * 
+         * @param query
+         *          Query string to parse
+         * @param fields
+         *          Fields to search on
+         * @param flags
+         *          Flags describing the fields
+         * @param analyzer
+         *          Analyzer to use
+         * @throws IllegalArgumentException
+         *           if the length of the fields array differs from the length of the
+         *           flags array
+         */
+        public static Query Parse(string query, string[] fields,
+            BooleanClause.Occur[] flags, Analyzer analyzer)
+        {
+            if (fields.Length != flags.Length)
+                throw new ArgumentException("fields.length != flags.length");
+            BooleanQuery bQuery = new BooleanQuery();
+
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = analyzer;
+
+            for (int i = 0; i < fields.Length; i++)
+            {
+                Query q = qp.Parse(query, fields[i]) as Query;
+
+                if (q != null && // q never null, just being defensive
+                    (!(q is BooleanQuery) || ((BooleanQuery)q).GetClauses().Count > 0))
+                {
+                    bQuery.Add(q, flags[i]);
+                }
+            }
+            return bQuery;
+        }
+
+        /**
+         * Parses a query, searching on the fields specified. Use this if you need to
+         * specify certain fields as required, and others as prohibited.
+         * <p>
+         * 
+         * Usage:
+         * <pre class="prettyprint">
+         * <code>
+         * String[] query = {&quot;query1&quot;, &quot;query2&quot;, &quot;query3&quot;};
+         * String[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
+         * BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
+         *                BooleanClause.Occur.MUST,
+         *                BooleanClause.Occur.MUST_NOT};
+         * MultiFieldQueryParser.parse(query, fields, flags, analyzer);
+         * </code>
+         * </pre>
+         *<p>
+         * The code above would construct a query:
+         * 
+         * <pre>
+         * <code>
+         * (filename:query1) +(contents:query2) -(description:query3)
+         * </code>
+         * </pre>
+         * 
+         * @param queries
+         *          Queries string to parse
+         * @param fields
+         *          Fields to search on
+         * @param flags
+         *          Flags describing the fields
+         * @param analyzer
+         *          Analyzer to use
+         * @throws IllegalArgumentException
+         *           if the length of the queries, fields, and flags array differ
+         */
+        public static Query Parse(string[] queries, string[] fields,
+            BooleanClause.Occur[] flags, Analyzer analyzer)
+        {
+            if (!(queries.Length == fields.Length && queries.Length == flags.Length))
+                throw new ArgumentException(
+                    "queries, fields, and flags array have have different length");
+            BooleanQuery bQuery = new BooleanQuery();
+
+            StandardQueryParser qp = new StandardQueryParser();
+            qp.Analyzer = analyzer;
+
+            for (int i = 0; i < fields.Length; i++)
+            {
+                Query q = qp.Parse(queries[i], fields[i]) as Query;
+
+                if (q != null && // q never null, just being defensive
+                    (!(q is BooleanQuery) || ((BooleanQuery)q).GetClauses().Count > 0))
+                {
+                    bQuery.Add(q, flags[i]);
+                }
+            }
+            return bQuery;
+        }
+
+        /**
+         * Returns a String where those characters that TextParser expects to be
+         * escaped are escaped by a preceding <code>\</code>.
+         */
+        public static string Escape(string s)
+        {
+            StringBuilder sb = new StringBuilder();
+            for (int i = 0; i < s.Length; i++)
+            {
+                char c = s[i];
+                // These characters are part of the query syntax and must be escaped
+                if (c == '\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')'
+                    || c == ':' || c == '^' || c == '[' || c == ']' || c == '\"'
+                    || c == '{' || c == '}' || c == '~' || c == '*' || c == '?'
+                    || c == '|' || c == '&' || c == '/')
+                {
+                    sb.Append('\\');
+                }
+                sb.Append(c);
+            }
+            return sb.ToString();
+        }
+    }
+}


[47/58] lucenenet git commit: QueryParser: Fixed documentation comments

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Parser/ParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Parser/ParseException.cs b/src/Lucene.Net.QueryParser/Surround/Parser/ParseException.cs
index 6f7ed81..64e6113 100644
--- a/src/Lucene.Net.QueryParser/Surround/Parser/ParseException.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Parser/ParseException.cs
@@ -35,20 +35,17 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
         /// <summary>
         /// This constructor is used by the method "GenerateParseException"
         /// in the generated parser.  Calling this constructor generates
-        /// a new object of this type with the fields "currentToken",
-        /// "expectedTokenSequences", and "tokenImage" set.
+        /// a new object of this type with the fields <paramref name="currentToken"/>,
+        /// <paramref name="expectedTokenSequences"/>, and <paramref name="tokenImage"/> set.
         /// </summary>
-        /// <param name="currentTokenVal"></param>
-        /// <param name="expectedTokenSequencesVal"></param>
-        /// <param name="tokenImageVal"></param>
-        public ParseException(Token currentTokenVal,
-                        int[][] expectedTokenSequencesVal,
-                        string[] tokenImageVal)
-            : base(Initialize(currentTokenVal, expectedTokenSequencesVal, tokenImageVal))
+        public ParseException(Token currentToken,
+                        int[][] expectedTokenSequences,
+                        string[] tokenImage)
+            : base(Initialize(currentToken, expectedTokenSequences, tokenImage))
         {
-            currentToken = currentTokenVal;
-            expectedTokenSequences = expectedTokenSequencesVal;
-            tokenImage = tokenImageVal;
+            this.currentToken = currentToken;
+            this.expectedTokenSequences = expectedTokenSequences;
+            this.tokenImage = tokenImage;
         }
 
         /**
@@ -96,16 +93,12 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
 
 
         /// <summary>
-        /// It uses "currentToken" and "expectedTokenSequences" to generate a parse
+        /// It uses <paramref name="currentToken"/> and <paramref name="expectedTokenSequences"/> to generate a parse
         /// error message and returns it.  If this object has been created
         /// due to a parse error, and you do not catch it (it gets thrown
         /// from the parser) the correct error message
         /// gets displayed.
         /// </summary>
-        /// <param name="currentToken"></param>
-        /// <param name="expectedTokenSequences"></param>
-        /// <param name="tokenImage"></param>
-        /// <returns></returns>
         private static string Initialize(Token currentToken,
             int[][] expectedTokenSequences,
             string[] tokenImage)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs b/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs
index bdab9ca..b1c2fe1 100644
--- a/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs
@@ -24,27 +24,32 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
 
     /// <summary>
     /// This class is generated by JavaCC.  The only method that clients should need
-    /// to call is {@link #parse parse()}.
+    /// to call is <see cref="Parse(string)"/>.
     ///
-
-    /// <p>This parser generates queries that make use of position information
-    ///   (Span queries). It provides positional operators (<code>w</code> and
-    ///   <code>n</code>) that accept a numeric distance, as well as boolean
-    ///   operators (<code>and</code>, <code>or</code>, and <code>not</code>,
-    ///   wildcards (<code>///</code> and <code>?</code>), quoting (with
-    ///   <code>"</code>), and boosting (via <code>^</code>).</p>
-
-    ///  <p>The operators (W, N, AND, OR, NOT) can be expressed lower-cased or
-    ///   upper-cased, and the non-unary operators (everything but NOT) support
-    ///   both infix <code>(a AND b AND c)</code> and prefix <code>AND(a, b,
-    ///   c)</code> notation. </p>
-
-    ///  <p>The W and N operators express a positional relationship among their
-    ///  operands.  N is ordered, and W is unordered.  The distance is 1 by
-    ///  default, meaning the operands are adjacent, or may be provided as a
-    ///  prefix from 2-99.  So, for example, 3W(a, b) means that terms a and b
-    ///  must appear within three positions of each other, or in other words, up
-    ///  to two terms may appear between a and b.  </p>
+    /// <para>
+    /// This parser generates queries that make use of position information
+    /// (Span queries). It provides positional operators (<c>w</c> and
+    /// <c>n</c>) that accept a numeric distance, as well as boolean
+    /// operators (<c>and</c>, <c>or</c>, and <c>not</c>,
+    /// wildcards (<c>///</c> and <c>?</c>), quoting (with
+    /// <c>"</c>), and boosting (via <c>^</c>).
+    /// </para>
+    ///
+    /// <para>
+    /// The operators (W, N, AND, OR, NOT) can be expressed lower-cased or
+    /// upper-cased, and the non-unary operators (everything but NOT) support
+    /// both infix <c>(a AND b AND c)</c> and prefix <c>AND(a, b,
+    /// c)</c> notation.
+    /// </para>
+    ///
+    /// <para>
+    /// The W and N operators express a positional relationship among their
+    /// operands.  N is ordered, and W is unordered.  The distance is 1 by
+    /// default, meaning the operands are adjacent, or may be provided as a
+    /// prefix from 2-99.  So, for example, 3W(a, b) means that terms a and b
+    /// must appear within three positions of each other, or in other words, up
+    /// to two terms may appear between a and b. 
+    /// </para>
     /// </summary>
     public class QueryParser
     {
@@ -586,11 +591,11 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
             return false;
         }
 
-        /** Generated Token Manager. */
+        /// <summary>Generated Token Manager.</summary>
         public QueryParserTokenManager token_source;
-        /** Current token. */
+        /// <summary>Current token.</summary>
         public Token token;
-        /** Next token. */
+        /// <summary>Next token.</summary>
         public Token jj_nt;
         private int jj_ntk;
         private Token jj_scanpos, jj_lastpos;
@@ -611,10 +616,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
         private bool jj_rescan = false;
         private int jj_gc = 0;
 
-        /// <summary>
-        /// Constructor with user supplied CharStream.
-        /// </summary>
-        /// <param name="stream"></param>
+        /// <summary>Constructor with user supplied <see cref="ICharStream"/>.</summary>
         public QueryParser(ICharStream stream)
         {
             token_source = new QueryParserTokenManager(stream);
@@ -625,10 +627,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
             for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
         }
 
-        /// <summary>
-        /// Reinitialise.
-        /// </summary>
-        /// <param name="stream"></param>
+        /// <summary>Reinitialize.</summary>
         public virtual void ReInit(ICharStream stream)
         {
             token_source.ReInit(stream);
@@ -639,10 +638,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
             for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
         }
 
-        /// <summary>
-        /// Constructor with generated Token Manager.
-        /// </summary>
-        /// <param name="tm"></param>
+        /// <summary>Constructor with generated Token Manager.</summary>
         public QueryParser(QueryParserTokenManager tm)
         {
             token_source = tm;
@@ -653,10 +649,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
             for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
         }
 
-        /// <summary>
-        /// Reinitialise.
-        /// </summary>
-        /// <param name="tm"></param>
+        /// <summary>Reinitialize.</summary>
         public virtual void ReInit(QueryParserTokenManager tm)
         {
             token_source = tm;
@@ -728,10 +721,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
             return false;
         }
 
-        /// <summary>
-        /// Get the next Token.
-        /// </summary>
-        /// <returns></returns>
+        /// <summary>Get the next Token.</summary>
         public Token GetNextToken()
         {
             if (token.next != null) token = token.next;
@@ -741,11 +731,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
             return token;
         }
 
-        /// <summary>
-        /// Get the specific Token.
-        /// </summary>
-        /// <param name="index"></param>
-        /// <returns></returns>
+        /// <summary>Get the specific Token.</summary>
         public Token GetToken(int index)
         {
             Token t = token;
@@ -806,10 +792,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
             }
         }
 
-        /// <summary>
-        /// Generate ParseException.
-        /// </summary>
-        /// <returns></returns>
+        /// <summary>Generate ParseException.</summary>
         public virtual ParseException GenerateParseException()
         {
             jj_expentries.Clear();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs b/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs
index 36774f9..b83813b 100644
--- a/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Parser/QueryParserTokenManager.cs
@@ -26,18 +26,10 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
     /// </summary>
     public class QueryParserTokenManager //: QueryParserConstants
     {
-        private void InitBlock()
-        {
-            StreamWriter temp_writer;
-            temp_writer = new StreamWriter(Console.OpenStandardOutput(), Console.Out.Encoding);
-            temp_writer.AutoFlush = true;
-            debugStream = temp_writer;
-        }
-
         /// <summary>Debug output. </summary>
-        public StreamWriter debugStream;
+        public TextWriter debugStream;
         /// <summary>Set debug output. </summary>
-        public virtual void SetDebugStream(StreamWriter ds)
+        public virtual void SetDebugStream(TextWriter ds)
         {
             debugStream = ds;
         }
@@ -546,18 +538,19 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
         //    "\50", "\51", "\54", "\72", "\136", null, null, null, null, null, null 
         //};
 
+        /// <summary>Token literal values.</summary>
         public static readonly string[] jjstrLiteralImages = {
             "", null, null, null, null, null, null, null, null, null, null, null, null, 
             "\x0028" /*"\50"*/, "\x0029" /*"\51"*/, "\x002C" /*"\54"*/, "\x003A" /*"\72"*/, "\x005E" /*"\136"*/, null, null, null, null, null, null 
         };
 
-        /** Lexer state names. */
+        /// <summary>Lexer state names.</summary>
         public static readonly string[] lexStateNames = {
            "Boost",
            "DEFAULT"
         };
 
-        /** Lex State array. */
+        /// <summary>Lex State array.</summary>
         public static readonly int[] jjnewLexState = {
            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 1, 
         };
@@ -572,21 +565,20 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
         private readonly int[] jjstateSet = new int[76];
         protected internal char curChar;
 
-        /** Constructor. */
+        /// <summary>Constructor.</summary>
         public QueryParserTokenManager(ICharStream stream)
         {
-            InitBlock();
             input_stream = stream;
         }
 
-        /** Constructor. */
+        /// <summary>Constructor.</summary>
         public QueryParserTokenManager(ICharStream stream, int lexState)
             : this(stream)
         {
             SwitchTo(lexState);
         }
 
-        /** Reinitialise parser. */
+        /// <summary>Reinitialize parser.</summary>
         public void ReInit(ICharStream stream)
         {
             jjmatchedPos = jjnewStateCnt = 0;
@@ -602,14 +594,14 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
                 jjrounds[i] = 0x80000000;
         }
 
-        /** Reinitialise parser. */
+        /// <summary>Reinitialize parser.</summary>
         public void ReInit(ICharStream stream, int lexState)
         {
             ReInit(stream);
             SwitchTo(lexState);
         }
 
-        /** Switch to specified lex state. */
+        /// <summary>Switch to specified lex state.</summary>
         public void SwitchTo(int lexState)
         {
             if (lexState >= 2 || lexState < 0)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Query/BasicQueryFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Query/BasicQueryFactory.cs b/src/Lucene.Net.QueryParser/Surround/Query/BasicQueryFactory.cs
index 523066d..e60e252 100644
--- a/src/Lucene.Net.QueryParser/Surround/Query/BasicQueryFactory.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Query/BasicQueryFactory.cs
@@ -97,8 +97,6 @@ namespace Lucene.Net.QueryParsers.Surround.Query
         /// Two BasicQueryFactory's are equal when they generate
         /// the same types of basic queries, or both cannot generate queries anymore.
         /// </summary>
-        /// <param name="obj"></param>
-        /// <returns></returns>
         public override bool Equals(object obj)
         {
             if (!(obj is BasicQueryFactory))

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Query/DistanceSubQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Query/DistanceSubQuery.cs b/src/Lucene.Net.QueryParser/Surround/Query/DistanceSubQuery.cs
index c7357ee..9d79a78 100644
--- a/src/Lucene.Net.QueryParser/Surround/Query/DistanceSubQuery.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Query/DistanceSubQuery.cs
@@ -24,9 +24,9 @@
     public interface IDistanceSubQuery
     {
         /// <summary>
-        /// When distanceSubQueryNotAllowed() returns non null, the reason why the subquery
+        /// When <see cref="DistanceSubQueryNotAllowed()"/> returns non null, the reason why the subquery
         /// is not allowed as a distance subquery is returned.
-        /// <br>When distanceSubQueryNotAllowed() returns null addSpanNearQueries() can be used
+        /// <para/>When <see cref="DistanceSubQueryNotAllowed()"/> returns null <see cref="AddSpanQueries(SpanNearClauseFactory)"/> can be used
         /// in the creation of the span near clause for the subquery.
         /// </summary>
         string DistanceSubQueryNotAllowed();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Query/RewriteQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Query/RewriteQuery.cs b/src/Lucene.Net.QueryParser/Surround/Query/RewriteQuery.cs
index 89b8459..7c0ade0 100644
--- a/src/Lucene.Net.QueryParser/Surround/Query/RewriteQuery.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Query/RewriteQuery.cs
@@ -76,7 +76,7 @@ namespace Lucene.Net.QueryParsers.Surround.Query
         /// <summary>
         /// Not supported by this query.
         /// </summary>
-        /// <exception cref="NotSupportedException">throws NotSupportedException always: clone is not supported.</exception>
+        /// <exception cref="NotSupportedException">throws <see cref="NotSupportedException"/> always: clone is not supported.</exception>
         public override object Clone()
         {
             throw new NotSupportedException();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs b/src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs
index ece27fe..8657092 100644
--- a/src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs
@@ -74,7 +74,7 @@ namespace Lucene.Net.QueryParsers.Surround.Query
 
         /// <summary>
         /// Callback to visit each matching term during "rewrite"
-        /// in <see cref="M:VisitMatchingTerm(Term)"/>
+        /// in <see cref="VisitMatchingTerm(Term)"/>
         /// </summary>
         public interface IMatchingTermVisitor
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Query/SpanNearClauseFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Query/SpanNearClauseFactory.cs b/src/Lucene.Net.QueryParser/Surround/Query/SpanNearClauseFactory.cs
index 64ac626..7fba250 100644
--- a/src/Lucene.Net.QueryParser/Surround/Query/SpanNearClauseFactory.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Query/SpanNearClauseFactory.cs
@@ -25,27 +25,29 @@ namespace Lucene.Net.QueryParsers.Surround.Query
 
     /// <summary>
     /// SpanNearClauseFactory:
-    /// 
+    /// <para/>
     /// Operations:
     /// 
-    /// - create for a field name and an indexreader.
+    /// <list type="bullet">
+    ///     <item>create for a field name and an indexreader.</item>
+    /// 
+    ///     <item>add a weighted Term - this should add a corresponding SpanTermQuery, or increase the weight of an existing one.</item>
     /// 
-    /// - add a weighted Term
-    /// this should add a corresponding SpanTermQuery, or
-    /// increase the weight of an existing one.
-    /// - add a weighted subquery SpanNearQuery
+    ///     <item>add a weighted subquery SpanNearQuery</item>
     /// 
-    /// - create a clause for SpanNearQuery from the things added above.
+    ///     <item>create a clause for SpanNearQuery from the things added above.</item>
+    /// </list>
+    /// <para/>
     /// For this, create an array of SpanQuery's from the added ones.
     /// The clause normally is a SpanOrQuery over the added subquery SpanNearQuery
     /// the SpanTermQuery's for the added Term's
-    /// 
+    /// <para/>
     /// When  it is necessary to suppress double subqueries as much as possible:
     /// GetHashCode() and Equals() on unweighted SpanQuery are needed (possibly via GetTerms(),
     /// the terms are individually hashable).
     /// Idem SpanNearQuery: hash on the subqueries and the slop.
     /// Evt. merge SpanNearQuery's by adding the weights of the corresponding subqueries.
-    /// 
+    /// <para/>
     /// To be determined:
     /// Are SpanQuery weights handled correctly during search by Lucene?
     /// Should the resulting SpanOrQuery be sorted?

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Query/SrndQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Query/SrndQuery.cs b/src/Lucene.Net.QueryParser/Surround/Query/SrndQuery.cs
index 93930c3..198231f 100644
--- a/src/Lucene.Net.QueryParser/Surround/Query/SrndQuery.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Query/SrndQuery.cs
@@ -71,10 +71,9 @@ namespace Lucene.Net.QueryParsers.Surround.Query
         public abstract Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf);
 
         /// <summary>
-        /// This method is used by <see cref="M:GetHashCode()"/> and <see cref="M:Equals(Object)"/>,
+        /// This method is used by <see cref="GetHashCode()"/> and <see cref="Equals(Object)"/>,
         /// see LUCENE-2945.
         /// </summary>
-        /// <returns></returns>
         public abstract override string ToString();
 
         public virtual bool IsFieldsSubQueryAcceptable { get { return true; } }
@@ -97,9 +96,9 @@ namespace Lucene.Net.QueryParsers.Surround.Query
         }
 
         /// <summary>
-        /// For subclasses of <see cref="SrndQuery"/> within the package
-        /// {@link org.apache.lucene.queryparser.surround.query}
-        /// it is not necessary to override this method, <see cref="M:ToString()"/>
+        /// For subclasses of <see cref="SrndQuery"/> within the namespace
+        /// <see cref="Lucene.Net.QueryParsers.Surround.Query"/>
+        /// it is not necessary to override this method, <see cref="ToString()"/>
         /// </summary>
         public override int GetHashCode()
         {
@@ -107,13 +106,10 @@ namespace Lucene.Net.QueryParsers.Surround.Query
         }
 
         /// <summary>
-        /// For subclasses of <see cref="SrndQuery"/> within the package
-        /// {@link org.apache.lucene.queryparser.surround.query}
-        /// it is not necessary to override this method,
-        /// @see #toString()
+        /// For subclasses of <see cref="SrndQuery"/> within the namespace
+        /// <see cref="Lucene.Net.QueryParsers.Surround.Query"/>
+        /// it is not necessary to override this method, <see cref="ToString()"/>
         /// </summary>
-        /// <param name="obj"></param>
-        /// <returns></returns>
         public override bool Equals(object obj)
         {
             if (obj == null)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Query/SrndTruncQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Query/SrndTruncQuery.cs b/src/Lucene.Net.QueryParser/Surround/Query/SrndTruncQuery.cs
index 8c47b37..9453565 100644
--- a/src/Lucene.Net.QueryParser/Surround/Query/SrndTruncQuery.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Query/SrndTruncQuery.cs
@@ -23,6 +23,9 @@ namespace Lucene.Net.QueryParsers.Surround.Query
      * limitations under the License.
      */
 
+    /// <summary>
+    /// Query that matches wildcards
+    /// </summary>
     public class SrndTruncQuery : SimpleTerm
     {
         public SrndTruncQuery(string truncated, char unlimited, char mask)


[39/58] lucenenet git commit: QueryParser.Flexible: Documentation comments

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
index 5a59a3b..a5ed823 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
@@ -25,106 +25,106 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
     [Serializable]
     public class Token
     {
-        /**
-         * An integer that describes the kind of this token.  This numbering
-         * system is determined by JavaCCParser, and a table of these numbers is
-         * stored in the file ...Constants.java.
-         */
+        /// <summary>
+        /// An integer that describes the kind of this token.  This numbering
+        /// system is determined by JavaCCParser, and a table of these numbers is
+        /// stored in the file ...Constants.java.
+        /// </summary>
         public int kind;
 
-        /** The line number of the first character of this Token. */
+        /// <summary>The line number of the first character of this Token.</summary>
         public int beginLine;
-        /** The column number of the first character of this Token. */
+        /// <summary>The column number of the first character of this Token.</summary>
         public int beginColumn;
-        /** The line number of the last character of this Token. */
+        /// <summary>The line number of the last character of this Token.</summary>
         public int endLine;
-        /** The column number of the last character of this Token. */
+        /// <summary>The column number of the last character of this Token.</summary>
         public int endColumn;
 
-        /**
-         * The string image of the token.
-         */
+        /// <summary>
+        /// The string image of the token.
+        /// </summary>
         public string image;
 
-        /**
-         * A reference to the next regular (non-special) token from the input
-         * stream.  If this is the last token from the input stream, or if the
-         * token manager has not read tokens beyond this one, this field is
-         * set to null.  This is true only if this token is also a regular
-         * token.  Otherwise, see below for a description of the contents of
-         * this field.
-         */
+        /// <summary>
+        /// A reference to the next regular (non-special) token from the input
+        /// stream.  If this is the last token from the input stream, or if the
+        /// token manager has not read tokens beyond this one, this field is
+        /// set to null.  This is true only if this token is also a regular
+        /// token.  Otherwise, see below for a description of the contents of
+        /// this field.
+        /// </summary>
         public Token next;
 
-        /**
-         * This field is used to access special tokens that occur prior to this
-         * token, but after the immediately preceding regular (non-special) token.
-         * If there are no such special tokens, this field is set to null.
-         * When there are more than one such special token, this field refers
-         * to the last of these special tokens, which in turn refers to the next
-         * previous special token through its specialToken field, and so on
-         * until the first special token (whose specialToken field is null).
-         * The next fields of special tokens refer to other special tokens that
-         * immediately follow it (without an intervening regular token).  If there
-         * is no such token, this field is null.
-         */
+        /// <summary>
+        /// This field is used to access special tokens that occur prior to this
+        /// token, but after the immediately preceding regular (non-special) token.
+        /// If there are no such special tokens, this field is set to null.
+        /// When there are more than one such special token, this field refers
+        /// to the last of these special tokens, which in turn refers to the next
+        /// previous special token through its specialToken field, and so on
+        /// until the first special token (whose specialToken field is null).
+        /// The next fields of special tokens refer to other special tokens that
+        /// immediately follow it (without an intervening regular token).  If there
+        /// is no such token, this field is null.
+        /// </summary>
         public Token specialToken;
 
-        /**
-         * An optional attribute value of the Token.
-         * Tokens which are not used as syntactic sugar will often contain
-         * meaningful values that will be used later on by the compiler or
-         * interpreter. This attribute value is often different from the image.
-         * Any subclass of Token that actually wants to return a non-null value can
-         * override this method as appropriate.
-         */
+        /// <summary>
+        /// An optional attribute value of the Token.
+        /// Tokens which are not used as syntactic sugar will often contain
+        /// meaningful values that will be used later on by the compiler or
+        /// interpreter. This attribute value is often different from the image.
+        /// Any subclass of Token that actually wants to return a non-null value can
+        /// override this method as appropriate.
+        /// </summary>
         public virtual object Value
         {
             get { return null; }
         }
 
-        /**
-         * No-argument constructor
-         */
+        /// <summary>
+        /// No-argument constructor
+        /// </summary>
         public Token() { }
 
-        /**
-         * Constructs a new token for the specified Image.
-         */
+        /// <summary>
+        /// Constructs a new token for the specified Image.
+        /// </summary>
         public Token(int kind)
             : this(kind, null)
         {
         }
 
-        /**
-         * Constructs a new token for the specified Image and Kind.
-         */
+        /// <summary>
+        /// Constructs a new token for the specified Image and Kind.
+        /// </summary>
         public Token(int kind, string image)
         {
             this.kind = kind;
             this.image = image;
         }
 
-        /**
-         * Returns the image.
-         */
+        /// <summary>
+        /// Returns the image.
+        /// </summary>
         public override string ToString()
         {
             return image;
         }
 
-        /**
-         * Returns a new Token object, by default. However, if you want, you
-         * can create and return subclass objects based on the value of ofKind.
-         * Simply add the cases to the switch for all those special cases.
-         * For example, if you have a subclass of Token called IDToken that
-         * you want to create if ofKind is ID, simply add something like :
-         *
-         *    case MyParserConstants.ID : return new IDToken(ofKind, image);
-         *
-         * to the following switch statement. Then you can cast matchedToken
-         * variable to the appropriate type and use sit in your lexical actions.
-         */
+        /// <summary>
+        /// Returns a new <see cref="Token"/> object, by default. However, if you want, you
+        /// can create and return subclass objects based on the value of <paramref name="ofKind"/>.
+        /// Simply add the cases to the switch for all those special cases.
+        /// For example, if you have a subclass of <see cref="Token"/> called IDToken that
+        /// you want to create if <paramref name="ofKind"/> is ID, simply add something like :
+        /// <code>
+        ///     case MyParserConstants.ID : return new IDToken(ofKind, image);
+        /// </code>
+        /// to the following switch statement. Then you can cast matchedToken
+        /// variable to the appropriate type and use sit in your lexical actions.
+        /// </summary>
         public static Token NewToken(int ofKind, string image)
         {
             switch (ofKind)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
index 2d29471..329410d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
@@ -27,40 +27,38 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
     [Serializable]
     public class TokenMgrError : Exception
     {
-        /*
-         * Ordinals for various reasons why an Error of this type can be thrown.
-         */
+        // Ordinals for various reasons why an Error of this type can be thrown.
 
-        /**
-         * Lexical error occurred.
-         */
+        /// <summary>
+        /// Lexical error occurred.
+        /// </summary>
         internal static readonly int LEXICAL_ERROR = 0;
 
-        /**
-         * An attempt was made to create a second instance of a static token manager.
-         */
+        /// <summary>
+        /// An attempt was made to create a second instance of a static token manager.
+        /// </summary>
         internal static readonly int STATIC_LEXER_ERROR = 1;
 
-        /**
-         * Tried to change to an invalid lexical state.
-         */
+        /// <summary>
+        /// Tried to change to an invalid lexical state.
+        /// </summary>
         internal static readonly int INVALID_LEXICAL_STATE = 2;
 
-        /**
-         * Detected (and bailed out of) an infinite loop in the token manager.
-         */
+        /// <summary>
+        /// Detected (and bailed out of) an infinite loop in the token manager.
+        /// </summary>
         internal static readonly int LOOP_DETECTED = 3;
 
-        /**
-         * Indicates the reason why the exception is thrown. It will have
-         * one of the above 4 values.
-         */
+        /// <summary>
+        /// Indicates the reason why the exception is thrown. It will have
+        /// one of the above 4 values.
+        /// </summary>
         internal int errorCode;
 
-        /**
-         * Replaces unprintable characters by their escaped (or unicode escaped)
-         * equivalents in the given string
-         */
+        /// <summary>
+        /// Replaces unprintable characters by their escaped (or unicode escaped)
+        /// equivalents in the given string
+        /// </summary>
         protected static string AddEscapes(string str)
         {
             StringBuilder retval = new StringBuilder();
@@ -111,18 +109,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return retval.ToString();
         }
 
-        /**
-         * Returns a detailed message for the Error when it is thrown by the
-         * token manager to indicate a lexical error.
-         * Parameters :
-         *    EOFSeen     : indicates if EOF caused the lexical error
-         *    curLexState : lexical state in which this error occurred
-         *    errorLine   : line number when the error occurred
-         *    errorColumn : column number when the error occurred
-         *    errorAfter  : prefix that was seen before this error occurred
-         *    curchar     : the offending character
-         * Note: You can customize the lexical error message by modifying this method.
-         */
+        /// <summary>
+        /// Returns a detailed message for the Error when it is thrown by the
+        /// token manager to indicate a lexical error.
+        /// </summary>
+        /// <param name="EOFSeen">indicates if EOF caused the lexical error</param>
+        /// <param name="lexState">lexical state in which this error occurred</param>
+        /// <param name="errorLine">line number when the error occurred</param>
+        /// <param name="errorColumn">column number when the error occurred</param>
+        /// <param name="errorAfter">prefix that was seen before this error occurred</param>
+        /// <param name="curChar">the offending character</param>
+        /// <remarks>Note: You can customize the lexical error message by modifying this method.</remarks>
         protected static string LexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar)
         {
             return ("Lexical error at line " +
@@ -132,37 +129,42 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                   "after : \"" + AddEscapes(errorAfter) + "\"");
         }
 
-        /**
-         * You can also modify the body of this method to customize your error messages.
-         * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
-         * of end-users concern, so you can return something like :
-         *
-         *     "Internal Error : Please file a bug report .... "
-         *
-         * from this method for such cases in the release version of your parser.
-         */
+        /// <summary>
+        /// You can also modify the body of this method to customize your error messages.
+        /// For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
+        /// of end-users concern, so you can return something like :
+        /// 
+        ///     "Internal Error : Please file a bug report .... "
+        ///     
+        /// from this method for such cases in the release version of your parser.
+        /// </summary>
         public override string Message
         {
             get { return base.Message; }
         }
 
-        /*
-         * Constructors of various flavors follow.
-         */
+        // Constructors of various flavors follow.
 
-        /** No arg constructor. */
+        /// <summary>No arg constructor.</summary>
         public TokenMgrError()
         {
         }
 
-        /** Constructor with message and reason. */
+        /// <summary>Constructor with message and reason.</summary>
         public TokenMgrError(string message, int reason)
             : base(message)
         {
             errorCode = reason;
         }
 
-        /** Full Constructor. */
+        /// <summary>Full Constructor.</summary>
+        /// <param name="EOFSeen">indicates if EOF caused the lexical error</param>
+        /// <param name="lexState">lexical state in which this error occurred</param>
+        /// <param name="errorLine">line number when the error occurred</param>
+        /// <param name="errorColumn">column number when the error occurred</param>
+        /// <param name="errorAfter">prefix that was seen before this error occurred</param>
+        /// <param name="curChar">the offending character</param>
+        /// <param name="reason"></param>
         public TokenMgrError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar, int reason)
             : this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
index d117bca..23d6264 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
@@ -30,12 +30,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
     /// <summary>
     /// This processor verifies if
-    /// {@link ConfigurationKeys#ALLOW_LEADING_WILDCARD} is defined in the
-    /// {@link QueryConfigHandler}. If it is and leading wildcard is not allowed, it
-    /// looks for every {@link WildcardQueryNode} contained in the query node tree
+    /// <see cref="ConfigurationKeys.ALLOW_LEADING_WILDCARD"/> is defined in the
+    /// <see cref="QueryConfigHandler"/>. If it is and leading wildcard is not allowed, it
+    /// looks for every <see cref="WildcardQueryNode"/> contained in the query node tree
     /// and throws an exception if any of them has a leading wildcard ('*' or '?').
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#ALLOW_LEADING_WILDCARD"/>
+    /// <seealso cref="ConfigurationKeys.ALLOW_LEADING_WILDCARD"/>
     public class AllowLeadingWildcardProcessor : QueryNodeProcessorImpl
     {
         public AllowLeadingWildcardProcessor()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
index 5f8f414..fb6001c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
@@ -32,24 +32,24 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processor verifies if {@link ConfigurationKeys#ANALYZER}
-    /// is defined in the {@link QueryConfigHandler}. If it is and the analyzer is
-    /// not <code>null</code>, it looks for every {@link FieldQueryNode} that is not
-    /// {@link WildcardQueryNode}, {@link FuzzyQueryNode} or
-    /// {@link RangeQueryNode} contained in the query node tree, then it applies
-    /// the analyzer to that {@link FieldQueryNode} object.
+    /// This processor verifies if <see cref="ConfigurationKeys.ANALYZER"/>
+    /// is defined in the <see cref="Core.Config.QueryConfigHandler"/>. If it is and the analyzer is
+    /// not <c>null</c>, it looks for every <see cref="FieldQueryNode"/> that is not
+    /// <see cref="WildcardQueryNode"/>, <see cref="FuzzyQueryNode"/> or
+    /// <see cref="IRangeQueryNode"/> contained in the query node tree, then it applies
+    /// the analyzer to that <see cref="FieldQueryNode"/> object.
     /// <para/>
     /// If the analyzer return only one term, the returned term is set to the
-    /// {@link FieldQueryNode} and it's returned.
+    /// <see cref="FieldQueryNode"/> and it's returned.
     /// <para/>
-    /// If the analyzer return more than one term, a {@link TokenizedPhraseQueryNode}
-    /// or {@link MultiPhraseQueryNode} is created, whether there is one or more
+    /// If the analyzer return more than one term, a <see cref="TokenizedPhraseQueryNode"/>
+    /// or <see cref="MultiPhraseQueryNode"/> is created, whether there is one or more
     /// terms at the same position, and it's returned.
     /// <para/>
-    /// If no term is returned by the analyzer a {@link NoTokenFoundQueryNode} object
+    /// If no term is returned by the analyzer a <see cref="NoTokenFoundQueryNode"/> object
     /// is returned.
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#ANALYZER"/>
+    /// <seealso cref="ConfigurationKeys.ANALYZER"/>
     /// <seealso cref="Analyzer"/>
     /// <seealso cref="TokenStream"/>
     public class AnalyzerQueryNodeProcessor : QueryNodeProcessorImpl

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
index 500e629..08b40d2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
@@ -27,26 +27,26 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processor is used to apply the correct {@link ModifierQueryNode} to
-    /// {@link BooleanQueryNode}s children. This is a variant of
-    /// {@link BooleanModifiersQueryNodeProcessor} which ignores precedence.
+    /// This processor is used to apply the correct <see cref="ModifierQueryNode"/> to
+    /// <see cref="BooleanQueryNode"/>s children. This is a variant of
+    /// <see cref="Precedence.Processors.BooleanModifiersQueryNodeProcessor"/> which ignores precedence.
     /// <para/>
-    /// The {@link StandardSyntaxParser} knows the rules of precedence, but lucene
+    /// The <see cref="Parser.StandardSyntaxParser"/> knows the rules of precedence, but lucene
     /// does not. e.g. <code>(A AND B OR C AND D)</code> ist treated like
     /// <code>(+A +B +C +D)</code>.
     /// <para/>
     /// This processor walks through the query node tree looking for
-    /// {@link BooleanQueryNode}s. If an {@link AndQueryNode} is found, every child,
-    /// which is not a {@link ModifierQueryNode} or the {@link ModifierQueryNode} is
-    /// {@link Modifier#MOD_NONE}, becomes a {@link Modifier#MOD_REQ}. For default
-    /// {@link BooleanQueryNode}, it checks the default operator is
-    /// {@link Operator#AND}, if it is, the same operation when an
-    /// {@link AndQueryNode} is found is applied to it. Each {@link BooleanQueryNode}
-    /// which direct parent is also a {@link BooleanQueryNode} is removed (to ignore
+    /// <see cref="BooleanQueryNode"/>s. If an <see cref="AndQueryNode"/> is found, every child,
+    /// which is not a <see cref="ModifierQueryNode"/> or the <see cref="ModifierQueryNode"/> is
+    /// <see cref="Modifier.MOD_NONE"/>, becomes a <see cref="Modifier.MOD_REQ"/>. For default
+    /// <see cref="BooleanQueryNode"/>, it checks the default operator is
+    /// <see cref="Operator.AND"/>, if it is, the same operation when an
+    /// <see cref="AndQueryNode"/> is found is applied to it. Each <see cref="BooleanQueryNode"/>
+    /// which direct parent is also a <see cref="BooleanQueryNode"/> is removed (to ignore
     /// the rules of precedence).
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#DEFAULT_OPERATOR"/>
-    /// <seealso cref="BooleanModifiersQueryNodeProcessor"/>
+    /// <seealso cref="ConfigurationKeys.DEFAULT_OPERATOR"/>
+    /// <seealso cref="Precedence.Processors.BooleanModifiersQueryNodeProcessor"/>
     public class BooleanQuery2ModifierNodeProcessor : IQueryNodeProcessor
     {
         internal readonly static string TAG_REMOVE = "remove";

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
index 2d10381..4e0e807 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
@@ -23,10 +23,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processor removes every {@link BooleanQueryNode} that contains only one
-    /// child and returns this child. If this child is {@link ModifierQueryNode} that
+    /// This processor removes every <see cref="BooleanQueryNode"/> that contains only one
+    /// child and returns this child. If this child is <see cref="ModifierQueryNode"/> that
     /// was defined by the user. A modifier is not defined by the user when it's a
-    /// {@link BooleanModifierNode}
+    /// <see cref="BooleanModifierNode"/>
     /// </summary>
     /// <seealso cref="ModifierQueryNode"/>
     public class BooleanSingleChildOptimizationQueryNodeProcessor : QueryNodeProcessorImpl

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
index 43b2582..938e2a7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
@@ -26,10 +26,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
     /// <summary>
     /// This processor iterates the query node tree looking for every
-    /// {@link FieldableNode} that has {@link ConfigurationKeys#BOOST} in its
-    /// config. If there is, the boost is applied to that {@link FieldableNode}.
+    /// <see cref="IFieldableNode"/> that has <see cref="ConfigurationKeys.BOOST"/> in its
+    /// config. If there is, the boost is applied to that <see cref="IFieldableNode"/>.
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#BOOST"/>
+    /// <seealso cref="ConfigurationKeys.BOOST"/>
     /// <seealso cref="QueryConfigHandler"/>
     /// <seealso cref="IFieldableNode"/>
     public class BoostQueryNodeProcessor : QueryNodeProcessorImpl

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
index 3694d73..7460536 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
@@ -25,15 +25,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processor verifies if {@link ConfigurationKeys#PHRASE_SLOP}
-    /// is defined in the {@link QueryConfigHandler}. If it is, it looks for every
-    /// {@link TokenizedPhraseQueryNode} and {@link MultiPhraseQueryNode} that does
-    /// not have any {@link SlopQueryNode} applied to it and creates an
-    /// {@link SlopQueryNode} and apply to it. The new {@link SlopQueryNode} has the
+    /// This processor verifies if <see cref="ConfigurationKeys.PHRASE_SLOP"/>
+    /// is defined in the <see cref="QueryConfigHandler"/>. If it is, it looks for every
+    /// <see cref="TokenizedPhraseQueryNode"/> and <see cref="MultiPhraseQueryNode"/> that does
+    /// not have any <see cref="SlopQueryNode"/> applied to it and creates an
+    /// <see cref="SlopQueryNode"/> and apply to it. The new <see cref="SlopQueryNode"/> has the
     /// same slop value defined in the configuration.
     /// </summary>
     /// <seealso cref="SlopQueryNode"/>
-    /// <seealso cref="ConfigurationKeys#PHRASE_SLOP"/>
+    /// <seealso cref="ConfigurationKeys.PHRASE_SLOP"/>
     public class DefaultPhraseSlopQueryNodeProcessor : QueryNodeProcessorImpl
     {
         private bool processChildren = true;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
index 5096f09..a7a224e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
@@ -26,14 +26,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
     /// <summary>
     /// This processor iterates the query node tree looking for every
-    /// {@link FuzzyQueryNode}, when this kind of node is found, it checks on the
+    /// <see cref="FuzzyQueryNode"/>, when this kind of node is found, it checks on the
     /// query configuration for
-    /// {@link ConfigurationKeys#FUZZY_CONFIG}, gets the
+    /// <see cref="ConfigurationKeys.FUZZY_CONFIG"/>, gets the
     /// fuzzy prefix length and default similarity from it and set to the fuzzy node.
-    /// For more information about fuzzy prefix length check: {@link FuzzyQuery}.
+    /// For more information about fuzzy prefix length check: <see cref="Search.FuzzyQuery"/>.
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#FUZZY_CONFIG"/>
-    /// <seealso cref="FuzzyQuery"/>
+    /// <seealso cref="ConfigurationKeys.FUZZY_CONFIG"/>
+    /// <seealso cref="Search.FuzzyQuery"/>
     /// <seealso cref="FuzzyQueryNode"/>
     public class FuzzyQueryNodeProcessor : QueryNodeProcessorImpl
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
index aa43ec1..b80fd1b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
@@ -28,13 +28,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// The {@link SyntaxParser}
+    /// The <see cref="Core.Parser.ISyntaxParser"/>
     /// generates query node trees that consider the boolean operator precedence, but
     /// Lucene current syntax does not support boolean precedence, so this processor
     /// remove all the precedence and apply the equivalent modifier according to the
     /// boolean operation defined on an specific query node.
     /// <para/>
-    /// If there is a {@link GroupQueryNode} in the query node tree, the query node
+    /// If there is a <see cref="GroupQueryNode"/> in the query node tree, the query node
     /// tree is not merged with the one above it.
     /// <para/>
     /// Example: TODO: describe a good example to show how this processor works
@@ -103,8 +103,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             }
         }
 
-        /**
-         */
         private IQueryNode ApplyModifier(IQueryNode node, IQueryNode parent)
         {
             if (this.usingAnd)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
index f145498..484d462 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
@@ -28,13 +28,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
     /// <summary>
     /// This processor verifies if 
-    /// {@link ConfigurationKeys#LOWERCASE_EXPANDED_TERMS} is defined in the
-    /// {@link QueryConfigHandler}. If it is and the expanded terms should be
-    /// lower-cased, it looks for every {@link WildcardQueryNode},
-    /// {@link FuzzyQueryNode} and children of a {@link RangeQueryNode} and lower-case its
+    /// <see cref="ConfigurationKeys.LOWERCASE_EXPANDED_TERMS"/> is defined in the
+    /// <see cref="Core.Config.QueryConfigHandler"/>. If it is and the expanded terms should be
+    /// lower-cased, it looks for every <see cref="WildcardQueryNode"/>,
+    /// <see cref="FuzzyQueryNode"/> and children of a <see cref="IRangeQueryNode"/> and lower-case its
     /// term.
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#LOWERCASE_EXPANDED_TERMS"/>.
+    /// <seealso cref="ConfigurationKeys.LOWERCASE_EXPANDED_TERMS"/>.
     public class LowercaseExpandedTermsQueryNodeProcessor : QueryNodeProcessorImpl
     {
         public LowercaseExpandedTermsQueryNodeProcessor()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
index 8c5c61c..adccff8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
@@ -22,11 +22,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processor converts every {@link WildcardQueryNode} that is "*:*" to
-    /// {@link MatchAllDocsQueryNode}.
+    /// This processor converts every <see cref="Nodes.WildcardQueryNode"/> that is "*:*" to
+    /// <see cref="MatchAllDocsQueryNode"/>.
     /// </summary>
     /// <seealso cref="MatchAllDocsQueryNode"/>
-    /// <seealso cref="MatchAllDocsQuery"/>
+    /// <seealso cref="Search.MatchAllDocsQuery"/>
     public class MatchAllDocsQueryNodeProcessor : QueryNodeProcessorImpl
     {
         public MatchAllDocsQueryNodeProcessor()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
index 7694d01..35bac44 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
@@ -27,15 +27,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
     /// This processor is used to expand terms so the query looks for the same term
     /// in different fields. It also boosts a query based on its field.
     /// <para/>
-    /// This processor looks for every {@link FieldableNode} contained in the query
-    /// node tree. If a {@link FieldableNode} is found, it checks if there is a
-    /// {@link ConfigurationKeys#MULTI_FIELDS} defined in the {@link QueryConfigHandler}. If
-    /// there is, the {@link FieldableNode} is cloned N times and the clones are
-    /// added to a {@link BooleanQueryNode} together with the original node. N is
+    /// This processor looks for every <see cref="IFieldableNode"/> contained in the query
+    /// node tree. If a <see cref="IFieldableNode"/> is found, it checks if there is a
+    /// <see cref="ConfigurationKeys.MULTI_FIELDS"/> defined in the <see cref="Core.Config.QueryConfigHandler"/>. If
+    /// there is, the <see cref="IFieldableNode"/> is cloned N times and the clones are
+    /// added to a <see cref="BooleanQueryNode"/> together with the original node. N is
     /// defined by the number of fields that it will be expanded to. The
-    /// {@link BooleanQueryNode} is returned.
+    /// <see cref="BooleanQueryNode"/> is returned.
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#MULTI_FIELDS"/>
+    /// <seealso cref="ConfigurationKeys.MULTI_FIELDS"/>
     public class MultiFieldQueryNodeProcessor : QueryNodeProcessorImpl
     {
         private bool processChildren = true;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
index f5e4d3e..08758e4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
@@ -27,8 +27,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
     /// <summary>
     /// This processor instates the default
-    /// {@link org.apache.lucene.search.MultiTermQuery.RewriteMethod},
-    /// {@link MultiTermQuery#CONSTANT_SCORE_AUTO_REWRITE_DEFAULT}, for multi-term
+    /// <see cref="MultiTermQuery.RewriteMethod"/>,
+    /// <see cref="MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT"/>, for multi-term
     /// query nodes.
     /// </summary>
     public class MultiTermRewriteMethodProcessor : QueryNodeProcessorImpl

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
index b518b5d..5b008d8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
@@ -31,29 +31,29 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processor is used to convert {@link FieldQueryNode}s to
-    /// {@link NumericRangeQueryNode}s. It looks for
-    /// {@link ConfigurationKeys#NUMERIC_CONFIG} set in the {@link FieldConfig} of
-    /// every {@link FieldQueryNode} found. If
-    /// {@link ConfigurationKeys#NUMERIC_CONFIG} is found, it considers that
-    /// {@link FieldQueryNode} to be a numeric query and convert it to
-    /// {@link NumericRangeQueryNode} with upper and lower inclusive and lower and
-    /// upper equals to the value represented by the {@link FieldQueryNode} converted
-    /// to {@link Number}. It means that <b>field:1</b> is converted to <b>field:[1
+    /// This processor is used to convert <see cref="FieldQueryNode"/>s to
+    /// <see cref="NumericRangeQueryNode"/>s. It looks for
+    /// <see cref="ConfigurationKeys.NUMERIC_CONFIG"/> set in the <see cref="FieldConfig"/> of
+    /// every <see cref="FieldQueryNode"/> found. If
+    /// <see cref="ConfigurationKeys.NUMERIC_CONFIG"/> is found, it considers that
+    /// <see cref="FieldQueryNode"/> to be a numeric query and convert it to
+    /// <see cref="NumericRangeQueryNode"/> with upper and lower inclusive and lower and
+    /// upper equals to the value represented by the <see cref="FieldQueryNode"/> converted
+    /// to <see cref="object"/> representing a .NET numeric type. It means that <b>field:1</b> is converted to <b>field:[1
     /// TO 1]</b>.
     /// <para/>
-    /// Note that {@link FieldQueryNode}s children of a
-    /// {@link RangeQueryNode} are ignored.
+    /// Note that <see cref="FieldQueryNode"/>s children of a
+    /// <see cref="RangeQueryNode"/> are ignored.
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#NUMERIC_CONFIG"/>
+    /// <seealso cref="ConfigurationKeys.NUMERIC_CONFIG"/>
     /// <seealso cref="FieldQueryNode"/>
     /// <seealso cref="NumericConfig"/>
     /// <seealso cref="NumericQueryNode"/>
     public class NumericQueryNodeProcessor : QueryNodeProcessorImpl
     {
-        /**
-   * Constructs a {@link NumericQueryNodeProcessor} object.
-   */
+        /// <summary>
+        /// Constructs a <see cref="NumericQueryNodeProcessor"/> object.
+        /// </summary>
         public NumericQueryNodeProcessor()
         {
             // empty constructor

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
index 9388144..8b90df6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
@@ -32,23 +32,23 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processor is used to convert {@link TermRangeQueryNode}s to
-    /// {@link NumericRangeQueryNode}s. It looks for
-    /// {@link ConfigurationKeys#NUMERIC_CONFIG} set in the {@link FieldConfig} of
-    /// every {@link TermRangeQueryNode} found. If
-    /// {@link ConfigurationKeys#NUMERIC_CONFIG} is found, it considers that
-    /// {@link TermRangeQueryNode} to be a numeric range query and convert it to
-    /// {@link NumericRangeQueryNode}.
+    /// This processor is used to convert <see cref="TermRangeQueryNode"/>s to
+    /// <see cref="NumericRangeQueryNode"/>s. It looks for
+    /// <see cref="ConfigurationKeys.NUMERIC_CONFIG"/> set in the <see cref="FieldConfig"/> of
+    /// every <see cref="TermRangeQueryNode"/> found. If
+    /// <see cref="ConfigurationKeys.NUMERIC_CONFIG"/> is found, it considers that
+    /// <see cref="TermRangeQueryNode"/> to be a numeric range query and convert it to
+    /// <see cref="NumericRangeQueryNode"/>.
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#NUMERIC_CONFIG"/>
+    /// <seealso cref="ConfigurationKeys.NUMERIC_CONFIG"/>
     /// <seealso cref="TermRangeQueryNode"/>
     /// <seealso cref="NumericConfig"/>
     /// <seealso cref="NumericRangeQueryNode"/>
     public class NumericRangeQueryNodeProcessor : QueryNodeProcessorImpl
     {
-        /**
-   * Constructs an empty {@link NumericRangeQueryNode} object.
-   */
+        /// <summary>
+        /// Constructs an empty <see cref="NumericRangeQueryNode"/> object.
+        /// </summary>
         public NumericRangeQueryNodeProcessor()
         {
             // empty constructor

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
index 4ee5d58..5cf8111 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
@@ -25,7 +25,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// Processes {@link TermRangeQuery}s with open ranges.
+    /// Processes <see cref="Search.TermRangeQuery"/>s with open ranges.
     /// </summary>
     public class OpenRangeQueryNodeProcessor : QueryNodeProcessorImpl
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
index 728abeb..f6880e5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
@@ -23,9 +23,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processor removes invalid {@link SlopQueryNode} objects in the query
-    /// node tree. A {@link SlopQueryNode} is invalid if its child is neither a
-    /// {@link TokenizedPhraseQueryNode} nor a {@link MultiPhraseQueryNode}.
+    /// This processor removes invalid <see cref="SlopQueryNode"/> objects in the query
+    /// node tree. A <see cref="SlopQueryNode"/> is invalid if its child is neither a
+    /// <see cref="TokenizedPhraseQueryNode"/> nor a <see cref="MultiPhraseQueryNode"/>.
     /// </summary>
     /// <seealso cref="SlopQueryNode"/>
     public class PhraseSlopQueryNodeProcessor : QueryNodeProcessorImpl

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
index fdb87bb..c7452a9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
@@ -23,15 +23,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processor removes every {@link QueryNode} that is not a leaf and has not
+    /// This processor removes every <see cref="IQueryNode"/> that is not a leaf and has not
     /// children. If after processing the entire tree the root node is not a leaf and
-    /// has no children, a {@link MatchNoDocsQueryNode} object is returned.
+    /// has no children, a <see cref="MatchNoDocsQueryNode"/> object is returned.
     /// <para/>
     /// This processor is used at the end of a pipeline to avoid invalid query node
-    /// tree structures like a {@link GroupQueryNode} or {@link ModifierQueryNode}
+    /// tree structures like a <see cref="GroupQueryNode"/> or <see cref="ModifierQueryNode"/>
     /// with no children.
     /// </summary>
-    /// <seealso cref="QueryNode"/>
+    /// <seealso cref="IQueryNode"/>
     /// <seealso cref="MatchNoDocsQueryNode"/>
     public class RemoveEmptyNonLeafQueryNodeProcessor : QueryNodeProcessorImpl
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
index e0e4907..64c7a00 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/StandardQueryNodeProcessorPipeline.cs
@@ -22,19 +22,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
     /// <summary>
     /// This pipeline has all the processors needed to process a query node tree,
-    /// generated by {@link StandardSyntaxParser}, already assembled.
+    /// generated by <see cref="Parser.StandardSyntaxParser"/>, already assembled.
     /// <para/>
     /// The order they are assembled affects the results.
     /// <para/>
     /// This processor pipeline was designed to work with
-    /// {@link StandardQueryConfigHandler}.
+    /// <see cref="Config.StandardQueryConfigHandler"/>.
     /// <para/>
-    /// The result query node tree can be used to build a {@link Query} object using
-    /// {@link StandardQueryTreeBuilder}.
+    /// The result query node tree can be used to build a <see cref="Query"/> object using
+    /// <see cref="Builders.StandardQueryTreeBuilder"/>.
     /// </summary>
-    /// <seealso cref="StandardQueryTreeBuilder"/>
-    /// <seealso cref="StandardQueryConfigHandler"/>
-    /// <seealso cref="StandardSyntaxParser"/>
+    /// <seealso cref="Builders.StandardQueryTreeBuilder"/>
+    /// <seealso cref="Config.StandardQueryConfigHandler"/>
+    /// <seealso cref="Parser.StandardSyntaxParser"/>
     public class StandardQueryNodeProcessorPipeline : QueryNodeProcessorPipeline
     {
         public StandardQueryNodeProcessorPipeline(QueryConfigHandler queryConfig)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
index 3e8752f..23cb18d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
@@ -29,22 +29,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// This processors process {@link TermRangeQueryNode}s. It reads the lower and
-    /// upper bounds value from the {@link TermRangeQueryNode} object and try
-    /// to parse their values using a {@link DateFormat}. If the values cannot be
-    /// parsed to a date value, it will only create the {@link TermRangeQueryNode}
+    /// This processors process <see cref="TermRangeQueryNode"/>s. It reads the lower and
+    /// upper bounds value from the <see cref="TermRangeQueryNode"/> object and try
+    /// to parse their values using a <paramref name="dateFormat"/>. If the values cannot be
+    /// parsed to a date value, it will only create the <see cref="TermRangeQueryNode"/>
     /// using the non-parsed values.
     /// <para/>
-    /// If a {@link ConfigurationKeys#LOCALE} is defined in the
-    /// {@link QueryConfigHandler} it will be used to parse the date, otherwise
-    /// {@link Locale#getDefault()} will be used.
+    /// If a <see cref="ConfigurationKeys.LOCALE"/> is defined in the
+    /// <see cref="QueryConfigHandler"/> it will be used to parse the date, otherwise
+    /// <see cref="CultureInfo.CurrentCulture"/> will be used.
     /// <para/>
-    /// If a {@link ConfigurationKeys#DATE_RESOLUTION} is defined and the
-    /// {@link Resolution} is not <code>null</code> it will also be used to parse the
+    /// If a <see cref="ConfigurationKeys.DATE_RESOLUTION"/> is defined and the
+    /// <see cref="DateTools.Resolution"/> is not <c>null</c> it will also be used to parse the
     /// date value.
     /// </summary>
-    /// <seealso cref="ConfigurationKeys#DATE_RESOLUTION"/>
-    /// <seealso cref="ConfigurationKeys#LOCALE"/>
+    /// <seealso cref="ConfigurationKeys.DATE_RESOLUTION"/>
+    /// <seealso cref="ConfigurationKeys.LOCALE"/>
     /// <seealso cref="TermRangeQueryNode"/>
     public class TermRangeQueryNodeProcessor : QueryNodeProcessorImpl
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
index 3faecc6..df05e23 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
@@ -25,13 +25,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
      */
 
     /// <summary>
-    /// The {@link StandardSyntaxParser} creates {@link PrefixWildcardQueryNode} nodes which
+    /// The <see cref="Parser.StandardSyntaxParser"/> creates <see cref="PrefixWildcardQueryNode"/> nodes which
     /// have values containing the prefixed wildcard. However, Lucene
-    /// {@link PrefixQuery} cannot contain the prefixed wildcard. So, this processor
+    /// <see cref="Search.PrefixQuery"/> cannot contain the prefixed wildcard. So, this processor
     /// basically removed the prefixed wildcard from the
-    /// {@link PrefixWildcardQueryNode} value.
+    /// <see cref="PrefixWildcardQueryNode"/> value.
     /// </summary>
-    /// <seealso cref="PrefixQuery"/>
+    /// <seealso cref="Search.PrefixQuery"/>
     /// <seealso cref="PrefixWildcardQueryNode"/>
     public class WildcardQueryNodeProcessor : QueryNodeProcessorImpl
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
index 1d9ef50..1e720e6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
@@ -24,31 +24,25 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
     /// <summary>
     /// This class defines utility methods to (help) parse query strings into
-    /// {@link Query} objects.
+    /// <see cref="Query"/> objects.
     /// </summary>
     public sealed class QueryParserUtil
     {
-        /**
-   * Parses a query which searches on the fields specified.
-   * <p>
-   * If x fields are specified, this effectively constructs:
-   * 
-   * <pre>
-   * <code>
-   * (field1:query1) (field2:query2) (field3:query3)...(fieldx:queryx)
-   * </code>
-   * </pre>
-   * 
-   * @param queries
-   *          Queries strings to parse
-   * @param fields
-   *          Fields to search on
-   * @param analyzer
-   *          Analyzer to use
-   * @throws IllegalArgumentException
-   *           if the length of the queries array differs from the length of the
-   *           fields array
-   */
+        /// <summary>
+        /// Parses a query which searches on the fields specified.
+        /// <para/>
+        /// If x fields are specified, this effectively constructs:
+        /// <code>
+        /// (field1:query1) (field2:query2) (field3:query3)...(fieldx:queryx)
+        /// </code>
+        /// </summary>
+        /// <param name="queries">Queries strings to parse</param>
+        /// <param name="fields">Fields to search on</param>
+        /// <param name="analyzer">Analyzer to use</param>
+        /// <exception cref="ArgumentException">
+        /// if the length of the queries array differs from the length of the
+        /// fields array
+        /// </exception>
         public static Query Parse(string[] queries, string[] fields, Analyzer analyzer)
         {
             if (queries.Length != fields.Length)
@@ -71,42 +65,32 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             return bQuery;
         }
 
-        /**
-         * Parses a query, searching on the fields specified. Use this if you need to
-         * specify certain fields as required, and others as prohibited.
-         * <p>
-         * 
-         * Usage:
-         * <pre class="prettyprint">
-         * <code>
-         * String[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
-         * BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
-         *                BooleanClause.Occur.MUST,
-         *                BooleanClause.Occur.MUST_NOT};
-         * MultiFieldQueryParser.parse(&quot;query&quot;, fields, flags, analyzer);
-         * </code>
-         * </pre>
-         *<p>
-         * The code above would construct a query:
-         * 
-         * <pre>
-         * <code>
-         * (filename:query) +(contents:query) -(description:query)
-         * </code>
-         * </pre>
-         * 
-         * @param query
-         *          Query string to parse
-         * @param fields
-         *          Fields to search on
-         * @param flags
-         *          Flags describing the fields
-         * @param analyzer
-         *          Analyzer to use
-         * @throws IllegalArgumentException
-         *           if the length of the fields array differs from the length of the
-         *           flags array
-         */
+        /// <summary>
+        /// Parses a query, searching on the fields specified. Use this if you need to
+        /// specify certain fields as required, and others as prohibited.
+        /// <para/>
+        /// Usage:
+        /// <code>
+        /// string[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
+        /// BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
+        ///     BooleanClause.Occur.MUST,
+        ///     BooleanClause.Occur.MUST_NOT};
+        /// MultiFieldQueryParser.Parse(&quot;query&quot;, fields, flags, analyzer);
+        /// </code>
+        /// <para/>
+        /// The code above would construct a query:
+        /// <code>
+        /// (filename:query) +(contents:query) -(description:query)
+        /// </code>
+        /// </summary>
+        /// <param name="query">Query string to parse</param>
+        /// <param name="fields">Fields to search on</param>
+        /// <param name="flags">Flags describing the fields</param>
+        /// <param name="analyzer">Analyzer to use</param>
+        /// <exception cref="ArgumentException">
+        /// if the length of the fields array differs from the length of the
+        /// flags array
+        /// </exception>
         public static Query Parse(string query, string[] fields,
             BooleanClause.Occur[] flags, Analyzer analyzer)
         {
@@ -130,42 +114,32 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             return bQuery;
         }
 
-        /**
-         * Parses a query, searching on the fields specified. Use this if you need to
-         * specify certain fields as required, and others as prohibited.
-         * <p>
-         * 
-         * Usage:
-         * <pre class="prettyprint">
-         * <code>
-         * String[] query = {&quot;query1&quot;, &quot;query2&quot;, &quot;query3&quot;};
-         * String[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
-         * BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
-         *                BooleanClause.Occur.MUST,
-         *                BooleanClause.Occur.MUST_NOT};
-         * MultiFieldQueryParser.parse(query, fields, flags, analyzer);
-         * </code>
-         * </pre>
-         *<p>
-         * The code above would construct a query:
-         * 
-         * <pre>
-         * <code>
-         * (filename:query1) +(contents:query2) -(description:query3)
-         * </code>
-         * </pre>
-         * 
-         * @param queries
-         *          Queries string to parse
-         * @param fields
-         *          Fields to search on
-         * @param flags
-         *          Flags describing the fields
-         * @param analyzer
-         *          Analyzer to use
-         * @throws IllegalArgumentException
-         *           if the length of the queries, fields, and flags array differ
-         */
+        /// <summary>
+        /// Parses a query, searching on the fields specified. Use this if you need to
+        /// specify certain fields as required, and others as prohibited.
+        /// <para/>
+        /// Usage:
+        /// <code>
+        /// string[] query = {&quot;query1&quot;, &quot;query2&quot;, &quot;query3&quot;};
+        /// string[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
+        /// BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
+        ///     BooleanClause.Occur.MUST,
+        ///     BooleanClause.Occur.MUST_NOT};
+        /// MultiFieldQueryParser.Parse(query, fields, flags, analyzer);
+        /// </code>
+        /// <para/>
+        /// The code above would construct a query:
+        /// <code>
+        /// (filename:query1) +(contents:query2) -(description:query3)
+        /// </code>
+        /// </summary>
+        /// <param name="queries">Queries string to parse</param>
+        /// <param name="fields">Fields to search on</param>
+        /// <param name="flags">Flags describing the fields</param>
+        /// <param name="analyzer">Analyzer to use</param>
+        /// <exception cref="ArgumentException">
+        /// if the length of the queries, fields, and flags array differ
+        /// </exception>
         public static Query Parse(string[] queries, string[] fields,
             BooleanClause.Occur[] flags, Analyzer analyzer)
         {
@@ -190,10 +164,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             return bQuery;
         }
 
-        /**
-         * Returns a String where those characters that TextParser expects to be
-         * escaped are escaped by a preceding <code>\</code>.
-         */
+        /// <summary>
+        /// Returns a string where those characters that TextParser expects to be
+        /// escaped are escaped by a preceding <c>\</c>.
+        /// </summary>
         public static string Escape(string s)
         {
             StringBuilder sb = new StringBuilder();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index 592bfc3..d06b05f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -31,6 +31,75 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
      * limitations under the License.
      */
 
+    /// <summary>
+    /// This class is a helper that enables users to easily use the Lucene query
+    /// parser.
+    /// <para/>
+    /// To construct a Query object from a query string, use the
+    /// <see cref="Parse(string, string)"/> method:
+    /// <code>
+    /// StandardQueryParser queryParserHelper = new StandardQueryParser();
+    /// Query query = queryParserHelper.Parse("a AND b", "defaultField");
+    /// </code>
+    /// <para/>
+    /// To change any configuration before parsing the query string do, for example:
+    /// <code>
+    /// // the query config handler returned by StandardQueryParser is a
+    /// // StandardQueryConfigHandler
+    /// queryParserHelper.QueryConfigHandler.Analyzer = new WhitespaceAnalyzer();
+    /// </code>
+    /// <para/>
+    /// The syntax for query strings is as follows (copied from the old QueryParser
+    /// javadoc):
+    /// <para/>
+    /// A Query is a series of clauses. A clause may be prefixed by:
+    /// <list type="bullet">
+    ///     <item>
+    ///     a plus (<c>+</c>) or a minus (<c>-</c>) sign, indicating that
+    ///     the clause is required or prohibited respectively; or
+    ///     </item>
+    ///     <item>
+    ///     a term followed by a colon, indicating the field to be searched. This
+    ///     enables one to construct queries which search multiple fields.
+    ///     </item>
+    /// </list>
+    /// 
+    /// A clause may be either:
+    /// <list type="bullet">
+    ///     <item>
+    ///     a term, indicating all the documents that contain this term; or
+    ///     </item>
+    ///     <item>
+    ///     a nested query, enclosed in parentheses. Note that this may be used with
+    ///     a <c>+</c>/<c>-</c> prefix to require any of a set of terms.
+    ///     </item>
+    /// </list>
+    /// 
+    /// Thus, in BNF, the query grammar is:
+    /// <code>
+    ///     Query  ::= ( Clause )*
+    ///     Clause ::= [&quot;+&quot;, &quot;-&quot;] [&lt;TERM&gt; &quot;:&quot;] ( &lt;TERM&gt; | &quot;(&quot; Query &quot;)&quot; )
+    /// </code>
+    /// 
+    /// <para>
+    /// Examples of appropriately formatted queries can be found in the query syntax documentation.
+    /// </para>
+    /// <para>
+    /// The text parser used by this helper is a <see cref="StandardSyntaxParser"/>.
+    /// </para>
+    /// <para>
+    /// The query node processor used by this helper is a
+    /// <see cref="StandardQueryNodeProcessorPipeline"/>.
+    /// </para>
+    /// <para>
+    /// The builder used by this helper is a <see cref="StandardQueryTreeBuilder"/>.
+    /// </para>
+    /// </summary>
+    /// <seealso cref="StandardQueryParser"/>
+    /// <seealso cref="StandardQueryConfigHandler"/>
+    /// <seealso cref="StandardSyntaxParser"/>
+    /// <seealso cref="StandardQueryNodeProcessorPipeline"/>
+    /// <seealso cref="StandardQueryTreeBuilder"/>
     public class StandardQueryParser : QueryParserHelper<Query>, ICommonQueryParserConfiguration
     {
         /// <summary>
@@ -46,7 +115,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         /// <summary>
         /// Constructs a <see cref="StandardQueryParser"/> object and sets an
-        /// <see cref="Analyzer"/> to it. The same as:
+        /// <see cref="Analysis.Analyzer"/> to it. The same as:
         /// <code>
         /// StandardQueryParser qp = new StandardQueryParser();
         /// qp.QueryConfigHandler.Analyzer = analyzer;
@@ -98,7 +167,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         /// Set to <c>true</c> to allow leading wildcard characters.
         /// <para/>
         /// When set, <c>*</c> or <c>?</c> are allowed as the first
-        /// character of a PrefixQuery and WildcardQuery. Note that this can produce
+        /// character of a <see cref="PrefixQuery"/> and <see cref="WildcardQuery"/>. Note that this can produce
         /// very slow queries on big indexes.
         /// <para/>
         /// Default: false.
@@ -120,7 +189,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         /// Set to <c>true</c> to allow leading wildcard characters.
         /// <para/>
         /// When set, <c>*</c> or <c>?</c> are allowed as the first
-        /// character of a PrefixQuery and WildcardQuery. Note that this can produce
+        /// character of a <see cref="PrefixQuery"/> and <see cref="WildcardQuery"/>. Note that this can produce
         /// very slow queries on big indexes.
         /// <para/>
         /// Default: false.
@@ -142,7 +211,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         /// Set to <c>true</c> to enable position increments in result query.
         /// <para/>
         /// When set, result phrase and multi-phrase queries will be aware of position
-        /// increments. Useful when e.g. a StopFilter increases the position increment
+        /// increments. Useful when e.g. a <see cref="Analysis.Core.StopFilter"/> increases the position increment
         /// of the token that follows an omitted token.
         /// <para/>
         /// Default: false.
@@ -299,7 +368,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         /// <summary>
-        /// Gets the default slop for phrases. If zero, then exact phrase matches are
+        /// Gets or Sets the default slop for phrases. If zero, then exact phrase matches are
         /// required. Default value is zero. NOTE: Setter is deprecated.
         /// </summary>
         public virtual int PhraseSlop

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6696fe8/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
index fbc5ea7..d9a2953 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
@@ -48,7 +48,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
             }
 
             return new SpanOrQuery(spanQueries);
-
         }
     }
 }


[48/58] lucenenet git commit: QueryParser: Fixed documentation comments

Posted by ni...@apache.org.
QueryParser: Fixed documentation comments


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

Branch: refs/heads/master
Commit: ced03f598dce960d323e3a0b3d9862bf1c648cef
Parents: 98a37e1
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Dec 6 10:37:01 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Dec 6 10:37:01 2016 +0700

----------------------------------------------------------------------
 .../Analyzing/AnalyzingQueryParser.cs           |  32 ++---
 .../Classic/CharStream.cs                       |  78 +++++-----
 .../Classic/FastCharStream.cs                   |  12 +-
 .../Classic/MultiFieldQueryParser.cs            | 144 ++++++++-----------
 .../Classic/ParseException.cs                   |  29 ++--
 .../Classic/QueryParser.cs                      |  58 ++++----
 .../Classic/QueryParserBase.cs                  | 119 ++++++++-------
 .../Classic/QueryParserTokenManager.cs          |   4 +-
 .../ComplexPhrase/ComplexPhraseQueryParser.cs   |  14 +-
 .../Ext/ExtendableQueryParser.cs                |  21 ++-
 src/Lucene.Net.QueryParser/Ext/Extensions.cs    |  40 ++++--
 .../Ext/ParserExtension.cs                      |   7 +-
 .../Flexible/Standard/Parser/CharStream.cs      |   4 +-
 .../Flexible/Standard/Parser/FastCharStream.cs  |   4 +-
 .../Flexible/Standard/Parser/ParseException.cs  |   1 -
 .../Simple/SimpleQueryParser.cs                 | 132 +++++++----------
 .../Surround/Parser/CharStream.cs               |  22 ++-
 .../Surround/Parser/FastCharStream.cs           |   6 +-
 .../Surround/Parser/ParseException.cs           |  27 ++--
 .../Surround/Parser/QueryParser.cs              |  87 +++++------
 .../Surround/Parser/QueryParserTokenManager.cs  |  28 ++--
 .../Surround/Query/BasicQueryFactory.cs         |   2 -
 .../Surround/Query/DistanceSubQuery.cs          |   4 +-
 .../Surround/Query/RewriteQuery.cs              |   2 +-
 .../Surround/Query/SimpleTerm.cs                |   2 +-
 .../Surround/Query/SpanNearClauseFactory.cs     |  20 +--
 .../Surround/Query/SrndQuery.cs                 |  18 +--
 .../Surround/Query/SrndTruncQuery.cs            |   3 +
 28 files changed, 417 insertions(+), 503 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Analyzing/AnalyzingQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Analyzing/AnalyzingQueryParser.cs b/src/Lucene.Net.QueryParser/Analyzing/AnalyzingQueryParser.cs
index 34c50db..300cd31 100644
--- a/src/Lucene.Net.QueryParser/Analyzing/AnalyzingQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Analyzing/AnalyzingQueryParser.cs
@@ -26,14 +26,14 @@ namespace Lucene.Net.QueryParsers.Analyzing
      */
 
     /// <summary>
-    /// Overrides Lucene's default QueryParser so that Fuzzy-, Prefix-, Range-, and WildcardQuerys
-    /// are also passed through the given analyzer, but wildcard characters <code>*</code> and
-    /// <code>?</code> don't get removed from the search terms.
-    /// 
-    /// <p><b>Warning:</b> This class should only be used with analyzers that do not use stopwords
-    /// or that add tokens. Also, several stemming analyzers are inappropriate: for example, GermanAnalyzer 
-    /// will turn <code>H&auml;user</code> into <code>hau</code>, but <code>H?user</code> will 
-    /// become <code>h?user</code> when using this parser and thus no match would be found (i.e.
+    /// Overrides Lucene's default <see cref="QueryParser"/> so that Fuzzy-, Prefix-, Range-, and WildcardQuerys
+    /// are also passed through the given analyzer, but wildcard characters <c>*</c> and
+    /// <c>?</c> don't get removed from the search terms.
+    /// <para/>
+    /// <b>Warning:</b> This class should only be used with analyzers that do not use stopwords
+    /// or that add tokens. Also, several stemming analyzers are inappropriate: for example, <see cref="Analysis.De.GermanAnalyzer"/>  
+    /// will turn <c>H&auml;user</c> into <c>hau</c>, but <c>H?user</c> will 
+    /// become <c>h?user</c> when using this parser and thus no match would be found (i.e.
     /// using this parser will be no improvement over QueryParser in such cases). 
     /// </summary>
     public class AnalyzingQueryParser : Classic.QueryParser
@@ -53,10 +53,10 @@ namespace Lucene.Net.QueryParsers.Analyzing
         /// character as its last character. Since this is a special case
         /// of generic wildcard term, and such a query can be optimized easily,
         /// this usually results in a different query object.
-        /// <p>
+        /// <para/>
         /// Depending on analyzer and settings, a prefix term may (most probably will)
         /// be lower-cased automatically. It <b>will</b> go through the default Analyzer.
-        /// <p>
+        /// <para/>
         /// Overrides super class, by passing terms through analyzer.
         /// </summary>
         /// <param name="field">Name of the field query will use.</param>
@@ -112,13 +112,13 @@ namespace Lucene.Net.QueryParsers.Analyzing
         /// <summary>
         /// Called when parser parses an input term
         /// that uses prefix notation; that is, contains a single '*' wildcard
-        /// character as its last character.Since this is a special case
+        /// character as its last character. Since this is a special case
         /// of generic wildcard term, and such a query can be optimized easily,
         /// this usually results in a different query object.
-        /// <p>
+        /// <para/>
         /// Depending on analyzer and settings, a prefix term may (most probably will)
         /// be lower-cased automatically. It <b>will</b> go through the default Analyzer.
-        /// <p>
+        /// <para/>
         /// Overrides super class, by passing terms through analyzer.
         /// </summary>
         /// <param name="field">Name of the field query will use.</param>
@@ -132,10 +132,10 @@ namespace Lucene.Net.QueryParsers.Analyzing
 
         /// <summary>
         /// Called when parser parses an input term that has the fuzzy suffix (~) appended.
-        /// <p>
+        /// <para/>
         /// Depending on analyzer and settings, a fuzzy term may (most probably will)
         /// be lower-cased automatically. It <b>will</b> go through the default Analyzer.
-        /// <p>
+        /// <para/>
         /// Overrides super class, by passing terms through analyzer.
         /// </summary>
         /// <param name="field">Name of the field query will use.</param>
@@ -149,7 +149,7 @@ namespace Lucene.Net.QueryParsers.Analyzing
         }
 
         /// <summary>
-        /// Returns the analyzed form for the given chunk
+        /// Returns the analyzed form for the given chunk.
         /// 
         /// If the analyzer produces more than one output token from the given chunk,
         /// a ParseException is thrown.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Classic/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/CharStream.cs b/src/Lucene.Net.QueryParser/Classic/CharStream.cs
index 8f1783d..5ce3060 100644
--- a/src/Lucene.Net.QueryParser/Classic/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Classic/CharStream.cs
@@ -19,47 +19,41 @@ namespace Lucene.Net.QueryParsers.Classic
      * limitations under the License.
      */
 
-	
-	/// <summary> 
+
+    /// <summary> 
     /// This interface describes a character stream that maintains line and
-	/// column number positions of the characters.  It also has the capability
-	/// to backup the stream to some extent.  An implementation of this
-	/// interface is used in the TokenManager implementation generated by
-	/// JavaCCParser.
-	/// 
-	/// All the methods except backup can be implemented in any fashion. backup
-	/// needs to be implemented correctly for the correct operation of the lexer.
-	/// Rest of the methods are all used to get information like line number,
-	/// column number and the string that constitutes a token and are not used
-	/// by the lexer. Hence their implementation won't affect the generated lexer's
-	/// operation.
-	/// </summary>
-	public interface ICharStream
+    /// column number positions of the characters.  It also has the capability
+    /// to backup the stream to some extent.  An implementation of this
+    /// interface is used in the TokenManager implementation generated by
+    /// JavaCCParser.
+    /// 
+    /// All the methods except <see cref="BackUp(int)"/> can be implemented in any fashion. <see cref="BackUp(int)"/>
+    /// needs to be implemented correctly for the correct operation of the lexer.
+    /// Rest of the methods are all used to get information like line number,
+    /// column number and the string that constitutes a token and are not used
+    /// by the lexer. Hence their implementation won't affect the generated lexer's
+    /// operation.
+    /// </summary>
+    public interface ICharStream
 	{
 		/// <summary> 
         /// Returns the next character from the selected input.  The method
 		/// of selecting the input is the responsibility of the class
-		/// implementing this interface.  Can throw any java.io.IOException.
+		/// implementing this interface.  Can throw any <see cref="System.IO.IOException"/>.
 		/// </summary>
 		char ReadChar();
 
 	    /// <summary>
         /// Returns the column position of the character last read.
         /// </summary>
-	    /// <deprecated>
-	    /// </deprecated>
-	    /// <seealso cref="EndColumn">
-	    /// </seealso>
+	    /// <seealso cref="EndColumn"/>
 	    [Obsolete]
 	    int Column { get; }
 
 	    /// <summary>
         /// Returns the line number of the character last read.
         /// </summary>
-	    /// <deprecated>
-	    /// </deprecated>
-	    /// <seealso cref="EndLine">
-	    /// </seealso>
+	    /// <seealso cref="EndLine"/>
 	    [Obsolete]
 	    int Line { get; }
 
@@ -94,13 +88,13 @@ namespace Lucene.Net.QueryParsers.Classic
 		/// token and it is the implemetation's responsibility to do this right.
 		/// </summary>
 		void BackUp(int amount);
-		
-		/// <summary> 
+
+        /// <summary> 
         /// Returns the next character that marks the beginning of the next token.
-		/// All characters must remain in the buffer between two successive calls
-		/// to this method to implement backup correctly.
-		/// </summary>
-		char BeginToken();
+        /// All characters must remain in the buffer between two successive calls
+        /// to this method to implement <see cref="BackUp(int)"/> correctly.
+        /// </summary>
+        char BeginToken();
 
 	    /// <summary> 
         /// Returns a string made up of characters from the marked token beginning
@@ -110,18 +104,20 @@ namespace Lucene.Net.QueryParsers.Classic
 	    /// </summary>
 	    string Image { get; }
 
-	    /// <summary> 
+        /// <summary> 
         /// Returns an array of characters that make up the suffix of length 'len' for
-		/// the currently matched token. This is used to build up the matched string
-		/// for use in actions in the case of MORE. A simple and inefficient
-		/// implementation of this is as follows :
-		/// 
-		/// {
-		/// string t = GetImage();
-		/// return t.substring(t.length() - len, t.length()).toCharArray();
-		/// }
-		/// </summary>
-		char[] GetSuffix(int len);
+        /// the currently matched token. This is used to build up the matched string
+        /// for use in actions in the case of MORE. A simple and inefficient
+        /// implementation of this is as follows :
+        /// 
+        /// <code>
+        /// {
+        ///     string t = Image;
+        ///     return t.Substring(t.Length - len, len).ToCharArray();
+        /// }
+        /// </code>
+        /// </summary>
+        char[] GetSuffix(int len);
 		
 		/// <summary> 
         /// The lexer calls this function to indicate that it is done with the stream

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs b/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs
index 8f963ee..1a25b42 100644
--- a/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Classic/FastCharStream.cs
@@ -20,7 +20,9 @@ namespace Lucene.Net.QueryParsers.Classic
      */
 	
 	/// <summary>
-    /// An efficient implementation of JavaCC's CharStream interface.  <p/>Note that
+    /// An efficient implementation of JavaCC's <see cref="ICharStream"/> interface.  
+    /// <para/>
+    /// Note that
 	/// this does not do line-number counting, but instead keeps track of the
 	/// character position of the token in the input, as required by Lucene's <see cref="Lucene.Net.Analysis.Token" />
 	/// API.
@@ -36,11 +38,11 @@ namespace Lucene.Net.QueryParsers.Classic
 		internal int bufferStart = 0; // position in file of buffer
 		
 		internal System.IO.TextReader input; // source of chars
-		
-		/// <summary>
-        /// Constructs from a Reader. 
+
+        /// <summary>
+        /// Constructs from a <see cref="System.IO.TextReader"/>. 
         /// </summary>
-		public FastCharStream(System.IO.TextReader r)
+        public FastCharStream(System.IO.TextReader r)
 		{
 			input = r;
 		}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Classic/MultiFieldQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/MultiFieldQueryParser.cs b/src/Lucene.Net.QueryParser/Classic/MultiFieldQueryParser.cs
index 291f44c..378f2b0 100644
--- a/src/Lucene.Net.QueryParser/Classic/MultiFieldQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Classic/MultiFieldQueryParser.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Classic
 
 
     /// <summary> 
-    /// A QueryParser which constructs queries to search multiple fields.
+    /// A <see cref="QueryParser"/> which constructs queries to search multiple fields.
     /// </summary>
     public class MultiFieldQueryParser : QueryParser
     {
@@ -32,39 +32,39 @@ namespace Lucene.Net.QueryParsers.Classic
         protected internal IDictionary<string, float> boosts;
 
         /// <summary> 
-        /// Creates a MultiFieldQueryParser. Allows passing of a map with term to
+        /// Creates a <see cref="MultiFieldQueryParser"/>. Allows passing of a map with term to
         /// Boost, and the boost to apply to each term.
         /// 
-        /// <p/>
-        /// It will, when parse(string query) is called, construct a query like this
+        /// <para/>
+        /// It will, when <see cref="QueryParserBase.Parse(string)"/> is called, construct a query like this
         /// (assuming the query consists of two terms and you specify the two fields
         /// <c>title</c> and <c>body</c>):
-        /// <p/>
+        /// <para/>
         /// 
         /// <code>
         /// (title:term1 body:term1) (title:term2 body:term2)
         /// </code>
         /// 
-        /// <p/>
-        /// When setDefaultOperator(AND_OPERATOR) is set, the result will be:
-        /// <p/>
+        /// <para/>
+        /// When <see cref="QueryParserBase.DefaultOperator"/> is set to <see cref="QueryParserBase.AND_OPERATOR"/>, the result will be:
+        /// <para/>
         /// 
         /// <code>
         /// +(title:term1 body:term1) +(title:term2 body:term2)
         /// </code>
         /// 
-        /// <p/>
+        /// <para/>
         /// When you pass a boost (title=>5 body=>10) you can get
-        /// <p/>
+        /// <para/>
         /// 
         /// <code>
         /// +(title:term1^5.0 body:term1^10.0) +(title:term2^5.0 body:term2^10.0)
         /// </code>
         /// 
-        /// <p/>
+        /// <para/>
         /// In other words, all the query's terms must appear, but it doesn't matter
         /// in what fields they appear.
-        /// <p/>
+        /// <para/>
         /// </summary>
         public MultiFieldQueryParser(LuceneVersion matchVersion, string[] fields, Analyzer analyzer, IDictionary<string, float> boosts)
             : this(matchVersion, fields, analyzer)
@@ -75,28 +75,28 @@ namespace Lucene.Net.QueryParsers.Classic
         /// <summary> 
         /// Creates a MultiFieldQueryParser.
         /// 
-        /// <p/>
-        /// It will, when parse(string query) is called, construct a query like this
+        /// <para/>
+        /// It will, when <see cref="QueryParserBase.Parse(string)"/> is called, construct a query like this
         /// (assuming the query consists of two terms and you specify the two fields
         /// <c>title</c> and <c>body</c>):
-        /// <p/>
+        /// <para/>
         /// 
         /// <code>
         /// (title:term1 body:term1) (title:term2 body:term2)
         /// </code>
         /// 
-        /// <p/>
-        /// When setDefaultOperator(AND_OPERATOR) is set, the result will be:
-        /// <p/>
+        /// <para/>
+        /// When <see cref="QueryParserBase.DefaultOperator"/> is set to <see cref="QueryParserBase.AND_OPERATOR"/>, the result will be:
+        /// <para/>
         /// 
         /// <code>
         /// +(title:term1 body:term1) +(title:term2 body:term2)
         /// </code>
         /// 
-        /// <p/>
+        /// <para/>
         /// In other words, all the query's terms must appear, but it doesn't matter
         /// in what fields they appear.
-        /// <p/>
+        /// <para/>
         /// </summary>
         public MultiFieldQueryParser(LuceneVersion matchVersion, string[] fields, Analyzer analyzer)
             : base(matchVersion, null, analyzer)
@@ -249,7 +249,7 @@ namespace Lucene.Net.QueryParsers.Classic
 
         /// <summary> 
         /// Parses a query which searches on the fields specified.
-        /// <p/>
+        /// <para/>
         /// If x fields are specified, this effectively constructs:
         /// 
         /// <code>
@@ -258,21 +258,15 @@ namespace Lucene.Net.QueryParsers.Classic
         /// 
         /// </summary>
         /// <param name="matchVersion">Lucene version to match; this is passed through to
-        /// QueryParser.
-        /// </param>
-        /// <param name="queries">Queries strings to parse
-        /// </param>
-        /// <param name="fields">Fields to search on
-        /// </param>
-        /// <param name="analyzer">Analyzer to use
-        /// </param>
-        /// <throws>  ParseException </throws>
-        /// <summary>             if query parsing fails
-        /// </summary>
-        /// <throws>  IllegalArgumentException </throws>
-        /// <summary>             if the length of the queries array differs from the length of
+        /// <see cref="QueryParser"/>.</param>
+        /// <param name="queries">Queries strings to parse</param>
+        /// <param name="fields">Fields to search on</param>
+        /// <param name="analyzer">Analyzer to use</param>
+        /// <exception cref="ParseException">if query parsing fails</exception>
+        /// <exception cref="System.ArgumentException">
+        /// if the length of the queries array differs from the length of
         /// the fields array
-        /// </summary>
+        /// </exception>
         public static Query Parse(LuceneVersion matchVersion, string[] queries, string[] fields, Analyzer analyzer)
         {
             if (queries.Length != fields.Length)
@@ -293,16 +287,16 @@ namespace Lucene.Net.QueryParsers.Classic
         /// <summary> 
         /// Parses a query, searching on the fields specified. Use this if you need
         /// to specify certain fields as required, and others as prohibited.
-        /// <p/>
-        /// Uasge:
+        /// <para/>
+        /// Usage:
         /// <code>
-        /// string[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
-        /// BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
-        /// BooleanClause.Occur.MUST,
-        /// BooleanClause.Occur.MUST_NOT};
-        /// MultiFieldQueryParser.parse(&quot;query&quot;, fields, flags, analyzer);
+        ///     string[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
+        ///     BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
+        ///         BooleanClause.Occur.MUST,
+        ///         BooleanClause.Occur.MUST_NOT};
+        ///     MultiFieldQueryParser.Parse(&quot;query&quot;, fields, flags, analyzer);
         /// </code>
-        /// <p/>
+        /// <para/>
         /// The code above would construct a query:
         /// 
         /// <code>
@@ -311,23 +305,16 @@ namespace Lucene.Net.QueryParsers.Classic
         /// 
         /// </summary>
         /// <param name="matchVersion">Lucene version to match; this is passed through to
-        /// QueryParser.
-        /// </param>
-        /// <param name="query">Query string to parse
-        /// </param>
-        /// <param name="fields">Fields to search on
-        /// </param>
-        /// <param name="flags">Flags describing the fields
-        /// </param>
-        /// <param name="analyzer">Analyzer to use
-        /// </param>
-        /// <throws>  ParseException </throws>
-        /// <summary>             if query parsing fails
-        /// </summary>
-        /// <throws>  IllegalArgumentException </throws>
-        /// <summary>             if the length of the fields array differs from the length of
+        /// <see cref="QueryParser"/>.</param>
+        /// <param name="query">Query string to parse</param>
+        /// <param name="fields">Fields to search on</param>
+        /// <param name="flags">Flags describing the fields</param>
+        /// <param name="analyzer">Analyzer to use</param>
+        /// <exception cref="ParseException">if query parsing fails</exception>
+        /// <exception cref="System.ArgumentException">
+        /// if the length of the fields array differs from the length of
         /// the flags array
-        /// </summary>
+        /// </exception>
         public static Query Parse(LuceneVersion matchVersion, string query, string[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)
         {
             if (fields.Length != flags.Length)
@@ -348,17 +335,17 @@ namespace Lucene.Net.QueryParsers.Classic
         /// <summary> 
         /// Parses a query, searching on the fields specified. Use this if you need
         /// to specify certain fields as required, and others as prohibited.
-        /// <p/>
+        /// <para/>
         /// Usage:
         /// <code>
-        /// string[] query = {&quot;query1&quot;, &quot;query2&quot;, &quot;query3&quot;};
-        /// string[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
-        /// BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
-        /// BooleanClause.Occur.MUST,
-        /// BooleanClause.Occur.MUST_NOT};
-        /// MultiFieldQueryParser.parse(query, fields, flags, analyzer);
+        ///     string[] query = {&quot;query1&quot;, &quot;query2&quot;, &quot;query3&quot;};
+        ///     string[] fields = {&quot;filename&quot;, &quot;contents&quot;, &quot;description&quot;};
+        ///     BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,
+        ///         BooleanClause.Occur.MUST,
+        ///         BooleanClause.Occur.MUST_NOT};
+        ///     MultiFieldQueryParser.Parse(query, fields, flags, analyzer);
         /// </code>
-        /// <p/>
+        /// <para/>
         /// The code above would construct a query:
         /// 
         /// <code>
@@ -367,22 +354,13 @@ namespace Lucene.Net.QueryParsers.Classic
         /// 
         /// </summary>
         /// <param name="matchVersion">Lucene version to match; this is passed through to
-        /// QueryParser.
-        /// </param>
-        /// <param name="queries">Queries string to parse
-        /// </param>
-        /// <param name="fields">Fields to search on
-        /// </param>
-        /// <param name="flags">Flags describing the fields
-        /// </param>
-        /// <param name="analyzer">Analyzer to use
-        /// </param>
-        /// <throws>  ParseException </throws>
-        /// <summary>             if query parsing fails
-        /// </summary>
-        /// <throws>  IllegalArgumentException </throws>
-        /// <summary>             if the length of the queries, fields, and flags array differ
-        /// </summary>
+        /// <see cref="QueryParser"/>.</param>
+        /// <param name="queries">Queries string to parse</param>
+        /// <param name="fields">Fields to search on</param>
+        /// <param name="flags">Flags describing the fields</param>
+        /// <param name="analyzer">Analyzer to use</param>
+        /// <exception cref="ParseException">if query parsing fails</exception>
+        /// <exception cref="System.ArgumentException">if the length of the queries, fields, and flags array differ</exception>
         public static Query Parse(LuceneVersion matchVersion, string[] queries, string[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)
         {
             if (!(queries.Length == fields.Length && queries.Length == flags.Length))

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Classic/ParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/ParseException.cs b/src/Lucene.Net.QueryParser/Classic/ParseException.cs
index efd8c3f..fa54adc 100644
--- a/src/Lucene.Net.QueryParser/Classic/ParseException.cs
+++ b/src/Lucene.Net.QueryParser/Classic/ParseException.cs
@@ -33,22 +33,19 @@ namespace Lucene.Net.QueryParsers.Classic
 	public class ParseException : Exception
 	{
         /// <summary>
-        /// This constructor is used by the method "GenerateParseException"
+        /// This constructor is used by the method GenerateParseException()
         /// in the generated parser.  Calling this constructor generates
-        /// a new object of this type with the fields "currentToken",
-        /// "expectedTokenSequences", and "tokenImage" set.
+        /// a new object of this type with the fields <paramref name="currentToken"/>,
+        /// <paramref name="expectedTokenSequences"/>, and <paramref name="tokenImage"/> set.
         /// </summary>
-        /// <param name="currentTokenVal"></param>
-        /// <param name="expectedTokenSequencesVal"></param>
-        /// <param name="tokenImageVal"></param>
-        public ParseException(Token currentTokenVal,
-                        int[][] expectedTokenSequencesVal,
-                        string[] tokenImageVal)
-            : base(Initialize(currentTokenVal, expectedTokenSequencesVal, tokenImageVal))
+        public ParseException(Token currentToken,
+                        int[][] expectedTokenSequences,
+                        string[] tokenImage)
+            : base(Initialize(currentToken, expectedTokenSequences, tokenImage))
         {
-            currentToken = currentTokenVal;
-            expectedTokenSequences = expectedTokenSequencesVal;
-            tokenImage = tokenImageVal;
+            this.currentToken = currentToken;
+            this.expectedTokenSequences = expectedTokenSequences;
+            this.tokenImage = tokenImage;
         }
 
         /**
@@ -96,16 +93,12 @@ namespace Lucene.Net.QueryParsers.Classic
 
 
         /// <summary>
-        /// It uses "currentToken" and "expectedTokenSequences" to generate a parse
+        /// It uses <paramref name="currentToken"/> and <paramref name="expectedTokenSequences"/> to generate a parse
         /// error message and returns it.  If this object has been created
         /// due to a parse error, and you do not catch it (it gets thrown
         /// from the parser) the correct error message
         /// gets displayed.
         /// </summary>
-        /// <param name="currentToken"></param>
-        /// <param name="expectedTokenSequences"></param>
-        /// <param name="tokenImage"></param>
-        /// <returns></returns>
         private static string Initialize(Token currentToken,
             int[][] expectedTokenSequences,
             string[] tokenImage)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Classic/QueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/QueryParser.cs b/src/Lucene.Net.QueryParser/Classic/QueryParser.cs
index 9781516..39e1f8f 100644
--- a/src/Lucene.Net.QueryParser/Classic/QueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Classic/QueryParser.cs
@@ -25,8 +25,8 @@ namespace Lucene.Net.QueryParsers.Classic
      */
 
     /// <summary> This class is generated by JavaCC.  The most important method is
-    /// <see cref="Parse(string)" />.
-    /// 
+    /// <see cref="QueryParserBase.Parse(string)" />.
+    /// <para/>
     /// The syntax for query strings is as follows:
     /// A Query is a series of clauses.
     /// A clause may be prefixed by:
@@ -37,6 +37,7 @@ namespace Lucene.Net.QueryParsers.Classic
     /// This enables one to construct queries which search multiple fields.</item>
     /// </list>
     /// 
+    /// <para/>
     /// A clause may be either:
     /// <list type="bullet">
     /// <item> a term, indicating all the documents that contain this term; or</item>
@@ -45,50 +46,53 @@ namespace Lucene.Net.QueryParsers.Classic
     /// terms.</item>
     /// </list>
     /// 
+    /// <para/>
     /// Thus, in BNF, the query grammar is:
     /// <code>
-    /// Query  ::= ( Clause )*
-    /// Clause ::= ["+", "-"] [&lt;TERM&gt; ":"] ( &lt;TERM&gt; | "(" Query ")" )
+    ///     Query  ::= ( Clause )*
+    ///     Clause ::= ["+", "-"] [&lt;TERM&gt; ":"] ( &lt;TERM&gt; | "(" Query ")" )
     /// </code>
     /// 
-    /// <p/>
+    /// <para>
     /// Examples of appropriately formatted queries can be found in the <a
     /// href="../../../../../../queryparsersyntax.html">query syntax
     /// documentation</a>.
-    /// <p/>
+    /// </para>
     /// 
-    /// <p/>
+    /// <para>
     /// In <see cref="TermRangeQuery" />s, QueryParser tries to detect date values, e.g.
     /// <tt>date:[6/1/2005 TO 6/4/2005]</tt> produces a range query that searches
     /// for "date" fields between 2005-06-01 and 2005-06-04. Note that the format
     /// of the accepted input depends on the <see cref="Locale" />.
-    /// A <see cref="Lucene.Net.Documents.DateTools.Resolution" /> has to be set,
-    /// if you want to use <see cref="DateTools"/> for date conversion.<p/>
-    /// <p/>
+    /// A <see cref="Documents.DateTools.Resolution" /> has to be set,
+    /// if you want to use <see cref="Documents.DateTools"/> for date conversion.<p/>
+    /// </para>
+    /// <para>
     /// The date resolution that shall be used for RangeQueries can be set
-    /// using <see cref="SetDateResolution(DateTools.Resolution)" />
-    /// or <see cref="SetDateResolution(string, DateTools.Resolution)" />. The former
+    /// using <see cref="QueryParserBase.SetDateResolution(Documents.DateTools.Resolution)" />
+    /// or <see cref="QueryParserBase.SetDateResolution(string, Documents.DateTools.Resolution)" />. The former
     /// sets the default date resolution for all fields, whereas the latter can
     /// be used to set field specific date resolutions. Field specific date
     /// resolutions take, if set, precedence over the default date resolution.
-    /// <p/>
-    /// <p/>
-    /// If you don't use <see cref="DateTools" /> in your index, you can create your own
-    /// query parser that inherits QueryParser and overwrites
-    /// <see cref="GetRangeQuery(string, string, string, bool)" /> to
+    /// </para>
+    /// <para>
+    /// If you don't use <see cref="Documents.DateTools" /> in your index, you can create your own
+    /// query parser that inherits <see cref="QueryParser"/> and overwrites
+    /// <see cref="QueryParserBase.GetRangeQuery(string, string, string, bool, bool)" /> to
     /// use a different method for date conversion.
-    /// <p/>
+    /// </para>
     /// 
-    /// <p/>Note that QueryParser is <em>not</em> thread-safe.<p/> 
+    /// <para>Note that <see cref="QueryParser"/> is <em>not</em> thread-safe.</para>
     /// 
-    /// <p/><b>NOTE</b>: there is a new QueryParser in contrib, which matches
+    /// <para><b>NOTE</b>: there is a new QueryParser in contrib, which matches
     /// the same syntax as this class, but is more modular,
     /// enabling substantial customization to how a query is created.
+    /// </para>
     /// 
     /// <b>NOTE</b>: You must specify the required <see cref="LuceneVersion" /> compatibility when
     /// creating QueryParser:
     /// <list type="bullet">
-    /// <item>As of 3.1, <see cref="AutoGeneratePhraseQueries"/> is false by default.</item>
+    /// <item>As of 3.1, <see cref="QueryParserBase.AutoGeneratePhraseQueries"/> is false by default.</item>
     /// </list>
     /// </summary>
     public class QueryParser : QueryParserBase
@@ -577,11 +581,11 @@ namespace Lucene.Net.QueryParsers.Classic
             return false;
         }
 
-        /* Generated Token Manager. */
+        /// <summary>Generated Token Manager.</summary>
         public QueryParserTokenManager token_source;
-        /* Current token. */
+        /// <summary>Current token.</summary>
         public Token token;
-        /* Next token. */
+        /// <summary>Next token.</summary>
         public Token jj_nt;
         private int jj_ntk;
         private Token jj_scanpos, jj_lastpos;
@@ -622,7 +626,7 @@ namespace Lucene.Net.QueryParsers.Classic
         private bool jj_rescan = false;
         private int jj_gc = 0;
 
-        /// <summary>Constructor with user supplied CharStream. </summary>
+        /// <summary>Constructor with user supplied <see cref="ICharStream"/>. </summary>
         protected internal QueryParser(ICharStream stream)
         {
             token_source = new QueryParserTokenManager(stream);
@@ -633,7 +637,7 @@ namespace Lucene.Net.QueryParsers.Classic
             for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
         }
 
-        /// <summary>Reinitialise. </summary>
+        /// <summary>Reinitialize. </summary>
         public override void ReInit(ICharStream stream)
         {
             token_source.ReInit(stream);
@@ -655,7 +659,7 @@ namespace Lucene.Net.QueryParsers.Classic
             for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
         }
 
-        /// <summary>Reinitialise. </summary>
+        /// <summary>Reinitialize. </summary>
         public virtual void ReInit(QueryParserTokenManager tm)
         {
             token_source = tm;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs b/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs
index ca10e89..b0b7b07 100644
--- a/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs
+++ b/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs
@@ -31,6 +31,9 @@ namespace Lucene.Net.QueryParsers.Classic
      * limitations under the License.
      */
 
+    /// <summary>
+    /// This class is overridden by <see cref="QueryParser"/>.
+    /// </summary>
     public abstract class QueryParserBase : QueryBuilder, ICommonQueryParserConfiguration
     {
         /// <summary>
@@ -51,11 +54,11 @@ namespace Lucene.Net.QueryParsers.Classic
         // the nested class:
         
         /// <summary>
-        /// Alternative form of QueryParser.Operator.AND
+        /// Alternative form of <see cref="QueryParserBase.Operator.AND"/> 
         /// </summary>
         public const Operator AND_OPERATOR = Operator.AND;
         /// <summary>
-        /// Alternative form of QueryParser.Operator.OR
+        /// Alternative form of <see cref="QueryParserBase.Operator.OR"/> 
         /// </summary>
         public const Operator OR_OPERATOR = Operator.OR;
 
@@ -71,7 +74,7 @@ namespace Lucene.Net.QueryParsers.Classic
 
         /// <summary>
         /// The default operator for parsing queries. 
-        /// Use <see cref="QueryParserBase.SetDefaultOperator"/> to change it.
+        /// Use <see cref="QueryParserBase.DefaultOperator"/> to change it.
         /// </summary>
         public enum Operator
         {
@@ -160,13 +163,10 @@ namespace Lucene.Net.QueryParsers.Classic
         public abstract Query TopLevelQuery(string field);
 
         /// <summary>
-        /// Parses a query string, returning a <see cref="T:Query"/>.
+        /// Parses a query string, returning a <see cref="Query"/>.
         /// </summary>
-        /// <remarks>
-        /// throws ParseException if the parsing fails
-        /// </remarks>
         /// <param name="query">the query string to be parsed.</param>
-        /// <returns></returns>
+        /// <exception cref="ParseException">if the parsing fails</exception>
         public virtual Query Parse(string query)
         {
             ReInit(new FastCharStream(new StringReader(query)));
@@ -230,30 +230,31 @@ namespace Lucene.Net.QueryParsers.Classic
         public virtual int PhraseSlop { get; set; }
 
         /// <summary>
-        /// Set to <code>true</code> to allow leading wildcard characters.
-        /// <p>
-        /// When set, <code>*</code> or <code>?</code> are allowed as
+        /// Set to <c>true</c> to allow leading wildcard characters.
+        /// <para/>
+        /// When set, <c>*</c> or <c>?</c> are allowed as
         /// the first character of a PrefixQuery and WildcardQuery.
         /// Note that this can produce very slow
         /// queries on big indexes.
-        /// <p>
+        /// <para/>
         /// Default: false.
         /// </summary>
         public virtual bool AllowLeadingWildcard { get; set; }
 
         /// <summary>
         /// Gets or Sets the boolean operator of the QueryParser.
-        /// In default mode (<code>OR_OPERATOR</code>) terms without any modifiers
-        /// are considered optional: for example <code>capital of Hungary</code> is equal to
-        /// <code>capital OR of OR Hungary</code>.<br/>
-        /// In <code>AND_OPERATOR</code> mode terms are considered to be in conjunction: the
-        /// above mentioned query is parsed as <code>capital AND of AND Hungary
+        /// In default mode (<see cref="OR_OPERATOR"/>) terms without any modifiers
+        /// are considered optional: for example <c>capital of Hungary</c> is equal to
+        /// <c>capital OR of OR Hungary</c>.
+        /// <para/>
+        /// In <see cref="AND_OPERATOR"/> mode terms are considered to be in conjunction: the
+        /// above mentioned query is parsed as <c>capital AND of AND Hungary</c>
         /// </summary>
         public virtual Operator DefaultOperator { get; set; }
 
         /// <summary>
         /// Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically
-        //  lower-cased or not.  Default is <code>true</code>.
+        //  lower-cased or not.  Default is <c>true</c>.
         /// </summary>
         public virtual bool LowercaseExpandedTerms { get; set; }
 
@@ -261,7 +262,7 @@ namespace Lucene.Net.QueryParsers.Classic
         /// By default QueryParser uses <see cref="MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT"/>
         /// when creating a <see cref="PrefixQuery"/>, <see cref="WildcardQuery"/> or <see cref="TermRangeQuery"/>. This implementation is generally preferable because it
         /// a) Runs faster b) Does not have the scarcity of terms unduly influence score
-        /// c) avoids any <see cref="TooManyClauses"/> exception.
+        /// c) avoids any <see cref="BooleanQuery.TooManyClauses"/> exception.
         /// However, if your application really needs to use the
         /// old-fashioned <see cref="BooleanQuery"/> expansion rewriting and the above
         /// points are not relevant then use this to change
@@ -313,8 +314,6 @@ namespace Lucene.Net.QueryParsers.Classic
         /// Returns null, if no default or field specific date resolution has been set 
         /// for the given field.
         /// </summary>
-        /// <param name="fieldName"></param>
-        /// <returns></returns>
         public virtual DateTools.Resolution GetDateResolution(string fieldName)
         {
             if (string.IsNullOrEmpty(fieldName))
@@ -417,13 +416,9 @@ namespace Lucene.Net.QueryParsers.Classic
         /// <summary>
         /// Base implementation delegates to <see cref="GetFieldQuery(string,string,bool)"/>.
         /// This method may be overridden, for example, to return
-        /// a SpanNearQuery instead of a PhraseQuery.
+        /// a <see cref="Search.Spans.SpanNearQuery"/> instead of a <see cref="PhraseQuery"/>.
         /// </summary>
-        /// <param name="field"></param>
-        /// <param name="queryText"></param>
-        /// <param name="slop"></param>
         /// <exception cref="ParseException">throw in overridden method to disallow</exception>
-        /// <returns></returns>
         protected internal virtual Query GetFieldQuery(string field, string queryText, int slop)
         {
             Query query = GetFieldQuery(field, queryText, true);
@@ -502,20 +497,20 @@ namespace Lucene.Net.QueryParsers.Classic
             return NewRangeQuery(field, part1, part2, startInclusive, endInclusive);
         }
 
-        /// <summary>Builds a new BooleanClause instance</summary>
+        /// <summary>Builds a new <see cref="BooleanClause"/> instance</summary>
         /// <param name="q">sub query</param>
         /// <param name="occur">how this clause should occur when matching documents</param>
-        /// <returns> new BooleanClause instance</returns>
+        /// <returns> new <see cref="BooleanClause"/> instance</returns>
         protected internal virtual BooleanClause NewBooleanClause(Query q, BooleanClause.Occur occur)
         {
             return new BooleanClause(q, occur);
         }
 
         /// <summary>
-        /// Builds a new PrefixQuery instance
+        /// Builds a new <see cref="PrefixQuery"/> instance
         /// </summary>
         /// <param name="prefix">Prefix term</param>
-        /// <returns>new PrefixQuery instance</returns>
+        /// <returns>new <see cref="PrefixQuery"/> instance</returns>
         protected internal virtual Query NewPrefixQuery(Term prefix)
         {
             PrefixQuery query = new PrefixQuery(prefix);
@@ -524,10 +519,10 @@ namespace Lucene.Net.QueryParsers.Classic
         }
 
         /// <summary>
-        /// Builds a new RegexpQuery instance
+        /// Builds a new <see cref="RegexpQuery"/> instance
         /// </summary>
         /// <param name="regexp">Regexp term</param>
-        /// <returns>new RegexpQuery instance</returns>
+        /// <returns>new <see cref="RegexpQuery"/> instance</returns>
         protected internal virtual Query NewRegexpQuery(Term regexp)
         {
             RegexpQuery query = new RegexpQuery(regexp);
@@ -536,12 +531,12 @@ namespace Lucene.Net.QueryParsers.Classic
         }
 
         /// <summary>
-        /// Builds a new FuzzyQuery instance
+        /// Builds a new <see cref="FuzzyQuery"/> instance
         /// </summary>
         /// <param name="term">Term</param>
         /// <param name="minimumSimilarity">minimum similarity</param>
         /// <param name="prefixLength">prefix length</param>
-        /// <returns>new FuzzyQuery Instance</returns>
+        /// <returns>new <see cref="FuzzyQuery"/> Instance</returns>
         protected internal virtual Query NewFuzzyQuery(Term term, float minimumSimilarity, int prefixLength)
         {
             // FuzzyQuery doesn't yet allow constant score rewrite
@@ -591,14 +586,14 @@ namespace Lucene.Net.QueryParsers.Classic
         }
 
         /// <summary>
-        /// Builds a new {@link TermRangeQuery} instance
+        /// Builds a new <see cref="TermRangeQuery"/> instance
         /// </summary>
         /// <param name="field">Field</param>
         /// <param name="part1">min</param>
         /// <param name="part2">max</param>
         /// <param name="startInclusive">true if the start of the range is inclusive</param>
         /// <param name="endInclusive">true if the end of the range is inclusive</param>
-        /// <returns>new <see cref="T:TermRangeQuery"/> instance</returns>
+        /// <returns>new <see cref="TermRangeQuery"/> instance</returns>
         protected internal virtual Query NewRangeQuery(string field, string part1, string part2, bool startInclusive, bool endInclusive)
         {
             BytesRef start;
@@ -629,19 +624,19 @@ namespace Lucene.Net.QueryParsers.Classic
         }
 
         /// <summary>
-        /// Builds a new MatchAllDocsQuery instance
+        /// Builds a new <see cref="MatchAllDocsQuery"/> instance
         /// </summary>
-        /// <returns>new MatchAllDocsQuery instance</returns>
+        /// <returns>new <see cref="MatchAllDocsQuery"/> instance</returns>
         protected internal virtual Query NewMatchAllDocsQuery()
         {
             return new MatchAllDocsQuery();
         }
 
         /// <summary>
-        /// Builds a new WildcardQuery instance
+        /// Builds a new <see cref="WildcardQuery"/> instance
         /// </summary>
         /// <param name="t">wildcard term</param>
-        /// <returns>new WildcardQuery instance</returns>
+        /// <returns>new <see cref="WildcardQuery"/> instance</returns>
         protected internal virtual Query NewWildcardQuery(Term t)
         {
             WildcardQuery query = new WildcardQuery(t);
@@ -652,14 +647,14 @@ namespace Lucene.Net.QueryParsers.Classic
         /// <summary>
         /// Factory method for generating query, given a set of clauses.
         /// By default creates a boolean query composed of clauses passed in.
-        ///
+        /// <para/>
         /// Can be overridden by extending classes, to modify query being
         /// returned.
         /// </summary>
-        /// <param name="clauses">List that contains {@link org.apache.lucene.search.BooleanClause} instances 
+        /// <param name="clauses">List that contains <see cref="BooleanClause"/> instances 
         /// to join.</param>
-        /// <exception cref="T:ParseException">throw in overridden method to disallow</exception>
-        /// <returns>Resulting <see cref="T:Query"/> object.</returns>
+        /// <exception cref="ParseException">throw in overridden method to disallow</exception>
+        /// <returns>Resulting <see cref="Query"/> object.</returns>
         protected internal virtual Query GetBooleanQuery(IList<BooleanClause> clauses)
         {
             return GetBooleanQuery(clauses, false);
@@ -668,15 +663,15 @@ namespace Lucene.Net.QueryParsers.Classic
         /// <summary>
         /// Factory method for generating query, given a set of clauses.
         /// By default creates a boolean query composed of clauses passed in.
-        /// 
+        /// <para/>
         /// Can be overridden by extending classes, to modify query being
         /// returned.
         /// </summary>
-        /// <param name="clauses">List that contains <see cref="T:BooleanClause"/> instances
+        /// <param name="clauses">List that contains <see cref="BooleanClause"/> instances
         /// to join.</param>
         /// <param name="disableCoord">true if coord scoring should be disabled.</param>
         /// <exception cref="ParseException">throw in overridden method to disallow</exception>
-        /// <returns>Resulting <see cref="T:Query"/> object.</returns>
+        /// <returns>Resulting <see cref="Query"/> object.</returns>
         protected internal virtual Query GetBooleanQuery(IList<BooleanClause> clauses, bool disableCoord)
         {
             if (clauses.Count == 0)
@@ -696,12 +691,12 @@ namespace Lucene.Net.QueryParsers.Classic
         /// parses an input term token that contains one or more wildcard
         /// characters (? and *), but is not a prefix term token (one
         /// that has just a single * character at the end)
-        /// <p>
+        /// <para/>
         /// Depending on settings, prefix term may be lower-cased
         /// automatically. It will not go through the default Analyzer,
         /// however, since normal Analyzers are unlikely to work properly
         /// with wildcard templates.
-        /// <p>
+        /// <para/>
         /// Can be overridden by extending classes, to provide custom handling for
         /// wildcard queries, which may be necessary due to missing analyzer calls.
         /// </summary>
@@ -709,7 +704,7 @@ namespace Lucene.Net.QueryParsers.Classic
         /// <param name="termStr">Term token that contains one or more wild card
         /// characters (? or *), but is not simple prefix term</param>
         /// <exception cref="ParseException">throw in overridden method to disallow</exception>
-        /// <returns>Resulting <see cref="T:Query"/> built for the term</returns>
+        /// <returns>Resulting <see cref="Query"/> built for the term</returns>
         protected internal virtual Query GetWildcardQuery(string field, string termStr)
         {
             if ("*".Equals(field))
@@ -730,12 +725,12 @@ namespace Lucene.Net.QueryParsers.Classic
         /// Factory method for generating a query. Called when parser
         /// parses an input term token that contains a regular expression
         /// query.
-        /// <p>
+        /// <para/>
         /// Depending on settings, pattern term may be lower-cased
         /// automatically. It will not go through the default Analyzer,
         /// however, since normal Analyzers are unlikely to work properly
         /// with regular expression templates.
-        /// <p>
+        /// <para/>
         /// Can be overridden by extending classes, to provide custom handling for
         /// regular expression queries, which may be necessary due to missing analyzer
         /// calls.
@@ -743,7 +738,7 @@ namespace Lucene.Net.QueryParsers.Classic
         /// <param name="field">Name of the field query will use.</param>
         /// <param name="termStr">Term token that contains a regular expression</param>
         /// <exception cref="ParseException">throw in overridden method to disallow</exception>
-        /// <returns>Resulting <see cref="T:Query"/> built for the term</returns>
+        /// <returns>Resulting <see cref="Query"/> built for the term</returns>
         protected internal virtual Query GetRegexpQuery(string field, string termStr)
         {
             if (LowercaseExpandedTerms)
@@ -756,24 +751,24 @@ namespace Lucene.Net.QueryParsers.Classic
 
         /// <summary>
         /// Factory method for generating a query (similar to
-        /// <see cref="M:GetWildcardQuery"/>). Called when parser parses an input term
+        /// <see cref="GetWildcardQuery(string, string)"/>). Called when parser parses an input term
         /// token that uses prefix notation; that is, contains a single '*' wildcard
         /// character as its last character. Since this is a special case
         /// of generic wildcard term, and such a query can be optimized easily,
         /// this usually results in a different query object.
-        /// <p>
+        /// <para/>
         /// Depending on settings, a prefix term may be lower-cased
         /// automatically. It will not go through the default Analyzer,
         /// however, since normal Analyzers are unlikely to work properly
         /// with wildcard templates.
-        /// <p>
+        /// <para/>
         /// Can be overridden by extending classes, to provide custom handling for
         /// wild card queries, which may be necessary due to missing analyzer calls.
         /// </summary>
         /// <param name="field">Name of the field query will use.</param>
         /// <param name="termStr">Term token to use for building term for the query</param>
         /// <exception cref="ParseException">throw in overridden method to disallow</exception>
-        /// <returns>Resulting <see cref="T:Query"/> built for the term</returns>
+        /// <returns>Resulting <see cref="Query"/> built for the term</returns>
         protected internal virtual Query GetPrefixQuery(string field, string termStr)
         {
             if (!AllowLeadingWildcard && termStr.StartsWith("*"))
@@ -788,14 +783,14 @@ namespace Lucene.Net.QueryParsers.Classic
 
         /// <summary>
         /// Factory method for generating a query (similar to
-        /// <see cref="M:GetWildcardQuery"/>). Called when parser parses
+        /// <see cref="GetWildcardQuery(string, string)"/>). Called when parser parses
         /// an input term token that has the fuzzy suffix (~) appended.
         /// </summary>
         /// <param name="field">Name of the field query will use.</param>
         /// <param name="termStr">Term token to use for building term for the query</param>
         /// <param name="minSimilarity">minimum similarity</param>
         /// <exception cref="ParseException">throw in overridden method to disallow</exception>
-        /// <returns>Resulting <see cref="T:Query"/> built for the term</returns>
+        /// <returns>Resulting <see cref="Query"/> built for the term</returns>
         protected internal virtual Query GetFuzzyQuery(string field, string termStr, float minSimilarity)
         {
             if (LowercaseExpandedTerms)
@@ -900,12 +895,10 @@ namespace Lucene.Net.QueryParsers.Classic
         /// <summary>
         /// Returns a string where the escape char has been
         /// removed, or kept only once if there was a double escape.
-        /// 
+        /// <para/>
         /// Supports escaped unicode characters, e. g. translates 
-        /// <code>\\u0041</code> to <code>A</code>.
+        /// <c>\\u0041</c> to <c>A</c>.
         /// </summary>
-        /// <param name="input"></param>
-        /// <returns></returns>
         internal virtual string DiscardEscapeChar(string input)
         {
             // Create char array to hold unescaped char sequence

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs b/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
index a2f6010..840a39b 100644
--- a/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
@@ -33,9 +33,9 @@ namespace Lucene.Net.QueryParsers.Classic
 		}
 		
 		/// <summary>Debug output. </summary>
-		public StreamWriter debugStream;
+		public TextWriter debugStream;
 		/// <summary>Set debug output. </summary>
-		public virtual void  SetDebugStream(StreamWriter ds)
+		public virtual void SetDebugStream(TextWriter ds)
 		{
 			debugStream = ds;
 		}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs b/src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs
index 037dcd3..f727716 100644
--- a/src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs
@@ -28,9 +28,9 @@ namespace Lucene.Net.QueryParsers.ComplexPhrase
      */
 
     /// <summary>
-    /// QueryParser which permits complex phrase query syntax eg "(john jon
+    /// <see cref="QueryParser"/> which permits complex phrase query syntax eg "(john jon
     /// jonathan~) peters*".
-    /// <p>
+    /// <para>
     /// Performs potentially multiple passes over Query text to parse any nested
     /// logic in PhraseQueries. - First pass takes any PhraseQuery content between
     /// quotes and stores for subsequent pass. All other query content is parsed as
@@ -38,14 +38,14 @@ namespace Lucene.Net.QueryParsers.ComplexPhrase
     /// embedded clauses are referring to the same field and therefore can be
     /// rewritten as Span queries. All PhraseQuery clauses are expressed as
     /// ComplexPhraseQuery objects
-    /// </p>
-    /// <p>
-    /// This could arguably be done in one pass using a new QueryParser but here I am
+    /// </para>
+    /// <para>
+    /// This could arguably be done in one pass using a new <see cref="QueryParser"/> but here I am
     /// working within the constraints of the existing parser as a base class. This
     /// currently simply feeds all phrase content through an analyzer to select
     /// phrase terms - any "special" syntax such as * ~ * etc are not given special
     /// status
-    /// </p>
+    /// </para>
     /// </summary>
     public class ComplexPhraseQueryParser : Classic.QueryParser
     {
@@ -54,7 +54,7 @@ namespace Lucene.Net.QueryParsers.ComplexPhrase
         private bool isPass2ResolvingPhrases;
 
         /// <summary>
-        /// When <code>inOrder</code> is true, the search terms must
+        /// When <see cref="InOrder"/> is true, the search terms must
         /// exists in the documents as the same order as in query.
         /// Choose between ordered (true) or un-ordered (false) proximity search.
         /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Ext/ExtendableQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Ext/ExtendableQueryParser.cs b/src/Lucene.Net.QueryParser/Ext/ExtendableQueryParser.cs
index ef37215..f7d0729 100644
--- a/src/Lucene.Net.QueryParser/Ext/ExtendableQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Ext/ExtendableQueryParser.cs
@@ -34,12 +34,12 @@ namespace Lucene.Net.QueryParsers.Ext
     /// extension key from the field symbol and tries to resolve the associated
     /// <see cref="ParserExtension"/>. If the parser can't resolve the key or the field
     /// token does not contain a separation character, <see cref="ExtendableQueryParser"/>
-    /// yields the same behavior as its super class <see cref="QueryParser"/>. Otherwise,
+    /// yields the same behavior as its super class <see cref="Classic.QueryParser"/>. Otherwise,
     /// if the key is associated with a <see cref="ParserExtension"/> instance, the parser
     /// builds an instance of <see cref="ExtensionQuery"/> to be processed by
     /// <see cref="ParserExtension.Parse(ExtensionQuery)"/>.If a extension field does not
     /// contain a field part the default field for the query will be used.
-    /// <p>
+    /// <para>
     /// To guarantee that an extension field is processed with its associated
     /// extension, the extension query part must escape any special characters like
     /// '*' or '['. If the extension query contains any whitespace characters, the
@@ -53,22 +53,21 @@ namespace Lucene.Net.QueryParsers.Ext
     /// <pre>
     ///   _customExt:"Apache Lucene\?" OR _customExt:prefix\*
     /// </pre>
-    /// </p>
-    /// <p>
+    /// </para>
+    /// <para>
     /// The <see cref="ExtendableQueryParser"/> itself does not implement the logic how
     /// field and extension key are separated or ordered. All logic regarding the
     /// extension key and field symbol parsing is located in <see cref="Extensions"/>.
     /// Customized extension schemes should be implemented by sub-classing
     /// <see cref="Extensions"/>.
-    /// </p>
-    /// <p>
+    /// </para>
+    /// <para>
     /// For details about the default encoding scheme see <see cref="Extensions"/>.
-    /// </p>
-    /// 
-    /// <see cref="Extensions"/>
-    /// <see cref="ParserExtension"/>
-    /// <see cref="ExtensionQuery"/>
+    /// </para>
     /// </summary>
+    /// <seealso cref="Extensions"/>
+    /// <seealso cref="ParserExtension"/>
+    /// <seealso cref="ExtensionQuery"/>
     public class ExtendableQueryParser : Classic.QueryParser
     {
         private readonly string defaultField;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Ext/Extensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Ext/Extensions.cs b/src/Lucene.Net.QueryParser/Ext/Extensions.cs
index e64c809..b231166 100644
--- a/src/Lucene.Net.QueryParser/Ext/Extensions.cs
+++ b/src/Lucene.Net.QueryParser/Ext/Extensions.cs
@@ -22,6 +22,23 @@ namespace Lucene.Net.QueryParsers.Ext
      * limitations under the License.
      */
 
+    /// <summary>
+    /// The <see cref="Extensions"/> class represents an extension mapping to associate
+    /// <see cref="ParserExtension"/> instances with extension keys. An extension key is a
+    /// string encoded into a Lucene standard query parser field symbol recognized by
+    /// <see cref="ExtendableQueryParser"/>. The query parser passes each extension field
+    /// token to <see cref="SplitExtensionField(string, string)"/> to separate the
+    /// extension key from the field identifier.
+    /// <para/>
+    /// In addition to the key to extension mapping this class also defines the field
+    /// name overloading scheme. <see cref="ExtendableQueryParser"/> uses the given
+    /// extension to split the actual field name and extension key by calling
+    /// <see cref="SplitExtensionField(string, string)"/>. To change the order or the key
+    /// / field name encoding scheme users can subclass <see cref="Extensions"/> to
+    /// implement their own.
+    /// </summary>
+    /// <seealso cref="ExtendableQueryParser"/>
+    /// <seealso cref="ParserExtension"/>
     public class Extensions
     {
         private readonly IDictionary<string, ParserExtension> extensions = new Dictionary<string, ParserExtension>();
@@ -34,7 +51,7 @@ namespace Lucene.Net.QueryParsers.Ext
 
         /// <summary>
         /// Creates a new <see cref="Extensions"/> instance with the
-        /// <see cref="#DEFAULT_EXTENSION_FIELD_DELIMITER"/> as a delimiter character.
+        /// <see cref="DEFAULT_EXTENSION_FIELD_DELIMITER"/> as a delimiter character.
         /// </summary>
         public Extensions()
             : this(DEFAULT_EXTENSION_FIELD_DELIMITER)
@@ -106,7 +123,7 @@ namespace Lucene.Net.QueryParsers.Ext
 
         /// <summary>
         /// Escapes an extension field. The default implementation is equivalent to
-        /// <see cref="QueryParser.Escape(string)"/>.
+        /// <see cref="QueryParserBase.Escape(string)"/>.
         /// </summary>
         /// <param name="extfield">the extension field identifier</param>
         /// <returns>the extension field identifier with all special chars escaped with
@@ -123,12 +140,12 @@ namespace Lucene.Net.QueryParsers.Ext
         /// of the extension key and the field. By default the extension key is
         /// appended to the end of the returned string while the field is added to the
         /// beginning. Special Query characters are escaped in the result.
-        /// <p>
+        /// <para>
         /// Note: <see cref="Extensions"/> subclasses must maintain the contract between
-        /// <see cref="M:BuildExtensionField(string)"/> and
-        /// <see cref="M:BuildExtensionField(string, string)"/> where the latter inverts the
+        /// <see cref="BuildExtensionField(string)"/> and
+        /// <see cref="BuildExtensionField(string, string)"/> where the latter inverts the
         /// former.
-        /// </p>
+        /// </para>
         /// </summary>
         /// <param name="extensionKey">the extension key</param>
         /// <returns>escaped extension field identifier</returns>
@@ -144,16 +161,17 @@ namespace Lucene.Net.QueryParsers.Ext
         /// of the extension key and the field. By default the extension key is
         /// appended to the end of the returned string while the field is added to the
         /// beginning. Special Query characters are escaped in the result.
-        /// <p>
+        /// <para>
         /// Note: <see cref="Extensions"/> subclasses must maintain the contract between
-        /// <see cref="M:BuildExtensionField(string)"/> and
-        /// <see cref="M:BuildExtensionField(string, string)"/> where the latter inverts the
+        /// <see cref="BuildExtensionField(string)"/> and
+        /// <see cref="BuildExtensionField(string, string)"/> where the latter inverts the
         /// former.
+        /// </para>
         /// </summary>
         /// <param name="extensionKey">the extension key</param>
         /// <param name="field">the field to apply the extension on.</param>
         /// <returns>escaped extension field identifier</returns>
-        /// <remarks>See <see cref="M:BuildExtensionField(string)"/> to use the default query field</remarks>
+        /// <remarks>See <see cref="BuildExtensionField(string)"/> to use the default query field</remarks>
         public virtual string BuildExtensionField(string extensionKey, string field)
         {
             StringBuilder builder = new StringBuilder(field);
@@ -162,6 +180,6 @@ namespace Lucene.Net.QueryParsers.Ext
             return EscapeExtensionField(builder.ToString());
         }
 
-        // NOTE: Pair<T, T> was eliminated in favor of the built in Tuple<T, T> type.
+        // LUCENENET NOTE: Pair<T, T> was eliminated in favor of the built in Tuple<T, T> type.
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Ext/ParserExtension.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Ext/ParserExtension.cs b/src/Lucene.Net.QueryParser/Ext/ParserExtension.cs
index b617059..2e6650d 100644
--- a/src/Lucene.Net.QueryParser/Ext/ParserExtension.cs
+++ b/src/Lucene.Net.QueryParser/Ext/ParserExtension.cs
@@ -30,17 +30,16 @@ namespace Lucene.Net.QueryParsers.Ext
     /// the parser the <see cref="ParserExtension"/> can be customized and plugged into an
     /// instance of <see cref="ExtendableQueryParser"/>, a direct subclass of
     /// <see cref="Classic.QueryParser"/>.
-    ///  
-    /// <see cref="Extensions"/>
-    /// <see cref="ExtendableQueryParser"/>
     /// </summary>
+    /// <seealso cref="Extensions"/>
+    /// <seealso cref="ExtendableQueryParser"/>
     public abstract class ParserExtension
     {
         /// <summary>
         /// Processes the given <see cref="ExtensionQuery"/> and returns a corresponding
         /// <see cref="Query"/> instance. Subclasses must either return a <see cref="Query"/>
         /// instance or raise a <see cref="ParseException"/>. This method must not return
-        /// <code>null</code>.
+        /// <c>null</c>.
         /// </summary>
         /// <param name="query">the extension query</param>
         /// <returns>a new query instance</returns>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
index f4c15d6..fb03a4b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/CharStream.cs
@@ -92,7 +92,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         /// <summary>
         /// Returns the next character that marks the beginning of the next token.
         /// All characters must remain in the buffer between two successive calls
-        /// to this method to implement backup correctly.
+        /// to this method to implement <see cref="BackUp(int)"/> correctly.
         /// </summary>
         char BeginToken();
 
@@ -112,7 +112,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         /// <code>
         /// {
         ///     string t = GetImage();
-        ///     return t.Substring(t.Length - len, t.Length - (t.Length - len)).ToCharArray();
+        ///     return t.Substring(t.Length - len, len).ToCharArray();
         /// }
         /// </code>
         /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
index 6f6d27d..89d0f1c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/FastCharStream.cs
@@ -20,7 +20,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
      */
 
     /// <summary>
-    /// An efficient implementation of JavaCC's CharStream interface.  <p>Note that
+    /// An efficient implementation of JavaCC's <see cref="ICharStream"/> interface.  
+    /// <para/>
+    /// Note that
     /// this does not do line-number counting, but instead keeps track of the
     /// character position of the token in the input, as required by Lucene's
     /// <see cref="Token"/> API. 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
index f1b4ea9..f2274d2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs
@@ -206,7 +206,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     default:
                         if ((ch = str[i]) < 0x20 || ch > 0x7e)
                         {
-                            //string s = "0000" + Integer.toString(ch, 16);
                             string s = "0000" + Convert.ToString(ch, 16);
                             retval.Append("\\u" + s.Substring(s.Length - 4, s.Length - (s.Length - 4)));
                         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Simple/SimpleQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Simple/SimpleQueryParser.cs b/src/Lucene.Net.QueryParser/Simple/SimpleQueryParser.cs
index 3c8c694..8dea702 100644
--- a/src/Lucene.Net.QueryParser/Simple/SimpleQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Simple/SimpleQueryParser.cs
@@ -29,70 +29,70 @@ namespace Lucene.Net.QueryParsers.Simple
      */
 
     /// <summary>
-    /// SimpleQueryParser is used to parse human readable query syntax.
-    /// <p>
+    /// <see cref="SimpleQueryParser"/> is used to parse human readable query syntax.
+    /// <para/>
     /// The main idea behind this parser is that a person should be able to type
     /// whatever they want to represent a query, and this parser will do its best
     /// to interpret what to search for no matter how poorly composed the request
     /// may be. Tokens are considered to be any of a term, phrase, or subquery for the
     /// operations described below.  Whitespace including ' ' '\n' '\r' and '\t'
     /// and certain operators may be used to delimit tokens ( ) + | " .
-    /// <p>
+    /// <para/>
     /// Any errors in query syntax will be ignored and the parser will attempt
     /// to decipher what it can; however, this may mean odd or unexpected results.
     /// <h4>Query Operators</h4>
-    /// <ul>
-    ///  <li>'{@code +}' specifies {@code AND} operation: <tt>token1+token2</tt>
-    ///  <li>'{@code |}' specifies {@code OR} operation: <tt>token1|token2</tt>
-    ///  <li>'{@code -}' negates a single token: <tt>-token0</tt>
-    ///  <li>'{@code "}' creates phrases of terms: <tt>"term1 term2 ..."</tt>
-    ///  <li>'{@code *}' at the end of terms specifies prefix query: <tt>term*</tt>
-    ///  <li>'{@code ~}N' at the end of terms specifies fuzzy query: <tt>term~1</tt>
-    ///  <li>'{@code ~}N' at the end of phrases specifies near query: <tt>"term1 term2"~5</tt>
-    ///  <li>'{@code (}' and '{@code )}' specifies precedence: <tt>token1 + (token2 | token3)</tt>
-    /// </ul>
-    /// <p>
-    /// The {@link #setDefaultOperator default operator} is {@code OR} if no other operator is specified.
-    /// For example, the following will {@code OR} {@code token1} and {@code token2} together:
-    /// <tt>token1 token2</tt>
-    /// <p>
+    /// <list type="bullet">
+    ///  <item>'<c>+</c>' specifies <c>AND</c> operation: <c>token1+token2</c></item>
+    ///  <item>'<c>|</c>' specifies <c>OR</c> operation: <c>token1|token2</c></item>
+    ///  <item>'<c>-</c>' negates a single token: <c>-token0</c></item>
+    ///  <item>'<c>"</c>' creates phrases of terms: <c>"term1 term2 ..."</c></item>
+    ///  <item>'<c>*</c>' at the end of terms specifies prefix query: <c>term*</c></item>
+    ///  <item>'<c>~</c>N' at the end of terms specifies fuzzy query: <c>term~1</c></item>
+    ///  <item>'<c>~</c>N' at the end of phrases specifies near query: <c>"term1 term2"~5</c></item>
+    ///  <item>'<c>(</c>' and '<c>)</c>' specifies precedence: <c>token1 + (token2 | token3)</c></item>
+    /// </list>
+    /// <para/>
+    /// The default operator is <c>OR</c> if no other operator is specified.
+    /// For example, the following will <c>OR</c> <c>token1</c> and <c>token2</c> together:
+    /// <c>token1 token2</c>
+    /// <para/>
     /// Normal operator precedence will be simple order from right to left.
-    /// For example, the following will evaluate {@code token1 OR token2} first,
-    /// then {@code AND} with {@code token3}:
-    /// <blockquote>token1 | token2 + token3</blockquote>
+    /// For example, the following will evaluate <c>token1 OR token2</c> first,
+    /// then <c>AND</c> with <c>token3</c>:
+    /// <code>token1 | token2 + token3</code>
     /// <h4>Escaping</h4>
-    /// <p>
+    /// <para/>
     /// An individual term may contain any possible character with certain characters
-    /// requiring escaping using a '{@code \}'.  The following characters will need to be escaped in
+    /// requiring escaping using a '<c>\</c>'.  The following characters will need to be escaped in
     /// terms and phrases:
-    /// {@code + | " ( ) ' \}
-    /// <p>
-    /// The '{@code -}' operator is a special case.  On individual terms (not phrases) the first
-    /// character of a term that is {@code -} must be escaped; however, any '{@code -}' characters
+    /// <c>+ | " ( ) ' \</c>
+    /// <para/>
+    /// The '<c>-</c>' operator is a special case.  On individual terms (not phrases) the first
+    /// character of a term that is <c>-</c> must be escaped; however, any '<c>-</c>' characters
     /// beyond the first character do not need to be escaped.
     /// For example:
-    /// <ul>
-    ///   <li>{@code -term1}   -- Specifies {@code NOT} operation against {@code term1}
-    ///   <li>{@code \-term1}  -- Searches for the term {@code -term1}.
-    ///   <li>{@code term-1}   -- Searches for the term {@code term-1}.
-    ///   <li>{@code term\-1}  -- Searches for the term {@code term-1}.
-    /// </ul>
-    /// <p>
-    /// The '{@code *}' operator is a special case. On individual terms (not phrases) the last
-    /// character of a term that is '{@code *}' must be escaped; however, any '{@code *}' characters
+    /// <list type="bullet">
+    ///   <item><c>-term1</c>   -- Specifies <c>NOT</c> operation against <c>term1</c></item>
+    ///   <item><c>\-term1</c>  -- Searches for the term <c>-term1</c>.</item>
+    ///   <item><c>term-1</c>   -- Searches for the term <c>term-1</c>.</item>
+    ///   <item><c>term\-1</c>  -- Searches for the term <c>term-1</c>.</item>
+    /// </list>
+    /// <para/>
+    /// The '<c>*</c>' operator is a special case. On individual terms (not phrases) the last
+    /// character of a term that is '<c>*</c>' must be escaped; however, any '<c>*</c>' characters
     /// before the last character do not need to be escaped:
-    /// <ul>
-    ///   <li>{@code term1*}  --  Searches for the prefix {@code term1}
-    ///   <li>{@code term1\*} --  Searches for the term {@code term1*}
-    ///   <li>{@code term*1}  --  Searches for the term {@code term*1}
-    ///   <li>{@code term\*1} --  Searches for the term {@code term*1}
-    /// </ul>
-    /// <p>
+    /// <list type="bullet">
+    ///   <item><c>term1*</c>  --  Searches for the prefix <c>term1</c></item>
+    ///   <item><c>term1\*</c> --  Searches for the term <c>term1*</c></item>
+    ///   <item><c>term*1</c>  --  Searches for the term <c>term*1</c></item>
+    ///   <item><c>term\*1</c> --  Searches for the term <c>term*1</c></item>
+    /// </list>
+    /// <para/>
     /// Note that above examples consider the terms before text processing.
     /// </summary>
     public class SimpleQueryParser : QueryBuilder
     {
-        /** Map of fields to query against with their weights */
+        /// <summary>Map of fields to query against with their weights</summary>
         protected readonly IDictionary<string, float> weights;
 
         // TODO: Make these into a [Flags] enum in .NET??
@@ -122,32 +122,19 @@ namespace Lucene.Net.QueryParsers.Simple
 
         private BooleanClause.Occur defaultOperator = BooleanClause.Occur.SHOULD;
 
-        /// <summary>
-        /// Creates a new parser searching over a single field.
-        /// </summary>
-        /// <param name="analyzer"></param>
-        /// <param name="field"></param>
+        /// <summary>Creates a new parser searching over a single field.</summary>
         public SimpleQueryParser(Analyzer analyzer, string field)
             : this(analyzer, new HashMap<string, float>() { { field, 1.0F } })
         {
         }
 
-        /// <summary>
-        /// Creates a new parser searching over multiple fields with different weights.
-        /// </summary>
-        /// <param name="analyzer"></param>
-        /// <param name="weights"></param>
+        /// <summary>Creates a new parser searching over multiple fields with different weights.</summary>
         public SimpleQueryParser(Analyzer analyzer, IDictionary<string, float> weights)
             : this(analyzer, weights, -1)
         {
         }
 
-        /// <summary>
-        /// Creates a new parser with custom flags used to enable/disable certain features.
-        /// </summary>
-        /// <param name="analyzer"></param>
-        /// <param name="weights"></param>
-        /// <param name="flags"></param>
+        /// <summary>Creates a new parser with custom flags used to enable/disable certain features.</summary>
         public SimpleQueryParser(Analyzer analyzer, IDictionary<string, float> weights, int flags)
             : base(analyzer)
         {
@@ -155,11 +142,7 @@ namespace Lucene.Net.QueryParsers.Simple
             this.flags = flags;
         }
 
-        /// <summary>
-        /// Parses the query text and returns parsed query (or null if empty)
-        /// </summary>
-        /// <param name="queryText"></param>
-        /// <returns></returns>
+        /// <summary>Parses the query text and returns parsed query (or null if empty)</summary>
         public Query Parse(string queryText)
         {
             char[] data = queryText.ToCharArray();
@@ -501,8 +484,6 @@ namespace Lucene.Net.QueryParsers.Simple
         /// is consumed to be added to our existing query tree
         /// this method will only add to the existing tree if the branch contained in state is not null
         /// </summary>
-        /// <param name="state"></param>
-        /// <param name="branch"></param>
         private void BuildQueryTree(State state, Query branch)
         {
             if (branch != null)
@@ -557,7 +538,6 @@ namespace Lucene.Net.QueryParsers.Simple
         /// <summary>
         /// Helper parsing fuzziness from parsing state
         /// </summary>
-        /// <param name="state"></param>
         /// <returns>slop/edit distance, 0 in the case of non-parsing slop/edit string</returns>
         private int ParseFuzziness(State state)
         {
@@ -596,8 +576,6 @@ namespace Lucene.Net.QueryParsers.Simple
         /// <summary>
         /// Helper returning true if the state has reached the end of token.
         /// </summary>
-        /// <param name="state"></param>
-        /// <returns></returns>
         private bool TokenFinished(State state)
         {
             if ((state.Data[state.Index] == '"' && (flags & PHRASE_OPERATOR) != 0)
@@ -618,8 +596,6 @@ namespace Lucene.Net.QueryParsers.Simple
         /// <summary>
         /// Factory method to generate a standard query (no phrase or prefix operators).
         /// </summary>
-        /// <param name="text"></param>
-        /// <returns></returns>
         protected virtual Query NewDefaultQuery(string text)
         {
             BooleanQuery bq = new BooleanQuery(true);
@@ -638,9 +614,6 @@ namespace Lucene.Net.QueryParsers.Simple
         /// <summary>
         /// Factory method to generate a fuzzy query.
         /// </summary>
-        /// <param name="text"></param>
-        /// <param name="fuzziness"></param>
-        /// <returns></returns>
         protected virtual Query NewFuzzyQuery(string text, int fuzziness)
         {
             BooleanQuery bq = new BooleanQuery(true);
@@ -659,9 +632,6 @@ namespace Lucene.Net.QueryParsers.Simple
         /// <summary>
         /// Factory method to generate a phrase query with slop.
         /// </summary>
-        /// <param name="text"></param>
-        /// <param name="slop"></param>
-        /// <returns></returns>
         protected virtual Query NewPhraseQuery(string text, int slop)
         {
             BooleanQuery bq = new BooleanQuery(true);
@@ -680,8 +650,6 @@ namespace Lucene.Net.QueryParsers.Simple
         /// <summary>
         /// Factory method to generate a prefix query.
         /// </summary>
-        /// <param name="text"></param>
-        /// <returns></returns>
         protected virtual Query NewPrefixQuery(string text)
         {
             BooleanQuery bq = new BooleanQuery(true);
@@ -697,8 +665,6 @@ namespace Lucene.Net.QueryParsers.Simple
         /// <summary>
         /// Helper to simplify boolean queries with 0 or 1 clause
         /// </summary>
-        /// <param name="bq"></param>
-        /// <returns></returns>
         protected virtual Query Simplify(BooleanQuery bq)
         {
             if (!bq.Clauses.Any())
@@ -717,7 +683,7 @@ namespace Lucene.Net.QueryParsers.Simple
 
         /// <summary>
         /// Gets or Sets the implicit operator setting, which will be
-        /// either {@code SHOULD} or {@code MUST}.
+        /// either <see cref="BooleanClause.Occur.SHOULD"/> or <see cref="BooleanClause.Occur.MUST"/>.
         /// </summary>
         public virtual BooleanClause.Occur DefaultOperator
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs b/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs
index f4d7326..021d24e 100644
--- a/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Parser/CharStream.cs
@@ -27,7 +27,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
     /// interface is used in the TokenManager implementation generated by
     /// JavaCCParser.
     /// 
-    /// All the methods except backup can be implemented in any fashion. backup
+    /// All the methods except <see cref="BackUp(int)"/> can be implemented in any fashion. <see cref="BackUp(int)"/>
     /// needs to be implemented correctly for the correct operation of the lexer.
     /// Rest of the methods are all used to get information like line number,
     /// column number and the string that constitutes a token and are not used
@@ -39,27 +39,21 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
         /// <summary> 
         /// Returns the next character from the selected input.  The method
         /// of selecting the input is the responsibility of the class
-        /// implementing this interface.  Can throw any java.io.IOException.
+        /// implementing this interface.  Can throw any <see cref="System.IO.IOException"/>.
         /// </summary>
         char ReadChar();
 
         /// <summary>
         /// Returns the column position of the character last read.
         /// </summary>
-        /// <deprecated>
-        /// </deprecated>
-        /// <seealso cref="EndColumn">
-        /// </seealso>
+        /// <seealso cref="EndColumn"/>
         [Obsolete]
         int Column { get; }
 
         /// <summary>
         /// Returns the line number of the character last read.
         /// </summary>
-        /// <deprecated>
-        /// </deprecated>
-        /// <seealso cref="EndLine">
-        /// </seealso>
+        /// <seealso cref="EndLine"/>
         [Obsolete]
         int Line { get; }
 
@@ -98,7 +92,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
         /// <summary> 
         /// Returns the next character that marks the beginning of the next token.
         /// All characters must remain in the buffer between two successive calls
-        /// to this method to implement backup correctly.
+        /// to this method to implement <see cref="BackUp(int)"/> correctly.
         /// </summary>
         char BeginToken();
 
@@ -116,10 +110,12 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
         /// for use in actions in the case of MORE. A simple and inefficient
         /// implementation of this is as follows :
         /// 
+        /// <code>
         /// {
-        /// string t = GetImage();
-        /// return t.substring(t.length() - len, t.length()).toCharArray();
+        ///     string t = Image;
+        ///     return t.Substring(t.Length - len, len).ToCharArray();
         /// }
+        /// </code>
         /// </summary>
         char[] GetSuffix(int len);
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ced03f59/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs b/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs
index 26eba8e..a64a5ab 100644
--- a/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Parser/FastCharStream.cs
@@ -20,7 +20,9 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
      */
 
     /// <summary>
-    /// An efficient implementation of JavaCC's CharStream interface.  <p/>Note that
+    /// An efficient implementation of JavaCC's <see cref="ICharStream"/> interface.  
+    /// <para/>
+    /// Note that
     /// this does not do line-number counting, but instead keeps track of the
     /// character position of the token in the input, as required by Lucene's <see cref="Lucene.Net.Analysis.Token" />
     /// API.
@@ -38,7 +40,7 @@ namespace Lucene.Net.QueryParsers.Surround.Parser
         internal System.IO.TextReader input; // source of chars
 
         /// <summary>
-        /// Constructs from a Reader. 
+        /// Constructs from a <see cref="System.IO.TextReader"/>. 
         /// </summary>
         public FastCharStream(System.IO.TextReader r)
         {


[55/58] lucenenet git commit: HACK: (4th) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context.

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs
index 7f4438b..598f373 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs
@@ -51,5 +51,531 @@ namespace Lucene.Net.Codecs.Lucene42
         {
             return false;
         }
+
+
+        #region BaseCompressingDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestUniqueValuesCompression()
+        {
+            base.TestUniqueValuesCompression();
+        }
+
+        [Test]
+        public override void TestDateCompression()
+        {
+            base.TestDateCompression();
+        }
+
+        [Test]
+        public override void TestSingleBigValueCompression()
+        {
+            base.TestSingleBigValueCompression();
+        }
+
+        #endregion
+
+        #region BaseDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestOneNumber()
+        {
+            base.TestOneNumber();
+        }
+
+        [Test]
+        public override void TestOneFloat()
+        {
+            base.TestOneFloat();
+        }
+
+        [Test]
+        public override void TestTwoNumbers()
+        {
+            base.TestTwoNumbers();
+        }
+
+        [Test]
+        public override void TestTwoBinaryValues()
+        {
+            base.TestTwoBinaryValues();
+        }
+
+        [Test]
+        public override void TestTwoFieldsMixed()
+        {
+            base.TestTwoFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed()
+        {
+            base.TestThreeFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed2()
+        {
+            base.TestThreeFieldsMixed2();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsNumeric()
+        {
+            base.TestTwoDocumentsNumeric();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsMerged()
+        {
+            base.TestTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestBigNumericRange()
+        {
+            base.TestBigNumericRange();
+        }
+
+        [Test]
+        public override void TestBigNumericRange2()
+        {
+            base.TestBigNumericRange2();
+        }
+
+        [Test]
+        public override void TestBytes()
+        {
+            base.TestBytes();
+        }
+
+        [Test]
+        public override void TestBytesTwoDocumentsMerged()
+        {
+            base.TestBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedBytes()
+        {
+            base.TestSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocuments()
+        {
+            base.TestSortedBytesTwoDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesThreeDocuments()
+        {
+            base.TestSortedBytesThreeDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocumentsMerged()
+        {
+            base.TestSortedBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedMergeAwayAllValues()
+        {
+            base.TestSortedMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestBytesWithNewline()
+        {
+            base.TestBytesWithNewline();
+        }
+
+        [Test]
+        public override void TestMissingSortedBytes()
+        {
+            base.TestMissingSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedTermsEnum()
+        {
+            base.TestSortedTermsEnum();
+        }
+
+        [Test]
+        public override void TestEmptySortedBytes()
+        {
+            base.TestEmptySortedBytes();
+        }
+
+        [Test]
+        public override void TestEmptyBytes()
+        {
+            base.TestEmptyBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalBytes()
+        {
+            base.TestVeryLargeButLegalBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalSortedBytes()
+        {
+            base.TestVeryLargeButLegalSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytes()
+        {
+            base.TestCodecUsesOwnBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytes()
+        {
+            base.TestCodecUsesOwnSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytesEachTime()
+        {
+            base.TestCodecUsesOwnBytesEachTime();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytesEachTime()
+        {
+            base.TestCodecUsesOwnSortedBytesEachTime();
+        }
+
+        /*
+         * Simple test case to show how to use the API
+         */
+        [Test]
+        public override void TestDocValuesSimple()
+        {
+            base.TestDocValuesSimple();
+        }
+
+        [Test]
+        public override void TestRandomSortedBytes()
+        {
+            base.TestRandomSortedBytes();
+        }
+
+        [Test]
+        public override void TestBooleanNumericsVsStoredFields()
+        {
+            base.TestBooleanNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteNumericsVsStoredFields()
+        {
+            base.TestByteNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteMissingVsFieldCache()
+        {
+            base.TestByteMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestShortNumericsVsStoredFields()
+        {
+            base.TestShortNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestShortMissingVsFieldCache()
+        {
+            base.TestShortMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestIntNumericsVsStoredFields()
+        {
+            base.TestIntNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestIntMissingVsFieldCache()
+        {
+            base.TestIntMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestLongNumericsVsStoredFields()
+        {
+            base.TestLongNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestLongMissingVsFieldCache()
+        {
+            base.TestLongMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestBinaryFixedLengthVsStoredFields()
+        {
+            base.TestBinaryFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestBinaryVariableLengthVsStoredFields()
+        {
+            base.TestBinaryVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsStoredFields()
+        {
+            base.TestSortedFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsFieldCache()
+        {
+            base.TestSortedFixedLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsFieldCache()
+        {
+            base.TestSortedVariableLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsStoredFields()
+        {
+            base.TestSortedVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetOneValue()
+        {
+            base.TestSortedSetOneValue();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoFields()
+        {
+            base.TestSortedSetTwoFields();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsMerged()
+        {
+            base.TestSortedSetTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValues()
+        {
+            base.TestSortedSetTwoValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValuesUnordered()
+        {
+            base.TestSortedSetTwoValuesUnordered();
+        }
+
+        [Test]
+        public override void TestSortedSetThreeValuesTwoDocs()
+        {
+            base.TestSortedSetThreeValuesTwoDocs();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissing()
+        {
+            base.TestSortedSetTwoDocumentsLastMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsLastMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissing()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetMergeAwayAllValues()
+        {
+            base.TestSortedSetMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTermsEnum()
+        {
+            base.TestSortedSetTermsEnum();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsUninvertedField()
+        {
+            base.TestSortedSetFixedLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsUninvertedField()
+        {
+            base.TestSortedSetVariableLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestGCDCompression()
+        {
+            base.TestGCDCompression();
+        }
+
+        [Test]
+        public override void TestZeros()
+        {
+            base.TestZeros();
+        }
+
+        [Test]
+        public override void TestZeroOrMin()
+        {
+            base.TestZeroOrMin();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissing()
+        {
+            base.TestTwoNumbersOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissingWithMerging()
+        {
+            base.TestTwoNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeNumbersOneMissingWithMerging()
+        {
+            base.TestThreeNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissing()
+        {
+            base.TestTwoBytesOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissingWithMerging()
+        {
+            base.TestTwoBytesOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeBytesOneMissingWithMerging()
+        {
+            base.TestThreeBytesOneMissingWithMerging();
+        }
+
+        // LUCENE-4853
+        [Test]
+        public override void TestHugeBinaryValues()
+        {
+            base.TestHugeBinaryValues();
+        }
+
+        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
+        [Test]
+        public override void TestHugeBinaryValueLimit()
+        {
+            base.TestHugeBinaryValueLimit();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads()
+        {
+            base.TestThreads();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (all types + missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads2()
+        {
+            base.TestThreads2();
+        }
+
+        // LUCENE-5218
+        [Test]
+        public override void TestEmptyBinaryValueOnPageSizes()
+        {
+            base.TestEmptyBinaryValueOnPageSizes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs
index 2ce76f3..dc18580 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene45/TestLucene45DocValuesFormat.cs
@@ -1,3 +1,5 @@
+using NUnit.Framework;
+
 namespace Lucene.Net.Codecs.Lucene45
 {
     /*
@@ -34,5 +36,530 @@ namespace Lucene.Net.Codecs.Lucene45
                 return Codec_Renamed;
             }
         }
+
+        #region BaseCompressingDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestUniqueValuesCompression()
+        {
+            base.TestUniqueValuesCompression();
+        }
+
+        [Test]
+        public override void TestDateCompression()
+        {
+            base.TestDateCompression();
+        }
+
+        [Test]
+        public override void TestSingleBigValueCompression()
+        {
+            base.TestSingleBigValueCompression();
+        }
+
+        #endregion
+
+        #region BaseDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestOneNumber()
+        {
+            base.TestOneNumber();
+        }
+
+        [Test]
+        public override void TestOneFloat()
+        {
+            base.TestOneFloat();
+        }
+
+        [Test]
+        public override void TestTwoNumbers()
+        {
+            base.TestTwoNumbers();
+        }
+
+        [Test]
+        public override void TestTwoBinaryValues()
+        {
+            base.TestTwoBinaryValues();
+        }
+
+        [Test]
+        public override void TestTwoFieldsMixed()
+        {
+            base.TestTwoFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed()
+        {
+            base.TestThreeFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed2()
+        {
+            base.TestThreeFieldsMixed2();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsNumeric()
+        {
+            base.TestTwoDocumentsNumeric();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsMerged()
+        {
+            base.TestTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestBigNumericRange()
+        {
+            base.TestBigNumericRange();
+        }
+
+        [Test]
+        public override void TestBigNumericRange2()
+        {
+            base.TestBigNumericRange2();
+        }
+
+        [Test]
+        public override void TestBytes()
+        {
+            base.TestBytes();
+        }
+
+        [Test]
+        public override void TestBytesTwoDocumentsMerged()
+        {
+            base.TestBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedBytes()
+        {
+            base.TestSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocuments()
+        {
+            base.TestSortedBytesTwoDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesThreeDocuments()
+        {
+            base.TestSortedBytesThreeDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocumentsMerged()
+        {
+            base.TestSortedBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedMergeAwayAllValues()
+        {
+            base.TestSortedMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestBytesWithNewline()
+        {
+            base.TestBytesWithNewline();
+        }
+
+        [Test]
+        public override void TestMissingSortedBytes()
+        {
+            base.TestMissingSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedTermsEnum()
+        {
+            base.TestSortedTermsEnum();
+        }
+
+        [Test]
+        public override void TestEmptySortedBytes()
+        {
+            base.TestEmptySortedBytes();
+        }
+
+        [Test]
+        public override void TestEmptyBytes()
+        {
+            base.TestEmptyBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalBytes()
+        {
+            base.TestVeryLargeButLegalBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalSortedBytes()
+        {
+            base.TestVeryLargeButLegalSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytes()
+        {
+            base.TestCodecUsesOwnBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytes()
+        {
+            base.TestCodecUsesOwnSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytesEachTime()
+        {
+            base.TestCodecUsesOwnBytesEachTime();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytesEachTime()
+        {
+            base.TestCodecUsesOwnSortedBytesEachTime();
+        }
+
+        /*
+         * Simple test case to show how to use the API
+         */
+        [Test]
+        public override void TestDocValuesSimple()
+        {
+            base.TestDocValuesSimple();
+        }
+
+        [Test]
+        public override void TestRandomSortedBytes()
+        {
+            base.TestRandomSortedBytes();
+        }
+
+        [Test]
+        public override void TestBooleanNumericsVsStoredFields()
+        {
+            base.TestBooleanNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteNumericsVsStoredFields()
+        {
+            base.TestByteNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteMissingVsFieldCache()
+        {
+            base.TestByteMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestShortNumericsVsStoredFields()
+        {
+            base.TestShortNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestShortMissingVsFieldCache()
+        {
+            base.TestShortMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestIntNumericsVsStoredFields()
+        {
+            base.TestIntNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestIntMissingVsFieldCache()
+        {
+            base.TestIntMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestLongNumericsVsStoredFields()
+        {
+            base.TestLongNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestLongMissingVsFieldCache()
+        {
+            base.TestLongMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestBinaryFixedLengthVsStoredFields()
+        {
+            base.TestBinaryFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestBinaryVariableLengthVsStoredFields()
+        {
+            base.TestBinaryVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsStoredFields()
+        {
+            base.TestSortedFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsFieldCache()
+        {
+            base.TestSortedFixedLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsFieldCache()
+        {
+            base.TestSortedVariableLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsStoredFields()
+        {
+            base.TestSortedVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetOneValue()
+        {
+            base.TestSortedSetOneValue();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoFields()
+        {
+            base.TestSortedSetTwoFields();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsMerged()
+        {
+            base.TestSortedSetTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValues()
+        {
+            base.TestSortedSetTwoValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValuesUnordered()
+        {
+            base.TestSortedSetTwoValuesUnordered();
+        }
+
+        [Test]
+        public override void TestSortedSetThreeValuesTwoDocs()
+        {
+            base.TestSortedSetThreeValuesTwoDocs();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissing()
+        {
+            base.TestSortedSetTwoDocumentsLastMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsLastMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissing()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetMergeAwayAllValues()
+        {
+            base.TestSortedSetMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTermsEnum()
+        {
+            base.TestSortedSetTermsEnum();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsUninvertedField()
+        {
+            base.TestSortedSetFixedLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsUninvertedField()
+        {
+            base.TestSortedSetVariableLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestGCDCompression()
+        {
+            base.TestGCDCompression();
+        }
+
+        [Test]
+        public override void TestZeros()
+        {
+            base.TestZeros();
+        }
+
+        [Test]
+        public override void TestZeroOrMin()
+        {
+            base.TestZeroOrMin();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissing()
+        {
+            base.TestTwoNumbersOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissingWithMerging()
+        {
+            base.TestTwoNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeNumbersOneMissingWithMerging()
+        {
+            base.TestThreeNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissing()
+        {
+            base.TestTwoBytesOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissingWithMerging()
+        {
+            base.TestTwoBytesOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeBytesOneMissingWithMerging()
+        {
+            base.TestThreeBytesOneMissingWithMerging();
+        }
+
+        // LUCENE-4853
+        [Test]
+        public override void TestHugeBinaryValues()
+        {
+            base.TestHugeBinaryValues();
+        }
+
+        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
+        [Test]
+        public override void TestHugeBinaryValueLimit()
+        {
+            base.TestHugeBinaryValueLimit();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads()
+        {
+            base.TestThreads();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (all types + missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads2()
+        {
+            base.TestThreads2();
+        }
+
+        // LUCENE-5218
+        [Test]
+        public override void TestEmptyBinaryValueOnPageSizes()
+        {
+            base.TestEmptyBinaryValueOnPageSizes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs
index bf0a5fe..cbf656c 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldDocValuesFormat.cs
@@ -153,5 +153,506 @@ namespace Lucene.Net.Codecs.Perfield
                 }
             }
         }
+
+
+        #region BaseDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestOneNumber()
+        {
+            base.TestOneNumber();
+        }
+
+        [Test]
+        public override void TestOneFloat()
+        {
+            base.TestOneFloat();
+        }
+
+        [Test]
+        public override void TestTwoNumbers()
+        {
+            base.TestTwoNumbers();
+        }
+
+        [Test]
+        public override void TestTwoBinaryValues()
+        {
+            base.TestTwoBinaryValues();
+        }
+
+        [Test]
+        public override void TestTwoFieldsMixed()
+        {
+            base.TestTwoFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed()
+        {
+            base.TestThreeFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed2()
+        {
+            base.TestThreeFieldsMixed2();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsNumeric()
+        {
+            base.TestTwoDocumentsNumeric();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsMerged()
+        {
+            base.TestTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestBigNumericRange()
+        {
+            base.TestBigNumericRange();
+        }
+
+        [Test]
+        public override void TestBigNumericRange2()
+        {
+            base.TestBigNumericRange2();
+        }
+
+        [Test]
+        public override void TestBytes()
+        {
+            base.TestBytes();
+        }
+
+        [Test]
+        public override void TestBytesTwoDocumentsMerged()
+        {
+            base.TestBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedBytes()
+        {
+            base.TestSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocuments()
+        {
+            base.TestSortedBytesTwoDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesThreeDocuments()
+        {
+            base.TestSortedBytesThreeDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocumentsMerged()
+        {
+            base.TestSortedBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedMergeAwayAllValues()
+        {
+            base.TestSortedMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestBytesWithNewline()
+        {
+            base.TestBytesWithNewline();
+        }
+
+        [Test]
+        public override void TestMissingSortedBytes()
+        {
+            base.TestMissingSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedTermsEnum()
+        {
+            base.TestSortedTermsEnum();
+        }
+
+        [Test]
+        public override void TestEmptySortedBytes()
+        {
+            base.TestEmptySortedBytes();
+        }
+
+        [Test]
+        public override void TestEmptyBytes()
+        {
+            base.TestEmptyBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalBytes()
+        {
+            base.TestVeryLargeButLegalBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalSortedBytes()
+        {
+            base.TestVeryLargeButLegalSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytes()
+        {
+            base.TestCodecUsesOwnBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytes()
+        {
+            base.TestCodecUsesOwnSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytesEachTime()
+        {
+            base.TestCodecUsesOwnBytesEachTime();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytesEachTime()
+        {
+            base.TestCodecUsesOwnSortedBytesEachTime();
+        }
+
+        /*
+         * Simple test case to show how to use the API
+         */
+        [Test]
+        public override void TestDocValuesSimple()
+        {
+            base.TestDocValuesSimple();
+        }
+
+        [Test]
+        public override void TestRandomSortedBytes()
+        {
+            base.TestRandomSortedBytes();
+        }
+
+        [Test]
+        public override void TestBooleanNumericsVsStoredFields()
+        {
+            base.TestBooleanNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteNumericsVsStoredFields()
+        {
+            base.TestByteNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteMissingVsFieldCache()
+        {
+            base.TestByteMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestShortNumericsVsStoredFields()
+        {
+            base.TestShortNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestShortMissingVsFieldCache()
+        {
+            base.TestShortMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestIntNumericsVsStoredFields()
+        {
+            base.TestIntNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestIntMissingVsFieldCache()
+        {
+            base.TestIntMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestLongNumericsVsStoredFields()
+        {
+            base.TestLongNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestLongMissingVsFieldCache()
+        {
+            base.TestLongMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestBinaryFixedLengthVsStoredFields()
+        {
+            base.TestBinaryFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestBinaryVariableLengthVsStoredFields()
+        {
+            base.TestBinaryVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsStoredFields()
+        {
+            base.TestSortedFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsFieldCache()
+        {
+            base.TestSortedFixedLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsFieldCache()
+        {
+            base.TestSortedVariableLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsStoredFields()
+        {
+            base.TestSortedVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetOneValue()
+        {
+            base.TestSortedSetOneValue();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoFields()
+        {
+            base.TestSortedSetTwoFields();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsMerged()
+        {
+            base.TestSortedSetTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValues()
+        {
+            base.TestSortedSetTwoValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValuesUnordered()
+        {
+            base.TestSortedSetTwoValuesUnordered();
+        }
+
+        [Test]
+        public override void TestSortedSetThreeValuesTwoDocs()
+        {
+            base.TestSortedSetThreeValuesTwoDocs();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissing()
+        {
+            base.TestSortedSetTwoDocumentsLastMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsLastMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissing()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetMergeAwayAllValues()
+        {
+            base.TestSortedSetMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTermsEnum()
+        {
+            base.TestSortedSetTermsEnum();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsUninvertedField()
+        {
+            base.TestSortedSetFixedLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsUninvertedField()
+        {
+            base.TestSortedSetVariableLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestGCDCompression()
+        {
+            base.TestGCDCompression();
+        }
+
+        [Test]
+        public override void TestZeros()
+        {
+            base.TestZeros();
+        }
+
+        [Test]
+        public override void TestZeroOrMin()
+        {
+            base.TestZeroOrMin();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissing()
+        {
+            base.TestTwoNumbersOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissingWithMerging()
+        {
+            base.TestTwoNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeNumbersOneMissingWithMerging()
+        {
+            base.TestThreeNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissing()
+        {
+            base.TestTwoBytesOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissingWithMerging()
+        {
+            base.TestTwoBytesOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeBytesOneMissingWithMerging()
+        {
+            base.TestThreeBytesOneMissingWithMerging();
+        }
+
+        // LUCENE-4853
+        [Test]
+        public override void TestHugeBinaryValues()
+        {
+            base.TestHugeBinaryValues();
+        }
+
+        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
+        [Test]
+        public override void TestHugeBinaryValueLimit()
+        {
+            base.TestHugeBinaryValueLimit();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads()
+        {
+            base.TestThreads();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (all types + missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads2()
+        {
+            base.TestThreads2();
+        }
+
+        // LUCENE-5218
+        [Test]
+        public override void TestEmptyBinaryValueOnPageSizes()
+        {
+            base.TestEmptyBinaryValueOnPageSizes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs
index d2275e8..05751f9 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Perfield/TestPerFieldPostingsFormat.cs
@@ -45,5 +45,56 @@ namespace Lucene.Net.Codecs.Perfield
             //LUCENE TO-DO
             AssumeTrue("The MockRandom PF randomizes content on the fly, so we can't check it", false);
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs b/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs
index 70ee586..628ddc0 100644
--- a/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestDocValuesFormat.cs
@@ -1,3 +1,5 @@
+using NUnit.Framework;
+
 namespace Lucene.Net.Index
 {
     /*
@@ -39,5 +41,506 @@ namespace Lucene.Net.Index
         {
             return TestUtil.FieldSupportsHugeBinaryDocValues(field);
         }
+
+
+        #region BaseDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestOneNumber()
+        {
+            base.TestOneNumber();
+        }
+
+        [Test]
+        public override void TestOneFloat()
+        {
+            base.TestOneFloat();
+        }
+
+        [Test]
+        public override void TestTwoNumbers()
+        {
+            base.TestTwoNumbers();
+        }
+
+        [Test]
+        public override void TestTwoBinaryValues()
+        {
+            base.TestTwoBinaryValues();
+        }
+
+        [Test]
+        public override void TestTwoFieldsMixed()
+        {
+            base.TestTwoFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed()
+        {
+            base.TestThreeFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed2()
+        {
+            base.TestThreeFieldsMixed2();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsNumeric()
+        {
+            base.TestTwoDocumentsNumeric();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsMerged()
+        {
+            base.TestTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestBigNumericRange()
+        {
+            base.TestBigNumericRange();
+        }
+
+        [Test]
+        public override void TestBigNumericRange2()
+        {
+            base.TestBigNumericRange2();
+        }
+
+        [Test]
+        public override void TestBytes()
+        {
+            base.TestBytes();
+        }
+
+        [Test]
+        public override void TestBytesTwoDocumentsMerged()
+        {
+            base.TestBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedBytes()
+        {
+            base.TestSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocuments()
+        {
+            base.TestSortedBytesTwoDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesThreeDocuments()
+        {
+            base.TestSortedBytesThreeDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocumentsMerged()
+        {
+            base.TestSortedBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedMergeAwayAllValues()
+        {
+            base.TestSortedMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestBytesWithNewline()
+        {
+            base.TestBytesWithNewline();
+        }
+
+        [Test]
+        public override void TestMissingSortedBytes()
+        {
+            base.TestMissingSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedTermsEnum()
+        {
+            base.TestSortedTermsEnum();
+        }
+
+        [Test]
+        public override void TestEmptySortedBytes()
+        {
+            base.TestEmptySortedBytes();
+        }
+
+        [Test]
+        public override void TestEmptyBytes()
+        {
+            base.TestEmptyBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalBytes()
+        {
+            base.TestVeryLargeButLegalBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalSortedBytes()
+        {
+            base.TestVeryLargeButLegalSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytes()
+        {
+            base.TestCodecUsesOwnBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytes()
+        {
+            base.TestCodecUsesOwnSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytesEachTime()
+        {
+            base.TestCodecUsesOwnBytesEachTime();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytesEachTime()
+        {
+            base.TestCodecUsesOwnSortedBytesEachTime();
+        }
+
+        /*
+         * Simple test case to show how to use the API
+         */
+        [Test]
+        public override void TestDocValuesSimple()
+        {
+            base.TestDocValuesSimple();
+        }
+
+        [Test]
+        public override void TestRandomSortedBytes()
+        {
+            base.TestRandomSortedBytes();
+        }
+
+        [Test]
+        public override void TestBooleanNumericsVsStoredFields()
+        {
+            base.TestBooleanNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteNumericsVsStoredFields()
+        {
+            base.TestByteNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteMissingVsFieldCache()
+        {
+            base.TestByteMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestShortNumericsVsStoredFields()
+        {
+            base.TestShortNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestShortMissingVsFieldCache()
+        {
+            base.TestShortMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestIntNumericsVsStoredFields()
+        {
+            base.TestIntNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestIntMissingVsFieldCache()
+        {
+            base.TestIntMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestLongNumericsVsStoredFields()
+        {
+            base.TestLongNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestLongMissingVsFieldCache()
+        {
+            base.TestLongMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestBinaryFixedLengthVsStoredFields()
+        {
+            base.TestBinaryFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestBinaryVariableLengthVsStoredFields()
+        {
+            base.TestBinaryVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsStoredFields()
+        {
+            base.TestSortedFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsFieldCache()
+        {
+            base.TestSortedFixedLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsFieldCache()
+        {
+            base.TestSortedVariableLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsStoredFields()
+        {
+            base.TestSortedVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetOneValue()
+        {
+            base.TestSortedSetOneValue();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoFields()
+        {
+            base.TestSortedSetTwoFields();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsMerged()
+        {
+            base.TestSortedSetTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValues()
+        {
+            base.TestSortedSetTwoValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValuesUnordered()
+        {
+            base.TestSortedSetTwoValuesUnordered();
+        }
+
+        [Test]
+        public override void TestSortedSetThreeValuesTwoDocs()
+        {
+            base.TestSortedSetThreeValuesTwoDocs();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissing()
+        {
+            base.TestSortedSetTwoDocumentsLastMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsLastMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissing()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetMergeAwayAllValues()
+        {
+            base.TestSortedSetMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTermsEnum()
+        {
+            base.TestSortedSetTermsEnum();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsUninvertedField()
+        {
+            base.TestSortedSetFixedLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsUninvertedField()
+        {
+            base.TestSortedSetVariableLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestGCDCompression()
+        {
+            base.TestGCDCompression();
+        }
+
+        [Test]
+        public override void TestZeros()
+        {
+            base.TestZeros();
+        }
+
+        [Test]
+        public override void TestZeroOrMin()
+        {
+            base.TestZeroOrMin();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissing()
+        {
+            base.TestTwoNumbersOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissingWithMerging()
+        {
+            base.TestTwoNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeNumbersOneMissingWithMerging()
+        {
+            base.TestThreeNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissing()
+        {
+            base.TestTwoBytesOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissingWithMerging()
+        {
+            base.TestTwoBytesOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeBytesOneMissingWithMerging()
+        {
+            base.TestThreeBytesOneMissingWithMerging();
+        }
+
+        // LUCENE-4853
+        [Test]
+        public override void TestHugeBinaryValues()
+        {
+            base.TestHugeBinaryValues();
+        }
+
+        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
+        [Test]
+        public override void TestHugeBinaryValueLimit()
+        {
+            base.TestHugeBinaryValueLimit();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads()
+        {
+            base.TestThreads();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (all types + missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads2()
+        {
+            base.TestThreads2();
+        }
+
+        // LUCENE-5218
+        [Test]
+        public override void TestEmptyBinaryValueOnPageSizes()
+        {
+            base.TestEmptyBinaryValueOnPageSizes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs b/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs
index e99678b..921b719 100644
--- a/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestLogMergePolicy.cs
@@ -1,3 +1,5 @@
+using NUnit.Framework;
+
 namespace Lucene.Net.Index
 {
     /*
@@ -23,5 +25,18 @@ namespace Lucene.Net.Index
         {
             return NewLogMergePolicy(Random());
         }
+
+        #region BaseMergePolicyTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestForceMergeNotNeeded()
+        {
+            base.TestForceMergeNotNeeded();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs b/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs
index 7f425f7..c48b98f 100644
--- a/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestNumericDocValuesUpdates.cs
@@ -1527,7 +1527,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        [Test, Timeout(120000)]
         public virtual void TestTonsOfUpdates()
         {
             // LUCENE-5248: make sure that when there are many updates, we don't use too much RAM

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs b/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs
index 70c47cc..7d49c1b 100644
--- a/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestPersistentSnapshotDeletionPolicy.cs
@@ -208,5 +208,55 @@ namespace Lucene.Net.Index
             Assert.AreEqual(0, psdp.SnapshotCount, "Should have no snapshots !");
             dir.Dispose();
         }
+
+
+        #region TestSnapshotDeletionPolicy
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestSnapshotDeletionPolicy_Mem()
+        {
+            base.TestSnapshotDeletionPolicy_Mem();
+        }
+
+        [Test]
+        public override void TestBasicSnapshots()
+        {
+            base.TestBasicSnapshots();
+        }
+
+        [Test]
+        public override void TestMultiThreadedSnapshotting()
+        {
+            base.TestMultiThreadedSnapshotting();
+        }
+
+        [Test]
+        public override void TestRollbackToOldSnapshot()
+        {
+            base.TestRollbackToOldSnapshot();
+        }
+
+        [Test]
+        public override void TestReleaseSnapshot()
+        {
+            base.TestReleaseSnapshot();
+        }
+
+        [Test]
+        public override void TestSnapshotLastCommitTwice()
+        {
+            base.TestSnapshotLastCommitTwice();
+        }
+
+        [Test]
+        public override void TestMissingCommits()
+        {
+            base.TestMissingCommits();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs b/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs
index 427aa96..20c6b07 100644
--- a/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestPostingsFormat.cs
@@ -41,5 +41,55 @@ namespace Lucene.Net.Index
         {
             AssumeTrue("The MockRandom PF randomizes content on the fly, so we can't check it", false);
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs
index 902db7f..31ed10c 100644
--- a/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestStoredFieldsFormat.cs
@@ -47,5 +47,88 @@ namespace Lucene.Net.Index
             // and merge into newly formed 3.x segments.
             base.TestWriteReadMerge();
         }
+
+
+        #region BaseStoredFieldsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestRandomStoredFields()
+        {
+            base.TestRandomStoredFields();
+        }
+
+        [Test]
+        // LUCENE-1727: make sure doc fields are stored in order
+        public override void TestStoredFieldsOrder()
+        {
+            base.TestStoredFieldsOrder();
+        }
+
+        [Test]
+        // LUCENE-1219
+        public override void TestBinaryFieldOffsetLength()
+        {
+            base.TestBinaryFieldOffsetLength();
+        }
+
+        [Test]
+        public override void TestNumericField()
+        {
+            base.TestNumericField();
+        }
+
+        [Test]
+        public override void TestIndexedBit()
+        {
+            base.TestIndexedBit();
+        }
+
+        [Test]
+        public override void TestReadSkip()
+        {
+            base.TestReadSkip();
+        }
+
+        [Test]
+        public override void TestEmptyDocs()
+        {
+            base.TestEmptyDocs();
+        }
+
+        [Test]
+        public override void TestConcurrentReads()
+        {
+            base.TestConcurrentReads();
+        }
+
+        [Test, Timeout(120000)]
+        public override void TestBigDocuments()
+        {
+            base.TestBigDocuments();
+        }
+
+        [Test]
+        public override void TestBulkMergeWithDeletes()
+        {
+            base.TestBulkMergeWithDeletes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs b/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs
index 38f08d4..dac8fa8 100644
--- a/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestTermVectorsFormat.cs
@@ -58,5 +58,60 @@ namespace Lucene.Net.Index
         {
             AssumeTrue("The MockRandom PF randomizes content on the fly, so we can't check it", false);
         }
+
+
+
+        #region BaseTermVectorsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        // only one doc with vectors
+        public override void TestRareVectors()
+        {
+            base.TestRareVectors();
+        }
+
+        [Test]
+        public override void TestHighFreqs()
+        {
+            base.TestHighFreqs();
+        }
+
+        [Test]
+        public override void TestLotsOfFields()
+        {
+            base.TestLotsOfFields();
+        }
+
+        [Test]
+        // different options for the same field
+        public override void TestMixedOptions()
+        {
+            base.TestMixedOptions();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        [Test]
+        public override void TestMerge()
+        {
+            base.TestMerge();
+        }
+
+        [Test]
+        // run random tests from different threads to make sure the per-thread clones
+        // don't share mutable data
+        public override void TestClone()
+        {
+            base.TestClone();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs b/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs
index 922551c..ede9691 100644
--- a/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestTieredMergePolicy.cs
@@ -273,5 +273,19 @@ namespace Lucene.Net.Index
 
             // TODO: Add more checks for other non-double setters!
         }
+
+
+        #region BaseMergePolicyTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestForceMergeNotNeeded()
+        {
+            base.TestForceMergeNotNeeded();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs b/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs
index 96ec2f4..16a6d17 100644
--- a/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs
+++ b/src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs
@@ -192,7 +192,7 @@ namespace Lucene.Net.Search
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestPad()
         {
             int[] tests = new int[] { -9999999, -99560, -100, -3, -1, 0, 3, 9, 10, 1000, 999999999 };

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs b/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs
index 735dc0c..307c51f 100644
--- a/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs
+++ b/src/Lucene.Net.Tests/core/Search/Spans/TestSpanExplanationsOfNonMatches.cs
@@ -33,5 +33,219 @@ namespace Lucene.Net.Search.Spans
         {
             CheckHits.CheckNoMatchExplanations(q, FIELD, Searcher, expDocNrs);
         }
+
+
+        #region TestSpanExplanations
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestST1()
+        {
+            base.TestST1();
+        }
+
+        [Test]
+        public override void TestST2()
+        {
+            base.TestST2();
+        }
+
+        [Test]
+        public override void TestST4()
+        {
+            base.TestST4();
+        }
+
+        [Test]
+        public override void TestST5()
+        {
+            base.TestST5();
+        }
+
+        /* some SpanFirstQueries */
+
+        [Test]
+        public override void TestSF1()
+        {
+            base.TestSF1();
+        }
+
+        [Test]
+        public override void TestSF2()
+        {
+            base.TestSF2();
+        }
+
+        [Test]
+        public override void TestSF4()
+        {
+            base.TestSF4();
+        }
+
+        [Test]
+        public override void TestSF5()
+        {
+            base.TestSF5();
+        }
+
+        [Test]
+        public override void TestSF6()
+        {
+            base.TestSF6();
+        }
+
+        /* some SpanOrQueries */
+
+        [Test]
+        public override void TestSO1()
+        {
+            base.TestSO1();
+        }
+
+        [Test]
+        public override void TestSO2()
+        {
+            base.TestSO2();
+        }
+
+        [Test]
+        public override void TestSO3()
+        {
+            base.TestSO3();
+        }
+
+        [Test]
+        public override void TestSO4()
+        {
+            base.TestSO4();
+        }
+
+        /* some SpanNearQueries */
+
+        [Test]
+        public override void TestSNear1()
+        {
+            base.TestSNear1();
+        }
+
+        [Test]
+        public override void TestSNear2()
+        {
+            base.TestSNear2();
+        }
+
+        [Test]
+        public override void TestSNear3()
+        {
+            base.TestSNear3();
+        }
+
+        [Test]
+        public override void TestSNear4()
+        {
+            base.TestSNear4();
+        }
+
+        [Test]
+        public override void TestSNear5()
+        {
+            base.TestSNear5();
+        }
+
+        [Test]
+        public override void TestSNear6()
+        {
+            base.TestSNear6();
+        }
+
+        [Test]
+        public override void TestSNear7()
+        {
+            base.TestSNear7();
+        }
+
+        [Test]
+        public override void TestSNear8()
+        {
+            base.TestSNear8();
+        }
+
+        [Test]
+        public override void TestSNear9()
+        {
+            base.TestSNear9();
+        }
+
+        [Test]
+        public override void TestSNear10()
+        {
+            base.TestSNear10();
+        }
+
+        [Test]
+        public override void TestSNear11()
+        {
+            base.TestSNear11();
+        }
+
+        /* some SpanNotQueries */
+
+        [Test]
+        public override void TestSNot1()
+        {
+            base.TestSNot1();
+        }
+
+        [Test]
+        public override void TestSNot2()
+        {
+            base.TestSNot2();
+        }
+
+        [Test]
+        public override void TestSNot4()
+        {
+            base.TestSNot4();
+        }
+
+        [Test]
+        public override void TestSNot5()
+        {
+            base.TestSNot5();
+        }
+
+        [Test]
+        public override void TestSNot7()
+        {
+            base.TestSNot7();
+        }
+
+        [Test]
+        public override void TestSNot10()
+        {
+            base.TestSNot10();
+        }
+
+        #endregion
+
+        #region TestExplanations
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+
+        /// <summary>
+        /// Placeholder: JUnit freaks if you don't have one test ... making
+        /// class abstract doesn't help
+        /// </summary>
+        [Test]
+        public override void TestNoop()
+        {
+            base.TestNoop();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs b/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs
index fbfe049..18a2759 100644
--- a/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestComplexExplanationsOfNonMatches.cs
@@ -33,5 +33,165 @@ namespace Lucene.Net.Search
         {
             CheckHits.CheckNoMatchExplanations(q, FIELD, Searcher, expDocNrs);
         }
+
+
+        #region TestComplexExplanations
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void Test1()
+        {
+            base.Test1();
+        }
+
+        [Test]
+        public override void Test2()
+        {
+            base.Test2();
+        }
+
+        // :TODO: we really need more crazy complex cases.
+
+        // //////////////////////////////////////////////////////////////////
+
+        // The rest of these aren't that complex, but they are <i>somewhat</i>
+        // complex, and they expose weakness in dealing with queries that match
+        // with scores of 0 wrapped in other queries
+
+        [Test]
+        public override void TestT3()
+        {
+            base.TestT3();
+        }
+
+        [Test]
+        public override void TestMA3()
+        {
+            base.TestMA3();
+        }
+
+        [Test]
+        public override void TestFQ5()
+        {
+            base.TestFQ5();
+        }
+
+        [Test]
+        public override void TestCSQ4()
+        {
+            base.TestCSQ4();
+        }
+
+        [Test]
+        public override void TestDMQ10()
+        {
+            base.TestDMQ10();
+        }
+
+        [Test]
+        public override void TestMPQ7()
+        {
+            base.TestMPQ7();
+        }
+
+        [Test]
+        public override void TestBQ12()
+        {
+            base.TestBQ12();
+        }
+
+        [Test]
+        public override void TestBQ13()
+        {
+            base.TestBQ13();
+        }
+
+        [Test]
+        public override void TestBQ18()
+        {
+            base.TestBQ18();
+        }
+
+        [Test]
+        public override void TestBQ21()
+        {
+            base.TestBQ21();
+        }
+
+        [Test]
+        public override void TestBQ22()
+        {
+            base.TestBQ22();
+        }
+
+        [Test]
+        public override void TestST3()
+        {
+            base.TestST3();
+        }
+
+        [Test]
+        public override void TestST6()
+        {
+            base.TestST6();
+        }
+
+        [Test]
+        public override void TestSF3()
+        {
+            base.TestSF3();
+        }
+
+        [Test]
+        public override void TestSF7()
+        {
+            base.TestSF7();
+        }
+
+        [Test]
+        public override void TestSNot3()
+        {
+            base.TestSNot3();
+        }
+
+        [Test]
+        public override void TestSNot6()
+        {
+            base.TestSNot6();
+        }
+
+        [Test]
+        public override void TestSNot8()
+        {
+            base.TestSNot8();
+        }
+
+        [Test]
+        public override void TestSNot9()
+        {
+            base.TestSNot9();
+        }
+
+        #endregion
+
+        #region TestExplanations
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+
+        /// <summary>
+        /// Placeholder: JUnit freaks if you don't have one test ... making
+        /// class abstract doesn't help
+        /// </summary>
+        [Test]
+        public override void TestNoop()
+        {
+            base.TestNoop();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/TestExplanations.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestExplanations.cs b/src/Lucene.Net.Tests/core/Search/TestExplanations.cs
index a528615..18962f9 100644
--- a/src/Lucene.Net.Tests/core/Search/TestExplanations.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestExplanations.cs
@@ -261,7 +261,7 @@ namespace Lucene.Net.Search
         /// Placeholder: JUnit freaks if you don't have one test ... making
         /// class abstract doesn't help
         /// </summary>
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestNoop()
         {
             /* NOOP */

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs b/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs
index cc0d022..f0e44a8 100644
--- a/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestFieldCacheRangeFilter.cs
@@ -590,5 +590,19 @@ namespace Lucene.Net.Search
             reader.Dispose();
             dir.Dispose();
         }
+
+
+        #region SorterTestBase
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestPad()
+        {
+            base.TestPad();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs b/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs
index 0fc6843..1b923a3 100644
--- a/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestFieldCacheRewriteMethod.cs
@@ -60,5 +60,22 @@ namespace Lucene.Net.Search
             Assert.IsFalse(a1.Equals(b));
             QueryUtils.Check(a1);
         }
+
+
+
+        #region TestSnapshotDeletionPolicy
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        /// <summary>
+        /// test a bunch of random regular expressions </summary>
+        [Test, Timeout(60000)]
+        public override void TestRegexps()
+        {
+            base.TestRegexps();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs b/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs
index f52d360..7f95d2a 100644
--- a/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestMultiTermConstantScore.cs
@@ -551,5 +551,19 @@ namespace Lucene.Net.Search
             result = search.Search(Csrq("rand", maxRP, null, T, F), null, numDocs).ScoreDocs;
             AssertEquals("max,nul,T,T", 1, result.Length);
         }
+
+
+        #region SorterTestBase
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestPad()
+        {
+            base.TestPad();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs b/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs
index 304a837..5fec12f 100644
--- a/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestSimpleExplanations.cs
@@ -927,5 +927,24 @@ namespace Lucene.Net.Search
 
             Qtest(query, new int[] { 0, 1, 2, 3 });
         }
+
+
+        #region TestExplanations
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+
+        /// <summary>
+        /// Placeholder: JUnit freaks if you don't have one test ... making
+        /// class abstract doesn't help
+        /// </summary>
+        [Test]
+        public override void TestNoop()
+        {
+            base.TestNoop();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file


[51/58] lucenenet git commit: Revert "HACK: (3rd) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context."

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs
index e49ed8d..e90b365 100644
--- a/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs
@@ -141,374 +141,5 @@ namespace Lucene.Net.QueryParsers.Ext
                 assertEquals("foo & bar", tquery.Term.Text());
             }
         }
-
-
-        #region TestQueryParser
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDefaultOperator()
-        {
-            base.TestDefaultOperator();
-        }
-
-        [Test]
-        public override void TestProtectedCtors()
-        {
-            base.TestProtectedCtors();
-        }
-
-        [Test]
-        public override void TestFuzzySlopeExtendability()
-        {
-            base.TestFuzzySlopeExtendability();
-        }
-
-        [Test]
-        public override void TestStarParsing()
-        {
-            base.TestStarParsing();
-        }
-
-        [Test]
-        public override void TestCustomQueryParserWildcard()
-        {
-            base.TestCustomQueryParserWildcard();
-        }
-
-        [Test]
-        public override void TestCustomQueryParserFuzzy()
-        {
-            base.TestCustomQueryParserFuzzy();
-        }
-
-        [Test]
-        public override void TestNewFieldQuery()
-        {
-            base.TestNewFieldQuery();
-        }
-
-        /// <summary>
-        /// simple synonyms test
-        /// </summary>
-        [Test]
-        public override void TestSynonyms()
-        {
-            base.TestSynonyms();
-        }
-
-        /// <summary>
-        /// forms multiphrase query
-        /// </summary>
-        [Test]
-        public override void TestSynonymsPhrase()
-        {
-            base.TestSynonymsPhrase();
-        }
-
-        /// <summary>
-        /// simple CJK synonym test
-        /// </summary>
-        [Test]
-        public override void TestCJKSynonym()
-        {
-            base.TestCJKSynonym();
-        }
-
-        /// <summary>
-        /// synonyms with default OR operator 
-        /// </summary>
-        [Test]
-        public override void TestCJKSynonymsOR()
-        {
-            base.TestCJKSynonymsOR();
-        }
-
-        /// <summary>
-        /// more complex synonyms with default OR operator
-        /// </summary>
-        [Test]
-        public override void TestCJKSynonymsOR2()
-        {
-            base.TestCJKSynonymsOR2();
-        }
-
-        /// <summary>
-        /// synonyms with default AND operator
-        /// </summary>
-        [Test]
-        public override void TestCJKSynonymsAND()
-        {
-            base.TestCJKSynonymsAND();
-        }
-
-        /// <summary>
-        /// more complex synonyms with default AND operator
-        /// </summary>
-        [Test]
-        public override void TestCJKSynonymsAND2()
-        {
-            base.TestCJKSynonymsAND2();
-        }
-
-        [Test]
-        public override void TestCJKSynonymsPhrase()
-        {
-            base.TestCJKSynonymsPhrase();
-        }
-
-        #endregion
-
-        #region QueryParserTestBase
-        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestCJK()
-        {
-            base.TestCJK();
-        }
-
-        [Test]
-        public override void TestCJKTerm()
-        {
-            base.TestCJKTerm();
-        }
-
-        [Test]
-        public override void TestCJKBoostedTerm()
-        {
-            base.TestCJKBoostedTerm();
-        }
-
-        [Test]
-        public override void TestCJKPhrase()
-        {
-            base.TestCJKPhrase();
-        }
-
-        [Test]
-        public override void TestCJKBoostedPhrase()
-        {
-            base.TestCJKBoostedPhrase();
-        }
-
-        [Test]
-        public override void TestCJKSloppyPhrase()
-        {
-            base.TestCJKSloppyPhrase();
-        }
-
-        [Test]
-        public override void TestAutoGeneratePhraseQueriesOn()
-        {
-            base.TestAutoGeneratePhraseQueriesOn();
-        }
-
-        [Test]
-        public override void TestSimple()
-        {
-            base.TestSimple();
-        }
-
-        [Test]
-        public override void TestOperatorVsWhitespace()
-        {
-            base.TestOperatorVsWhitespace();
-        }
-
-        [Test]
-        public override void TestPunct()
-        {
-            base.TestPunct();
-        }
-
-        [Test]
-        public override void TestSlop()
-        {
-            base.TestSlop();
-        }
-
-        [Test]
-        public override void TestNumber()
-        {
-            base.TestNumber();
-        }
-
-        [Test]
-        public override void TestWildcard()
-        {
-            base.TestWildcard();
-        }
-
-        [Test]
-        public override void TestLeadingWildcardType()
-        {
-            base.TestLeadingWildcardType();
-        }
-
-        [Test]
-        public override void TestQPA()
-        {
-            base.TestQPA();
-        }
-
-        [Test]
-        public override void TestRange()
-        {
-            base.TestRange();
-        }
-
-        [Test]
-        public override void TestRangeWithPhrase()
-        {
-            base.TestRangeWithPhrase();
-        }
-
-        [Test]
-        public override void TestDateRange()
-        {
-            base.TestDateRange();
-        }
-
-        [Test]
-        public override void TestEscaped()
-        {
-            base.TestEscaped();
-        }
-
-        [Test]
-        public override void TestEscapedVsQuestionMarkAsWildcard()
-        {
-            base.TestEscapedVsQuestionMarkAsWildcard();
-        }
-
-        [Test]
-        public override void TestQueryStringEscaping()
-        {
-            base.TestQueryStringEscaping();
-        }
-
-        [Test]
-        public override void TestTabNewlineCarriageReturn()
-        {
-            base.TestTabNewlineCarriageReturn();
-        }
-
-        [Test]
-        public override void TestSimpleDAO()
-        {
-            base.TestSimpleDAO();
-        }
-
-        [Test]
-        public override void TestBoost()
-        {
-            base.TestBoost();
-        }
-
-        [Test]
-        public override void TestException()
-        {
-            base.TestException();
-        }
-
-        [Test]
-        public override void TestBooleanQuery()
-        {
-            base.TestBooleanQuery();
-        }
-
-        [Test]
-        public override void TestPrecedence()
-        {
-            base.TestPrecedence();
-        }
-
-        [Test]
-        public override void TestEscapedWildcard()
-        {
-            base.TestEscapedWildcard();
-        }
-
-        [Test]
-        public override void TestRegexps()
-        {
-            base.TestRegexps();
-        }
-
-        [Test]
-        public override void TestStopwords()
-        {
-            base.TestStopwords();
-        }
-
-        [Test]
-        public override void TestPositionIncrement()
-        {
-            base.TestPositionIncrement();
-        }
-
-        [Test]
-        public override void TestMatchAllDocs()
-        {
-            base.TestMatchAllDocs();
-        }
-
-        // LUCENE-2002: make sure defaults for StandardAnalyzer's
-        // enableStopPositionIncr & QueryParser's enablePosIncr
-        // "match"
-        [Test]
-        public override void TestPositionIncrements()
-        {
-            base.TestPositionIncrements();
-        }
-
-        [Test]
-        public override void TestCollatedRange()
-        {
-            base.TestCollatedRange();
-        }
-
-        [Test]
-        public override void TestDistanceAsEditsParsing()
-        {
-            base.TestDistanceAsEditsParsing();
-        }
-
-        [Test]
-        public override void TestPhraseQueryToString()
-        {
-            base.TestPhraseQueryToString();
-        }
-
-        [Test]
-        public override void TestParseWildcardAndPhraseQueries()
-        {
-            base.TestParseWildcardAndPhraseQueries();
-        }
-
-        [Test]
-        public override void TestPhraseQueryPositionIncrements()
-        {
-            base.TestPhraseQueryPositionIncrements();
-        }
-
-        [Test]
-        public override void TestMatchAllQueryParsing()
-        {
-            base.TestMatchAllQueryParsing();
-        }
-
-        [Test]
-        public override void TestNestedAndClausesFoo()
-        {
-            base.TestNestedAndClausesFoo();
-        }
-
-        #endregion
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs
index 9dcfcde..37f00e2 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs
@@ -88,7 +88,7 @@ namespace Lucene.Net.Codecs.Compressing
             return Arrays.CopyOfRange(bytes.Bytes, bytes.Offset, bytes.Offset + bytes.Length);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestDecompress()
         {
             int iterations = AtLeast(10);
@@ -103,7 +103,7 @@ namespace Lucene.Net.Codecs.Compressing
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestPartialDecompress()
         {
             int iterations = AtLeast(10);
@@ -139,19 +139,19 @@ namespace Lucene.Net.Codecs.Compressing
             return compressed;
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestEmptySequence()
         {
             Test(new byte[0]);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestShortSequence()
         {
             Test(new[] { (byte)Random().Next(256) });
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestIncompressible()
         {
             var decompressed = new byte[RandomInts.NextIntBetween(Random(), 20, 256)];
@@ -162,7 +162,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestConstant()
         {
             var decompressed = new byte[TestUtil.NextInt(Random(), 1, 10000)];
@@ -170,7 +170,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestLUCENE5201()
         {
             sbyte[] data = { 14, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 72, 14, 72, 14, 85, 3, 72, 14, 72, 14, 72, 14, 72, 14, 72, 14, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 50, 64, 0, 46, -1, 0, 0, 0, 29, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 50, 64, 0, 47, -105, 0, 0, 0, 30, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, -97, 6, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68
 , -113, 0, 120, 64, 0, 48, 4, 0, 0, 0, 31, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, 24, 32, 34, 124, 0, 120, 64, 0, 48, 80, 0, 0, 0, 31, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 
 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 7
 2, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 50, 64, 0, 49, 20, 0, 0, 0, 32, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 50, 64, 0, 50, 53, 0, 0, 0, 34, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0
 , 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 50, 64, 0, 51, 85, 0, 0, 0, 36, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, -97, 5, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 50, -64, 0, 51, -45, 0, 0, 0, 37, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -9
 7, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 120, 64, 0, 52, -88, 0, 0, 0, 39, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, -19, -24, -101, -35 };

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
index 334ae8d..feb57d0 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
@@ -88,7 +88,7 @@ namespace Lucene.Net.Codecs.Compressing
             return compressed;
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestShortLiteralsAndMatchs()
         {
             // literals and matchs lengths <= 15
@@ -96,7 +96,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestLongMatchs()
         {
             // match length >= 20
@@ -108,7 +108,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestLongLiterals()
         {
             // long literals (length >= 16) which are not the last literals
@@ -120,7 +120,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestMatchRightBeforeLastLiterals()
         {
             Test(new byte[] { 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 5 });

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs
index 998b942..acdf73c 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs
@@ -100,94 +100,5 @@ namespace Lucene.Net.Codecs.Compressing
                 this.OuterInstance = outerInstance;
             }
         }
-
-
-        #region BaseStoredFieldsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestRandomStoredFields()
-        {
-            base.TestRandomStoredFields();
-        }
-
-        [Test]
-        // LUCENE-1727: make sure doc fields are stored in order
-        public override void TestStoredFieldsOrder()
-        {
-            base.TestStoredFieldsOrder();
-        }
-
-        [Test]
-        // LUCENE-1219
-        public override void TestBinaryFieldOffsetLength()
-        {
-            base.TestBinaryFieldOffsetLength();
-        }
-
-        [Test]
-        public override void TestNumericField()
-        {
-            base.TestNumericField();
-        }
-
-        [Test]
-        public override void TestIndexedBit()
-        {
-            base.TestIndexedBit();
-        }
-
-        [Test]
-        public override void TestReadSkip()
-        {
-            base.TestReadSkip();
-        }
-
-        [Test]
-        public override void TestEmptyDocs()
-        {
-            base.TestEmptyDocs();
-        }
-
-        [Test]
-        public override void TestConcurrentReads()
-        {
-            base.TestConcurrentReads();
-        }
-
-        [Test]
-        public override void TestWriteReadMerge()
-        {
-            base.TestWriteReadMerge();
-        }
-
-        [Test, Timeout(300000)]
-        public override void TestBigDocuments()
-        {
-            base.TestBigDocuments();
-        }
-
-        [Test]
-        public override void TestBulkMergeWithDeletes()
-        {
-            base.TestBulkMergeWithDeletes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs
index 709af74..90b06cf 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs
@@ -84,72 +84,5 @@ namespace Lucene.Net.Codecs.Compressing
             iw.Dispose();
             dir.Dispose();
         }
-
-
-        #region BaseTermVectorsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        // only one doc with vectors
-        public override void TestRareVectors()
-        {
-            base.TestRareVectors();
-        }
-
-        [Test]
-        public override void TestHighFreqs()
-        {
-            base.TestHighFreqs();
-        }
-
-        [Test]
-        public override void TestLotsOfFields()
-        {
-            base.TestLotsOfFields();
-        }
-
-        [Test]
-        // different options for the same field
-        public override void TestMixedOptions()
-        {
-            base.TestMixedOptions();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        [Test, Timeout(30000)]
-        public override void TestMerge()
-        {
-            base.TestMerge();
-        }
-
-        [Test]
-        // run random tests from different threads to make sure the per-thread clones
-        // don't share mutable data
-        public override void TestClone()
-        {
-            base.TestClone();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs
index 6a74a51..dd7d708 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs
@@ -28,86 +28,5 @@ namespace Lucene.Net.Codecs.Compressing
             base.SetUp();
             Mode = CompressionMode.FAST;
         }
-
-
-        #region AbstractTestLZ4CompressionMode
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestShortLiteralsAndMatchs()
-        {
-            base.TestShortLiteralsAndMatchs();
-        }
-
-        [Test]
-        public override void TestLongMatchs()
-        {
-            base.TestLongMatchs();
-        }
-
-        [Test]
-        public override void TestLongLiterals()
-        {
-            base.TestLongLiterals();
-        }
-
-        [Test]
-        public override void TestMatchRightBeforeLastLiterals()
-        {
-            base.TestMatchRightBeforeLastLiterals();
-        }
-
-        #endregion
-
-        #region AbstractTestCompressionMode
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDecompress()
-        {
-            base.TestDecompress();
-        }
-
-        [Test]
-        public override void TestPartialDecompress()
-        {
-            base.TestPartialDecompress();
-        }
-
-        [Test]
-        public override void TestEmptySequence()
-        {
-            base.TestEmptySequence();
-        }
-
-        [Test]
-        public override void TestShortSequence()
-        {
-            base.TestShortSequence();
-        }
-
-        [Test]
-        public override void TestIncompressible()
-        {
-            base.TestIncompressible();
-        }
-
-        [Test]
-        public override void TestConstant()
-        {
-            base.TestConstant();
-        }
-
-        [Test]
-        public override void TestLUCENE5201()
-        {
-            base.TestLUCENE5201();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs
index b90a582..d7fc0b0 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs
@@ -38,86 +38,5 @@ namespace Lucene.Net.Codecs.Compressing
             Assert.IsTrue(compressed.Length <= compressed2.Length);
             return compressed;
         }
-
-
-        #region AbstractTestLZ4CompressionMode
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestShortLiteralsAndMatchs()
-        {
-            base.TestShortLiteralsAndMatchs();
-        }
-
-        [Test]
-        public override void TestLongMatchs()
-        {
-            base.TestLongMatchs();
-        }
-
-        [Test]
-        public override void TestLongLiterals()
-        {
-            base.TestLongLiterals();
-        }
-
-        [Test]
-        public override void TestMatchRightBeforeLastLiterals()
-        {
-            base.TestMatchRightBeforeLastLiterals();
-        }
-
-        #endregion
-
-        #region AbstractTestCompressionMode
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDecompress()
-        {
-            base.TestDecompress();
-        }
-
-        [Test]
-        public override void TestPartialDecompress()
-        {
-            base.TestPartialDecompress();
-        }
-
-        [Test]
-        public override void TestEmptySequence()
-        {
-            base.TestEmptySequence();
-        }
-
-        [Test]
-        public override void TestShortSequence()
-        {
-            base.TestShortSequence();
-        }
-
-        [Test]
-        public override void TestIncompressible()
-        {
-            base.TestIncompressible();
-        }
-
-        [Test]
-        public override void TestConstant()
-        {
-            base.TestConstant();
-        }
-
-        [Test]
-        public override void TestLUCENE5201()
-        {
-            base.TestLUCENE5201();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs
index 679d1f0..eebcda1 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs
@@ -28,55 +28,5 @@ namespace Lucene.Net.Codecs.Compressing
             base.SetUp();
             Mode = CompressionMode.HIGH_COMPRESSION;
         }
-
-
-        #region AbstractTestCompressionMode
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDecompress()
-        {
-            base.TestDecompress();
-        }
-
-        [Test]
-        public override void TestPartialDecompress()
-        {
-            base.TestPartialDecompress();
-        }
-
-        [Test]
-        public override void TestEmptySequence()
-        {
-            base.TestEmptySequence();
-        }
-
-        [Test]
-        public override void TestShortSequence()
-        {
-            base.TestShortSequence();
-        }
-
-        [Test]
-        public override void TestIncompressible()
-        {
-            base.TestIncompressible();
-        }
-
-        [Test]
-        public override void TestConstant()
-        {
-            base.TestConstant();
-        }
-
-        [Test]
-        public override void TestLUCENE5201()
-        {
-            base.TestLUCENE5201();
-        }
-        #endregion
-
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs
index 0ab9a7b..cf1bafc 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs
@@ -42,68 +42,5 @@ namespace Lucene.Net.Codecs.Lucene3x
                 return Codec_Renamed;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs
index d3d0889..b28f86a 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs
@@ -52,89 +52,5 @@ namespace Lucene.Net.Codecs.Lucene3x
             // for 3.x: we currently cannot take an index with existing 4.x segments
             // and merge into newly formed 3.x segments.
         }
-
-
-
-        #region BaseStoredFieldsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestRandomStoredFields()
-        {
-            base.TestRandomStoredFields();
-        }
-
-        [Test]
-        // LUCENE-1727: make sure doc fields are stored in order
-        public override void TestStoredFieldsOrder()
-        {
-            base.TestStoredFieldsOrder();
-        }
-
-        [Test]
-        // LUCENE-1219
-        public override void TestBinaryFieldOffsetLength()
-        {
-            base.TestBinaryFieldOffsetLength();
-        }
-
-        [Test]
-        public override void TestNumericField()
-        {
-            base.TestNumericField();
-        }
-
-        [Test]
-        public override void TestIndexedBit()
-        {
-            base.TestIndexedBit();
-        }
-
-        [Test]
-        public override void TestReadSkip()
-        {
-            base.TestReadSkip();
-        }
-
-        [Test]
-        public override void TestEmptyDocs()
-        {
-            base.TestEmptyDocs();
-        }
-
-        [Test]
-        public override void TestConcurrentReads()
-        {
-            base.TestConcurrentReads();
-        }
-
-        [Test, Timeout(120000)]
-        public override void TestBigDocuments()
-        {
-            base.TestBigDocuments();
-        }
-
-        [Test]
-        public override void TestBulkMergeWithDeletes()
-        {
-            base.TestBulkMergeWithDeletes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs
index 5756752..1cf090b 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs
@@ -46,72 +46,5 @@ namespace Lucene.Net.Codecs.Lucene3x
         {
             return ValidOptions(Options.NONE, Options.POSITIONS_AND_OFFSETS);
         }
-
-
-        #region BaseTermVectorsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        // only one doc with vectors
-        public override void TestRareVectors()
-        {
-            base.TestRareVectors();
-        }
-
-        [Test]
-        public override void TestHighFreqs()
-        {
-            base.TestHighFreqs();
-        }
-
-        [Test]
-        public override void TestLotsOfFields()
-        {
-            base.TestLotsOfFields();
-        }
-
-        [Test, Timeout(300000)]
-        // different options for the same field
-        public override void TestMixedOptions()
-        {
-            base.TestMixedOptions();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        [Test]
-        public override void TestMerge()
-        {
-            base.TestMerge();
-        }
-
-        [Test]
-        // run random tests from different threads to make sure the per-thread clones
-        // don't share mutable data
-        public override void TestClone()
-        {
-            base.TestClone();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs
index 3686767..9ee39e7 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs
@@ -50,506 +50,5 @@ namespace Lucene.Net.Codecs.Lucene40
         {
             return false;
         }
-
-
-        #region BaseDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestOneNumber()
-        {
-            base.TestOneNumber();
-        }
-
-        [Test]
-        public override void TestOneFloat()
-        {
-            base.TestOneFloat();
-        }
-
-        [Test]
-        public override void TestTwoNumbers()
-        {
-            base.TestTwoNumbers();
-        }
-
-        [Test]
-        public override void TestTwoBinaryValues()
-        {
-            base.TestTwoBinaryValues();
-        }
-
-        [Test]
-        public override void TestTwoFieldsMixed()
-        {
-            base.TestTwoFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed()
-        {
-            base.TestThreeFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed2()
-        {
-            base.TestThreeFieldsMixed2();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsNumeric()
-        {
-            base.TestTwoDocumentsNumeric();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsMerged()
-        {
-            base.TestTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestBigNumericRange()
-        {
-            base.TestBigNumericRange();
-        }
-
-        [Test]
-        public override void TestBigNumericRange2()
-        {
-            base.TestBigNumericRange2();
-        }
-
-        [Test]
-        public override void TestBytes()
-        {
-            base.TestBytes();
-        }
-
-        [Test]
-        public override void TestBytesTwoDocumentsMerged()
-        {
-            base.TestBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedBytes()
-        {
-            base.TestSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocuments()
-        {
-            base.TestSortedBytesTwoDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesThreeDocuments()
-        {
-            base.TestSortedBytesThreeDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocumentsMerged()
-        {
-            base.TestSortedBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedMergeAwayAllValues()
-        {
-            base.TestSortedMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestBytesWithNewline()
-        {
-            base.TestBytesWithNewline();
-        }
-
-        [Test]
-        public override void TestMissingSortedBytes()
-        {
-            base.TestMissingSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedTermsEnum()
-        {
-            base.TestSortedTermsEnum();
-        }
-
-        [Test]
-        public override void TestEmptySortedBytes()
-        {
-            base.TestEmptySortedBytes();
-        }
-
-        [Test]
-        public override void TestEmptyBytes()
-        {
-            base.TestEmptyBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalBytes()
-        {
-            base.TestVeryLargeButLegalBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalSortedBytes()
-        {
-            base.TestVeryLargeButLegalSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytes()
-        {
-            base.TestCodecUsesOwnBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytes()
-        {
-            base.TestCodecUsesOwnSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytesEachTime()
-        {
-            base.TestCodecUsesOwnBytesEachTime();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytesEachTime()
-        {
-            base.TestCodecUsesOwnSortedBytesEachTime();
-        }
-
-        /*
-         * Simple test case to show how to use the API
-         */
-        [Test]
-        public override void TestDocValuesSimple()
-        {
-            base.TestDocValuesSimple();
-        }
-
-        [Test]
-        public override void TestRandomSortedBytes()
-        {
-            base.TestRandomSortedBytes();
-        }
-
-        [Test]
-        public override void TestBooleanNumericsVsStoredFields()
-        {
-            base.TestBooleanNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteNumericsVsStoredFields()
-        {
-            base.TestByteNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteMissingVsFieldCache()
-        {
-            base.TestByteMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestShortNumericsVsStoredFields()
-        {
-            base.TestShortNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestShortMissingVsFieldCache()
-        {
-            base.TestShortMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestIntNumericsVsStoredFields()
-        {
-            base.TestIntNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestIntMissingVsFieldCache()
-        {
-            base.TestIntMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestLongNumericsVsStoredFields()
-        {
-            base.TestLongNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestLongMissingVsFieldCache()
-        {
-            base.TestLongMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestBinaryFixedLengthVsStoredFields()
-        {
-            base.TestBinaryFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestBinaryVariableLengthVsStoredFields()
-        {
-            base.TestBinaryVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsStoredFields()
-        {
-            base.TestSortedFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsFieldCache()
-        {
-            base.TestSortedFixedLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsFieldCache()
-        {
-            base.TestSortedVariableLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsStoredFields()
-        {
-            base.TestSortedVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetOneValue()
-        {
-            base.TestSortedSetOneValue();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoFields()
-        {
-            base.TestSortedSetTwoFields();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsMerged()
-        {
-            base.TestSortedSetTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValues()
-        {
-            base.TestSortedSetTwoValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValuesUnordered()
-        {
-            base.TestSortedSetTwoValuesUnordered();
-        }
-
-        [Test]
-        public override void TestSortedSetThreeValuesTwoDocs()
-        {
-            base.TestSortedSetThreeValuesTwoDocs();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissing()
-        {
-            base.TestSortedSetTwoDocumentsLastMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsLastMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissing()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetMergeAwayAllValues()
-        {
-            base.TestSortedSetMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTermsEnum()
-        {
-            base.TestSortedSetTermsEnum();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsUninvertedField()
-        {
-            base.TestSortedSetFixedLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsUninvertedField()
-        {
-            base.TestSortedSetVariableLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestGCDCompression()
-        {
-            base.TestGCDCompression();
-        }
-
-        [Test]
-        public override void TestZeros()
-        {
-            base.TestZeros();
-        }
-
-        [Test]
-        public override void TestZeroOrMin()
-        {
-            base.TestZeroOrMin();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissing()
-        {
-            base.TestTwoNumbersOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissingWithMerging()
-        {
-            base.TestTwoNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeNumbersOneMissingWithMerging()
-        {
-            base.TestThreeNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissing()
-        {
-            base.TestTwoBytesOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissingWithMerging()
-        {
-            base.TestTwoBytesOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeBytesOneMissingWithMerging()
-        {
-            base.TestThreeBytesOneMissingWithMerging();
-        }
-
-        // LUCENE-4853
-        [Test]
-        public override void TestHugeBinaryValues()
-        {
-            base.TestHugeBinaryValues();
-        }
-
-        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
-        public override void TestHugeBinaryValueLimit()
-        {
-            base.TestHugeBinaryValueLimit();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads()
-        {
-            base.TestThreads();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (all types + missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads2()
-        {
-            base.TestThreads2();
-        }
-
-        // LUCENE-5218
-        [Test]
-        public override void TestEmptyBinaryValueOnPageSizes()
-        {
-            base.TestEmptyBinaryValueOnPageSizes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs
index 0d3666d..c7f7f07 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs
@@ -44,68 +44,5 @@ namespace Lucene.Net.Codecs.Lucene40
                 return new Lucene40RWCodec(OLD_FORMAT_IMPERSONATION_IS_ACTIVE);
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs
index 4e3bebf..4e57234 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs
@@ -41,94 +41,5 @@ namespace Lucene.Net.Codecs.Lucene40
                 return new Lucene40RWCodec(OLD_FORMAT_IMPERSONATION_IS_ACTIVE);
             }
         }
-
-
-        #region BaseStoredFieldsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestRandomStoredFields()
-        {
-            base.TestRandomStoredFields();
-        }
-
-        [Test]
-        // LUCENE-1727: make sure doc fields are stored in order
-        public override void TestStoredFieldsOrder()
-        {
-            base.TestStoredFieldsOrder();
-        }
-
-        [Test]
-        // LUCENE-1219
-        public override void TestBinaryFieldOffsetLength()
-        {
-            base.TestBinaryFieldOffsetLength();
-        }
-
-        [Test]
-        public override void TestNumericField()
-        {
-            base.TestNumericField();
-        }
-
-        [Test]
-        public override void TestIndexedBit()
-        {
-            base.TestIndexedBit();
-        }
-
-        [Test]
-        public override void TestReadSkip()
-        {
-            base.TestReadSkip();
-        }
-
-        [Test, Timeout(300000)]
-        public override void TestEmptyDocs()
-        {
-            base.TestEmptyDocs();
-        }
-
-        [Test, Timeout(300000)]
-        public override void TestConcurrentReads()
-        {
-            base.TestConcurrentReads();
-        }
-
-        [Test]
-        public override void TestWriteReadMerge()
-        {
-            base.TestWriteReadMerge();
-        }
-
-        [Test, Timeout(80000)]
-        public override void TestBigDocuments()
-        {
-            base.TestBigDocuments();
-        }
-
-        [Test]
-        public override void TestBulkMergeWithDeletes()
-        {
-            base.TestBulkMergeWithDeletes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs
index 9a6e544..342d7ce 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs
@@ -41,72 +41,5 @@ namespace Lucene.Net.Codecs.Lucene40
                 return new Lucene40RWCodec(OLD_FORMAT_IMPERSONATION_IS_ACTIVE);
             }
         }
-
-
-        #region BaseTermVectorsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        // only one doc with vectors
-        public override void TestRareVectors()
-        {
-            base.TestRareVectors();
-        }
-
-        [Test]
-        public override void TestHighFreqs()
-        {
-            base.TestHighFreqs();
-        }
-
-        [Test]
-        public override void TestLotsOfFields()
-        {
-            base.TestLotsOfFields();
-        }
-
-        [Test, Timeout(300000)]
-        // different options for the same field
-        public override void TestMixedOptions()
-        {
-            base.TestMixedOptions();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        [Test]
-        public override void TestMerge()
-        {
-            base.TestMerge();
-        }
-
-        [Test]
-        // run random tests from different threads to make sure the per-thread clones
-        // don't share mutable data
-        public override void TestClone()
-        {
-            base.TestClone();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs
index fb309a5..201eaf6 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs
@@ -1,5 +1,3 @@
-using NUnit.Framework;
-
 namespace Lucene.Net.Codecs.Lucene41
 {
     /*
@@ -36,68 +34,5 @@ namespace Lucene.Net.Codecs.Lucene41
                 return Codec_Renamed;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs
index bcd5a49..4259478 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs
@@ -40,94 +40,5 @@ namespace Lucene.Net.Codecs.Lucene41
                 return new Lucene41RWCodec(OLD_FORMAT_IMPERSONATION_IS_ACTIVE);
             }
         }
-
-
-        #region BaseStoredFieldsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestRandomStoredFields()
-        {
-            base.TestRandomStoredFields();
-        }
-
-        [Test]
-        // LUCENE-1727: make sure doc fields are stored in order
-        public override void TestStoredFieldsOrder()
-        {
-            base.TestStoredFieldsOrder();
-        }
-
-        [Test]
-        // LUCENE-1219
-        public override void TestBinaryFieldOffsetLength()
-        {
-            base.TestBinaryFieldOffsetLength();
-        }
-
-        [Test]
-        public override void TestNumericField()
-        {
-            base.TestNumericField();
-        }
-
-        [Test]
-        public override void TestIndexedBit()
-        {
-            base.TestIndexedBit();
-        }
-
-        [Test]
-        public override void TestReadSkip()
-        {
-            base.TestReadSkip();
-        }
-
-        [Test, Timeout(300000)]
-        public override void TestEmptyDocs()
-        {
-            base.TestEmptyDocs();
-        }
-
-        [Test, Timeout(300000)]
-        public override void TestConcurrentReads()
-        {
-            base.TestConcurrentReads();
-        }
-
-        [Test]
-        public override void TestWriteReadMerge()
-        {
-            base.TestWriteReadMerge();
-        }
-
-        [Test, Timeout(120000)]
-        public override void TestBigDocuments()
-        {
-            base.TestBigDocuments();
-        }
-
-        [Test]
-        public override void TestBulkMergeWithDeletes()
-        {
-            base.TestBulkMergeWithDeletes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs
index 598f373..7f4438b 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene42/TestLucene42DocValuesFormat.cs
@@ -51,531 +51,5 @@ namespace Lucene.Net.Codecs.Lucene42
         {
             return false;
         }
-
-
-        #region BaseCompressingDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestUniqueValuesCompression()
-        {
-            base.TestUniqueValuesCompression();
-        }
-
-        [Test]
-        public override void TestDateCompression()
-        {
-            base.TestDateCompression();
-        }
-
-        [Test]
-        public override void TestSingleBigValueCompression()
-        {
-            base.TestSingleBigValueCompression();
-        }
-
-        #endregion
-
-        #region BaseDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestOneNumber()
-        {
-            base.TestOneNumber();
-        }
-
-        [Test]
-        public override void TestOneFloat()
-        {
-            base.TestOneFloat();
-        }
-
-        [Test]
-        public override void TestTwoNumbers()
-        {
-            base.TestTwoNumbers();
-        }
-
-        [Test]
-        public override void TestTwoBinaryValues()
-        {
-            base.TestTwoBinaryValues();
-        }
-
-        [Test]
-        public override void TestTwoFieldsMixed()
-        {
-            base.TestTwoFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed()
-        {
-            base.TestThreeFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed2()
-        {
-            base.TestThreeFieldsMixed2();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsNumeric()
-        {
-            base.TestTwoDocumentsNumeric();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsMerged()
-        {
-            base.TestTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestBigNumericRange()
-        {
-            base.TestBigNumericRange();
-        }
-
-        [Test]
-        public override void TestBigNumericRange2()
-        {
-            base.TestBigNumericRange2();
-        }
-
-        [Test]
-        public override void TestBytes()
-        {
-            base.TestBytes();
-        }
-
-        [Test]
-        public override void TestBytesTwoDocumentsMerged()
-        {
-            base.TestBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedBytes()
-        {
-            base.TestSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocuments()
-        {
-            base.TestSortedBytesTwoDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesThreeDocuments()
-        {
-            base.TestSortedBytesThreeDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocumentsMerged()
-        {
-            base.TestSortedBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedMergeAwayAllValues()
-        {
-            base.TestSortedMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestBytesWithNewline()
-        {
-            base.TestBytesWithNewline();
-        }
-
-        [Test]
-        public override void TestMissingSortedBytes()
-        {
-            base.TestMissingSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedTermsEnum()
-        {
-            base.TestSortedTermsEnum();
-        }
-
-        [Test]
-        public override void TestEmptySortedBytes()
-        {
-            base.TestEmptySortedBytes();
-        }
-
-        [Test]
-        public override void TestEmptyBytes()
-        {
-            base.TestEmptyBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalBytes()
-        {
-            base.TestVeryLargeButLegalBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalSortedBytes()
-        {
-            base.TestVeryLargeButLegalSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytes()
-        {
-            base.TestCodecUsesOwnBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytes()
-        {
-            base.TestCodecUsesOwnSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytesEachTime()
-        {
-            base.TestCodecUsesOwnBytesEachTime();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytesEachTime()
-        {
-            base.TestCodecUsesOwnSortedBytesEachTime();
-        }
-
-        /*
-         * Simple test case to show how to use the API
-         */
-        [Test]
-        public override void TestDocValuesSimple()
-        {
-            base.TestDocValuesSimple();
-        }
-
-        [Test]
-        public override void TestRandomSortedBytes()
-        {
-            base.TestRandomSortedBytes();
-        }
-
-        [Test]
-        public override void TestBooleanNumericsVsStoredFields()
-        {
-            base.TestBooleanNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteNumericsVsStoredFields()
-        {
-            base.TestByteNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteMissingVsFieldCache()
-        {
-            base.TestByteMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestShortNumericsVsStoredFields()
-        {
-            base.TestShortNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestShortMissingVsFieldCache()
-        {
-            base.TestShortMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestIntNumericsVsStoredFields()
-        {
-            base.TestIntNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestIntMissingVsFieldCache()
-        {
-            base.TestIntMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestLongNumericsVsStoredFields()
-        {
-            base.TestLongNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestLongMissingVsFieldCache()
-        {
-            base.TestLongMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestBinaryFixedLengthVsStoredFields()
-        {
-            base.TestBinaryFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestBinaryVariableLengthVsStoredFields()
-        {
-            base.TestBinaryVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsStoredFields()
-        {
-            base.TestSortedFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsFieldCache()
-        {
-            base.TestSortedFixedLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsFieldCache()
-        {
-            base.TestSortedVariableLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsStoredFields()
-        {
-            base.TestSortedVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetOneValue()
-        {
-            base.TestSortedSetOneValue();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoFields()
-        {
-            base.TestSortedSetTwoFields();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsMerged()
-        {
-            base.TestSortedSetTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValues()
-        {
-            base.TestSortedSetTwoValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValuesUnordered()
-        {
-            base.TestSortedSetTwoValuesUnordered();
-        }
-
-        [Test]
-        public override void TestSortedSetThreeValuesTwoDocs()
-        {
-            base.TestSortedSetThreeValuesTwoDocs();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissing()
-        {
-            base.TestSortedSetTwoDocumentsLastMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsLastMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissing()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetMergeAwayAllValues()
-        {
-            base.TestSortedSetMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTermsEnum()
-        {
-            base.TestSortedSetTermsEnum();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsUninvertedField()
-        {
-            base.TestSortedSetFixedLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsUninvertedField()
-        {
-            base.TestSortedSetVariableLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestGCDCompression()
-        {
-            base.TestGCDCompression();
-        }
-
-        [Test]
-        public override void TestZeros()
-        {
-            base.TestZeros();
-        }
-
-        [Test]
-        public override void TestZeroOrMin()
-        {
-            base.TestZeroOrMin();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissing()
-        {
-            base.TestTwoNumbersOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissingWithMerging()
-        {
-            base.TestTwoNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeNumbersOneMissingWithMerging()
-        {
-            base.TestThreeNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissing()
-        {
-            base.TestTwoBytesOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissingWithMerging()
-        {
-            base.TestTwoBytesOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeBytesOneMissingWithMerging()
-        {
-            base.TestThreeBytesOneMissingWithMerging();
-        }
-
-        // LUCENE-4853
-        [Test]
-        public override void TestHugeBinaryValues()
-        {
-            base.TestHugeBinaryValues();
-        }
-
-        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
-        public override void TestHugeBinaryValueLimit()
-        {
-            base.TestHugeBinaryValueLimit();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads()
-        {
-            base.TestThreads();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (all types + missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads2()
-        {
-            base.TestThreads2();
-        }
-
-        // LUCENE-5218
-        [Test]
-        public override void TestEmptyBinaryValueOnPageSizes()
-        {
-            base.TestEmptyBinaryValueOnPageSizes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file


[11/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
WIP on QueryParsers.Flexible


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

Branch: refs/heads/master
Commit: c83be6be537d1f9169f74308d854c11ed6026172
Parents: e8735ed
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Nov 28 22:15:35 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Nov 28 22:15:35 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Document/FieldType.cs       |    2 +-
 src/Lucene.Net.Core/Support/StringSupport.cs    |   10 +
 .../Flexible/Core/Builders/QueryBuilder.cs      |   37 +
 .../Flexible/Core/Builders/QueryTreeBuilder.cs  |  252 +++
 .../Flexible/Core/Config/AbstractQueryConfig.cs |  114 ++
 .../Flexible/Core/Config/ConfigurationKey.cs    |   45 +
 .../Flexible/Core/Config/FieldConfig.cs         |   50 +
 .../Flexible/Core/Config/FieldConfigListener.cs |   24 +
 .../Flexible/Core/Config/QueryConfigHandler.cs  |   69 +
 .../Core/Messages/QueryParserMessages.cs        |   50 +
 .../Flexible/Core/Nodes/AndQueryNode.cs         |   69 +
 .../Flexible/Core/Nodes/AnyQueryNode.cs         |  151 ++
 .../Flexible/Core/Nodes/BooleanQueryNode.cs     |   77 +
 .../Flexible/Core/Nodes/BoostQueryNode.cs       |  113 ++
 .../Flexible/Core/Nodes/DeletedQueryNode.cs     |   43 +
 .../Flexible/Core/Nodes/FieldQueryNode.cs       |  241 +++
 .../Core/Nodes/FieldValuePairQueryNode.cs       |   19 +
 .../Flexible/Core/Nodes/FieldableNode.cs        |   38 +
 .../Flexible/Core/Nodes/FuzzyQueryNode.cs       |  119 ++
 .../Flexible/Core/Nodes/GroupQueryNode.cs       |   73 +
 .../Core/Nodes/MatchAllDocsQueryNode.cs         |   43 +
 .../Flexible/Core/Nodes/MatchNoDocsQueryNode.cs |   25 +
 .../Flexible/Core/Nodes/ModifierQueryNode.cs    |  172 +++
 .../Core/Nodes/NoTokenFoundQueryNode.cs         |   42 +
 .../Flexible/Core/Nodes/OpaqueQueryNode.cs      |   75 +
 .../Flexible/Core/Nodes/OrQueryNode.cs          |   68 +
 .../Flexible/Core/Nodes/PathQueryNode.cs        |  233 +++
 .../Flexible/Core/Nodes/PhraseSlopQueryNode.cs  |  106 ++
 .../Flexible/Core/Nodes/ProximityQueryNode.cs   |  288 ++++
 .../Flexible/Core/Nodes/QueryNode.cs            |   84 +
 .../Flexible/Core/Nodes/QueryNodeImpl.cs        |  292 ++++
 .../Flexible/Core/Nodes/QuotedFieldQueryNode.cs |   77 +
 .../Flexible/Core/Nodes/RangeQueryNode.cs       |   32 +
 .../Flexible/Core/Nodes/SlopQueryNode.cs        |  116 ++
 .../Flexible/Core/Nodes/TextableQueryNode.cs    |   17 +
 .../Core/Nodes/TokenizedPhraseQueryNode.cs      |  103 ++
 .../Flexible/Core/Nodes/ValueQueryNode.cs       |   18 +
 .../Flexible/Core/Parser/EscapeQuerySyntax.cs   |   39 +
 .../Flexible/Core/Parser/SyntaxParser.cs        |   23 +
 .../NoChildOptimizationQueryNodeProcessor.cs    |   73 +
 .../Core/Processors/QueryNodeProcessor.cs       |   61 +
 .../Core/Processors/QueryNodeProcessorImpl.cs   |  202 +++
 .../Processors/QueryNodeProcessorPipeline.cs    |  425 ++++++
 .../RemoveDeletedQueryNodesProcessor.cs         |  102 ++
 .../Flexible/Core/QueryNodeError.cs             |   64 +
 .../Flexible/Core/QueryNodeException.cs         |   75 +
 .../Flexible/Core/QueryNodeParseException.cs    |  117 ++
 .../Flexible/Core/QueryParserHelper.cs          |  260 ++++
 .../Flexible/Core/Util/QueryNodeOperation.cs    |   85 ++
 .../Flexible/Core/Util/StringUtils.cs           |   26 +
 .../Flexible/Core/Util/UnescapedCharSequence.cs |  188 +++
 .../Flexible/Messages/Message.cs                |   21 +
 .../Flexible/Messages/MessageImpl.cs            |   71 +
 .../Flexible/Messages/NLS.cs                    |  292 ++++
 .../Flexible/Messages/NLSException.cs           |   24 +
 .../Precedence/PrecedenceQueryParser.cs         |   41 +
 .../BooleanModifiersQueryNodeProcessor.cs       |  127 ++
 .../PrecedenceQueryNodeProcessorPipeline.cs     |   46 +
 .../Standard/Builders/AnyQueryNodeBuilder.cs    |   80 +
 .../Builders/BooleanQueryNodeBuilder.cs         |  112 ++
 .../Standard/Builders/BoostQueryNodeBuilder.cs  |   51 +
 .../Standard/Builders/DummyQueryNodeBuilder.cs  |   46 +
 .../Standard/Builders/FieldQueryNodeBuilder.cs  |   40 +
 .../Standard/Builders/FuzzyQueryNodeBuilder.cs  |   48 +
 .../Standard/Builders/GroupQueryNodeBuilder.cs  |   42 +
 .../Builders/MatchAllDocsQueryNodeBuilder.cs    |   52 +
 .../Builders/MatchNoDocsQueryNodeBuilder.cs     |   53 +
 .../Builders/ModifierQueryNodeBuilder.cs        |   42 +
 .../Builders/MultiPhraseQueryNodeBuilder.cs     |   83 +
 .../Builders/NumericRangeQueryNodeBuilder.cs    |   91 ++
 .../Standard/Builders/PhraseQueryNodeBuilder.cs |   59 +
 .../Builders/PrefixWildcardQueryNodeBuilder.cs  |   52 +
 .../Standard/Builders/RegexpQueryNodeBuilder.cs |   51 +
 .../Standard/Builders/SlopQueryNodeBuilder.cs   |   55 +
 .../Builders/StandardBooleanQueryNodeBuilder.cs |  112 ++
 .../Standard/Builders/StandardQueryBuilder.cs   |   22 +
 .../Builders/StandardQueryTreeBuilder.cs        |   60 +
 .../Builders/TermRangeQueryNodeBuilder.cs       |   69 +
 .../Builders/WildcardQueryNodeBuilder.cs        |   51 +
 .../Standard/CommonQueryParserConfiguration.cs  |    2 +-
 .../Standard/Config/FieldBoostMapFCListener.cs  |   47 +
 .../Config/FieldDateResolutionFCListener.cs     |   55 +
 .../Flexible/Standard/Config/FuzzyConfig.cs     |   41 +
 .../Standard/Config/NumberDateFormat.cs         |   60 +
 .../Flexible/Standard/Config/NumericConfig.cs   |  155 ++
 .../Config/NumericFieldConfigListener.cs        |   59 +
 .../Config/StandardQueryConfigHandler.cs        |  200 +++
 .../Standard/Nodes/AbstractRangeQueryNode.cs    |  260 ++++
 .../Standard/Nodes/BooleanModifierNode.cs       |   23 +
 .../Standard/Nodes/MultiPhraseQueryNode.cs      |  104 ++
 .../Flexible/Standard/Nodes/NumericQueryNode.cs |  146 ++
 .../Standard/Nodes/NumericRangeQueryNode.cs     |  160 ++
 .../Standard/Nodes/PrefixWildcardQueryNode.cs   |   74 +
 .../Flexible/Standard/Nodes/RegexpQueryNode.cs  |   99 ++
 .../Standard/Nodes/StandardBooleanQueryNode.cs  |   32 +
 .../Standard/Nodes/TermRangeQueryNode.cs        |   33 +
 .../Standard/Nodes/WildcardQueryNode.cs         |   84 +
 .../Flexible/Standard/Parser/CharStream.cs      |  117 ++
 .../Standard/Parser/EscapeQuerySyntaxImpl.cs    |  438 ++++++
 .../Flexible/Standard/Parser/FastCharStream.cs  |  140 ++
 .../Flexible/Standard/Parser/ParseException.cs  |  212 +++
 .../Standard/Parser/StandardSyntaxParser.cs     | 1250 +++++++++++++++
 .../Parser/StandardSyntaxParserConstants.cs     |  129 ++
 .../Parser/StandardSyntaxParserTokenManager.cs  |  959 ++++++++++++
 .../Flexible/Standard/Parser/Token.cs           |  135 ++
 .../Flexible/Standard/Parser/TokenMgrError.cs   |  164 ++
 .../Processors/AllowLeadingWildcardProcessor.cs |  100 ++
 .../Processors/AnalyzerQueryNodeProcessor.cs    |  435 ++++++
 .../BooleanQuery2ModifierNodeProcessor.cs       |  210 +++
 ...SingleChildOptimizationQueryNodeProcessor.cs |   79 +
 .../Processors/BoostQueryNodeProcessor.cs       |   74 +
 .../DefaultPhraseSlopQueryNodeProcessor.cs      |  112 ++
 .../Processors/FuzzyQueryNodeProcessor.cs       |   75 +
 .../Processors/GroupQueryNodeProcessor.cs       |  240 +++
 .../LowercaseExpandedTermsQueryNodeProcessor.cs |   87 ++
 .../MatchAllDocsQueryNodeProcessor.cs           |   62 +
 .../Processors/MultiFieldQueryNodeProcessor.cs  |  130 ++
 .../MultiTermRewriteMethodProcessor.cs          |   64 +
 .../Processors/NumericQueryNodeProcessor.cs     |  150 ++
 .../NumericRangeQueryNodeProcessor.cs           |  164 ++
 .../Processors/OpenRangeQueryNodeProcessor.cs   |   69 +
 .../Processors/PhraseSlopQueryNodeProcessor.cs  |   61 +
 .../RemoveEmptyNonLeafQueryNodeProcessor.cs     |  110 ++
 .../StandardQueryNodeProcessorPipeline.cs       |   54 +
 .../Processors/TermRangeQueryNodeProcessor.cs   |  164 ++
 .../Processors/WildcardQueryNodeProcessor.cs    |  131 ++
 .../Flexible/Standard/QueryParserUtil.cs        |  202 +++
 .../Flexible/Standard/StandardQueryParser.cs    |  651 ++++++++
 .../Lucene.Net.QueryParser.csproj               |  136 ++
 .../Properties/Resources.Designer.cs            |  225 +++
 .../Properties/Resources.resx                   |  177 +++
 .../Core/Builders/TestQueryTreeBuilder.cs       |   60 +
 .../Flexible/Core/Nodes/TestQueryNode.cs        |   60 +
 .../Messages/MessagesTestBundle.Designer.cs     |   63 +
 .../Flexible/Messages/MessagesTestBundle.cs     |   12 +
 .../Messages/MessagesTestBundle.ja-JP.resx      |  126 ++
 .../Flexible/Messages/MessagesTestBundle.resx   |  126 ++
 .../Flexible/Messages/TestNLS.cs                |  121 ++
 .../Precedence/TestPrecedenceQueryParser.cs     |  727 +++++++++
 .../Flexible/Spans/SpanOrQueryNodeBuilder.cs    |   50 +
 .../Flexible/Spans/SpanTermQueryNodeBuilder.cs  |   40 +
 .../Flexible/Spans/SpansQueryConfigHandler.cs   |   33 +
 .../Flexible/Spans/SpansQueryTreeBuilder.cs     |   44 +
 .../Spans/SpansValidatorQueryNodeProcessor.cs   |   55 +
 .../Flexible/Spans/TestSpanQueryParser.cs       |  238 +++
 .../Spans/TestSpanQueryParserSimpleSample.cs    |  113 ++
 .../Flexible/Spans/UniqueFieldAttribute.cs      |   22 +
 .../Flexible/Spans/UniqueFieldAttributeImpl.cs  |   88 ++
 .../Spans/UniqueFieldQueryNodeProcessor.cs      |   68 +
 .../Standard/TestMultiAnalyzerQPHelper.cs       |  267 ++++
 .../Flexible/Standard/TestMultiFieldQPHelper.cs |  409 +++++
 .../Flexible/Standard/TestNumericQueryParser.cs |  523 +++++++
 .../Flexible/Standard/TestQPHelper.cs           | 1443 ++++++++++++++++++
 .../Flexible/Standard/TestStandardQP.cs         |  235 +++
 .../Lucene.Net.Tests.QueryParser.csproj         |   35 +
 155 files changed, 21116 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Core/Document/FieldType.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Document/FieldType.cs b/src/Lucene.Net.Core/Document/FieldType.cs
index 75ba177..01c6e94 100644
--- a/src/Lucene.Net.Core/Document/FieldType.cs
+++ b/src/Lucene.Net.Core/Document/FieldType.cs
@@ -32,7 +32,7 @@ namespace Lucene.Net.Documents
         /// Data type of the numeric value
         /// @since 3.2
         /// </summary>
-        public enum NumericType
+        public enum NumericType // LUCENENET TODO: Move outside of FieldType class
         {
             /// <summary>
             /// 32-bit integer numeric type </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Core/Support/StringSupport.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/StringSupport.cs b/src/Lucene.Net.Core/Support/StringSupport.cs
index fc16452..b504fef 100644
--- a/src/Lucene.Net.Core/Support/StringSupport.cs
+++ b/src/Lucene.Net.Core/Support/StringSupport.cs
@@ -54,5 +54,15 @@ namespace Lucene.Net.Support
         {
             return Character.OffsetByCodePoints(seq, index, codePointOffset);
         }
+
+
+        /// <summary>
+        /// Convenience method to wrap a string in a <see cref="StringCharSequenceWrapper"/>
+        /// so a string can be used as <see cref="ICharSequence"/> in .NET.
+        /// </summary>
+        public static ICharSequence ToCharSequence(this string str)
+        {
+            return new StringCharSequenceWrapper(str);
+        }
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
new file mode 100644
index 0000000..4a572aa
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
@@ -0,0 +1,37 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
+{
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
+    /// <summary>
+    /// This interface is used by implementors classes that builds some kind of
+    /// object from a query tree.
+    /// 
+    /// <seealso cref="QueryTreeBuilder"/>
+    /// </summary>
+    public interface IQueryBuilder// <TQuery> // LUCENENET specific - made generic so we don't need to deal with cast
+    {
+        /// <summary>
+        /// Builds some kind of object from a query tree.
+        /// </summary>
+        /// <param name="queryNode">the query tree root node</param>
+        /// <returns>some object generated from the query tree</returns>
+        object Build(IQueryNode queryNode);
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
new file mode 100644
index 0000000..41304c3
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
@@ -0,0 +1,252 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
+{
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+
+    /// <summary>
+    /// This class should be used when there is a builder for each type of node.
+    /// 
+    /// <para>
+    /// The type of node may be defined in 2 different ways: - by the field name,
+    /// when the node implements the <see cref="IFieldableNode"/> interface - by its class,
+    /// it keeps checking the class and all the interfaces and classes this class
+    /// implements/extends until it finds a builder for that class/interface
+    /// </para>
+    /// <para>
+    /// This class always check if there is a builder for the field name before it
+    /// checks for the node class. So, field name builders have precedence over class
+    /// builders.
+    /// </para>
+    /// <para>
+    /// When a builder is found for a node, it's called and the node is passed to the
+    /// builder. If the returned built object is not <c>null</c>, it's tagged
+    /// on the node using the tag <see cref="QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID"/>.
+    /// </para>
+    /// <para>
+    /// The children are usually built before the parent node. However, if a builder
+    /// associated to a node is an instance of <see cref="QueryTreeBuilder"/>, the node is
+    /// delegated to this builder and it's responsible to build the node and its
+    /// children.
+    /// </para>
+    /// <seealso cref="IQueryBuilder"/>
+    /// </summary>
+    public class QueryTreeBuilder : IQueryBuilder
+    {
+        /**
+   * This tag is used to tag the nodes in a query tree with the built objects
+   * produced from their own associated builder.
+   */
+        public static readonly string QUERY_TREE_BUILDER_TAGID = typeof(QueryTreeBuilder).Name;
+
+        private IDictionary<Type, IQueryBuilder> queryNodeBuilders;
+
+        private IDictionary<string, IQueryBuilder> fieldNameBuilders;
+
+        /**
+         * {@link QueryTreeBuilder} constructor.
+         */
+        public QueryTreeBuilder()
+        {
+            // empty constructor
+        }
+
+        /**
+         * Associates a field name with a builder.
+         * 
+         * @param fieldName the field name
+         * @param builder the builder to be associated
+         */
+        public void SetBuilder(string fieldName, IQueryBuilder builder)
+        {
+
+            if (this.fieldNameBuilders == null)
+            {
+                this.fieldNameBuilders = new Dictionary<string, IQueryBuilder>();
+            }
+
+            this.fieldNameBuilders[fieldName] = builder;
+        }
+
+        /**
+         * Associates a class with a builder
+         * 
+         * @param queryNodeClass the class
+         * @param builder the builder to be associated
+         */
+        public void SetBuilder(Type queryNodeClass,
+            IQueryBuilder builder)
+        {
+
+            if (this.queryNodeBuilders == null)
+            {
+                this.queryNodeBuilders = new Dictionary<Type, IQueryBuilder>();
+            }
+
+            this.queryNodeBuilders[queryNodeClass] = builder;
+
+        }
+
+        private void Process(IQueryNode node)
+        {
+
+            if (node != null)
+            {
+                IQueryBuilder builder = GetBuilder(node);
+
+                if (!(builder is QueryTreeBuilder))
+                {
+                    IList<IQueryNode> children = node.GetChildren();
+
+                    if (children != null)
+                    {
+
+                        foreach (IQueryNode child in children)
+                        {
+                            Process(child);
+                        }
+
+                    }
+
+                }
+
+                ProcessNode(node, builder);
+
+            }
+
+        }
+
+        private IQueryBuilder GetBuilder(IQueryNode node)
+        {
+            IQueryBuilder builder = null;
+
+            if (this.fieldNameBuilders != null && node is IFieldableNode)
+            {
+                string field = ((IFieldableNode)node).Field;
+
+                //if (field != null)
+                //{
+                //    field = field.ToString();
+                //}
+
+                //builder = this.fieldNameBuilders[field];
+                this.fieldNameBuilders.TryGetValue(field, out builder);
+
+            }
+
+            if (builder == null && this.queryNodeBuilders != null)
+            {
+
+                Type clazz = node.GetType();
+
+                do
+                {
+                    builder = GetQueryBuilder(clazz);
+
+                    if (builder == null)
+                    {
+                        Type[] classes = clazz.GetInterfaces();
+
+                        foreach (Type actualClass in classes)
+                        {
+                            builder = GetQueryBuilder(actualClass);
+
+                            if (builder != null)
+                            {
+                                break;
+                            }
+
+                        }
+
+                    }
+
+                } while (builder == null && (clazz = clazz.BaseType) != null);
+
+            }
+
+            return builder;
+
+        }
+
+        private void ProcessNode(IQueryNode node, IQueryBuilder builder)
+        {
+
+            if (builder == null)
+            {
+
+                throw new QueryNodeException(new MessageImpl(
+                    QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, node
+                        .ToQueryString(new EscapeQuerySyntaxImpl()), node.GetType()
+                        .Name));
+
+            }
+
+            object obj = builder.Build(node);
+
+            if (obj != null)
+            {
+                node.SetTag(QUERY_TREE_BUILDER_TAGID, obj);
+            }
+
+        }
+
+        private IQueryBuilder GetQueryBuilder(Type clazz)
+        {
+
+            if (typeof(IQueryNode).IsAssignableFrom(clazz))
+            {
+                IQueryBuilder result;
+                this.queryNodeBuilders.TryGetValue(clazz, out result);
+                return result;
+                //return this.queryNodeBuilders.get(clazz);
+            }
+
+            return null;
+
+        }
+
+        /**
+         * Builds some kind of object from a query tree. Each node in the query tree
+         * is built using an specific builder associated to it.
+         * 
+         * @param queryNode the query tree root node
+         * 
+         * @return the built object
+         * 
+         * @throws QueryNodeException if some node builder throws a
+         *         {@link QueryNodeException} or if there is a node which had no
+         *         builder associated to it
+         */
+
+        public virtual object Build(IQueryNode queryNode)
+        {
+            Process(queryNode);
+
+            return queryNode.GetTag(QUERY_TREE_BUILDER_TAGID);
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
new file mode 100644
index 0000000..41bc528
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
@@ -0,0 +1,114 @@
+\ufeffusing Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Config
+{
+    /// <summary>
+    /// This class is the base of {@link QueryConfigHandler} and {@link FieldConfig}.
+    /// It has operations to set, unset and get configuration values.
+    /// <para>
+    /// Each configuration is is a key->value pair. The key should be an unique
+    /// {@link ConfigurationKey} instance and it also holds the value's type.
+    /// </para>
+    /// <seealso cref="ConfigurationKey"/>
+    /// </summary>
+    public abstract class AbstractQueryConfig
+    {
+        private readonly IDictionary<ConfigurationKey, object> configMap = new Dictionary<ConfigurationKey, object>();
+
+        internal AbstractQueryConfig()
+        {
+            // although this class is public, it can only be constructed from package
+        }
+
+        /**
+         * Returns the value held by the given key.
+         * 
+         * @param <T> the value's type
+         * 
+         * @param key the key, cannot be <code>null</code>
+         * 
+         * @return the value held by the given key
+         */
+        public T Get<T>(ConfigurationKey<T> key)
+        {
+
+            if (key == null)
+            {
+                throw new ArgumentException("key cannot be null!");
+            }
+            object result;
+            this.configMap.TryGetValue(key, out result);
+            return result == null ? default(T) : (T)result;
+            //return (T)this.configMap.get(key);
+
+        }
+
+        /**
+         * Returns true if there is a value set with the given key, otherwise false.
+         * 
+         * @param <T> the value's type
+         * @param key the key, cannot be <code>null</code>
+         * @return true if there is a value set with the given key, otherwise false
+         */
+        public bool has<T>(ConfigurationKey<T> key)
+        {
+
+            if (key == null)
+            {
+                throw new ArgumentException("key cannot be null!");
+            }
+
+            return this.configMap.ContainsKey(key);
+
+        }
+
+        /**
+         * Sets a key and its value.
+         * 
+         * @param <T> the value's type
+         * @param key the key, cannot be <code>null</code>
+         * @param value value to set
+         */
+        public void Set<T>(ConfigurationKey<T> key, T value)
+        {
+
+            if (key == null)
+            {
+                throw new ArgumentException("key cannot be null!");
+            }
+
+            if (value == null)
+            {
+                Unset(key);
+
+            }
+            else
+            {
+                this.configMap[key] = value;
+            }
+
+        }
+
+        /**
+         * Unsets the given key and its value.
+         * 
+         * @param <T> the value's type
+         * @param key the key
+         * @return true if the key and value was set and removed, otherwise false
+         */
+        public bool Unset<T>(ConfigurationKey<T> key)
+        {
+            if (key == null)
+            {
+                throw new ArgumentException("key cannot be null!");
+            }
+
+            return this.configMap.Remove(key);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
new file mode 100644
index 0000000..5a18314
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
@@ -0,0 +1,45 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Config
+{
+    /// <summary>
+    /// An instance of this class represents a key that is used to retrieve a value
+    /// from {@link AbstractQueryConfig}. It also holds the value's type, which is
+    /// defined in the generic argument.
+    /// </summary>
+    /// <seealso cref="AbstractQueryConfig"/>
+    /// <typeparam name="T"></typeparam>
+    public sealed class ConfigurationKey<T> : ConfigurationKey
+    {
+        internal ConfigurationKey() { }
+
+        /**
+         * Creates a new instance.
+         * 
+         * @param <T> the value's type
+         * 
+         * @return a new instance
+         */
+        //public static ConfigurationKey<T> NewInstance()
+        //{
+        //    return new ConfigurationKey<T>();
+        //}
+    }
+
+    /// <summary>
+    /// LUCENENET specific class used to access the NewInstance
+    /// static method without referring to the ConfigurationKey{T}'s
+    /// generic closing type.
+    /// </summary>
+    public abstract class ConfigurationKey
+    {
+        public static ConfigurationKey<T> NewInstance<T>()
+        {
+            return new ConfigurationKey<T>();
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
new file mode 100644
index 0000000..1633f53
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
@@ -0,0 +1,50 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Config
+{
+    /// <summary>
+    /// This class represents a field configuration.
+    /// </summary>
+    public class FieldConfig : AbstractQueryConfig
+    {
+        private string fieldName;
+
+        /**
+         * Constructs a {@link FieldConfig}
+         * 
+         * @param fieldName the field name, it cannot be null
+         * @throws IllegalArgumentException if the field name is null
+         */
+        public FieldConfig(string fieldName)
+        {
+
+            if (fieldName == null)
+            {
+                throw new ArgumentException("field name should not be null!");
+            }
+
+            this.fieldName = fieldName;
+
+        }
+
+        /**
+         * Returns the field name this configuration represents.
+         * 
+         * @return the field name
+         */
+        public string GetField()
+        {
+            return this.fieldName;
+        }
+
+        public override string ToString()
+        {
+            return "<fieldconfig name=\"" + this.fieldName + "\" configurations=\""
+                + base.ToString() + "\"/>";
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
new file mode 100644
index 0000000..4a0972d
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
@@ -0,0 +1,24 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Config
+{
+    /// <summary>
+    /// This interface should be implemented by classes that wants to listen for
+    /// field configuration requests. The implementation receives a
+    /// {@link FieldConfig} object and may add/change its configuration.
+    /// </summary>
+    /// <seealso cref="FieldConfig"/>
+    /// <seealso cref="QueryConfigHandler"/>
+    public interface IFieldConfigListener
+    {
+        /// <summary>
+        /// This method is called ever time a field configuration is requested.
+        /// </summary>
+        /// <param name="fieldConfig">the field configuration requested, should never be null</param>
+        void BuildFieldConfig(FieldConfig fieldConfig);
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
new file mode 100644
index 0000000..ac55d91
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
@@ -0,0 +1,69 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Util;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Config
+{
+    /// <summary>
+    /// This class can be used to hold any query configuration and no field
+    /// configuration. For field configuration, it creates an empty
+    /// {@link FieldConfig} object and delegate it to field config listeners, 
+    /// these are responsible for setting up all the field configuration.
+    /// <para>
+    /// {@link QueryConfigHandler} should be extended by classes that intends to
+    /// provide configuration to {@link QueryNodeProcessor} objects.
+    /// </para>
+    /// <para>
+    /// The class that extends {@link QueryConfigHandler} should also provide
+    /// {@link FieldConfig} objects for each collection field.
+    /// </para>
+    /// </summary>
+    /// <seealso cref="FieldConfig"/>
+    /// <seealso cref="IFieldConfigListener"/>
+    /// <seealso cref="QueryConfigHandler"/>
+    public abstract class QueryConfigHandler : AbstractQueryConfig
+    {
+        private readonly LinkedList<IFieldConfigListener> listeners = new LinkedList<IFieldConfigListener>();
+
+        /**
+         * Returns an implementation of
+         * {@link FieldConfig} for a specific field name. If the implemented
+         * {@link QueryConfigHandler} does not know a specific field name, it may
+         * return <code>null</code>, indicating there is no configuration for that
+         * field.
+         * 
+         * @param fieldName
+         *          the field name
+         * @return a {@link FieldConfig} object containing the field name
+         *         configuration or <code>null</code>, if the implemented
+         *         {@link QueryConfigHandler} has no configuration for that field
+         */
+        public virtual FieldConfig GetFieldConfig(string fieldName)
+        {
+            FieldConfig fieldConfig = new FieldConfig(StringUtils.ToString(fieldName));
+
+            foreach (IFieldConfigListener listener in this.listeners)
+            {
+                listener.BuildFieldConfig(fieldConfig);
+            }
+
+            return fieldConfig;
+
+        }
+
+        /**
+         * Adds a listener. The added listeners are called in the order they are
+         * added.
+         * 
+         * @param listener
+         *          the listener to be added
+         */
+        public virtual void AddFieldConfigListener(IFieldConfigListener listener)
+        {
+            this.listeners.AddLast(listener);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
new file mode 100644
index 0000000..7378f45
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
@@ -0,0 +1,50 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Messages
+{
+    /// <summary>
+    /// Flexible Query Parser message bundle class
+    /// </summary>
+    public class QueryParserMessages : NLS
+    {
+        private static readonly string BUNDLE_NAME = typeof(QueryParserMessages).Name;
+
+        private QueryParserMessages()
+        {
+            // Do not instantiate
+        }
+
+        static QueryParserMessages()
+        {
+            // register all string ids with NLS class and initialize static string
+            // values
+            NLS.InitializeMessages(BUNDLE_NAME, typeof(QueryParserMessages));
+        }
+
+        // static string must match the strings in the property files.
+        public static string INVALID_SYNTAX;
+        public static string INVALID_SYNTAX_CANNOT_PARSE;
+        public static string INVALID_SYNTAX_FUZZY_LIMITS;
+        public static string INVALID_SYNTAX_FUZZY_EDITS;
+        public static string INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION;
+        public static string INVALID_SYNTAX_ESCAPE_CHARACTER;
+        public static string INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE;
+        public static string NODE_ACTION_NOT_SUPPORTED;
+        public static string PARAMETER_VALUE_NOT_SUPPORTED;
+        public static string LUCENE_QUERY_CONVERSION_ERROR;
+        public static string EMPTY_MESSAGE;
+        public static string WILDCARD_NOT_SUPPORTED;
+        public static string TOO_MANY_BOOLEAN_CLAUSES;
+        public static string LEADING_WILDCARD_NOT_ALLOWED;
+        public static string COULD_NOT_PARSE_NUMBER;
+        public static string NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY;
+        public static string UNSUPPORTED_NUMERIC_DATA_TYPE;
+        public static string NUMERIC_CANNOT_BE_EMPTY;
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
new file mode 100644
index 0000000..fa2b365
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
@@ -0,0 +1,69 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link AndQueryNode} represents an AND boolean operation performed on a
+    /// list of nodes.
+    /// </summary>
+    public class AndQueryNode : BooleanQueryNode
+    {
+        /**
+   * @param clauses
+   *          - the query nodes to be and'ed
+   */
+        public AndQueryNode(IList<IQueryNode> clauses)
+            : base(clauses)
+        {
+            if ((clauses == null) || (clauses.Count == 0))
+            {
+                throw new ArgumentException(
+                    "AND query must have at least one clause");
+            }
+        }
+
+
+        public override string ToString()
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "<boolean operation='and'/>";
+            StringBuilder sb = new StringBuilder();
+            sb.Append("<boolean operation='and'>");
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append("\n");
+                sb.Append(child.ToString());
+
+            }
+            sb.Append("\n</boolean>");
+            return sb.ToString();
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "";
+
+            StringBuilder sb = new StringBuilder();
+            string filler = "";
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
+                filler = " AND ";
+            }
+
+            // in case is root or the parent is a group node avoid parenthesis
+            if ((GetParent() != null && GetParent() is GroupQueryNode)
+        || IsRoot())
+                return sb.ToString();
+            else
+                return "( " + sb.ToString() + " )";
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
new file mode 100644
index 0000000..da91a96
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
@@ -0,0 +1,151 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link AnyQueryNode} represents an ANY operator performed on a list of
+    /// nodes.
+    /// </summary>
+    public class AnyQueryNode : AndQueryNode
+    {
+        private string field = null;
+        private int minimumMatchingmElements = 0;
+
+        /**
+         * @param clauses
+         *          - the query nodes to be or'ed
+         */
+        public AnyQueryNode(IList<IQueryNode> clauses, string field,
+            int minimumMatchingElements)
+            : base(clauses)
+        {
+            this.field = field;
+            this.minimumMatchingmElements = minimumMatchingElements;
+
+            if (clauses != null)
+            {
+
+                foreach (IQueryNode clause in clauses)
+                {
+
+                    if (clause is FieldQueryNode)
+                    {
+
+                        if (clause is QueryNodeImpl)
+                        {
+                            ((QueryNodeImpl)clause).toQueryStringIgnoreFields = true;
+                        }
+
+                        if (clause is IFieldableNode)
+                        {
+                            ((IFieldableNode)clause).Field = field;
+                        }
+
+                    }
+                }
+
+            }
+
+        }
+
+        public int GetMinimumMatchingElements()
+        {
+            return this.minimumMatchingmElements;
+        }
+
+        /**
+         * returns null if the field was not specified
+         * 
+         * @return the field
+         */
+        public string GetField()
+        {
+            return this.field;
+        }
+
+        /**
+         * returns - null if the field was not specified
+         * 
+         * @return the field as a String
+         */
+        public string GetFieldAsString()
+        {
+            if (this.field == null)
+                return null;
+            else
+                return this.field.ToString();
+        }
+
+        /**
+         * @param field
+         *          - the field to set
+         */
+        public void setField(string field)
+        {
+            this.field = field;
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            AnyQueryNode clone = (AnyQueryNode)base.CloneTree();
+
+            clone.field = this.field;
+            clone.minimumMatchingmElements = this.minimumMatchingmElements;
+
+            return clone;
+        }
+
+
+        public override string ToString()
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "<any field='" + this.field + "'  matchelements="
+                    + this.minimumMatchingmElements + "/>";
+            StringBuilder sb = new StringBuilder();
+            sb.Append("<any field='" + this.field + "'  matchelements="
+                + this.minimumMatchingmElements + ">");
+            foreach (IQueryNode clause in GetChildren())
+            {
+                sb.Append("\n");
+                sb.Append(clause.ToString());
+            }
+            sb.Append("\n</any>");
+            return sb.ToString();
+        }
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            string anySTR = "ANY " + this.minimumMatchingmElements;
+
+            StringBuilder sb = new StringBuilder();
+            if (GetChildren() == null || GetChildren().Count == 0)
+            {
+                // no childs case
+            }
+            else
+            {
+                string filler = "";
+                foreach (IQueryNode clause in GetChildren())
+                {
+                    sb.Append(filler).Append(clause.ToQueryString(escapeSyntaxParser));
+                    filler = " ";
+                }
+            }
+
+            if (IsDefaultField(this.field))
+            {
+                return "( " + sb.ToString() + " ) " + anySTR;
+            }
+            else
+            {
+                return this.field + ":(( " + sb.ToString() + " ) " + anySTR + ")";
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
new file mode 100644
index 0000000..de68cbd
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
@@ -0,0 +1,77 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link BooleanQueryNode} represents a list of elements which do not have an
+    /// explicit boolean operator defined between them. It can be used to express a
+    /// boolean query that intends to use the default boolean operator.
+    /// </summary>
+    public class BooleanQueryNode : QueryNodeImpl
+    {
+        /**
+   * @param clauses
+   *          - the query nodes to be and'ed
+   */
+        public BooleanQueryNode(IList<IQueryNode> clauses)
+        {
+            SetLeaf(false);
+            Allocate();
+            Set(clauses);
+        }
+
+
+        public override string ToString()
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "<boolean operation='default'/>";
+            StringBuilder sb = new StringBuilder();
+            sb.Append("<boolean operation='default'>");
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append("\n");
+                sb.Append(child.ToString());
+            }
+            sb.Append("\n</boolean>");
+            return sb.ToString();
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "";
+
+            StringBuilder sb = new StringBuilder();
+            string filler = "";
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));
+                filler = " ";
+            }
+
+            // in case is root or the parent is a group node avoid parenthesis
+            if ((GetParent() != null && GetParent() is GroupQueryNode)
+                || IsRoot())
+                return sb.ToString();
+            else
+                return "( " + sb.ToString() + " )";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            BooleanQueryNode clone = (BooleanQueryNode)base.CloneTree();
+
+            // nothing to do here
+
+            return clone;
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
new file mode 100644
index 0000000..0b27d31
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
@@ -0,0 +1,113 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link BoostQueryNode} boosts the QueryNode tree which is under this node.
+    /// So, it must only and always have one child.
+    /// 
+    /// The boost value may vary from 0.0 to 1.0.
+    /// </summary>
+    public class BoostQueryNode : QueryNodeImpl
+    {
+        private float value = 0;
+
+        /**
+         * Constructs a boost node
+         * 
+         * @param query
+         *          the query to be boosted
+         * @param value
+         *          the boost value, it may vary from 0.0 to 1.0
+         */
+        public BoostQueryNode(IQueryNode query, float value)
+        {
+            if (query == null)
+            {
+                throw new QueryNodeError(new MessageImpl(
+                    QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, "query", "null"));
+            }
+
+            this.value = value;
+            SetLeaf(false);
+            Allocate();
+            Add(query);
+        }
+
+        /**
+         * Returns the single child which this node boosts.
+         * 
+         * @return the single child which this node boosts
+         */
+        public IQueryNode GetChild()
+        {
+            IList<IQueryNode> children = GetChildren();
+
+            if (children == null || children.Count == 0)
+            {
+                return null;
+            }
+
+            return children[0];
+
+        }
+
+        /**
+         * Returns the boost value. It may vary from 0.0 to 1.0.
+         * 
+         * @return the boost value
+         */
+        public float GetValue()
+        {
+            return this.value;
+        }
+
+        /**
+         * Returns the boost value parsed to a string.
+         * 
+         * @return the parsed value
+         */
+        private string GetValueString()
+        {
+            float f = this.value;
+            if (f == (long)f)
+                return "" + (long)f;
+            else
+                return "" + f;
+
+        }
+
+
+        public override string ToString()
+        {
+            return "<boost value='" + GetValueString() + "'>" + "\n"
+                + GetChild().ToString() + "\n</boost>";
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChild() == null)
+                return "";
+            return GetChild().ToQueryString(escapeSyntaxParser) + "^"
+                + GetValueString();
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            BoostQueryNode clone = (BoostQueryNode)base.CloneTree();
+
+            clone.value = this.value;
+
+            return clone;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
new file mode 100644
index 0000000..84694cb
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
@@ -0,0 +1,43 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link DeletedQueryNode} represents a node that was deleted from the query
+    /// node tree. It can be removed from the tree using the
+    /// {@link RemoveDeletedQueryNodesProcessor} processor.
+    /// </summary>
+    public class DeletedQueryNode : QueryNodeImpl
+    {
+        public DeletedQueryNode()
+        {
+            // empty constructor
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escaper)
+        {
+            return "[DELETEDCHILD]";
+        }
+
+
+        public override string ToString()
+        {
+            return "<deleted/>";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            DeletedQueryNode clone = (DeletedQueryNode)base.CloneTree();
+
+            return clone;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
new file mode 100644
index 0000000..cad1c8a
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
@@ -0,0 +1,241 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link FieldQueryNode} represents a element that contains field/text tuple
+    /// </summary>
+    public class FieldQueryNode : QueryNodeImpl, IFieldValuePairQueryNode<string>, ITextableQueryNode
+    {
+        /**
+   * The term's field
+   */
+        protected string field;
+
+        /**
+         * The term's text.
+         */
+        protected ICharSequence text;
+
+        /**
+         * The term's begin position.
+         */
+        protected int begin;
+
+        /**
+         * The term's end position.
+         */
+        protected int end;
+
+        /**
+         * The term's position increment.
+         */
+        protected int positionIncrement;
+
+        /**
+         * @param field
+         *          - field name
+         * @param text
+         *          - value
+         * @param begin
+         *          - position in the query string
+         * @param end
+         *          - position in the query string
+         */
+         // LUCENENET specific overload for passing text as string
+        public FieldQueryNode(string field, string text, int begin,
+            int end)
+            : this(field, new StringCharSequenceWrapper(text), begin, end)
+        {
+        }
+
+        /**
+         * @param field
+         *          - field name
+         * @param text
+         *          - value
+         * @param begin
+         *          - position in the query string
+         * @param end
+         *          - position in the query string
+         */
+        public FieldQueryNode(string field, ICharSequence text, int begin,
+            int end)
+        {
+            this.field = field;
+            this.text = text;
+            this.begin = begin;
+            this.end = end;
+            this.SetLeaf(true);
+
+        }
+
+        protected string GetTermEscaped(IEscapeQuerySyntax escaper)
+        {
+            return escaper.Escape(this.text, CultureInfo.InvariantCulture /*Locale.getDefault()*/, EscapeQuerySyntax.Type.NORMAL).ToString();
+        }
+
+        protected string GetTermEscapeQuoted(IEscapeQuerySyntax escaper)
+        {
+            return escaper.Escape(this.text, CultureInfo.InvariantCulture /*Locale.getDefault()*/, EscapeQuerySyntax.Type.STRING).ToString();
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escaper)
+        {
+            if (IsDefaultField(this.field))
+            {
+                return GetTermEscaped(escaper);
+            }
+            else
+            {
+                return this.field + ":" + GetTermEscaped(escaper);
+            }
+        }
+
+
+        public override string ToString()
+        {
+            return "<field start='" + this.begin + "' end='" + this.end + "' field='"
+                + this.field + "' text='" + this.text + "'/>";
+        }
+
+        /**
+         * @return the term
+         */
+        public string GetTextAsString()
+        {
+            if (this.text == null)
+                return null;
+            else
+                return this.text.ToString();
+        }
+
+        /**
+         * returns null if the field was not specified in the query string
+         * 
+         * @return the field
+         */
+        public string GetFieldAsString()
+        {
+            if (this.field == null)
+                return null;
+            else
+                return this.field.ToString();
+        }
+
+        public int GetBegin()
+        {
+            return this.begin;
+        }
+
+        public void SetBegin(int begin)
+        {
+            this.begin = begin;
+        }
+
+        public int GetEnd()
+        {
+            return this.end;
+        }
+
+        public void setEnd(int end)
+        {
+            this.end = end;
+        }
+
+        public virtual string Field
+        {
+            get { return this.field; }
+            set { this.field = value; }
+        }
+
+        //      @Override
+        //public CharSequence getField()
+        //      {
+        //          return this.field;
+        //      }
+
+        //      @Override
+        //public void setField(CharSequence field)
+        //      {
+        //          this.field = field;
+        //      }
+
+        public int GetPositionIncrement()
+        {
+            return this.positionIncrement;
+        }
+
+        public void SetPositionIncrement(int pi)
+        {
+            this.positionIncrement = pi;
+        }
+
+        public virtual ICharSequence Text
+        {
+            get { return this.text; }
+            set { this.text = value; }
+        }
+
+        ///**
+        // * Returns the term.
+        // * 
+        // * @return The "original" form of the term.
+        // */
+
+        //public override string GetText()
+        //{
+        //    return this.text;
+        //}
+
+        ///**
+        // * @param text
+        // *          the text to set
+        // */
+
+        //public override void SetText(string text)
+        //{
+        //    this.text = text;
+        //}
+
+
+        public override IQueryNode CloneTree()
+        {
+            FieldQueryNode fqn = (FieldQueryNode)base.CloneTree();
+            fqn.begin = this.begin;
+            fqn.end = this.end;
+            fqn.field = this.field;
+            fqn.text = this.text;
+            fqn.positionIncrement = this.positionIncrement;
+            fqn.toQueryStringIgnoreFields = this.toQueryStringIgnoreFields;
+
+            return fqn;
+
+        }
+
+        public virtual string Value
+        {
+            get { return Text.ToString(); }
+            set { Text = new StringCharSequenceWrapper(value); }
+        }
+
+        //public override string GetValue()
+        //{
+        //    return GetText();
+        //}
+
+
+        //public override void SetValue(string value)
+        //{
+        //    SetText(value);
+        //}
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
new file mode 100644
index 0000000..d6d4e32
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
@@ -0,0 +1,19 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// This interface should be implemented by {@link QueryNode} that holds a field
+    /// and an arbitrary value.
+    /// </summary>
+    /// <seealso cref="IFieldableNode"/>
+    /// <seealso cref="IValueQueryNode{T}"/>
+    /// <typeparam name="T"></typeparam>
+    public interface IFieldValuePairQueryNode<T> : IFieldableNode, IValueQueryNode<T>
+    {
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
new file mode 100644
index 0000000..e9b6439
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
@@ -0,0 +1,38 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A query node implements {@link FieldableNode} interface to indicate that its
+    /// children and itself are associated to a specific field.
+    /// 
+    /// If it has any children which also implements this interface, it must ensure
+    /// the children are associated to the same field.
+    /// </summary>
+    public interface IFieldableNode : IQueryNode
+    {
+        /// <summary>
+        /// Gets or Sets the field associated to the node and every node under it.
+        /// </summary>
+        string Field { get; set; }
+
+        //     /**
+        //* Returns the field associated to the node and every node under it.
+        //* 
+        //* @return the field name
+        //*/
+        //     string GetField(); 
+
+        //     /**
+        //      * Associates the node to a field.
+        //      * 
+        //      * @param fieldName
+        //      *          the field name
+        //      */
+        //     void SetField(string fieldName);
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
new file mode 100644
index 0000000..8f64793
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
@@ -0,0 +1,119 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link FuzzyQueryNode} represents a element that contains
+    /// field/text/similarity tuple
+    /// </summary>
+    public class FuzzyQueryNode : FieldQueryNode
+    {
+        private float similarity;
+
+        private int prefixLength;
+
+        /**
+         * @param field
+         *          Name of the field query will use.
+         * @param termStr
+         *          Term token to use for building term for the query
+         */
+        /**
+         * @param field
+         *          - Field name
+         * @param term
+         *          - Value
+         * @param minSimilarity
+         *          - similarity value
+         * @param begin
+         *          - position in the query string
+         * @param end
+         *          - position in the query string
+         */
+         // LUCENENET specific overload for string term
+        public FuzzyQueryNode(string field, string term,
+            float minSimilarity, int begin, int end)
+            : this(field, term.ToCharSequence(), minSimilarity, begin, end)
+        {
+        }
+
+        /**
+         * @param field
+         *          - Field name
+         * @param term
+         *          - Value
+         * @param minSimilarity
+         *          - similarity value
+         * @param begin
+         *          - position in the query string
+         * @param end
+         *          - position in the query string
+         */
+        public FuzzyQueryNode(string field, ICharSequence term,
+            float minSimilarity, int begin, int end)
+            : base(field, term, begin, end)
+        {
+            this.similarity = minSimilarity;
+            SetLeaf(true);
+        }
+
+        public void SetPrefixLength(int prefixLength)
+        {
+            this.prefixLength = prefixLength;
+        }
+
+        public int GetPrefixLength()
+        {
+            return this.prefixLength;
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escaper)
+        {
+            if (IsDefaultField(this.field))
+            {
+                return GetTermEscaped(escaper) + "~" + this.similarity;
+            }
+            else
+            {
+                return this.field + ":" + GetTermEscaped(escaper) + "~" + this.similarity;
+            }
+        }
+
+
+        public override string ToString()
+        {
+            return "<fuzzy field='" + this.field + "' similarity='" + this.similarity
+                + "' term='" + this.text + "'/>";
+        }
+
+        public void SetSimilarity(float similarity)
+        {
+            this.similarity = similarity;
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            FuzzyQueryNode clone = (FuzzyQueryNode)base.CloneTree();
+
+            clone.similarity = this.similarity;
+
+            return clone;
+        }
+
+        /**
+         * @return the similarity
+         */
+        public float GetSimilarity()
+        {
+            return this.similarity;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
new file mode 100644
index 0000000..246b30c
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
@@ -0,0 +1,73 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link GroupQueryNode} represents a location where the original user typed
+    /// real parenthesis on the query string. This class is useful for queries like:
+    /// a) a AND b OR c b) ( a AND b) OR c
+    /// 
+    /// Parenthesis might be used to define the boolean operation precedence.
+    /// </summary>
+    public class GroupQueryNode : QueryNodeImpl
+    {
+        /**
+   * This QueryNode is used to identify parenthesis on the original query string
+   */
+        public GroupQueryNode(IQueryNode query)
+        {
+            if (query == null)
+            {
+                throw new QueryNodeError(new MessageImpl(
+                    QueryParserMessages.PARAMETER_VALUE_NOT_SUPPORTED, "query", "null"));
+            }
+
+            Allocate();
+            SetLeaf(false);
+            Add(query);
+        }
+
+        public IQueryNode GetChild()
+        {
+            return GetChildren()[0];
+        }
+
+
+        public override string ToString()
+        {
+            return "<group>" + "\n" + GetChild().ToString() + "\n</group>";
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChild() == null)
+                return "";
+
+            return "( " + GetChild().ToQueryString(escapeSyntaxParser) + " )";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            GroupQueryNode clone = (GroupQueryNode)base.CloneTree();
+
+            return clone;
+        }
+
+        public void setChild(IQueryNode child)
+        {
+            List<IQueryNode> list = new List<IQueryNode>();
+            list.Add(child);
+            this.Set(list);
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
new file mode 100644
index 0000000..0a0ffa8
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
@@ -0,0 +1,43 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link MatchAllDocsQueryNode} indicates that a query node tree or subtree
+    /// will match all documents if executed in the index.
+    /// </summary>
+    public class MatchAllDocsQueryNode : QueryNodeImpl
+    {
+        public MatchAllDocsQueryNode()
+        {
+            // empty constructor
+        }
+
+
+        public override string ToString()
+        {
+            return "<matchAllDocs field='*' term='*'/>";
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            return "*:*";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            MatchAllDocsQueryNode clone = (MatchAllDocsQueryNode)base.CloneTree();
+
+            // nothing to clone
+
+            return clone;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
new file mode 100644
index 0000000..e8cfadd
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
@@ -0,0 +1,25 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link MatchNoDocsQueryNode} indicates that a query node tree or subtree
+    /// will not match any documents if executed in the index.
+    /// </summary>
+    public class MatchNoDocsQueryNode : DeletedQueryNode
+    {
+        public MatchNoDocsQueryNode()
+        {
+            // empty constructor
+        }
+
+        public override string ToString()
+        {
+            return "<matchNoDocsQueryNode/>";
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
new file mode 100644
index 0000000..900f117
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
@@ -0,0 +1,172 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link ModifierQueryNode} indicates the modifier value (+,-,?,NONE) for
+    /// each term on the query string. For example "+t1 -t2 t3" will have a tree of:
+    /// <blockquote>
+    /// &lt;BooleanQueryNode&gt; &lt;ModifierQueryNode modifier="MOD_REQ"&gt; &lt;t1/&gt;
+    /// &lt;/ModifierQueryNode&gt; &lt;ModifierQueryNode modifier="MOD_NOT"&gt; &lt;t2/&gt;
+    /// &lt;/ModifierQueryNode&gt; &lt;t3/&gt; &lt;/BooleanQueryNode&gt;
+    /// </blockquote>
+    /// </summary>
+    public class ModifierQueryNode : QueryNodeImpl
+    {
+        
+        // LUCENENET NOTE: Modifier enum moved outside of this class
+
+
+
+        private Modifier modifier = Modifier.MOD_NONE;
+
+        /**
+         * Used to store the modifier value on the original query string
+         * 
+         * @param query
+         *          - QueryNode subtree
+         * @param mod
+         *          - Modifier Value
+         */
+        public ModifierQueryNode(IQueryNode query, Modifier mod)
+        {
+            if (query == null)
+            {
+                throw new QueryNodeError(new MessageImpl(
+                    QueryParserMessages.PARAMETER_VALUE_NOT_SUPPORTED, "query", "null"));
+            }
+
+            Allocate();
+            SetLeaf(false);
+            Add(query);
+            this.modifier = mod;
+        }
+
+        public IQueryNode GetChild()
+        {
+            return GetChildren()[0];
+        }
+
+        public Modifier GetModifier()
+        {
+            return this.modifier;
+        }
+
+
+        public override string ToString()
+        {
+            return "<modifier operation='" + this.modifier.ToString() + "'>" + "\n"
+                + GetChild().ToString() + "\n</modifier>";
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChild() == null)
+                return "";
+
+            String leftParenthensis = "";
+            String rightParenthensis = "";
+
+            if (GetChild() != null && GetChild() is ModifierQueryNode)
+            {
+                leftParenthensis = "(";
+                rightParenthensis = ")";
+            }
+
+            if (GetChild() is BooleanQueryNode)
+            {
+                return this.modifier.ToLargeString() + leftParenthensis
+                    + GetChild().ToQueryString(escapeSyntaxParser) + rightParenthensis;
+            }
+            else
+            {
+                return this.modifier.ToDigitString() + leftParenthensis
+                    + GetChild().ToQueryString(escapeSyntaxParser) + rightParenthensis;
+            }
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            ModifierQueryNode clone = (ModifierQueryNode)base.CloneTree();
+
+            clone.modifier = this.modifier;
+
+            return clone;
+        }
+
+        public void setChild(IQueryNode child)
+        {
+            List<IQueryNode> list = new List<IQueryNode>();
+            list.Add(child);
+            this.Set(list);
+        }
+    }
+
+    /**
+   * Modifier type: such as required (REQ), prohibited (NOT)
+   */
+    public enum Modifier
+    {
+        MOD_NONE,
+        MOD_NOT,
+        MOD_REQ
+    }
+
+    public static class ModifierExtensions
+    {
+        // LUCENENET TODO: Work out how to override ToString() (or test this) so this string can be made
+        //public static string ToString()
+        //{
+        //    switch (this)
+        //    {
+        //        case MOD_NONE:
+        //            return "MOD_NONE";
+        //        case MOD_NOT:
+        //            return "MOD_NOT";
+        //        case MOD_REQ:
+        //            return "MOD_REQ";
+        //    }
+        //    // this code is never executed
+        //    return "MOD_DEFAULT";
+        //}
+
+        public static string ToDigitString(this Modifier modifier)
+        {
+            switch (modifier)
+            {
+                case Modifier.MOD_NONE:
+                    return "";
+                case Modifier.MOD_NOT:
+                    return "-";
+                case Modifier.MOD_REQ:
+                    return "+";
+            }
+            // this code is never executed
+            return "";
+        }
+
+        public static string ToLargeString(this Modifier modifier)
+        {
+            switch (modifier)
+            {
+                case Modifier.MOD_NONE:
+                    return "";
+                case Modifier.MOD_NOT:
+                    return "NOT ";
+                case Modifier.MOD_REQ:
+                    return "+";
+            }
+            // this code is never executed
+            return "";
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
new file mode 100644
index 0000000..d321df8
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
@@ -0,0 +1,42 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link NoTokenFoundQueryNode} is used if a term is convert into no tokens
+    /// by the tokenizer/lemmatizer/analyzer (null).
+    /// </summary>
+    public class NoTokenFoundQueryNode : DeletedQueryNode
+    {
+        //public NoTokenFoundQueryNode()
+        //{
+        //}
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escaper)
+        {
+            return "[NTF]";
+        }
+
+
+        public override string ToString()
+        {
+            return "<notokenfound/>";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            NoTokenFoundQueryNode clone = (NoTokenFoundQueryNode)base.CloneTree();
+
+            // nothing to do here
+
+            return clone;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
new file mode 100644
index 0000000..fcae411
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
@@ -0,0 +1,75 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link OpaqueQueryNode} is used for specify values that are not supposed to
+    /// be parsed by the parser. For example: and XPATH query in the middle of a
+    /// query string a b @xpath:'/bookstore/book[1]/title' c d
+    /// </summary>
+    public class OpaqueQueryNode : QueryNodeImpl
+    {
+        private string schema = null;
+
+        private string value = null;
+
+        /**
+         * @param schema
+         *          - schema identifier
+         * @param value
+         *          - value that was not parsed
+         */
+        public OpaqueQueryNode(string schema, string value)
+        {
+            this.SetLeaf(true);
+
+            this.schema = schema;
+            this.value = value;
+
+        }
+
+
+        public override string ToString()
+        {
+            return "<opaque schema='" + this.schema + "' value='" + this.value + "'/>";
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            return "@" + this.schema + ":'" + this.value + "'";
+        }
+
+
+        public override IQueryNode CloneTree()
+        {
+            OpaqueQueryNode clone = (OpaqueQueryNode)base.CloneTree();
+
+            clone.schema = this.schema;
+            clone.value = this.value;
+
+            return clone;
+        }
+
+        /**
+         * @return the schema
+         */
+        public string GetSchema()
+        {
+            return this.schema;
+        }
+
+        /**
+         * @return the value
+         */
+        public string GetValue()
+        {
+            return this.value;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
new file mode 100644
index 0000000..edd3577
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
@@ -0,0 +1,68 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    /// <summary>
+    /// A {@link OrQueryNode} represents an OR boolean operation performed on a list
+    /// of nodes.
+    /// </summary>
+    public class OrQueryNode : BooleanQueryNode
+    {
+        /**
+   * @param clauses
+   *          - the query nodes to be or'ed
+   */
+        public OrQueryNode(IList<IQueryNode> clauses)
+            : base(clauses)
+        {
+            if ((clauses == null) || (clauses.Count == 0))
+            {
+                throw new ArgumentException(
+                    "OR query must have at least one clause");
+            }
+        }
+
+        public override string ToString()
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "<boolean operation='or'/>";
+            StringBuilder sb = new StringBuilder();
+            sb.Append("<boolean operation='or'>");
+            foreach (IQueryNode child in GetChildren())
+            {
+                sb.Append("\n");
+                sb.Append(child.ToString());
+
+            }
+            sb.Append("\n</boolean>");
+            return sb.ToString();
+        }
+
+
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+        {
+            if (GetChildren() == null || GetChildren().Count == 0)
+                return "";
+
+            StringBuilder sb = new StringBuilder();
+            string filler = "";
+            for (IEnumerator<IQueryNode> it = GetChildren().GetEnumerator(); it.MoveNext();)
+            {
+                sb.Append(filler).Append(it.Current.ToQueryString(escapeSyntaxParser));
+                filler = " OR ";
+            }
+
+            // in case is root or the parent is a group node avoid parenthesis
+            if ((GetParent() != null && GetParent() is GroupQueryNode)
+                || IsRoot())
+                return sb.ToString();
+            else
+                return "( " + sb.ToString() + " )";
+        }
+    }
+}


[53/58] lucenenet git commit: Revert "HACK: (3rd) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context."

Posted by ni...@apache.org.
Revert "HACK: (3rd) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context."

This reverts commit a209d7183138d3f2179b03113626ce5708f6e835.


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

Branch: refs/heads/master
Commit: ee83c39216811efa306b254e53a6838edab8f976
Parents: ced03f5
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Dec 6 21:19:46 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Dec 6 21:19:46 2016 +0700

----------------------------------------------------------------------
 .../BaseCompressingDocValuesFormatTestCase.cs   |   3 -
 .../Index/BaseDocValuesFormatTestCase.cs        | 156 +++---
 .../Index/BaseIndexFileFormatTestCase.cs        |   2 +-
 .../Index/BasePostingsFormatTestCase.cs         |  14 +-
 .../Index/BaseStoredFieldsFormatTestCase.cs     |  22 +-
 .../Index/BaseTermVectorsFormatTestCase.cs      |  14 +-
 .../Util/BaseDocIdSetTestCase.cs                |  10 +-
 .../BlockTerms/TestFixedGapPostingsFormat.cs    |  63 ---
 .../Bloom/TestBloomPostingsFormat.cs            |  63 ---
 .../DiskDv/TestDiskDocValuesFormat.cs           | 526 ------------------
 .../IntBlock/TestFixedIntBlockPostingsFormat.cs |  63 ---
 .../TestVariableIntBlockPostingsFormat.cs       |  63 ---
 .../Memory/TestDirectDocValuesFormat.cs         | 501 ------------------
 .../Memory/TestDirectPostingsFormat.cs          |  63 ---
 .../Memory/TestFSTOrdPostingsFormat.cs          |  63 ---
 .../Memory/TestFSTOrdPulsing41PostingsFormat.cs |  63 ---
 .../Memory/TestFSTPostingsFormat.cs             |  63 ---
 .../Memory/TestFSTPulsing41PostingsFormat.cs    |  63 ---
 .../Memory/TestMemoryDocValuesFormat.cs         | 526 ------------------
 .../Memory/TestMemoryPostingsFormat.cs          |  62 ---
 .../Pulsing/TestPulsingPostingsFormat.cs        |  63 ---
 .../Sep/TestSepPostingsFormat.cs                |  62 ---
 .../SimpleText/TestSimpleTextDocValuesFormat.cs | 500 ------------------
 .../SimpleText/TestSimpleTextPostingsFormat.cs  |  63 ---
 .../TestSimpleTextStoredFieldsFormat.cs         |  88 ----
 .../TestSimpleTextTermVectorsFormat.cs          |  66 ---
 .../Index/Sorter/IndexSortingTest.cs            |  56 --
 .../Index/Sorter/SorterTestBase.cs              |  16 +-
 .../Index/Sorter/SortingAtomicReaderTest.cs     |  56 --
 .../Classic/TestQueryParser.cs                  | 250 ---------
 .../Ext/TestExtendableQueryParser.cs            | 369 -------------
 .../Compressing/AbstractTestCompressionMode.cs  |  14 +-
 .../AbstractTestLZ4CompressionMode.cs           |   8 +-
 .../TestCompressingStoredFieldsFormat.cs        |  89 ----
 .../TestCompressingTermVectorsFormat.cs         |  67 ---
 .../Compressing/TestFastCompressionMode.cs      |  81 ---
 .../Compressing/TestFastDecompressionMode.cs    |  81 ---
 .../Compressing/TestHighCompressionMode.cs      |  50 --
 .../Lucene3x/TestLucene3xPostingsFormat.cs      |  63 ---
 .../Lucene3x/TestLucene3xStoredFieldsFormat.cs  |  84 ---
 .../Lucene3x/TestLucene3xTermVectorsFormat.cs   |  67 ---
 .../Lucene40/TestLucene40DocValuesFormat.cs     | 501 ------------------
 .../Lucene40/TestLucene40PostingsFormat.cs      |  63 ---
 .../Lucene40/TestLucene40StoredFieldsFormat.cs  |  89 ----
 .../Lucene40/TestLucene40TermVectorsFormat.cs   |  67 ---
 .../Codecs/Lucene41/TestBlockPostingsFormat.cs  |  65 ---
 .../Lucene41/TestLucene41StoredFieldsFormat.cs  |  89 ----
 .../Lucene42/TestLucene42DocValuesFormat.cs     | 526 ------------------
 .../Lucene45/TestLucene45DocValuesFormat.cs     | 527 -------------------
 .../Perfield/TestPerFieldDocValuesFormat.cs     | 501 ------------------
 .../Perfield/TestPerFieldPostingsFormat.cs      |  51 --
 .../core/Index/TestDocValuesFormat.cs           | 503 ------------------
 .../core/Index/TestLogMergePolicy.cs            |  15 -
 .../core/Index/TestNumericDocValuesUpdates.cs   |   2 +-
 .../TestPersistentSnapshotDeletionPolicy.cs     |  50 --
 .../core/Index/TestPostingsFormat.cs            |  50 --
 .../core/Index/TestStoredFieldsFormat.cs        |  83 ---
 .../core/Index/TestTermVectorsFormat.cs         |  55 --
 .../core/Index/TestTieredMergePolicy.cs         |  14 -
 .../core/Search/BaseTestRangeFilter.cs          |   2 +-
 .../Spans/TestSpanExplanationsOfNonMatches.cs   | 214 --------
 .../TestComplexExplanationsOfNonMatches.cs      | 160 ------
 .../core/Search/TestExplanations.cs             |   2 +-
 .../core/Search/TestFieldCacheRangeFilter.cs    |  14 -
 .../core/Search/TestFieldCacheRewriteMethod.cs  |  17 -
 .../core/Search/TestMultiTermConstantScore.cs   |  14 -
 .../core/Search/TestSimpleExplanations.cs       |  19 -
 .../TestSimpleExplanationsOfNonMatches.cs       | 452 ----------------
 .../core/Search/TestTermRangeFilter.cs          |  14 -
 .../core/Support/TestLinkedHashMap.cs           |  80 ---
 .../core/Support/TestLurchTable.cs              | 176 +------
 .../core/Util/BaseSortTestCase.cs               |  18 +-
 .../core/Util/Packed/TestEliasFanoDocIdSet.cs   |  45 --
 .../core/Util/TestDocIdBitSet.cs                |  46 --
 .../core/Util/TestFixedBitSet.cs                |  45 --
 .../core/Util/TestInPlaceMergeSorter.cs         |  64 ---
 .../core/Util/TestIntroSorter.cs                |  64 ---
 .../core/Util/TestOpenBitSet.cs                 |  44 --
 .../core/Util/TestPForDeltaDocIdSet.cs          |  44 --
 src/Lucene.Net.Tests/core/Util/TestTimSorter.cs |  64 ---
 .../core/Util/TestWAH8DocIdSet.cs               |  44 --
 81 files changed, 159 insertions(+), 9330 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
index 54d7fd5..d88ecb4 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
@@ -45,7 +45,6 @@ namespace Lucene.Net.Index
             return size;
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestUniqueValuesCompression()
         {
             Directory dir = new RAMDirectory();
@@ -86,7 +85,6 @@ namespace Lucene.Net.Index
             Assert.IsTrue(size2 < size1 + 8 * 20);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDateCompression()
         {
             Directory dir = new RAMDirectory();
@@ -117,7 +115,6 @@ namespace Lucene.Net.Index
             Assert.IsTrue(size2 < size1 + (PackedInts.BitsRequired(day) * 50) / 8);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestSingleBigValueCompression()
         {
             Directory dir = new RAMDirectory();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
index fa46ef8..ebc4c19 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
@@ -84,7 +84,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestOneNumber()
         {
             Directory directory = NewDirectory();
@@ -119,7 +119,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestOneFloat()
         {
             Directory directory = NewDirectory();
@@ -154,7 +154,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwoNumbers()
         {
             Directory directory = NewDirectory();
@@ -192,7 +192,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwoBinaryValues()
         {
             Directory directory = NewDirectory();
@@ -233,7 +233,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwoFieldsMixed()
         {
             Directory directory = NewDirectory();
@@ -273,7 +273,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestThreeFieldsMixed()
         {
             Directory directory = NewDirectory();
@@ -318,7 +318,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestThreeFieldsMixed2()
         {
             Directory directory = NewDirectory();
@@ -363,7 +363,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwoDocumentsNumeric()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -392,7 +392,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwoDocumentsMerged()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -436,7 +436,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBigNumericRange()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -465,7 +465,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBigNumericRange2()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -494,7 +494,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -534,7 +534,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBytesTwoDocumentsMerged()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -580,7 +580,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -620,7 +620,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedBytesTwoDocuments()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -652,7 +652,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedBytesThreeDocuments()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -691,7 +691,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedBytesTwoDocumentsMerged()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -742,7 +742,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedMergeAwayAllValues()
         {
             Directory directory = NewDirectory();
@@ -784,7 +784,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBytesWithNewline()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -810,7 +810,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestMissingSortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -843,7 +843,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedTermsEnum()
         {
             Directory directory = NewDirectory();
@@ -916,7 +916,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestEmptySortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -948,7 +948,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestEmptyBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -980,7 +980,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestVeryLargeButLegalBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1009,7 +1009,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestVeryLargeButLegalSortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1037,7 +1037,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestCodecUsesOwnBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1065,7 +1065,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestCodecUsesOwnSortedBytes()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1093,7 +1093,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestCodecUsesOwnBytesEachTime()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1128,7 +1128,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestCodecUsesOwnSortedBytesEachTime()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -1166,7 +1166,7 @@ namespace Lucene.Net.Index
         /*
          * Simple test case to show how to use the API
          */
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestDocValuesSimple()
         {
             Directory dir = NewDirectory();
@@ -1211,7 +1211,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestRandomSortedBytes()
         {
             Directory dir = NewDirectory();
@@ -1488,7 +1488,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBooleanNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1498,7 +1498,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestByteNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1508,7 +1508,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestByteMissingVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1518,7 +1518,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestShortNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1528,7 +1528,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestShortMissingVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1538,7 +1538,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestIntNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1548,7 +1548,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestIntMissingVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1558,7 +1558,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestLongNumericsVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1568,7 +1568,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestLongMissingVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1643,7 +1643,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBinaryFixedLengthVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1654,7 +1654,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBinaryVariableLengthVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1788,7 +1788,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedFixedLengthVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1799,7 +1799,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedFixedLengthVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1810,7 +1810,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedVariableLengthVsFieldCache()
         {
             int numIterations = AtLeast(1);
@@ -1820,7 +1820,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedVariableLengthVsStoredFields()
         {
             int numIterations = AtLeast(1);
@@ -1830,7 +1830,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetOneValue()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1858,7 +1858,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetTwoFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1896,7 +1896,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetTwoDocumentsMerged()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1941,7 +1941,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetTwoValues()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1974,7 +1974,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetTwoValuesUnordered()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2007,7 +2007,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetThreeValuesTwoDocs()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2059,7 +2059,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetTwoDocumentsLastMissing()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2094,7 +2094,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetTwoDocumentsLastMissingMerge()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2131,7 +2131,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetTwoDocumentsFirstMissing()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2167,7 +2167,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetTwoDocumentsFirstMissingMerge()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2204,7 +2204,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetMergeAwayAllValues()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2235,7 +2235,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetTermsEnum()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2391,7 +2391,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetFixedLengthVsStoredFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2403,7 +2403,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetVariableLengthVsStoredFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2414,7 +2414,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetFixedLengthSingleValuedVsStoredFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2426,7 +2426,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetVariableLengthSingleValuedVsStoredFields()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2648,7 +2648,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetFixedLengthVsUninvertedField()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2660,7 +2660,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestSortedSetVariableLengthVsUninvertedField()
         {
             AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2671,7 +2671,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestGCDCompression()
         {
             int numIterations = AtLeast(1);
@@ -2704,13 +2704,13 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestZeros()
         {
             DoTestNumericsVsStoredFields(0, 0);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestZeroOrMin()
         {
             // try to make GCD compression fail if the format did not anticipate that
@@ -2738,7 +2738,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwoNumbersOneMissing()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2769,7 +2769,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwoNumbersOneMissingWithMerging()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2801,7 +2801,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestThreeNumbersOneMissingWithMerging()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2839,7 +2839,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwoBytesOneMissing()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2873,7 +2873,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestTwoBytesOneMissingWithMerging()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2908,7 +2908,7 @@ namespace Lucene.Net.Index
             directory.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestThreeBytesOneMissingWithMerging()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2951,7 +2951,7 @@ namespace Lucene.Net.Index
         }
 
         // LUCENE-4853
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestHugeBinaryValues()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
@@ -3072,7 +3072,7 @@ namespace Lucene.Net.Index
         }
 
         // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestHugeBinaryValueLimit()
         {
             // We only test DVFormats that have a limit
@@ -3157,7 +3157,7 @@ namespace Lucene.Net.Index
         /// <summary>
         /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
         /// </summary>
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestThreads()
         {
             Directory dir = NewDirectory();
@@ -3276,7 +3276,7 @@ namespace Lucene.Net.Index
         /// <summary>
         /// Tests dv against stored fields with threads (all types + missing)
         /// </summary>
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestThreads2()
         {
             AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -3466,7 +3466,7 @@ namespace Lucene.Net.Index
         }
 
         // LUCENE-5218
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestEmptyBinaryValueOnPageSizes()
         {
             // Test larger and larger power-of-two sized values,

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
index 9a49a6f..d65a88b 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
@@ -90,7 +90,7 @@ namespace Lucene.Net.Index
         /// <summary>
         /// The purpose of this test is to make sure that bulk merge doesn't accumulate useless data over runs.
         /// </summary>
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestMergeStability()
         {
             Directory dir = NewDirectory();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
index ffef930..b9dfb8b 100644
--- a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
@@ -1245,43 +1245,43 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         public virtual void TestDocsOnly()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_ONLY, false);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         public virtual void TestDocsAndFreqs()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS, false);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         public virtual void TestDocsAndFreqsAndPositions()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS, false);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         public virtual void TestDocsAndFreqsAndPositionsAndPayloads()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS, true);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         public virtual void TestDocsAndFreqsAndPositionsAndOffsets()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS, false);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         public virtual void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
         {
             TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS, true);
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         public virtual void TestRandom()
         {
             int iters = 5;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
index 2acb5fa..a63eb84 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
@@ -74,7 +74,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestRandomStoredFields()
         {
             Directory dir = NewDirectory();
@@ -190,7 +190,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         // LUCENE-1727: make sure doc fields are stored in order
         public virtual void TestStoredFieldsOrder()
         {
@@ -227,7 +227,7 @@ namespace Lucene.Net.Index
             d.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         // LUCENE-1219
         public virtual void TestBinaryFieldOffsetLength()
         {
@@ -261,7 +261,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestNumericField()
         {
             Directory dir = NewDirectory();
@@ -346,7 +346,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestIndexedBit()
         {
             Directory dir = NewDirectory();
@@ -365,7 +365,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestReadSkip()
         {
             Directory dir = NewDirectory();
@@ -420,7 +420,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test, Timeout(300000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         public virtual void TestEmptyDocs()
         {
             Directory dir = NewDirectory();
@@ -449,7 +449,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test, Timeout(300000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         public virtual void TestConcurrentReads()
         {
             Directory dir = NewDirectory();
@@ -564,7 +564,7 @@ namespace Lucene.Net.Index
             return result;
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestWriteReadMerge()
         {
             // get another codec, other than the default: so we are merging segments across different codecs
@@ -670,7 +670,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test, LongRunningTest, Timeout(int.MaxValue)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LongRunningTest, Timeout(int.MaxValue)]
         public virtual void TestBigDocuments()
         {
             // "big" as "much bigger than the chunk size"
@@ -747,7 +747,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestBulkMergeWithDeletes()
         {
             int numDocs = AtLeast(200);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
index 5e5b20e..85207ad 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
@@ -668,7 +668,7 @@ namespace Lucene.Net.Index
             return (new IndexSearcher(reader)).Search(new TermQuery(new Term("id", id)), 1).ScoreDocs[0].Doc;
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         // only one doc with vectors
         public virtual void TestRareVectors()
         {
@@ -715,7 +715,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestHighFreqs()
         {
             RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 3, 5);
@@ -737,7 +737,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test, LongRunningTest, Timeout(int.MaxValue)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, LongRunningTest, Timeout(int.MaxValue)]
         public virtual void TestLotsOfFields()
         {
             RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 500, 10);
@@ -755,7 +755,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test, Timeout(300000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test, Timeout(300000)]
         // different options for the same field
         public virtual void TestMixedOptions()
         {
@@ -790,7 +790,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestRandom()
         {
             RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 5, 20);
@@ -817,7 +817,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestMerge()
         {
             RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 5, 20);
@@ -866,7 +866,7 @@ namespace Lucene.Net.Index
             }
         }
 
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         // run random tests from different threads to make sure the per-thread clones
         // don't share mutable data
         public virtual void TestClone()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs b/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
index e69ed7c..2cfe630 100644
--- a/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
@@ -77,7 +77,7 @@ namespace Lucene.Net.Util
         /// <summary>
         /// Test length=0.
         /// </summary>
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void TestNoBit()
         {
             BitArray bs = new BitArray(1);
@@ -88,7 +88,7 @@ namespace Lucene.Net.Util
         /// <summary>
         /// Test length=1.
         /// </summary>
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void Test1Bit()
         {
             BitArray bs = new BitArray(1);
@@ -103,7 +103,7 @@ namespace Lucene.Net.Util
         /// <summary>
         /// Test length=2.
         /// </summary>
-        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+        [Test]
         public virtual void Test2Bits()
         {
             BitArray bs = new BitArray(2);
@@ -122,8 +122,8 @@ namespace Lucene.Net.Util
         /// <summary>
         /// Compare the content of the set against a <seealso cref="BitSet"/>.
         /// </summary>
-        // [Test, Timeout(150000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
-        //[LongRunningTest]
+        [Test, Timeout(150000)]
+        [LongRunningTest]
         public virtual void TestAgainstBitSet()
         {
             int numBits = TestUtil.NextInt(Random(), 100, 1 << 20);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
index 6d913b5..a66f96c 100644
--- a/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
@@ -38,68 +38,5 @@ namespace Lucene.Net.Codecs.BlockTerms
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
index d19e11a..d4e1286 100644
--- a/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
@@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Bloom
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
index cd69092..a0b868b 100644
--- a/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
@@ -36,531 +36,5 @@ namespace Lucene.Net.Codecs.DiskDV
                 return codec;
             }
         }
-
-
-        #region BaseCompressingDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestUniqueValuesCompression()
-        {
-            base.TestUniqueValuesCompression();
-        }
-
-        [Test]
-        public override void TestDateCompression()
-        {
-            base.TestDateCompression();
-        }
-
-        [Test]
-        public override void TestSingleBigValueCompression()
-        {
-            base.TestSingleBigValueCompression();
-        }
-
-        #endregion
-
-        #region BaseDocValuesFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestOneNumber()
-        {
-            base.TestOneNumber();
-        }
-
-        [Test]
-        public override void TestOneFloat()
-        {
-            base.TestOneFloat();
-        }
-
-        [Test]
-        public override void TestTwoNumbers()
-        {
-            base.TestTwoNumbers();
-        }
-
-        [Test]
-        public override void TestTwoBinaryValues()
-        {
-            base.TestTwoBinaryValues();
-        }
-
-        [Test]
-        public override void TestTwoFieldsMixed()
-        {
-            base.TestTwoFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed()
-        {
-            base.TestThreeFieldsMixed();
-        }
-
-        [Test]
-        public override void TestThreeFieldsMixed2()
-        {
-            base.TestThreeFieldsMixed2();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsNumeric()
-        {
-            base.TestTwoDocumentsNumeric();
-        }
-
-        [Test]
-        public override void TestTwoDocumentsMerged()
-        {
-            base.TestTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestBigNumericRange()
-        {
-            base.TestBigNumericRange();
-        }
-
-        [Test]
-        public override void TestBigNumericRange2()
-        {
-            base.TestBigNumericRange2();
-        }
-
-        [Test]
-        public override void TestBytes()
-        {
-            base.TestBytes();
-        }
-
-        [Test]
-        public override void TestBytesTwoDocumentsMerged()
-        {
-            base.TestBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedBytes()
-        {
-            base.TestSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocuments()
-        {
-            base.TestSortedBytesTwoDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesThreeDocuments()
-        {
-            base.TestSortedBytesThreeDocuments();
-        }
-
-        [Test]
-        public override void TestSortedBytesTwoDocumentsMerged()
-        {
-            base.TestSortedBytesTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedMergeAwayAllValues()
-        {
-            base.TestSortedMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestBytesWithNewline()
-        {
-            base.TestBytesWithNewline();
-        }
-
-        [Test]
-        public override void TestMissingSortedBytes()
-        {
-            base.TestMissingSortedBytes();
-        }
-
-        [Test]
-        public override void TestSortedTermsEnum()
-        {
-            base.TestSortedTermsEnum();
-        }
-
-        [Test]
-        public override void TestEmptySortedBytes()
-        {
-            base.TestEmptySortedBytes();
-        }
-
-        [Test]
-        public override void TestEmptyBytes()
-        {
-            base.TestEmptyBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalBytes()
-        {
-            base.TestVeryLargeButLegalBytes();
-        }
-
-        [Test]
-        public override void TestVeryLargeButLegalSortedBytes()
-        {
-            base.TestVeryLargeButLegalSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytes()
-        {
-            base.TestCodecUsesOwnBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytes()
-        {
-            base.TestCodecUsesOwnSortedBytes();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnBytesEachTime()
-        {
-            base.TestCodecUsesOwnBytesEachTime();
-        }
-
-        [Test]
-        public override void TestCodecUsesOwnSortedBytesEachTime()
-        {
-            base.TestCodecUsesOwnSortedBytesEachTime();
-        }
-
-        /*
-         * Simple test case to show how to use the API
-         */
-        [Test]
-        public override void TestDocValuesSimple()
-        {
-            base.TestDocValuesSimple();
-        }
-
-        [Test]
-        public override void TestRandomSortedBytes()
-        {
-            base.TestRandomSortedBytes();
-        }
-
-        [Test]
-        public override void TestBooleanNumericsVsStoredFields()
-        {
-            base.TestBooleanNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteNumericsVsStoredFields()
-        {
-            base.TestByteNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestByteMissingVsFieldCache()
-        {
-            base.TestByteMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestShortNumericsVsStoredFields()
-        {
-            base.TestShortNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestShortMissingVsFieldCache()
-        {
-            base.TestShortMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestIntNumericsVsStoredFields()
-        {
-            base.TestIntNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestIntMissingVsFieldCache()
-        {
-            base.TestIntMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestLongNumericsVsStoredFields()
-        {
-            base.TestLongNumericsVsStoredFields();
-        }
-
-        [Test]
-        public override void TestLongMissingVsFieldCache()
-        {
-            base.TestLongMissingVsFieldCache();
-        }
-
-        [Test]
-        public override void TestBinaryFixedLengthVsStoredFields()
-        {
-            base.TestBinaryFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestBinaryVariableLengthVsStoredFields()
-        {
-            base.TestBinaryVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsStoredFields()
-        {
-            base.TestSortedFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedFixedLengthVsFieldCache()
-        {
-            base.TestSortedFixedLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsFieldCache()
-        {
-            base.TestSortedVariableLengthVsFieldCache();
-        }
-
-        [Test]
-        public override void TestSortedVariableLengthVsStoredFields()
-        {
-            base.TestSortedVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetOneValue()
-        {
-            base.TestSortedSetOneValue();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoFields()
-        {
-            base.TestSortedSetTwoFields();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsMerged()
-        {
-            base.TestSortedSetTwoDocumentsMerged();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValues()
-        {
-            base.TestSortedSetTwoValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoValuesUnordered()
-        {
-            base.TestSortedSetTwoValuesUnordered();
-        }
-
-        [Test]
-        public override void TestSortedSetThreeValuesTwoDocs()
-        {
-            base.TestSortedSetThreeValuesTwoDocs();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissing()
-        {
-            base.TestSortedSetTwoDocumentsLastMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsLastMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsLastMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissing()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissing();
-        }
-
-        [Test]
-        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
-        {
-            base.TestSortedSetTwoDocumentsFirstMissingMerge();
-        }
-
-        [Test]
-        public override void TestSortedSetMergeAwayAllValues()
-        {
-            base.TestSortedSetMergeAwayAllValues();
-        }
-
-        [Test]
-        public override void TestSortedSetTermsEnum()
-        {
-            base.TestSortedSetTermsEnum();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
-        {
-            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
-        }
-
-        [Test]
-        public override void TestSortedSetFixedLengthVsUninvertedField()
-        {
-            base.TestSortedSetFixedLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestSortedSetVariableLengthVsUninvertedField()
-        {
-            base.TestSortedSetVariableLengthVsUninvertedField();
-        }
-
-        [Test]
-        public override void TestGCDCompression()
-        {
-            base.TestGCDCompression();
-        }
-
-        [Test]
-        public override void TestZeros()
-        {
-            base.TestZeros();
-        }
-
-        [Test]
-        public override void TestZeroOrMin()
-        {
-            base.TestZeroOrMin();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissing()
-        {
-            base.TestTwoNumbersOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoNumbersOneMissingWithMerging()
-        {
-            base.TestTwoNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeNumbersOneMissingWithMerging()
-        {
-            base.TestThreeNumbersOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissing()
-        {
-            base.TestTwoBytesOneMissing();
-        }
-
-        [Test]
-        public override void TestTwoBytesOneMissingWithMerging()
-        {
-            base.TestTwoBytesOneMissingWithMerging();
-        }
-
-        [Test]
-        public override void TestThreeBytesOneMissingWithMerging()
-        {
-            base.TestThreeBytesOneMissingWithMerging();
-        }
-
-        // LUCENE-4853
-        [Test]
-        public override void TestHugeBinaryValues()
-        {
-            base.TestHugeBinaryValues();
-        }
-
-        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
-        [Test]
-        public override void TestHugeBinaryValueLimit()
-        {
-            base.TestHugeBinaryValueLimit();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads()
-        {
-            base.TestThreads();
-        }
-
-        /// <summary>
-        /// Tests dv against stored fields with threads (all types + missing)
-        /// </summary>
-        [Test]
-        public override void TestThreads2()
-        {
-            base.TestThreads2();
-        }
-
-        // LUCENE-5218
-        [Test]
-        public override void TestEmptyBinaryValueOnPageSizes()
-        {
-            base.TestEmptyBinaryValueOnPageSizes();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
index 26b2684..1cd9e4b 100644
--- a/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
@@ -36,68 +36,5 @@ namespace Lucene.Net.Codecs.IntBlock
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ee83c392/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
index c255c90..0b74a74 100644
--- a/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
@@ -41,68 +41,5 @@ namespace Lucene.Net.Codecs.IntBlock
                 return codec;
             }
         }
-
-
-        #region BasePostingsFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestDocsOnly()
-        {
-            base.TestDocsOnly();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqs()
-        {
-            base.TestDocsAndFreqs();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositions()
-        {
-            base.TestDocsAndFreqsAndPositions();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndPayloads();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsets()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsets();
-        }
-
-        [Test]
-        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
-        {
-            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
-        }
-
-        [Test]
-        public override void TestRandom()
-        {
-            base.TestRandom();
-        }
-
-        #endregion
-
-        #region BaseIndexFileFormatTestCase
-        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
-        // context in Visual Studio. This fixes that with the minimum amount of code necessary
-        // to run them in the correct context without duplicating all of the tests.
-
-        [Test]
-        public override void TestMergeStability()
-        {
-            base.TestMergeStability();
-        }
-
-        #endregion
     }
 }
\ No newline at end of file


[14/58] lucenenet git commit: QueryParser.Flexible Refactor: Made QueryParserHelper, QueryTreeBuilder, IQueryBuilder generic to avoid casting and duplicate Builder.Build() definitions during usage (that weren't necessary in Java)

Posted by ni...@apache.org.
QueryParser.Flexible Refactor: Made QueryParserHelper, QueryTreeBuilder, IQueryBuilder generic to avoid casting and duplicate Builder.Build() definitions during usage (that weren't necessary in Java)


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

Branch: refs/heads/master
Commit: 97a09054aac23615abe439b00395f30c3d80b881
Parents: 01233db
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Nov 29 10:45:56 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Nov 29 10:45:56 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Builders/QueryBuilder.cs      |  5 +-
 .../Flexible/Core/Builders/QueryTreeBuilder.cs  | 34 +++++------
 .../Flexible/Core/QueryParserHelper.cs          | 12 ++--
 .../Standard/Builders/AnyQueryNodeBuilder.cs    | 16 ++---
 .../Builders/BooleanQueryNodeBuilder.cs         | 16 ++---
 .../Standard/Builders/BoostQueryNodeBuilder.cs  | 16 ++---
 .../Standard/Builders/DummyQueryNodeBuilder.cs  | 14 ++---
 .../Standard/Builders/FieldQueryNodeBuilder.cs  | 14 ++---
 .../Standard/Builders/FuzzyQueryNodeBuilder.cs  | 14 ++---
 .../Standard/Builders/GroupQueryNodeBuilder.cs  | 16 ++---
 .../Builders/MatchAllDocsQueryNodeBuilder.cs    | 14 ++---
 .../Builders/MatchNoDocsQueryNodeBuilder.cs     | 14 ++---
 .../Builders/ModifierQueryNodeBuilder.cs        | 16 ++---
 .../Builders/MultiPhraseQueryNodeBuilder.cs     | 16 ++---
 .../Builders/NumericRangeQueryNodeBuilder.cs    | 14 ++---
 .../Standard/Builders/PhraseQueryNodeBuilder.cs | 16 ++---
 .../Builders/PrefixWildcardQueryNodeBuilder.cs  | 14 ++---
 .../Standard/Builders/RegexpQueryNodeBuilder.cs | 16 ++---
 .../Standard/Builders/SlopQueryNodeBuilder.cs   | 16 ++---
 .../Builders/StandardBooleanQueryNodeBuilder.cs | 16 ++---
 .../Standard/Builders/StandardQueryBuilder.cs   |  6 +-
 .../Builders/StandardQueryTreeBuilder.cs        | 18 +++---
 .../Builders/TermRangeQueryNodeBuilder.cs       | 14 ++---
 .../Builders/WildcardQueryNodeBuilder.cs        | 14 ++---
 .../Flexible/Standard/StandardQueryParser.cs    |  6 +-
 .../Core/Builders/TestQueryTreeBuilder.cs       |  7 ++-
 .../Precedence/TestPrecedenceQueryParser.cs     | 64 ++++++++++----------
 .../Flexible/Spans/SpanOrQueryNodeBuilder.cs    | 16 ++---
 .../Flexible/Spans/SpanTermQueryNodeBuilder.cs  | 14 ++---
 .../Flexible/Spans/SpansQueryTreeBuilder.cs     | 26 ++++----
 .../Flexible/Standard/TestMultiFieldQPHelper.cs | 56 ++++++++---------
 .../Flexible/Standard/TestNumericQueryParser.cs |  2 +-
 .../Flexible/Standard/TestQPHelper.cs           | 42 ++++++-------
 .../Flexible/Standard/TestStandardQP.cs         |  2 +-
 34 files changed, 302 insertions(+), 294 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
index 4a572aa..5407858 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryBuilder.cs
@@ -25,13 +25,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
     /// 
     /// <seealso cref="QueryTreeBuilder"/>
     /// </summary>
-    public interface IQueryBuilder// <TQuery> // LUCENENET specific - made generic so we don't need to deal with cast
+    public interface IQueryBuilder<TQuery> // LUCENENET specific - made generic so we don't need to deal with cast
     {
         /// <summary>
         /// Builds some kind of object from a query tree.
         /// </summary>
         /// <param name="queryNode">the query tree root node</param>
         /// <returns>some object generated from the query tree</returns>
-        object Build(IQueryNode queryNode);
+        /*object*/
+        TQuery Build(IQueryNode queryNode); // LUCENENET specific - made return type generic so we don't need to deal with cast
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
index 41304c3..c21aadb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
@@ -54,17 +54,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
     /// </para>
     /// <seealso cref="IQueryBuilder"/>
     /// </summary>
-    public class QueryTreeBuilder : IQueryBuilder
+    public class QueryTreeBuilder<TQuery> : IQueryBuilder<TQuery>
     {
         /**
    * This tag is used to tag the nodes in a query tree with the built objects
    * produced from their own associated builder.
    */
-        public static readonly string QUERY_TREE_BUILDER_TAGID = typeof(QueryTreeBuilder).Name;
+        public static readonly string QUERY_TREE_BUILDER_TAGID = typeof(QueryTreeBuilder<TQuery>).Name;
 
-        private IDictionary<Type, IQueryBuilder> queryNodeBuilders;
+        private IDictionary<Type, IQueryBuilder<TQuery>> queryNodeBuilders;
 
-        private IDictionary<string, IQueryBuilder> fieldNameBuilders;
+        private IDictionary<string, IQueryBuilder<TQuery>> fieldNameBuilders;
 
         /**
          * {@link QueryTreeBuilder} constructor.
@@ -80,12 +80,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
          * @param fieldName the field name
          * @param builder the builder to be associated
          */
-        public void SetBuilder(string fieldName, IQueryBuilder builder)
+        public void SetBuilder(string fieldName, IQueryBuilder<TQuery> builder)
         {
 
             if (this.fieldNameBuilders == null)
             {
-                this.fieldNameBuilders = new Dictionary<string, IQueryBuilder>();
+                this.fieldNameBuilders = new Dictionary<string, IQueryBuilder<TQuery>>();
             }
 
             this.fieldNameBuilders[fieldName] = builder;
@@ -98,12 +98,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
          * @param builder the builder to be associated
          */
         public void SetBuilder(Type queryNodeClass,
-            IQueryBuilder builder)
+            IQueryBuilder<TQuery> builder)
         {
 
             if (this.queryNodeBuilders == null)
             {
-                this.queryNodeBuilders = new Dictionary<Type, IQueryBuilder>();
+                this.queryNodeBuilders = new Dictionary<Type, IQueryBuilder<TQuery>>();
             }
 
             this.queryNodeBuilders[queryNodeClass] = builder;
@@ -115,9 +115,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 
             if (node != null)
             {
-                IQueryBuilder builder = GetBuilder(node);
+                IQueryBuilder<TQuery> builder = GetBuilder(node);
 
-                if (!(builder is QueryTreeBuilder))
+                if (!(builder is QueryTreeBuilder<TQuery>))
                 {
                     IList<IQueryNode> children = node.GetChildren();
 
@@ -139,9 +139,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 
         }
 
-        private IQueryBuilder GetBuilder(IQueryNode node)
+        private IQueryBuilder<TQuery> GetBuilder(IQueryNode node)
         {
-            IQueryBuilder builder = null;
+            IQueryBuilder<TQuery> builder = null;
 
             if (this.fieldNameBuilders != null && node is IFieldableNode)
             {
@@ -191,7 +191,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 
         }
 
-        private void ProcessNode(IQueryNode node, IQueryBuilder builder)
+        private void ProcessNode(IQueryNode node, IQueryBuilder<TQuery> builder)
         {
 
             if (builder == null)
@@ -213,12 +213,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 
         }
 
-        private IQueryBuilder GetQueryBuilder(Type clazz)
+        private IQueryBuilder<TQuery> GetQueryBuilder(Type clazz)
         {
 
             if (typeof(IQueryNode).IsAssignableFrom(clazz))
             {
-                IQueryBuilder result;
+                IQueryBuilder<TQuery> result;
                 this.queryNodeBuilders.TryGetValue(clazz, out result);
                 return result;
                 //return this.queryNodeBuilders.get(clazz);
@@ -241,11 +241,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
          *         builder associated to it
          */
 
-        public virtual object Build(IQueryNode queryNode)
+        public virtual /*object*/ TQuery Build(IQueryNode queryNode)
         {
             Process(queryNode);
 
-            return queryNode.GetTag(QUERY_TREE_BUILDER_TAGID);
+            return (TQuery)queryNode.GetTag(QUERY_TREE_BUILDER_TAGID);
 
         }
     }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
index 6bb9658..8d60978 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
@@ -24,13 +24,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
     /// <seealso cref="ISyntaxParser"/>
     /// <seealso cref="QueryBuilder"/>
     /// <seealso cref="QueryConfigHandler"/>
-    public class QueryParserHelper // LUCENENET TODO: Make this class generic so we can avoid the cast (to Query) on the Parse method
+    public class QueryParserHelper<TQuery> // Made this class generic so we can avoid the cast (to Query) on the Parse method
     {
         private IQueryNodeProcessor processor;
 
         private ISyntaxParser syntaxParser;
 
-        private IQueryBuilder builder;
+        private IQueryBuilder<TQuery> builder;
 
         private QueryConfigHandler config;
 
@@ -54,7 +54,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see QueryConfigHandler
          */
         public QueryParserHelper(QueryConfigHandler queryConfigHandler, ISyntaxParser syntaxParser, IQueryNodeProcessor processor,
-            IQueryBuilder builder)
+            IQueryBuilder<TQuery> builder)
         {
             this.syntaxParser = syntaxParser;
             this.config = queryConfigHandler;
@@ -136,7 +136,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see #getQueryBuilder()
          * @see QueryBuilder
          */
-        public void SetQueryBuilder(IQueryBuilder queryBuilder)
+        public void SetQueryBuilder(IQueryBuilder<TQuery> queryBuilder)
         {
 
             if (queryBuilder == null)
@@ -173,7 +173,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @see #setQueryBuilder(QueryBuilder)
          * @see QueryBuilder
          */
-        public IQueryBuilder GetQueryBuilder()
+        public IQueryBuilder<TQuery> GetQueryBuilder()
         {
             return this.builder;
         }
@@ -242,7 +242,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core
          * @throws QueryNodeException
          *           if something wrong happens along the three phases
          */
-        public virtual object Parse(string query, string defaultField)
+        public virtual /*object*/ TQuery Parse(string query, string defaultField)
         {
             IQueryNode queryTree = GetSyntaxParser().Parse(query, defaultField);
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
index a31e56a..142a88e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
@@ -36,7 +36,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
                 foreach (IQueryNode child in children)
                 {
-                    object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                    object obj = child.GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
 
                     if (obj != null)
                     {
@@ -69,12 +69,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
index 0486e89..81576d3 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
@@ -43,7 +43,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
                 foreach (IQueryNode child in children)
                 {
-                    object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                    object obj = child.GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
 
                     if (obj != null)
                     {
@@ -74,13 +74,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
 
         private static BooleanClause.Occur GetModifierValue(IQueryNode node)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
index eff296e..82a5ac9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
@@ -33,19 +33,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             }
 
             Query query = (Query)child
-                .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
             query.Boost = boostNode.GetValue();
 
             return query;
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
index c2a5dfe..1587559 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
@@ -35,12 +35,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             return null;
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
index f3a112a..8393826 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
@@ -29,12 +29,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                 .GetTextAsString()));
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
index 549b2a2..77b43c0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
@@ -37,12 +37,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
index faafdfb..af8d121 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
@@ -27,16 +27,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             GroupQueryNode groupNode = (GroupQueryNode)queryNode;
 
             return (Query)(groupNode).GetChild().GetTag(
-                QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
index cf930d3..0a9dfec 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
@@ -41,12 +41,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
index 7ad2c7b..25f5d6b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
@@ -41,13 +41,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
 
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
index 0911a0c..271ebca 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
@@ -27,16 +27,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             ModifierQueryNode modifierNode = (ModifierQueryNode)queryNode;
 
             return (Query)(modifierNode).GetChild().GetTag(
-                QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
index 7a22da8..81007e6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
@@ -41,7 +41,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                 {
                     FieldQueryNode termNode = (FieldQueryNode)child;
                     TermQuery termQuery = (TermQuery)termNode
-                        .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                        .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
 
                     //List<Term> termList = positionTermMap[termNode.GetPositionIncrement()];
                     //if (termList == null)
@@ -72,12 +72,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
index ce39a54..911aaea 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
@@ -80,12 +80,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             }
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
index d9129b4..09229f6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
@@ -35,7 +35,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
                 foreach (IQueryNode child in children)
                 {
                     TermQuery termQuery = (TermQuery)child
-                        .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                        .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
                     FieldQueryNode termNode = (FieldQueryNode)child;
 
                     phraseQuery.Add(termQuery.Term, termNode.GetPositionIncrement());
@@ -48,12 +48,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
index 2646b86..69371fb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
@@ -41,12 +41,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             return q;
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
index d3f0fa5..c138d8b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
@@ -28,7 +28,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             RegexpQueryNode regexpNode = (RegexpQueryNode)queryNode;
 
             RegexpQuery q = new RegexpQuery(new Term(regexpNode.FieldAsString,
-        regexpNode.TextToBytesRef()));
+                regexpNode.TextToBytesRef()));
 
             MultiTermQuery.RewriteMethod method = (MultiTermQuery.RewriteMethod)queryNode
                 .GetTag(MultiTermRewriteMethodProcessor.TAG_ID);
@@ -40,12 +40,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             return q;
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
index e64bb82..caeb118 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
@@ -28,7 +28,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             SlopQueryNode phraseSlopNode = (SlopQueryNode)queryNode;
 
             Query query = (Query)phraseSlopNode.GetChild().GetTag(
-                QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
 
             if (query is PhraseQuery)
             {
@@ -44,12 +44,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
index 3fc51ba..7d82b99 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
@@ -42,7 +42,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
                 foreach (IQueryNode child in children)
                 {
-                    object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                    object obj = child.GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
 
                     if (obj != null)
                     {
@@ -72,13 +72,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
 
         private static BooleanClause.Occur GetModifierValue(IQueryNode node)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
index 3554ab8..fafda9a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
@@ -15,8 +15,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
     /// </summary>
     /// <seealso cref="IQueryBuilder"/>
     /// <seealso cref="QueryTreeBuilder"/>
-    public interface IStandardQueryBuilder : IQueryBuilder
+    public interface IStandardQueryBuilder : IQueryBuilder<Query>
     {
-        new Query Build(IQueryNode queryNode);
+        // LUCENENET specific - we don't need to redeclare Build here because
+        // it already exists in the now generic IQueryBuilder
+        //Query Build(IQueryNode queryNode);
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
index f40040f..a99ae45 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
@@ -18,7 +18,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
     /// </summary>
     /// <seealso cref="QueryTreeBuilder"/>
     /// <seealso cref="StandardQueryNodeProcessorPipeline"/>
-    public class StandardQueryTreeBuilder : QueryTreeBuilder, IStandardQueryBuilder
+    public class StandardQueryTreeBuilder : QueryTreeBuilder<Query>, IStandardQueryBuilder
     {
         public StandardQueryTreeBuilder()
         {
@@ -45,16 +45,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        public override object Build(IQueryNode queryNode)
+        public override /*object*/ Query Build(IQueryNode queryNode)
         {
             return base.Build(queryNode);
         }
-        /// <summary>
-        /// LUCENENET specific overload for supporting IStandardQueryBuilder
-        /// </summary>
-        Query IStandardQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return (Query)Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IStandardQueryBuilder
+        ///// </summary>
+        //Query IStandardQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return (Query)Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
index f619137..965394e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
@@ -58,12 +58,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
index eb74378..4817427 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
@@ -40,12 +40,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
             return q;
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index f0f89b1..29e28f7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -16,7 +16,7 @@ using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
-    public class StandardQueryParser : QueryParserHelper, ICommonQueryParserConfiguration
+    public class StandardQueryParser : QueryParserHelper<Query>, ICommonQueryParserConfiguration
     {
         
         /**
@@ -70,10 +70,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * @throws QueryNodeException
          *           if something wrong happens along the three phases
          */
-        public override /*Query*/ object Parse(string query, string defaultField) // LUCENENET TODO: Can this be return type Query?
+        public override Query Parse(string query, string defaultField)
         {
 
-            return (Query)base.Parse(query, defaultField);
+            return base.Parse(query, defaultField);
 
         }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
index 207502c..37e3a83 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
@@ -16,12 +16,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
         [Test]
         public virtual void TestSetFieldBuilder()
         {
-            QueryTreeBuilder qtb = new QueryTreeBuilder();
+            // LUCENENET TODO: Make additional non-generic QueryTreeBuilder of type object?
+            QueryTreeBuilder<object> qtb = new QueryTreeBuilder<object>();
             qtb.SetBuilder("field", new DummyBuilder());
             Object result = qtb.Build(new FieldQueryNode(new UnescapedCharSequence("field").ToString(), "foo", 0, 0));
             assertEquals("OK", result);
 
-            qtb = new QueryTreeBuilder();
+            qtb = new QueryTreeBuilder<object>();
             qtb.SetBuilder(typeof(DummyQueryNodeInterface), new DummyBuilder());
             result = qtb.Build(new DummyQueryNode());
             assertEquals("OK", result);
@@ -48,7 +49,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 
         }
 
-        private class DummyBuilder : IQueryBuilder
+        private class DummyBuilder : IQueryBuilder<object>
         {
             public virtual object Build(IQueryNode queryNode)
             {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
index 9c418a8..029f2bb 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
@@ -135,7 +135,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
 
         public Query GetQuery(string query, Analyzer a)
         {
-            return (Query)GetParser(a).Parse(query, "field"); // LUCENENET TODO: There was no cast here in the original - perhaps object is the wrong type on the interface
+            return GetParser(a).Parse(query, "field");
         }
 
         public void assertQueryEquals(string query, Analyzer a, string result)
@@ -154,7 +154,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         {
             PrecedenceQueryParser qp = GetParser(null);
             qp.LowercaseExpandedTerms = (lowercase);
-            Query q = (Query)qp.Parse(query, "field");
+            Query q = qp.Parse(query, "field");
             String s = q.ToString("field");
             if (!s.equals(result))
             {
@@ -166,7 +166,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         public void assertWildcardQueryEquals(String query, String result)
         {
             PrecedenceQueryParser qp = GetParser(null);
-            Query q = (Query)qp.Parse(query, "field");
+            Query q = qp.Parse(query, "field");
             String s = q.ToString("field");
             if (!s.equals(result))
             {
@@ -182,7 +182,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
             PrecedenceQueryParser qp = new PrecedenceQueryParser();
             qp.Analyzer = (a);
             qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
-            return (Query)qp.Parse(query, "field");
+            return qp.Parse(query, "field");
         }
 
         public void assertQueryEqualsDOA(String query, Analyzer a, String result)
@@ -508,7 +508,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         public void assertQueryEquals(PrecedenceQueryParser qp, String field, String query,
             String result)
         {
-            Query q = (Query)qp.Parse(query, field);
+            Query q = qp.Parse(query, field);
             String s = q.ToString(field);
             if (!s.equals(result))
             {
@@ -610,18 +610,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
 
             PrecedenceQueryParser qp = new PrecedenceQueryParser();
             qp.Analyzer = (oneStopAnalyzer);
-            Query q = (Query)qp.Parse("on^1.0", "field");
+            Query q = qp.Parse("on^1.0", "field");
             assertNotNull(q);
-            q = (Query)qp.Parse("\"hello\"^2.0", "field");
+            q = qp.Parse("\"hello\"^2.0", "field");
             assertNotNull(q);
             assertEquals(q.Boost, (float)2.0, (float)0.5);
-            q = (Query)qp.Parse("hello^2.0", "field");
+            q = qp.Parse("hello^2.0", "field");
             assertNotNull(q);
             assertEquals(q.Boost, (float)2.0, (float)0.5);
-            q = (Query)qp.Parse("\"on\"^1.0", "field");
+            q = qp.Parse("\"on\"^1.0", "field");
             assertNotNull(q);
 
-            q = (Query)GetParser(new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, MockTokenFilter.ENGLISH_STOPSET)).Parse("the^3",
+            q = GetParser(new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, MockTokenFilter.ENGLISH_STOPSET)).Parse("the^3",
                     "field");
             assertNotNull(q);
         }
@@ -670,49 +670,49 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         public void testPrecedence()
         {
             PrecedenceQueryParser parser = GetParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
-            Query query1 = (Query)parser.Parse("A AND B OR C AND D", "field");
-            Query query2 = (Query)parser.Parse("(A AND B) OR (C AND D)", "field");
+            Query query1 = parser.Parse("A AND B OR C AND D", "field");
+            Query query2 = parser.Parse("(A AND B) OR (C AND D)", "field");
             assertEquals(query1, query2);
 
-            query1 = (Query)parser.Parse("A OR B C", "field");
-            query2 = (Query)parser.Parse("(A B) C", "field");
+            query1 = parser.Parse("A OR B C", "field");
+            query2 = parser.Parse("(A B) C", "field");
             assertEquals(query1, query2);
 
-            query1 = (Query)parser.Parse("A AND B C", "field");
-            query2 = (Query)parser.Parse("(+A +B) C", "field");
+            query1 = parser.Parse("A AND B C", "field");
+            query2 = parser.Parse("(+A +B) C", "field");
             assertEquals(query1, query2);
 
-            query1 = (Query)parser.Parse("A AND NOT B", "field");
-            query2 = (Query)parser.Parse("+A -B", "field");
+            query1 = parser.Parse("A AND NOT B", "field");
+            query2 = parser.Parse("+A -B", "field");
             assertEquals(query1, query2);
 
-            query1 = (Query)parser.Parse("A OR NOT B", "field");
-            query2 = (Query)parser.Parse("A -B", "field");
+            query1 = parser.Parse("A OR NOT B", "field");
+            query2 = parser.Parse("A -B", "field");
             assertEquals(query1, query2);
 
-            query1 = (Query)parser.Parse("A OR NOT B AND C", "field");
-            query2 = (Query)parser.Parse("A (-B +C)", "field");
+            query1 = parser.Parse("A OR NOT B AND C", "field");
+            query2 = parser.Parse("A (-B +C)", "field");
             assertEquals(query1, query2);
 
             parser.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
-            query1 = (Query)parser.Parse("A AND B OR C AND D", "field");
-            query2 = (Query)parser.Parse("(A AND B) OR (C AND D)", "field");
+            query1 = parser.Parse("A AND B OR C AND D", "field");
+            query2 = parser.Parse("(A AND B) OR (C AND D)", "field");
             assertEquals(query1, query2);
 
-            query1 = (Query)parser.Parse("A AND B C", "field");
-            query2 = (Query)parser.Parse("(A B) C", "field");
+            query1 = parser.Parse("A AND B C", "field");
+            query2 = parser.Parse("(A B) C", "field");
             assertEquals(query1, query2);
 
-            query1 = (Query)parser.Parse("A AND B C", "field");
-            query2 = (Query)parser.Parse("(+A +B) C", "field");
+            query1 = parser.Parse("A AND B C", "field");
+            query2 = parser.Parse("(+A +B) C", "field");
             assertEquals(query1, query2);
 
-            query1 = (Query)parser.Parse("A AND NOT B", "field");
-            query2 = (Query)parser.Parse("+A -B", "field");
+            query1 = parser.Parse("A AND NOT B", "field");
+            query2 = parser.Parse("+A -B", "field");
             assertEquals(query1, query2);
 
-            query1 = (Query)parser.Parse("A AND NOT B OR C", "field");
-            query2 = (Query)parser.Parse("(+A -B) OR C", "field");
+            query1 = parser.Parse("A AND NOT B OR C", "field");
+            query2 = parser.Parse("(+A -B) OR C", "field");
             assertEquals(query1, query2);
 
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
index c93c267..19b8e02 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
@@ -32,19 +32,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
             foreach (IQueryNode child in children)
             {
                 spanQueries[i++] = (SpanQuery)child
-                    .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                    .GetTag(QueryTreeBuilder<Query>.QUERY_TREE_BUILDER_TAGID);
             }
 
             return new SpanOrQuery(spanQueries);
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
index 30946d2..e8868fe 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
@@ -28,13 +28,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
 
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        object IQueryBuilder.Build(IQueryNode queryNode)
-        {
-            return Build(queryNode);
-        }
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //object IQueryBuilder.Build(IQueryNode queryNode)
+        //{
+        //    return Build(queryNode);
+        //}
 
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
index 31d94db..1f63e97 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
@@ -18,7 +18,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
     /// - every BooleanQueryNode instance is delegated to the SpanOrQueryNodeBuilder
     /// - every FieldQueryNode instance is delegated to the SpanTermQueryNodeBuilder
     /// </summary>
-    public class SpansQueryTreeBuilder : QueryTreeBuilder, IStandardQueryBuilder
+    public class SpansQueryTreeBuilder : QueryTreeBuilder<Query>, IStandardQueryBuilder
     {
         public SpansQueryTreeBuilder()
         {
@@ -27,18 +27,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
 
         }
 
-
-        Query IStandardQueryBuilder.Build(IQueryNode queryTree)
+        public override Query Build(IQueryNode queryTree)
         {
-            return (Query)base.Build(queryTree);
+            return base.Build(queryTree);
         }
 
-        /// <summary>
-        /// LUCENENET specific overload for supporting IQueryBuilder
-        /// </summary>
-        public override object Build(IQueryNode queryTree)
-        {
-            return (Query)base.Build(queryTree);
-        }
+        //Query IStandardQueryBuilder.Build(IQueryNode queryTree)
+        //{
+        //    return (Query)base.Build(queryTree);
+        //}
+
+        ///// <summary>
+        ///// LUCENENET specific overload for supporting IQueryBuilder
+        ///// </summary>
+        //public override object Build(IQueryNode queryTree)
+        //{
+        //    return (Query)base.Build(queryTree);
+        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
index 84affc0..9ed9397 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
@@ -51,7 +51,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             mfqp.SetMultiFields(fields);
             mfqp.Analyzer = (a);
 
-            Query q = (Query)mfqp.Parse(qtxt, null);
+            Query q = mfqp.Parse(qtxt, null);
             assertEquals(expectedRes, q.toString());
 
             q = QueryParserUtil.Parse(qtxt, fields, occur, a);
@@ -67,61 +67,61 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             mfqp.SetMultiFields(fields);
             mfqp.Analyzer = (new MockAnalyzer(Random()));
 
-            Query q = (Query)mfqp.Parse("one", null);
+            Query q = mfqp.Parse("one", null);
             assertEquals("b:one t:one", q.toString());
 
-            q = (Query)mfqp.Parse("one two", null);
+            q = mfqp.Parse("one two", null);
             assertEquals("(b:one t:one) (b:two t:two)", q.toString());
 
-            q = (Query)mfqp.Parse("+one +two", null);
+            q = mfqp.Parse("+one +two", null);
             assertEquals("+(b:one t:one) +(b:two t:two)", q.toString());
 
-            q = (Query)mfqp.Parse("+one -two -three", null);
+            q = mfqp.Parse("+one -two -three", null);
             assertEquals("+(b:one t:one) -(b:two t:two) -(b:three t:three)", q
                 .toString());
 
-            q = (Query)mfqp.Parse("one^2 two", null);
+            q = mfqp.Parse("one^2 two", null);
             assertEquals("((b:one t:one)^2.0) (b:two t:two)", q.toString());
 
-            q = (Query)mfqp.Parse("one~ two", null);
+            q = mfqp.Parse("one~ two", null);
             assertEquals("(b:one~2 t:one~2) (b:two t:two)", q.toString());
 
-            q = (Query)mfqp.Parse("one~0.8 two^2", null);
+            q = mfqp.Parse("one~0.8 two^2", null);
             assertEquals("(b:one~0 t:one~0) ((b:two t:two)^2.0)", q.toString());
 
-            q = (Query)mfqp.Parse("one* two*", null);
+            q = mfqp.Parse("one* two*", null);
             assertEquals("(b:one* t:one*) (b:two* t:two*)", q.toString());
 
-            q = (Query)mfqp.Parse("[a TO c] two", null);
+            q = mfqp.Parse("[a TO c] two", null);
             assertEquals("(b:[a TO c] t:[a TO c]) (b:two t:two)", q.toString());
 
-            q = (Query)mfqp.Parse("w?ldcard", null);
+            q = mfqp.Parse("w?ldcard", null);
             assertEquals("b:w?ldcard t:w?ldcard", q.toString());
 
-            q = (Query)mfqp.Parse("\"foo bar\"", null);
+            q = mfqp.Parse("\"foo bar\"", null);
             assertEquals("b:\"foo bar\" t:\"foo bar\"", q.toString());
 
-            q = (Query)mfqp.Parse("\"aa bb cc\" \"dd ee\"", null);
+            q = mfqp.Parse("\"aa bb cc\" \"dd ee\"", null);
             assertEquals("(b:\"aa bb cc\" t:\"aa bb cc\") (b:\"dd ee\" t:\"dd ee\")", q
                 .toString());
 
-            q = (Query)mfqp.Parse("\"foo bar\"~4", null);
+            q = mfqp.Parse("\"foo bar\"~4", null);
             assertEquals("b:\"foo bar\"~4 t:\"foo bar\"~4", q.toString());
 
             // LUCENE-1213: QueryParser was ignoring slop when phrase
             // had a field.
-            q = (Query)mfqp.Parse("b:\"foo bar\"~4", null);
+            q = mfqp.Parse("b:\"foo bar\"~4", null);
             assertEquals("b:\"foo bar\"~4", q.toString());
 
             // make sure that terms which have a field are not touched:
-            q = (Query)mfqp.Parse("one f:two", null);
+            q = mfqp.Parse("one f:two", null);
             assertEquals("(b:one t:one) f:two", q.toString());
 
             // AND mode:
             mfqp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
-            q = (Query)mfqp.Parse("one two", null);
+            q = mfqp.Parse("one two", null);
             assertEquals("+(b:one t:one) +(b:two t:two)", q.toString());
-            q = (Query)mfqp.Parse("\"aa bb cc\" \"dd ee\"", null);
+            q = mfqp.Parse("\"aa bb cc\" \"dd ee\"", null);
             assertEquals("+(b:\"aa bb cc\" t:\"aa bb cc\") +(b:\"dd ee\" t:\"dd ee\")",
                 q.toString());
 
@@ -140,24 +140,24 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             mfqp.Analyzer = (new MockAnalyzer(Random()));
 
             // Check for simple
-            Query q = (Query)mfqp.Parse("one", null);
+            Query q = mfqp.Parse("one", null);
             assertEquals("b:one^5.0 t:one^10.0", q.toString());
 
             // Check for AND
-            q = (Query)mfqp.Parse("one AND two", null);
+            q = mfqp.Parse("one AND two", null);
             assertEquals("+(b:one^5.0 t:one^10.0) +(b:two^5.0 t:two^10.0)", q
                 .toString());
 
             // Check for OR
-            q = (Query)mfqp.Parse("one OR two", null);
+            q = mfqp.Parse("one OR two", null);
             assertEquals("(b:one^5.0 t:one^10.0) (b:two^5.0 t:two^10.0)", q.toString());
 
             // Check for AND and a field
-            q = (Query)mfqp.Parse("one AND two AND foo:test", null);
+            q = mfqp.Parse("one AND two AND foo:test", null);
             assertEquals("+(b:one^5.0 t:one^10.0) +(b:two^5.0 t:two^10.0) +foo:test", q
                 .toString());
 
-            q = (Query)mfqp.Parse("one^3 AND two^4", null);
+            q = mfqp.Parse("one^3 AND two^4", null);
             assertEquals("+((b:one^5.0 t:one^10.0)^3.0) +((b:two^5.0 t:two^10.0)^4.0)",
                 q.toString());
         }
@@ -334,15 +334,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             parser.SetMultiFields(fields);
             parser.Analyzer = (new AnalyzerReturningNull());
 
-            Query q = (Query)parser.Parse("bla AND blo", null);
+            Query q = parser.Parse("bla AND blo", null);
             assertEquals("+(f2:bla f3:bla) +(f2:blo f3:blo)", q.toString());
             // the following queries are not affected as their terms are not
             // analyzed anyway:
-            q = (Query)parser.Parse("bla*", null);
+            q = parser.Parse("bla*", null);
             assertEquals("f1:bla* f2:bla* f3:bla*", q.toString());
-            q = (Query)parser.Parse("bla~", null);
+            q = parser.Parse("bla~", null);
             assertEquals("f1:bla~2 f2:bla~2 f3:bla~2", q.toString());
-            q = (Query)parser.Parse("[a TO c]", null);
+            q = parser.Parse("[a TO c]", null);
             assertEquals("f1:[a TO c] f2:[a TO c] f3:[a TO c]", q.toString());
         }
 
@@ -362,7 +362,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             mfqp.SetMultiFields(new String[] { "body" });
             mfqp.Analyzer = (analyzer);
             mfqp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
-            Query q = (Query)mfqp.Parse("the footest", null);
+            Query q = mfqp.Parse("the footest", null);
             IndexReader ir = DirectoryReader.Open(ramDir);
             IndexSearcher @is = NewSearcher(ir);
             ScoreDoc[] hits = @is.Search(q, null, 1000).ScoreDocs;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index 29f6031..21aacb1 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -526,7 +526,7 @@
 //        {
 //            if (VERBOSE) Console.WriteLine("Parsing: " + queryStr);
 
-//            Query query = (Query)qp.Parse(queryStr, FIELD_NAME);
+//            Query query = qp.Parse(queryStr, FIELD_NAME);
 //            if (VERBOSE) Console.WriteLine("Querying: " + query);
 //            TopDocs topDocs = searcher.Search(query, 1000);
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
index fdf12e7..c59896f 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -192,14 +192,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         public Query GetQuery(String query, Analyzer a)
         {
-            return (Query)GetParser(a).Parse(query, "field");
+            return GetParser(a).Parse(query, "field");
         }
 
         public Query GetQueryAllowLeadingWildcard(String query, Analyzer a)
         {
             StandardQueryParser parser = GetParser(a);
             parser.AllowLeadingWildcard = (true);
-            return (Query)parser.Parse(query, "field");
+            return parser.Parse(query, "field");
         }
 
         public void assertQueryEquals(String query, Analyzer a, String result)
@@ -227,7 +227,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         public void assertQueryEquals(StandardQueryParser qp, String field,
             String query, String result)
         {
-            Query q = (Query)qp.Parse(query, field);
+            Query q = qp.Parse(query, field);
             String s = q.ToString(field);
             if (!s.equals(result))
             {
@@ -253,7 +253,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             StandardQueryParser qp = GetParser(null);
             qp.LowercaseExpandedTerms = (lowercase);
             qp.AllowLeadingWildcard = (allowLeadingWildcard);
-            Query q = (Query)qp.Parse(query, "field");
+            Query q = qp.Parse(query, "field");
             String s = q.ToString("field");
             if (!s.equals(result))
             {
@@ -271,7 +271,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         public void assertWildcardQueryEquals(String query, String result)
         {
             StandardQueryParser qp = GetParser(null);
-            Query q = (Query)qp.Parse(query, "field");
+            Query q = qp.Parse(query, "field");
             String s = q.ToString("field");
             if (!s.equals(result))
             {
@@ -288,7 +288,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             qp.Analyzer = (a);
             qp.SetDefaultOperator(/*StandardQueryConfigHandler.*/Operator.AND);
 
-            return (Query)qp.Parse(query, "field");
+            return qp.Parse(query, "field");
 
         }
 
@@ -306,15 +306,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         public void testConstantScoreAutoRewrite()
         {
             StandardQueryParser qp = new StandardQueryParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
-            Query q = (Query)qp.Parse("foo*bar", "field");
+            Query q = qp.Parse("foo*bar", "field");
             assertTrue(q is WildcardQuery);
             assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((MultiTermQuery)q).GetRewriteMethod());
 
-            q = (Query)qp.Parse("foo*", "field");
+            q = qp.Parse("foo*", "field");
             assertTrue(q is PrefixQuery);
             assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((MultiTermQuery)q).GetRewriteMethod());
 
-            q = (Query)qp.Parse("[a TO z]", "field");
+            q = qp.Parse("[a TO z]", "field");
             assertTrue(q is TermRangeQuery);
             assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((MultiTermQuery)q).GetRewriteMethod());
         }
@@ -1008,21 +1008,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (oneStopAnalyzer);
 
-            Query q = (Query)qp.Parse("on^1.0", "field");
+            Query q = qp.Parse("on^1.0", "field");
             assertNotNull(q);
-            q = (Query)qp.Parse("\"hello\"^2.0", "field");
+            q = qp.Parse("\"hello\"^2.0", "field");
             assertNotNull(q);
             assertEquals(q.Boost, (float)2.0, (float)0.5);
-            q = (Query)qp.Parse("hello^2.0", "field");
+            q = qp.Parse("hello^2.0", "field");
             assertNotNull(q);
             assertEquals(q.Boost, (float)2.0, (float)0.5);
-            q = (Query)qp.Parse("\"on\"^1.0", "field");
+            q = qp.Parse("\"on\"^1.0", "field");
             assertNotNull(q);
 
             StandardQueryParser qp2 = new StandardQueryParser();
             qp2.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, MockTokenFilter.ENGLISH_STOPSET));
 
-            q = (Query)qp2.Parse("the^3", "field");
+            q = qp2.Parse("the^3", "field");
             // "the" is a stop word so the result is an empty query:
             assertNotNull(q);
             assertEquals("", q.toString());
@@ -1106,8 +1106,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
 
-            Query query1 = (Query)qp.Parse("A AND B OR C AND D", "field");
-            Query query2 = (Query)qp.Parse("+A +B +C +D", "field");
+            Query query1 = qp.Parse("A AND B OR C AND D", "field");
+            Query query2 = qp.Parse("+A +B +C +D", "field");
 
             assertEquals(query1, query2);
         }
@@ -1264,15 +1264,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             CharacterRunAutomaton stopSet = new CharacterRunAutomaton(new RegExp("the|foo").ToAutomaton());
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true, stopSet));
 
-            Query result = (Query)qp.Parse("a:the OR a:foo", "a");
+            Query result = qp.Parse("a:the OR a:foo", "a");
             assertNotNull("result is null and it shouldn't be", result);
             assertTrue("result is not a BooleanQuery", result is BooleanQuery);
             assertTrue(((BooleanQuery)result).Clauses.size() + " does not equal: "
                 + 0, ((BooleanQuery)result).Clauses.size() == 0);
-            result = (Query)qp.Parse("a:woo OR a:the", "a");
+            result = qp.Parse("a:woo OR a:the", "a");
             assertNotNull("result is null and it shouldn't be", result);
             assertTrue("result is not a TermQuery", result is TermQuery);
-            result = (Query)qp.Parse(
+            result = qp.Parse(
                     "(fieldX:xxxxx OR fieldy:xxxxxxxx)^2 AND (fieldx:the OR fieldy:foo)",
                     "a");
             assertNotNull("result is null and it shouldn't be", result);
@@ -1325,7 +1325,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
             qp.Locale = new CultureInfo("en");//  (Locale.ENGLISH); // LUCENENET TODO: Fix API - we probably don't want to set Culture to a property
 
-            Query q = (Query)qp.Parse(query, "date");
+            Query q = qp.Parse(query, "date");
             ScoreDoc[] hits = @is.Search(q, null, 1000).ScoreDocs;
             assertEquals(expected, hits.Length);
         }
@@ -1409,7 +1409,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             IndexReader r = DirectoryReader.Open(w, true);
             IndexSearcher s = NewSearcher(r);
 
-            Query q = (Query)new StandardQueryParser(new CannedAnalyzer()).Parse("\"a\"", "field");
+            Query q = new StandardQueryParser(new CannedAnalyzer()).Parse("\"a\"", "field");
             assertTrue(q is MultiPhraseQuery);
             assertEquals(1, s.Search(q, 10).TotalHits);
             r.Dispose();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/97a09054/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
index cb9bfe5..5ceeff1 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
@@ -35,7 +35,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         public Query Parse(String query, StandardQueryParser qp)
         {
-            return (Query)qp.Parse(query, DefaultField);
+            return qp.Parse(query, DefaultField);
         }
 
 


[12/58] lucenenet git commit: Fixed infinite recursion bug in SpansQueryTreeBuilder

Posted by ni...@apache.org.
Fixed infinite recursion bug in SpansQueryTreeBuilder


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

Branch: refs/heads/master
Commit: 94f22c1c0fbea99e300bc1e8ef7148d725326248
Parents: c83be6b
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Nov 28 22:22:54 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Nov 28 22:22:54 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Spans/SpansQueryTreeBuilder.cs                      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/94f22c1c/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
index 8810367..31d94db 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
@@ -36,9 +36,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         /// <summary>
         /// LUCENENET specific overload for supporting IQueryBuilder
         /// </summary>
-        public override object Build(IQueryNode queryNode)
+        public override object Build(IQueryNode queryTree)
         {
-            return Build(queryNode);
+            return (Query)base.Build(queryTree);
         }
     }
 }


[45/58] lucenenet git commit: QueryParser.Flexible refactor: Camel case method names in StandardSyntaxParser and StandardSyntaxParserTokenManager

Posted by ni...@apache.org.
QueryParser.Flexible refactor: Camel case method names in StandardSyntaxParser and StandardSyntaxParserTokenManager


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

Branch: refs/heads/master
Commit: 3e2eb28f7a29d2a0f930679e8815fb982612cd1c
Parents: 43ec320
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Dec 5 23:58:16 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Dec 5 23:58:16 2016 +0700

----------------------------------------------------------------------
 .../Standard/Parser/StandardSyntaxParser.cs     | 268 +++++++++----------
 .../Parser/StandardSyntaxParserTokenManager.cs  | 222 +++++++--------
 2 files changed, 245 insertions(+), 245 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3e2eb28f/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
index 993aa34..bfb5559 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParser.cs
@@ -87,16 +87,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.AND:
-                            jj_consume_token(RegexpToken.AND);
+                            Jj_consume_token(RegexpToken.AND);
                             ret = CONJ_AND;
                             break;
                         case RegexpToken.OR:
-                            jj_consume_token(RegexpToken.OR);
+                            Jj_consume_token(RegexpToken.OR);
                             ret = CONJ_OR;
                             break;
                         default:
                             jj_la1[0] = jj_gen;
-                            jj_consume_token(-1);
+                            Jj_consume_token(-1);
                             throw new ParseException();
                     }
                     break;
@@ -119,20 +119,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.PLUS:
-                            jj_consume_token(RegexpToken.PLUS);
+                            Jj_consume_token(RegexpToken.PLUS);
                             ret = Modifier.MOD_REQ;
                             break;
                         case RegexpToken.MINUS:
-                            jj_consume_token(RegexpToken.MINUS);
+                            Jj_consume_token(RegexpToken.MINUS);
                             ret = Modifier.MOD_NOT;
                             break;
                         case RegexpToken.NOT:
-                            jj_consume_token(RegexpToken.NOT);
+                            Jj_consume_token(RegexpToken.NOT);
                             ret = Modifier.MOD_NOT;
                             break;
                         default:
                             jj_la1[2] = jj_gen;
-                            jj_consume_token(-1);
+                            Jj_consume_token(-1);
                             throw new ParseException();
                     }
                     break;
@@ -149,7 +149,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         {
             IQueryNode q;
             q = Query(field);
-            jj_consume_token(0);
+            Jj_consume_token(0);
             { if (true) return q; }
             throw new Exception("Missing return statement in function");
         }
@@ -227,7 +227,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         jj_la1[5] = jj_gen;
                         goto label_2_break;
                 }
-                jj_consume_token(RegexpToken.OR);
+                Jj_consume_token(RegexpToken.OR);
                 c = ConjQuery(field);
                 if (clauses == null)
                 {
@@ -265,7 +265,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         jj_la1[6] = jj_gen;
                         goto label_3_break;
                 }
-                jj_consume_token(RegexpToken.AND);
+                Jj_consume_token(RegexpToken.AND);
                 c = ModClause(field);
                 if (clauses == null)
                 {
@@ -346,9 +346,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             bool lowerInclusive, upperInclusive;
 
             bool group = false;
-            if (jj_2_2(3))
+            if (Jj_2_2(3))
             {
-                fieldToken = jj_consume_token(RegexpToken.TERM);
+                fieldToken = Jj_consume_token(RegexpToken.TERM);
                 switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                 {
                     case RegexpToken.OP_COLON:
@@ -356,14 +356,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                         {
                             case RegexpToken.OP_COLON:
-                                jj_consume_token(RegexpToken.OP_COLON);
+                                Jj_consume_token(RegexpToken.OP_COLON);
                                 break;
                             case RegexpToken.OP_EQUAL:
-                                jj_consume_token(RegexpToken.OP_EQUAL);
+                                Jj_consume_token(RegexpToken.OP_EQUAL);
                                 break;
                             default:
                                 jj_la1[7] = jj_gen;
-                                jj_consume_token(-1);
+                                Jj_consume_token(-1);
                                 throw new ParseException();
                         }
                         field = EscapeQuerySyntaxImpl.DiscardEscapeChar(fieldToken.image).ToString();
@@ -376,37 +376,37 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                         {
                             case RegexpToken.OP_LESSTHAN:
-                                @operator = jj_consume_token(RegexpToken.OP_LESSTHAN);
+                                @operator = Jj_consume_token(RegexpToken.OP_LESSTHAN);
                                 break;
                             case RegexpToken.OP_LESSTHANEQ:
-                                @operator = jj_consume_token(RegexpToken.OP_LESSTHANEQ);
+                                @operator = Jj_consume_token(RegexpToken.OP_LESSTHANEQ);
                                 break;
                             case RegexpToken.OP_MORETHAN:
-                                @operator = jj_consume_token(RegexpToken.OP_MORETHAN);
+                                @operator = Jj_consume_token(RegexpToken.OP_MORETHAN);
                                 break;
                             case RegexpToken.OP_MORETHANEQ:
-                                @operator = jj_consume_token(RegexpToken.OP_MORETHANEQ);
+                                @operator = Jj_consume_token(RegexpToken.OP_MORETHANEQ);
                                 break;
                             default:
                                 jj_la1[8] = jj_gen;
-                                jj_consume_token(-1);
+                                Jj_consume_token(-1);
                                 throw new ParseException();
                         }
                         field = EscapeQuerySyntaxImpl.DiscardEscapeChar(fieldToken.image).ToString();
                         switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                         {
                             case RegexpToken.TERM:
-                                term = jj_consume_token(RegexpToken.TERM);
+                                term = Jj_consume_token(RegexpToken.TERM);
                                 break;
                             case RegexpToken.QUOTED:
-                                term = jj_consume_token(RegexpToken.QUOTED);
+                                term = Jj_consume_token(RegexpToken.QUOTED);
                                 break;
                             case RegexpToken.NUMBER:
-                                term = jj_consume_token(RegexpToken.NUMBER);
+                                term = Jj_consume_token(RegexpToken.NUMBER);
                                 break;
                             default:
                                 jj_la1[9] = jj_gen;
-                                jj_consume_token(-1);
+                                Jj_consume_token(-1);
                                 throw new ParseException();
                         }
                         if (term.kind == RegexpToken.QUOTED)
@@ -459,7 +459,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         break;
                     default:
                         jj_la1[10] = jj_gen;
-                        jj_consume_token(-1);
+                        Jj_consume_token(-1);
                         throw new ParseException();
                 }
             }
@@ -474,20 +474,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     case RegexpToken.RANGEIN_START:
                     case RegexpToken.RANGEEX_START:
                     case RegexpToken.NUMBER:
-                        if (jj_2_1(2))
+                        if (Jj_2_1(2))
                         {
-                            fieldToken = jj_consume_token(RegexpToken.TERM);
+                            fieldToken = Jj_consume_token(RegexpToken.TERM);
                             switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                             {
                                 case RegexpToken.OP_COLON:
-                                    jj_consume_token(RegexpToken.OP_COLON);
+                                    Jj_consume_token(RegexpToken.OP_COLON);
                                     break;
                                 case RegexpToken.OP_EQUAL:
-                                    jj_consume_token(RegexpToken.OP_EQUAL);
+                                    Jj_consume_token(RegexpToken.OP_EQUAL);
                                     break;
                                 default:
                                     jj_la1[11] = jj_gen;
-                                    jj_consume_token(-1);
+                                    Jj_consume_token(-1);
                                     throw new ParseException();
                             }
                             field = EscapeQuerySyntaxImpl.DiscardEscapeChar(fieldToken.image).ToString();
@@ -507,14 +507,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                 q = Term(field);
                                 break;
                             case RegexpToken.LPAREN:
-                                jj_consume_token(RegexpToken.LPAREN);
+                                Jj_consume_token(RegexpToken.LPAREN);
                                 q = Query(field);
-                                jj_consume_token(RegexpToken.RPAREN);
+                                Jj_consume_token(RegexpToken.RPAREN);
                                 switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                                 {
                                     case RegexpToken.CARAT:
-                                        jj_consume_token(RegexpToken.CARAT);
-                                        boost = jj_consume_token(RegexpToken.NUMBER);
+                                        Jj_consume_token(RegexpToken.CARAT);
+                                        boost = Jj_consume_token(RegexpToken.NUMBER);
                                         break;
                                     default:
                                         jj_la1[12] = jj_gen;
@@ -524,13 +524,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                 break;
                             default:
                                 jj_la1[13] = jj_gen;
-                                jj_consume_token(-1);
+                                Jj_consume_token(-1);
                                 throw new ParseException();
                         }
                         break;
                     default:
                         jj_la1[14] = jj_gen;
-                        jj_consume_token(-1);
+                        Jj_consume_token(-1);
                         throw new ParseException();
                 }
             }
@@ -580,25 +580,25 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.TERM:
-                            term = jj_consume_token(RegexpToken.TERM);
+                            term = Jj_consume_token(RegexpToken.TERM);
                             q = new FieldQueryNode(field, EscapeQuerySyntaxImpl.DiscardEscapeChar(term.image), term.beginColumn, term.endColumn);
                             break;
                         case RegexpToken.REGEXPTERM:
-                            term = jj_consume_token(RegexpToken.REGEXPTERM);
+                            term = Jj_consume_token(RegexpToken.REGEXPTERM);
                             regexp = true;
                             break;
                         case RegexpToken.NUMBER:
-                            term = jj_consume_token(RegexpToken.NUMBER);
+                            term = Jj_consume_token(RegexpToken.NUMBER);
                             break;
                         default:
                             jj_la1[15] = jj_gen;
-                            jj_consume_token(-1);
+                            Jj_consume_token(-1);
                             throw new ParseException();
                     }
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.FUZZY_SLOP:
-                            fuzzySlop = jj_consume_token(RegexpToken.FUZZY_SLOP);
+                            fuzzySlop = Jj_consume_token(RegexpToken.FUZZY_SLOP);
                             fuzzy = true;
                             break;
                         default:
@@ -608,12 +608,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.CARAT:
-                            jj_consume_token(RegexpToken.CARAT);
-                            boost = jj_consume_token(RegexpToken.NUMBER);
+                            Jj_consume_token(RegexpToken.CARAT);
+                            boost = Jj_consume_token(RegexpToken.NUMBER);
                             switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                             {
                                 case RegexpToken.FUZZY_SLOP:
-                                    fuzzySlop = jj_consume_token(RegexpToken.FUZZY_SLOP);
+                                    fuzzySlop = Jj_consume_token(RegexpToken.FUZZY_SLOP);
                                     fuzzy = true;
                                     break;
                                 default:
@@ -656,34 +656,34 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.RANGEIN_START:
-                            jj_consume_token(RegexpToken.RANGEIN_START);
+                            Jj_consume_token(RegexpToken.RANGEIN_START);
                             startInc = true;
                             break;
                         case RegexpToken.RANGEEX_START:
-                            jj_consume_token(RegexpToken.RANGEEX_START);
+                            Jj_consume_token(RegexpToken.RANGEEX_START);
                             break;
                         default:
                             jj_la1[19] = jj_gen;
-                            jj_consume_token(-1);
+                            Jj_consume_token(-1);
                             throw new ParseException();
                     }
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.RANGE_GOOP:
-                            goop1 = jj_consume_token(RegexpToken.RANGE_GOOP);
+                            goop1 = Jj_consume_token(RegexpToken.RANGE_GOOP);
                             break;
                         case RegexpToken.RANGE_QUOTED:
-                            goop1 = jj_consume_token(RegexpToken.RANGE_QUOTED);
+                            goop1 = Jj_consume_token(RegexpToken.RANGE_QUOTED);
                             break;
                         default:
                             jj_la1[20] = jj_gen;
-                            jj_consume_token(-1);
+                            Jj_consume_token(-1);
                             throw new ParseException();
                     }
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.RANGE_TO:
-                            jj_consume_token(RegexpToken.RANGE_TO);
+                            Jj_consume_token(RegexpToken.RANGE_TO);
                             break;
                         default:
                             jj_la1[21] = jj_gen;
@@ -692,35 +692,35 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.RANGE_GOOP:
-                            goop2 = jj_consume_token(RegexpToken.RANGE_GOOP);
+                            goop2 = Jj_consume_token(RegexpToken.RANGE_GOOP);
                             break;
                         case RegexpToken.RANGE_QUOTED:
-                            goop2 = jj_consume_token(RegexpToken.RANGE_QUOTED);
+                            goop2 = Jj_consume_token(RegexpToken.RANGE_QUOTED);
                             break;
                         default:
                             jj_la1[22] = jj_gen;
-                            jj_consume_token(-1);
+                            Jj_consume_token(-1);
                             throw new ParseException();
                     }
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.RANGEIN_END:
-                            jj_consume_token(RegexpToken.RANGEIN_END);
+                            Jj_consume_token(RegexpToken.RANGEIN_END);
                             endInc = true;
                             break;
                         case RegexpToken.RANGEEX_END:
-                            jj_consume_token(RegexpToken.RANGEEX_END);
+                            Jj_consume_token(RegexpToken.RANGEEX_END);
                             break;
                         default:
                             jj_la1[23] = jj_gen;
-                            jj_consume_token(-1);
+                            Jj_consume_token(-1);
                             throw new ParseException();
                     }
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.CARAT:
-                            jj_consume_token(RegexpToken.CARAT);
-                            boost = jj_consume_token(RegexpToken.NUMBER);
+                            Jj_consume_token(RegexpToken.CARAT);
+                            boost = Jj_consume_token(RegexpToken.NUMBER);
                             break;
                         default:
                             jj_la1[24] = jj_gen;
@@ -742,12 +742,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     q = new TermRangeQueryNode(qLower, qUpper, startInc ? true : false, endInc ? true : false);
                     break;
                 case RegexpToken.QUOTED:
-                    term = jj_consume_token(RegexpToken.QUOTED);
+                    term = Jj_consume_token(RegexpToken.QUOTED);
                     q = new QuotedFieldQueryNode(field, EscapeQuerySyntaxImpl.DiscardEscapeChar(term.image.Substring(1, (term.image.Length - 1) - 1)), term.beginColumn + 1, term.endColumn - 1);
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.FUZZY_SLOP:
-                            fuzzySlop = jj_consume_token(RegexpToken.FUZZY_SLOP);
+                            fuzzySlop = Jj_consume_token(RegexpToken.FUZZY_SLOP);
                             break;
                         default:
                             jj_la1[25] = jj_gen;
@@ -756,8 +756,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
                     {
                         case RegexpToken.CARAT:
-                            jj_consume_token(RegexpToken.CARAT);
-                            boost = jj_consume_token(RegexpToken.NUMBER);
+                            Jj_consume_token(RegexpToken.CARAT);
+                            boost = Jj_consume_token(RegexpToken.NUMBER);
                             break;
                         default:
                             jj_la1[26] = jj_gen;
@@ -784,7 +784,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     break;
                 default:
                     jj_la1[27] = jj_gen;
-                    jj_consume_token(-1);
+                    Jj_consume_token(-1);
                     throw new ParseException();
             }
             if (boost != null)
@@ -812,158 +812,158 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             throw new Exception("Missing return statement in function");
         }
 
-        private bool jj_2_1(int xla)
+        private bool Jj_2_1(int xla)
         {
             jj_la = xla; jj_lastpos = jj_scanpos = token;
-            try { return !jj_3_1(); }
+            try { return !Jj_3_1(); }
 #pragma warning disable 168
             catch (LookaheadSuccess ls) { return true; }
 #pragma warning restore 168
-            finally { jj_save(0, xla); }
+            finally { Jj_save(0, xla); }
         }
 
-        private bool jj_2_2(int xla)
+        private bool Jj_2_2(int xla)
         {
             jj_la = xla; jj_lastpos = jj_scanpos = token;
-            try { return !jj_3_2(); }
+            try { return !Jj_3_2(); }
 #pragma warning disable 168
             catch (LookaheadSuccess ls) { return true; }
 #pragma warning restore 168
-            finally { jj_save(1, xla); }
+            finally { Jj_save(1, xla); }
         }
 
-        private bool jj_3_2()
+        private bool Jj_3_2()
         {
-            if (jj_scan_token(RegexpToken.TERM)) return true;
+            if (Jj_scan_token(RegexpToken.TERM)) return true;
             Token xsp;
             xsp = jj_scanpos;
-            if (jj_3R_4())
+            if (Jj_3R_4())
             {
                 jj_scanpos = xsp;
-                if (jj_3R_5()) return true;
+                if (Jj_3R_5()) return true;
             }
             return false;
         }
 
-        private bool jj_3R_12()
+        private bool Jj_3R_12()
         {
-            if (jj_scan_token(RegexpToken.RANGEIN_START)) return true;
+            if (Jj_scan_token(RegexpToken.RANGEIN_START)) return true;
             return false;
         }
 
-        private bool jj_3R_11()
+        private bool Jj_3R_11()
         {
-            if (jj_scan_token(RegexpToken.REGEXPTERM)) return true;
+            if (Jj_scan_token(RegexpToken.REGEXPTERM)) return true;
             return false;
         }
 
-        private bool jj_3_1()
+        private bool Jj_3_1()
         {
-            if (jj_scan_token(RegexpToken.TERM)) return true;
+            if (Jj_scan_token(RegexpToken.TERM)) return true;
             Token xsp;
             xsp = jj_scanpos;
-            if (jj_scan_token(15))
+            if (Jj_scan_token(15))
             {
                 jj_scanpos = xsp;
-                if (jj_scan_token(16)) return true;
+                if (Jj_scan_token(16)) return true;
             }
             return false;
         }
 
-        private bool jj_3R_8()
+        private bool Jj_3R_8()
         {
             Token xsp;
             xsp = jj_scanpos;
-            if (jj_3R_12())
+            if (Jj_3R_12())
             {
                 jj_scanpos = xsp;
-                if (jj_scan_token(27)) return true;
+                if (Jj_scan_token(27)) return true;
             }
             return false;
         }
 
-        private bool jj_3R_10()
+        private bool Jj_3R_10()
         {
-            if (jj_scan_token(RegexpToken.TERM)) return true;
+            if (Jj_scan_token(RegexpToken.TERM)) return true;
             return false;
         }
 
-        private bool jj_3R_7()
+        private bool Jj_3R_7()
         {
             Token xsp;
             xsp = jj_scanpos;
-            if (jj_3R_10())
+            if (Jj_3R_10())
             {
                 jj_scanpos = xsp;
-                if (jj_3R_11())
+                if (Jj_3R_11())
                 {
                     jj_scanpos = xsp;
-                    if (jj_scan_token(28)) return true;
+                    if (Jj_scan_token(28)) return true;
                 }
             }
             return false;
         }
 
-        private bool jj_3R_9()
+        private bool Jj_3R_9()
         {
-            if (jj_scan_token(RegexpToken.QUOTED)) return true;
+            if (Jj_scan_token(RegexpToken.QUOTED)) return true;
             return false;
         }
 
-        private bool jj_3R_5()
+        private bool Jj_3R_5()
         {
             Token xsp;
             xsp = jj_scanpos;
-            if (jj_scan_token(17))
+            if (Jj_scan_token(17))
             {
                 jj_scanpos = xsp;
-                if (jj_scan_token(18))
+                if (Jj_scan_token(18))
                 {
                     jj_scanpos = xsp;
-                    if (jj_scan_token(19))
+                    if (Jj_scan_token(19))
                     {
                         jj_scanpos = xsp;
-                        if (jj_scan_token(20)) return true;
+                        if (Jj_scan_token(20)) return true;
                     }
                 }
             }
             xsp = jj_scanpos;
-            if (jj_scan_token(23))
+            if (Jj_scan_token(23))
             {
                 jj_scanpos = xsp;
-                if (jj_scan_token(22))
+                if (Jj_scan_token(22))
                 {
                     jj_scanpos = xsp;
-                    if (jj_scan_token(28)) return true;
+                    if (Jj_scan_token(28)) return true;
                 }
             }
             return false;
         }
 
-        private bool jj_3R_4()
+        private bool Jj_3R_4()
         {
             Token xsp;
             xsp = jj_scanpos;
-            if (jj_scan_token(15))
+            if (Jj_scan_token(15))
             {
                 jj_scanpos = xsp;
-                if (jj_scan_token(16)) return true;
+                if (Jj_scan_token(16)) return true;
             }
-            if (jj_3R_6()) return true;
+            if (Jj_3R_6()) return true;
             return false;
         }
 
-        private bool jj_3R_6()
+        private bool Jj_3R_6()
         {
             Token xsp;
             xsp = jj_scanpos;
-            if (jj_3R_7())
+            if (Jj_3R_7())
             {
                 jj_scanpos = xsp;
-                if (jj_3R_8())
+                if (Jj_3R_8())
                 {
                     jj_scanpos = xsp;
-                    if (jj_3R_9()) return true;
+                    if (Jj_3R_9()) return true;
                 }
             }
             return false;
@@ -984,14 +984,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         static private int[] jj_la1_1;
         static StandardSyntaxParser()
         {
-            jj_la1_init_0();
-            jj_la1_init_1();
+            Jj_la1_init_0();
+            Jj_la1_init_1();
         }
-        private static void jj_la1_init_0()
+        private static void Jj_la1_init_0()
         {
             jj_la1_0 = new uint[] { 0x300, 0x300, 0x1c00, 0x1c00, 0x1ec03c00, 0x200, 0x100, 0x18000, 0x1e0000, 0x10c00000, 0x1f8000, 0x18000, 0x200000, 0x1ec02000, 0x1ec02000, 0x12800000, 0x1000000, 0x1000000, 0x200000, 0xc000000, 0x0, 0x20000000, 0x0, 0xc0000000, 0x200000, 0x1000000, 0x200000, 0x1ec00000, };
         }
-        private static void jj_la1_init_1()
+        private static void Jj_la1_init_1()
         {
             jj_la1_1 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, };
         }
@@ -1045,11 +1045,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();
         }
 
-        private Token jj_consume_token(int kind)
+        private Token Jj_consume_token(int kind)
         {
             Token oldToken;
             if ((oldToken = token).next != null) token = token.next;
-            else token = token.next = token_source.getNextToken();
+            else token = token.next = token_source.GetNextToken();
             jj_ntk = -1;
             if (token.kind == kind)
             {
@@ -1071,19 +1071,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             }
             token = oldToken;
             jj_kind = kind;
-            throw generateParseException();
+            throw GenerateParseException();
         }
 
         internal sealed class LookaheadSuccess : Exception { }
         readonly private LookaheadSuccess jj_ls = new LookaheadSuccess();
-        private bool jj_scan_token(int kind)
+        private bool Jj_scan_token(int kind)
         {
             if (jj_scanpos == jj_lastpos)
             {
                 jj_la--;
                 if (jj_scanpos.next == null)
                 {
-                    jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
+                    jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.GetNextToken();
                 }
                 else
                 {
@@ -1098,7 +1098,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             {
                 int i = 0; Token tok = token;
                 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
-                if (tok != null) jj_add_error_token(kind, i);
+                if (tok != null) Jj_add_error_token(kind, i);
             }
             if (jj_scanpos.kind != kind) return true;
             if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;
@@ -1107,23 +1107,23 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 
 
         /// <summary>Get the next Token.</summary>
-        public Token getNextToken()
+        public Token GetNextToken()
         {
             if (token.next != null) token = token.next;
-            else token = token.next = token_source.getNextToken();
+            else token = token.next = token_source.GetNextToken();
             jj_ntk = -1;
             jj_gen++;
             return token;
         }
 
         /// <summary>Get the specific Token.</summary>
-        public Token getToken(int index)
+        public Token GetToken(int index)
         {
             Token t = token;
             for (int i = 0; i < index; i++)
             {
                 if (t.next != null) t = t.next;
-                else t = t.next = token_source.getNextToken();
+                else t = t.next = token_source.GetNextToken();
             }
             return t;
         }
@@ -1131,7 +1131,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         private int Jj_ntk()
         {
             if ((jj_nt = token.next) == null)
-                return (jj_ntk = (token.next = token_source.getNextToken()).kind);
+                return (jj_ntk = (token.next = token_source.GetNextToken()).kind);
             else
                 return (jj_ntk = jj_nt.kind);
         }
@@ -1142,7 +1142,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         private int[] jj_lasttokens = new int[100];
         private int jj_endpos;
 
-        private void jj_add_error_token(int kind, int pos)
+        private void Jj_add_error_token(int kind, int pos)
         {
             if (pos >= 100) return;
             if (pos == jj_endpos + 1)
@@ -1179,7 +1179,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         }
 
         /// <summary>Generate ParseException.</summary>
-        public virtual ParseException generateParseException()
+        public virtual ParseException GenerateParseException()
         {
             jj_expentries.Clear();
             bool[] la1tokens = new bool[34];
@@ -1215,8 +1215,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 }
             }
             jj_endpos = 0;
-            jj_rescan_token();
-            jj_add_error_token(0, 0);
+            Jj_rescan_token();
+            Jj_add_error_token(0, 0);
             int[][] exptokseq = new int[jj_expentries.Count][];
             for (int i = 0; i < jj_expentries.Count; i++)
             {
@@ -1226,16 +1226,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         }
 
         /// <summary>Enable tracing.</summary>
-        public void enable_tracing()
+        public void Enable_tracing()
         {
         }
 
         /// <summary>Disable tracing.</summary>
-        public void disable_tracing()
+        public void Disable_tracing()
         {
         }
 
-        private void jj_rescan_token()
+        private void Jj_rescan_token()
         {
             jj_rescan = true;
             for (int i = 0; i < 2; i++)
@@ -1250,8 +1250,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                             jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
                             switch (i)
                             {
-                                case 0: jj_3_1(); break;
-                                case 1: jj_3_2(); break;
+                                case 0: Jj_3_1(); break;
+                                case 1: Jj_3_2(); break;
                             }
                         }
                         p = p.next;
@@ -1264,7 +1264,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             jj_rescan = false;
         }
 
-        private void jj_save(int index, int xla)
+        private void Jj_save(int index, int xla)
         {
             JJCalls p = jj_2_rtns[index];
             while (p.gen > jj_gen)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3e2eb28f/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
index 73ce875..9c057f4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
@@ -28,8 +28,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         /// <summary>Debug output.</summary>
         public TextWriter debugStream = Console.Out;
         /// <summary>Set debug output.</summary>
-        public void setDebugStream(TextWriter ds) { debugStream = ds; }
-        private int jjStopStringLiteralDfa_2(int pos, long active0)
+        public void SetDebugStream(TextWriter ds) { debugStream = ds; }
+        private int JjStopStringLiteralDfa_2(int pos, long active0)
         {
             switch (pos)
             {
@@ -37,70 +37,70 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     return -1;
             }
         }
-        private int jjStartNfa_2(int pos, long active0)
+        private int JjStartNfa_2(int pos, long active0)
         {
-            return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);
+            return JjMoveNfa_2(JjStopStringLiteralDfa_2(pos, active0), pos + 1);
         }
-        private int jjStopAtPos(int pos, int kind)
+        private int JjStopAtPos(int pos, int kind)
         {
             jjmatchedKind = kind;
             jjmatchedPos = pos;
             return pos + 1;
         }
-        private int jjMoveStringLiteralDfa0_2()
+        private int JjMoveStringLiteralDfa0_2()
         {
             switch ((int)curChar)
             {
                 case 40:
-                    return jjStopAtPos(0, 13);
+                    return JjStopAtPos(0, 13);
                 case 41:
-                    return jjStopAtPos(0, 14);
+                    return JjStopAtPos(0, 14);
                 case 43:
-                    return jjStopAtPos(0, 11);
+                    return JjStopAtPos(0, 11);
                 case 45:
-                    return jjStopAtPos(0, 12);
+                    return JjStopAtPos(0, 12);
                 case 58:
-                    return jjStopAtPos(0, 15);
+                    return JjStopAtPos(0, 15);
                 case 60:
                     jjmatchedKind = 17;
-                    return jjMoveStringLiteralDfa1_2(0x40000L);
+                    return JjMoveStringLiteralDfa1_2(0x40000L);
                 case 61:
-                    return jjStopAtPos(0, 16);
+                    return JjStopAtPos(0, 16);
                 case 62:
                     jjmatchedKind = 19;
-                    return jjMoveStringLiteralDfa1_2(0x100000L);
+                    return JjMoveStringLiteralDfa1_2(0x100000L);
                 case 91:
-                    return jjStopAtPos(0, 26);
+                    return JjStopAtPos(0, 26);
                 case 94:
-                    return jjStopAtPos(0, 21);
+                    return JjStopAtPos(0, 21);
                 case 123:
-                    return jjStopAtPos(0, 27);
+                    return JjStopAtPos(0, 27);
                 default:
-                    return jjMoveNfa_2(0, 0);
+                    return JjMoveNfa_2(0, 0);
             }
         }
-        private int jjMoveStringLiteralDfa1_2(long active0)
+        private int JjMoveStringLiteralDfa1_2(long active0)
         {
             try { curChar = input_stream.ReadChar(); }
 #pragma warning disable 168
             catch (IOException e)
 #pragma warning restore 168
             {
-                jjStopStringLiteralDfa_2(0, active0);
+                JjStopStringLiteralDfa_2(0, active0);
                 return 1;
             }
             switch ((int)curChar)
             {
                 case 61:
                     if ((active0 & 0x40000L) != 0L)
-                        return jjStopAtPos(1, 18);
+                        return JjStopAtPos(1, 18);
                     else if ((active0 & 0x100000L) != 0L)
-                        return jjStopAtPos(1, 20);
+                        return JjStopAtPos(1, 20);
                     break;
                 default:
                     break;
             }
-            return jjStartNfa_2(0, active0);
+            return JjStartNfa_2(0, active0);
         }
         internal static readonly ulong[] jjbitVec0 = {
            0x1L, 0x0L, 0x0L, 0x0L
@@ -114,7 +114,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         internal static readonly ulong[] jjbitVec4 = {
            0xfffefffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL
         };
-        private int jjMoveNfa_2(int startState, int curPos)
+        private int JjMoveNfa_2(int startState, int curPos)
         {
             int startsAt = 0;
             jjnewStateCnt = 33;
@@ -137,7 +137,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                 {
                                     if (kind > 23)
                                         kind = 23;
-                                    jjCheckNAddTwoStates(20, 21);
+                                    JjCheckNAddTwoStates(20, 21);
                                 }
                                 else if ((0x100002600L & l) != 0L)
                                 {
@@ -145,9 +145,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                         kind = 7;
                                 }
                                 else if (curChar == 47)
-                                    jjCheckNAddStates(0, 2);
+                                    JjCheckNAddStates(0, 2);
                                 else if (curChar == 34)
-                                    jjCheckNAddStates(3, 5);
+                                    JjCheckNAddStates(3, 5);
                                 else if (curChar == 33)
                                 {
                                     if (kind > 10)
@@ -170,14 +170,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                 break;
                             case 14:
                                 if (curChar == 34)
-                                    jjCheckNAddStates(3, 5);
+                                    JjCheckNAddStates(3, 5);
                                 break;
                             case 15:
                                 if ((0xfffffffbffffffffL & l) != 0L)
-                                    jjCheckNAddStates(3, 5);
+                                    JjCheckNAddStates(3, 5);
                                 break;
                             case 17:
-                                jjCheckNAddStates(3, 5);
+                                JjCheckNAddStates(3, 5);
                                 break;
                             case 18:
                                 if (curChar == 34 && kind > 22)
@@ -188,46 +188,46 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                     break;
                                 if (kind > 23)
                                     kind = 23;
-                                jjCheckNAddTwoStates(20, 21);
+                                JjCheckNAddTwoStates(20, 21);
                                 break;
                             case 20:
                                 if ((0x8bff7cf8ffffd9ffL & l) == 0L)
                                     break;
                                 if (kind > 23)
                                     kind = 23;
-                                jjCheckNAddTwoStates(20, 21);
+                                JjCheckNAddTwoStates(20, 21);
                                 break;
                             case 22:
                                 if (kind > 23)
                                     kind = 23;
-                                jjCheckNAddTwoStates(20, 21);
+                                JjCheckNAddTwoStates(20, 21);
                                 break;
                             case 25:
                                 if ((0x3ff000000000000L & l) == 0L)
                                     break;
                                 if (kind > 24)
                                     kind = 24;
-                                jjAddStates(6, 7);
+                                JjAddStates(6, 7);
                                 break;
                             case 26:
                                 if (curChar == 46)
-                                    jjCheckNAdd(27);
+                                    JjCheckNAdd(27);
                                 break;
                             case 27:
                                 if ((0x3ff000000000000L & l) == 0L)
                                     break;
                                 if (kind > 24)
                                     kind = 24;
-                                jjCheckNAdd(27);
+                                JjCheckNAdd(27);
                                 break;
                             case 28:
                             case 30:
                                 if (curChar == 47)
-                                    jjCheckNAddStates(0, 2);
+                                    JjCheckNAddStates(0, 2);
                                 break;
                             case 29:
                                 if ((0xffff7fffffffffffL & l) != 0L)
-                                    jjCheckNAddStates(0, 2);
+                                    JjCheckNAddStates(0, 2);
                                 break;
                             case 32:
                                 if (curChar == 47 && kind > 25)
@@ -250,7 +250,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                 {
                                     if (kind > 23)
                                         kind = 23;
-                                    jjCheckNAddTwoStates(20, 21);
+                                    JjCheckNAddTwoStates(20, 21);
                                 }
                                 else if (curChar == 126)
                                 {
@@ -259,7 +259,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                     jjstateSet[jjnewStateCnt++] = 25;
                                 }
                                 else if (curChar == 92)
-                                    jjCheckNAdd(22);
+                                    JjCheckNAdd(22);
                                 if (curChar == 78)
                                     jjstateSet[jjnewStateCnt++] = 11;
                                 else if (curChar == 124)
@@ -311,14 +311,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                 break;
                             case 15:
                                 if ((0xffffffffefffffffL & l) != 0L)
-                                    jjCheckNAddStates(3, 5);
+                                    JjCheckNAddStates(3, 5);
                                 break;
                             case 16:
                                 if (curChar == 92)
                                     jjstateSet[jjnewStateCnt++] = 17;
                                 break;
                             case 17:
-                                jjCheckNAddStates(3, 5);
+                                JjCheckNAddStates(3, 5);
                                 break;
                             case 19:
                             case 20:
@@ -326,20 +326,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                     break;
                                 if (kind > 23)
                                     kind = 23;
-                                jjCheckNAddTwoStates(20, 21);
+                                JjCheckNAddTwoStates(20, 21);
                                 break;
                             case 21:
                                 if (curChar == 92)
-                                    jjCheckNAddTwoStates(22, 22);
+                                    JjCheckNAddTwoStates(22, 22);
                                 break;
                             case 22:
                                 if (kind > 23)
                                     kind = 23;
-                                jjCheckNAddTwoStates(20, 21);
+                                JjCheckNAddTwoStates(20, 21);
                                 break;
                             case 23:
                                 if (curChar == 92)
-                                    jjCheckNAdd(22);
+                                    JjCheckNAdd(22);
                                 break;
                             case 24:
                                 if (curChar != 126)
@@ -349,7 +349,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                 jjstateSet[jjnewStateCnt++] = 25;
                                 break;
                             case 29:
-                                jjAddStates(0, 2);
+                                JjAddStates(0, 2);
                                 break;
                             case 31:
                                 if (curChar == 92)
@@ -373,41 +373,41 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         switch (jjstateSet[--i])
                         {
                             case 0:
-                                if (jjCanMove_0(hiByte, i1, i2, l1, l2))
+                                if (JjCanMove_0(hiByte, i1, i2, l1, l2))
                                 {
                                     if (kind > 7)
                                         kind = 7;
                                 }
-                                if (jjCanMove_2(hiByte, i1, i2, l1, l2))
+                                if (JjCanMove_2(hiByte, i1, i2, l1, l2))
                                 {
                                     if (kind > 23)
                                         kind = 23;
-                                    jjCheckNAddTwoStates(20, 21);
+                                    JjCheckNAddTwoStates(20, 21);
                                 }
                                 break;
                             case 15:
                             case 17:
-                                if (jjCanMove_1(hiByte, i1, i2, l1, l2))
-                                    jjCheckNAddStates(3, 5);
+                                if (JjCanMove_1(hiByte, i1, i2, l1, l2))
+                                    JjCheckNAddStates(3, 5);
                                 break;
                             case 19:
                             case 20:
-                                if (!jjCanMove_2(hiByte, i1, i2, l1, l2))
+                                if (!JjCanMove_2(hiByte, i1, i2, l1, l2))
                                     break;
                                 if (kind > 23)
                                     kind = 23;
-                                jjCheckNAddTwoStates(20, 21);
+                                JjCheckNAddTwoStates(20, 21);
                                 break;
                             case 22:
-                                if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
+                                if (!JjCanMove_1(hiByte, i1, i2, l1, l2))
                                     break;
                                 if (kind > 23)
                                     kind = 23;
-                                jjCheckNAddTwoStates(20, 21);
+                                JjCheckNAddTwoStates(20, 21);
                                 break;
                             case 29:
-                                if (jjCanMove_1(hiByte, i1, i2, l1, l2))
-                                    jjAddStates(0, 2);
+                                if (JjCanMove_1(hiByte, i1, i2, l1, l2))
+                                    JjAddStates(0, 2);
                                 break;
                             default: break;
                         }
@@ -428,11 +428,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 #pragma warning restore 168
             }
         }
-        private int jjMoveStringLiteralDfa0_0()
+        private int JjMoveStringLiteralDfa0_0()
         {
-            return jjMoveNfa_0(0, 0);
+            return JjMoveNfa_0(0, 0);
         }
-        private int jjMoveNfa_0(int startState, int curPos)
+        private int JjMoveNfa_0(int startState, int curPos)
         {
             int startsAt = 0;
             jjnewStateCnt = 3;
@@ -455,18 +455,18 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                     break;
                                 if (kind > 28)
                                     kind = 28;
-                                jjAddStates(8, 9);
+                                JjAddStates(8, 9);
                                 break;
                             case 1:
                                 if (curChar == 46)
-                                    jjCheckNAdd(2);
+                                    JjCheckNAdd(2);
                                 break;
                             case 2:
                                 if ((0x3ff000000000000L & l) == 0L)
                                     break;
                                 if (kind > 28)
                                     kind = 28;
-                                jjCheckNAdd(2);
+                                JjCheckNAdd(2);
                                 break;
                             default: break;
                         }
@@ -516,7 +516,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 #pragma warning restore 168
             }
         }
-        private int jjStopStringLiteralDfa_1(int pos, long active0)
+        private int JjStopStringLiteralDfa_1(int pos, long active0)
         {
             switch (pos)
             {
@@ -531,46 +531,46 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     return -1;
             }
         }
-        private int jjStartNfa_1(int pos, long active0)
+        private int JjStartNfa_1(int pos, long active0)
         {
-            return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0), pos + 1);
+            return JjMoveNfa_1(JjStopStringLiteralDfa_1(pos, active0), pos + 1);
         }
-        private int jjMoveStringLiteralDfa0_1()
+        private int JjMoveStringLiteralDfa0_1()
         {
             switch ((int)curChar)
             {
                 case 84:
-                    return jjMoveStringLiteralDfa1_1(0x20000000L);
+                    return JjMoveStringLiteralDfa1_1(0x20000000L);
                 case 93:
-                    return jjStopAtPos(0, 30);
+                    return JjStopAtPos(0, 30);
                 case 125:
-                    return jjStopAtPos(0, 31);
+                    return JjStopAtPos(0, 31);
                 default:
-                    return jjMoveNfa_1(0, 0);
+                    return JjMoveNfa_1(0, 0);
             }
         }
-        private int jjMoveStringLiteralDfa1_1(long active0)
+        private int JjMoveStringLiteralDfa1_1(long active0)
         {
             try { curChar = input_stream.ReadChar(); }
 #pragma warning disable 168
             catch (IOException e)
 #pragma warning restore 168
             {
-                jjStopStringLiteralDfa_1(0, active0);
+                JjStopStringLiteralDfa_1(0, active0);
                 return 1;
             }
             switch ((int)curChar)
             {
                 case 79:
                     if ((active0 & 0x20000000L) != 0L)
-                        return jjStartNfaWithStates_1(1, 29, 6);
+                        return JjStartNfaWithStates_1(1, 29, 6);
                     break;
                 default:
                     break;
             }
-            return jjStartNfa_1(0, active0);
+            return JjStartNfa_1(0, active0);
         }
-        private int jjStartNfaWithStates_1(int pos, int kind, int state)
+        private int JjStartNfaWithStates_1(int pos, int kind, int state)
         {
             jjmatchedKind = kind;
             jjmatchedPos = pos;
@@ -578,9 +578,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 #pragma warning disable 168
             catch (IOException e) { return pos + 1; }
 #pragma warning restore 168
-            return jjMoveNfa_1(state, pos + 1);
+            return JjMoveNfa_1(state, pos + 1);
         }
-        private int jjMoveNfa_1(int startState, int curPos)
+        private int JjMoveNfa_1(int startState, int curPos)
         {
             int startsAt = 0;
             jjnewStateCnt = 7;
@@ -603,7 +603,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                 {
                                     if (kind > 33)
                                         kind = 33;
-                                    jjCheckNAdd(6);
+                                    JjCheckNAdd(6);
                                 }
                                 if ((0x100002600L & l) != 0L)
                                 {
@@ -611,19 +611,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                         kind = 7;
                                 }
                                 else if (curChar == 34)
-                                    jjCheckNAddTwoStates(2, 4);
+                                    JjCheckNAddTwoStates(2, 4);
                                 break;
                             case 1:
                                 if (curChar == 34)
-                                    jjCheckNAddTwoStates(2, 4);
+                                    JjCheckNAddTwoStates(2, 4);
                                 break;
                             case 2:
                                 if ((0xfffffffbffffffffL & l) != 0L)
-                                    jjCheckNAddStates(10, 12);
+                                    JjCheckNAddStates(10, 12);
                                 break;
                             case 3:
                                 if (curChar == 34)
-                                    jjCheckNAddStates(10, 12);
+                                    JjCheckNAddStates(10, 12);
                                 break;
                             case 5:
                                 if (curChar == 34 && kind > 32)
@@ -634,7 +634,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                     break;
                                 if (kind > 33)
                                     kind = 33;
-                                jjCheckNAdd(6);
+                                JjCheckNAdd(6);
                                 break;
                             default: break;
                         }
@@ -654,10 +654,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                                     break;
                                 if (kind > 33)
                                     kind = 33;
-                                jjCheckNAdd(6);
+                                JjCheckNAdd(6);
                                 break;
                             case 2:
-                                jjAddStates(10, 12);
+                                JjAddStates(10, 12);
                                 break;
                             case 4:
                                 if (curChar == 92)
@@ -681,28 +681,28 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         switch (jjstateSet[--i])
                         {
                             case 0:
-                                if (jjCanMove_0(hiByte, i1, i2, l1, l2))
+                                if (JjCanMove_0(hiByte, i1, i2, l1, l2))
                                 {
                                     if (kind > 7)
                                         kind = 7;
                                 }
-                                if (jjCanMove_1(hiByte, i1, i2, l1, l2))
+                                if (JjCanMove_1(hiByte, i1, i2, l1, l2))
                                 {
                                     if (kind > 33)
                                         kind = 33;
-                                    jjCheckNAdd(6);
+                                    JjCheckNAdd(6);
                                 }
                                 break;
                             case 2:
-                                if (jjCanMove_1(hiByte, i1, i2, l1, l2))
-                                    jjAddStates(10, 12);
+                                if (JjCanMove_1(hiByte, i1, i2, l1, l2))
+                                    JjAddStates(10, 12);
                                 break;
                             case 6:
-                                if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
+                                if (!JjCanMove_1(hiByte, i1, i2, l1, l2))
                                     break;
                                 if (kind > 33)
                                     kind = 33;
-                                jjCheckNAdd(6);
+                                JjCheckNAdd(6);
                                 break;
                             default: break;
                         }
@@ -726,7 +726,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         internal static readonly int[] jjnextStates = {
            29, 31, 32, 15, 16, 18, 25, 26, 0, 1, 2, 4, 5,
         };
-        private static bool jjCanMove_0(int hiByte, int i1, int i2, ulong l1, ulong l2)
+        private static bool JjCanMove_0(int hiByte, int i1, int i2, ulong l1, ulong l2)
         {
             switch (hiByte)
             {
@@ -736,7 +736,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     return false;
             }
         }
-        private static bool jjCanMove_1(int hiByte, int i1, int i2, ulong l1, ulong l2)
+        private static bool JjCanMove_1(int hiByte, int i1, int i2, ulong l1, ulong l2)
         {
             switch (hiByte)
             {
@@ -748,7 +748,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     return false;
             }
         }
-        private static bool jjCanMove_2(int hiByte, int i1, int i2, ulong l1, ulong l2)
+        private static bool JjCanMove_2(int hiByte, int i1, int i2, ulong l1, ulong l2)
         {
             switch (hiByte)
             {
@@ -837,7 +837,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 curLexState = lexState;
         }
 
-        protected Token jjFillToken()
+        protected Token JjFillToken()
         {
             Token t;
             string curTokenImage;
@@ -869,7 +869,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
         internal int jjmatchedKind;
 
         /// <summary>Get the next Token.</summary>
-        public Token getNextToken()
+        public virtual Token GetNextToken()
         {
             Token matchedToken;
             int curPos = 0;
@@ -886,7 +886,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 #pragma warning restore 168
                 {
                     jjmatchedKind = 0;
-                    matchedToken = jjFillToken();
+                    matchedToken = JjFillToken();
                     return matchedToken;
                 }
 
@@ -895,17 +895,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                     case 0:
                         jjmatchedKind = 0x7fffffff;
                         jjmatchedPos = 0;
-                        curPos = jjMoveStringLiteralDfa0_0();
+                        curPos = JjMoveStringLiteralDfa0_0();
                         break;
                     case 1:
                         jjmatchedKind = 0x7fffffff;
                         jjmatchedPos = 0;
-                        curPos = jjMoveStringLiteralDfa0_1();
+                        curPos = JjMoveStringLiteralDfa0_1();
                         break;
                     case 2:
                         jjmatchedKind = 0x7fffffff;
                         jjmatchedPos = 0;
-                        curPos = jjMoveStringLiteralDfa0_2();
+                        curPos = JjMoveStringLiteralDfa0_2();
                         break;
                 }
                 if (jjmatchedKind != 0x7fffffff)
@@ -914,7 +914,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                         input_stream.BackUp(curPos - jjmatchedPos - 1);
                     if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 63 /*077*/))) != 0L)
                     {
-                        matchedToken = jjFillToken();
+                        matchedToken = JjFillToken();
                         if (jjnewLexState[jjmatchedKind] != -1)
                             curLexState = jjnewLexState[jjmatchedKind];
                         return matchedToken;
@@ -956,7 +956,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             }
         }
 
-        private void jjCheckNAdd(int state)
+        private void JjCheckNAdd(int state)
         {
             if (jjrounds[state] != jjround)
             {
@@ -964,24 +964,24 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 jjrounds[state] = jjround;
             }
         }
-        private void jjAddStates(int start, int end)
+        private void JjAddStates(int start, int end)
         {
             do
             {
                 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
             } while (start++ != end);
         }
-        private void jjCheckNAddTwoStates(int state1, int state2)
+        private void JjCheckNAddTwoStates(int state1, int state2)
         {
-            jjCheckNAdd(state1);
-            jjCheckNAdd(state2);
+            JjCheckNAdd(state1);
+            JjCheckNAdd(state2);
         }
 
-        private void jjCheckNAddStates(int start, int end)
+        private void JjCheckNAddStates(int start, int end)
         {
             do
             {
-                jjCheckNAdd(jjnextStates[start]);
+                JjCheckNAdd(jjnextStates[start]);
             } while (start++ != end);
         }
     }


[56/58] lucenenet git commit: HACK: (4th) Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context.

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs
index e90b365..e49ed8d 100644
--- a/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Ext/TestExtendableQueryParser.cs
@@ -141,5 +141,374 @@ namespace Lucene.Net.QueryParsers.Ext
                 assertEquals("foo & bar", tquery.Term.Text());
             }
         }
+
+
+        #region TestQueryParser
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDefaultOperator()
+        {
+            base.TestDefaultOperator();
+        }
+
+        [Test]
+        public override void TestProtectedCtors()
+        {
+            base.TestProtectedCtors();
+        }
+
+        [Test]
+        public override void TestFuzzySlopeExtendability()
+        {
+            base.TestFuzzySlopeExtendability();
+        }
+
+        [Test]
+        public override void TestStarParsing()
+        {
+            base.TestStarParsing();
+        }
+
+        [Test]
+        public override void TestCustomQueryParserWildcard()
+        {
+            base.TestCustomQueryParserWildcard();
+        }
+
+        [Test]
+        public override void TestCustomQueryParserFuzzy()
+        {
+            base.TestCustomQueryParserFuzzy();
+        }
+
+        [Test]
+        public override void TestNewFieldQuery()
+        {
+            base.TestNewFieldQuery();
+        }
+
+        /// <summary>
+        /// simple synonyms test
+        /// </summary>
+        [Test]
+        public override void TestSynonyms()
+        {
+            base.TestSynonyms();
+        }
+
+        /// <summary>
+        /// forms multiphrase query
+        /// </summary>
+        [Test]
+        public override void TestSynonymsPhrase()
+        {
+            base.TestSynonymsPhrase();
+        }
+
+        /// <summary>
+        /// simple CJK synonym test
+        /// </summary>
+        [Test]
+        public override void TestCJKSynonym()
+        {
+            base.TestCJKSynonym();
+        }
+
+        /// <summary>
+        /// synonyms with default OR operator 
+        /// </summary>
+        [Test]
+        public override void TestCJKSynonymsOR()
+        {
+            base.TestCJKSynonymsOR();
+        }
+
+        /// <summary>
+        /// more complex synonyms with default OR operator
+        /// </summary>
+        [Test]
+        public override void TestCJKSynonymsOR2()
+        {
+            base.TestCJKSynonymsOR2();
+        }
+
+        /// <summary>
+        /// synonyms with default AND operator
+        /// </summary>
+        [Test]
+        public override void TestCJKSynonymsAND()
+        {
+            base.TestCJKSynonymsAND();
+        }
+
+        /// <summary>
+        /// more complex synonyms with default AND operator
+        /// </summary>
+        [Test]
+        public override void TestCJKSynonymsAND2()
+        {
+            base.TestCJKSynonymsAND2();
+        }
+
+        [Test]
+        public override void TestCJKSynonymsPhrase()
+        {
+            base.TestCJKSynonymsPhrase();
+        }
+
+        #endregion
+
+        #region QueryParserTestBase
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestCJK()
+        {
+            base.TestCJK();
+        }
+
+        [Test]
+        public override void TestCJKTerm()
+        {
+            base.TestCJKTerm();
+        }
+
+        [Test]
+        public override void TestCJKBoostedTerm()
+        {
+            base.TestCJKBoostedTerm();
+        }
+
+        [Test]
+        public override void TestCJKPhrase()
+        {
+            base.TestCJKPhrase();
+        }
+
+        [Test]
+        public override void TestCJKBoostedPhrase()
+        {
+            base.TestCJKBoostedPhrase();
+        }
+
+        [Test]
+        public override void TestCJKSloppyPhrase()
+        {
+            base.TestCJKSloppyPhrase();
+        }
+
+        [Test]
+        public override void TestAutoGeneratePhraseQueriesOn()
+        {
+            base.TestAutoGeneratePhraseQueriesOn();
+        }
+
+        [Test]
+        public override void TestSimple()
+        {
+            base.TestSimple();
+        }
+
+        [Test]
+        public override void TestOperatorVsWhitespace()
+        {
+            base.TestOperatorVsWhitespace();
+        }
+
+        [Test]
+        public override void TestPunct()
+        {
+            base.TestPunct();
+        }
+
+        [Test]
+        public override void TestSlop()
+        {
+            base.TestSlop();
+        }
+
+        [Test]
+        public override void TestNumber()
+        {
+            base.TestNumber();
+        }
+
+        [Test]
+        public override void TestWildcard()
+        {
+            base.TestWildcard();
+        }
+
+        [Test]
+        public override void TestLeadingWildcardType()
+        {
+            base.TestLeadingWildcardType();
+        }
+
+        [Test]
+        public override void TestQPA()
+        {
+            base.TestQPA();
+        }
+
+        [Test]
+        public override void TestRange()
+        {
+            base.TestRange();
+        }
+
+        [Test]
+        public override void TestRangeWithPhrase()
+        {
+            base.TestRangeWithPhrase();
+        }
+
+        [Test]
+        public override void TestDateRange()
+        {
+            base.TestDateRange();
+        }
+
+        [Test]
+        public override void TestEscaped()
+        {
+            base.TestEscaped();
+        }
+
+        [Test]
+        public override void TestEscapedVsQuestionMarkAsWildcard()
+        {
+            base.TestEscapedVsQuestionMarkAsWildcard();
+        }
+
+        [Test]
+        public override void TestQueryStringEscaping()
+        {
+            base.TestQueryStringEscaping();
+        }
+
+        [Test]
+        public override void TestTabNewlineCarriageReturn()
+        {
+            base.TestTabNewlineCarriageReturn();
+        }
+
+        [Test]
+        public override void TestSimpleDAO()
+        {
+            base.TestSimpleDAO();
+        }
+
+        [Test]
+        public override void TestBoost()
+        {
+            base.TestBoost();
+        }
+
+        [Test]
+        public override void TestException()
+        {
+            base.TestException();
+        }
+
+        [Test]
+        public override void TestBooleanQuery()
+        {
+            base.TestBooleanQuery();
+        }
+
+        [Test]
+        public override void TestPrecedence()
+        {
+            base.TestPrecedence();
+        }
+
+        [Test]
+        public override void TestEscapedWildcard()
+        {
+            base.TestEscapedWildcard();
+        }
+
+        [Test]
+        public override void TestRegexps()
+        {
+            base.TestRegexps();
+        }
+
+        [Test]
+        public override void TestStopwords()
+        {
+            base.TestStopwords();
+        }
+
+        [Test]
+        public override void TestPositionIncrement()
+        {
+            base.TestPositionIncrement();
+        }
+
+        [Test]
+        public override void TestMatchAllDocs()
+        {
+            base.TestMatchAllDocs();
+        }
+
+        // LUCENE-2002: make sure defaults for StandardAnalyzer's
+        // enableStopPositionIncr & QueryParser's enablePosIncr
+        // "match"
+        [Test]
+        public override void TestPositionIncrements()
+        {
+            base.TestPositionIncrements();
+        }
+
+        [Test]
+        public override void TestCollatedRange()
+        {
+            base.TestCollatedRange();
+        }
+
+        [Test]
+        public override void TestDistanceAsEditsParsing()
+        {
+            base.TestDistanceAsEditsParsing();
+        }
+
+        [Test]
+        public override void TestPhraseQueryToString()
+        {
+            base.TestPhraseQueryToString();
+        }
+
+        [Test]
+        public override void TestParseWildcardAndPhraseQueries()
+        {
+            base.TestParseWildcardAndPhraseQueries();
+        }
+
+        [Test]
+        public override void TestPhraseQueryPositionIncrements()
+        {
+            base.TestPhraseQueryPositionIncrements();
+        }
+
+        [Test]
+        public override void TestMatchAllQueryParsing()
+        {
+            base.TestMatchAllQueryParsing();
+        }
+
+        [Test]
+        public override void TestNestedAndClausesFoo()
+        {
+            base.TestNestedAndClausesFoo();
+        }
+
+        #endregion
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
index 24046a7..eba6b90 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
@@ -236,5 +236,220 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
              */
             //TODO test something like "SmartQueryParser()"
         }
+
+
+        #region QueryParserTestBase
+        // LUCENENET NOTE: Tests in a base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestCJK()
+        {
+            base.TestCJK();
+        }
+
+        [Test]
+        public override void TestCJKTerm()
+        {
+            base.TestCJKTerm();
+        }
+
+        [Test]
+        public override void TestCJKBoostedTerm()
+        {
+            base.TestCJKBoostedTerm();
+        }
+
+        [Test]
+        public override void TestCJKPhrase()
+        {
+            base.TestCJKPhrase();
+        }
+
+        [Test]
+        public override void TestCJKBoostedPhrase()
+        {
+            base.TestCJKBoostedPhrase();
+        }
+
+        [Test]
+        public override void TestCJKSloppyPhrase()
+        {
+            base.TestCJKSloppyPhrase();
+        }
+
+        [Test]
+        public override void TestSimple()
+        {
+            base.TestSimple();
+        }
+
+        [Test]
+        public override void TestPunct()
+        {
+            base.TestPunct();
+        }
+
+        [Test]
+        public override void TestSlop()
+        {
+            base.TestSlop();
+        }
+
+        [Test]
+        public override void TestNumber()
+        {
+            base.TestNumber();
+        }
+
+        [Test]
+        public override void TestWildcard()
+        {
+            base.TestWildcard();
+        }
+
+        [Test]
+        public override void TestLeadingWildcardType()
+        {
+            base.TestLeadingWildcardType();
+        }
+
+        [Test]
+        public override void TestQPA()
+        {
+            base.TestQPA();
+        }
+
+        [Test]
+        public override void TestRange()
+        {
+            base.TestRange();
+        }
+
+        [Test]
+        public override void TestDateRange()
+        {
+            base.TestDateRange();
+        }
+
+        [Test]
+        public override void TestEscaped()
+        {
+            base.TestEscaped();
+        }
+
+        [Test]
+        public override void TestQueryStringEscaping()
+        {
+            base.TestQueryStringEscaping();
+        }
+
+        [Test]
+        public override void TestTabNewlineCarriageReturn()
+        {
+            base.TestTabNewlineCarriageReturn();
+        }
+
+        [Test]
+        public override void TestSimpleDAO()
+        {
+            base.TestSimpleDAO();
+        }
+
+        [Test]
+        public override void TestBoost()
+        {
+            base.TestBoost();
+        }
+
+        [Test]
+        public override void TestException()
+        {
+            base.TestException();
+        }
+
+        [Test]
+        public override void TestBooleanQuery()
+        {
+            base.TestBooleanQuery();
+        }
+
+        [Test]
+        public override void TestPrecedence()
+        {
+            base.TestPrecedence();
+        }
+
+        [Test]
+        public override void TestRegexps()
+        {
+            base.TestRegexps();
+        }
+
+        [Test]
+        public override void TestStopwords()
+        {
+            base.TestStopwords();
+        }
+
+        [Test]
+        public override void TestPositionIncrement()
+        {
+            base.TestPositionIncrement();
+        }
+
+        [Test]
+        public override void TestMatchAllDocs()
+        {
+            base.TestMatchAllDocs();
+        }
+
+        // LUCENE-2002: make sure defaults for StandardAnalyzer's
+        // enableStopPositionIncr & QueryParser's enablePosIncr
+        // "match"
+        [Test]
+        public override void TestPositionIncrements()
+        {
+            base.TestPositionIncrements();
+        }
+
+        [Test]
+        public override void TestDistanceAsEditsParsing()
+        {
+            base.TestDistanceAsEditsParsing();
+        }
+
+        [Test]
+        public override void TestPhraseQueryToString()
+        {
+            base.TestPhraseQueryToString();
+        }
+
+        [Test]
+        public override void TestParseWildcardAndPhraseQueries()
+        {
+            base.TestParseWildcardAndPhraseQueries();
+        }
+
+        [Test]
+        public override void TestPhraseQueryPositionIncrements()
+        {
+            base.TestPhraseQueryPositionIncrements();
+        }
+
+        [Test]
+        public override void TestMatchAllQueryParsing()
+        {
+            base.TestMatchAllQueryParsing();
+        }
+
+        [Test]
+        public override void TestNestedAndClausesFoo()
+        {
+            base.TestNestedAndClausesFoo();
+        }
+
+        #endregion
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs
index 37f00e2..9dcfcde 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestCompressionMode.cs
@@ -88,7 +88,7 @@ namespace Lucene.Net.Codecs.Compressing
             return Arrays.CopyOfRange(bytes.Bytes, bytes.Offset, bytes.Offset + bytes.Length);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestDecompress()
         {
             int iterations = AtLeast(10);
@@ -103,7 +103,7 @@ namespace Lucene.Net.Codecs.Compressing
             }
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestPartialDecompress()
         {
             int iterations = AtLeast(10);
@@ -139,19 +139,19 @@ namespace Lucene.Net.Codecs.Compressing
             return compressed;
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestEmptySequence()
         {
             Test(new byte[0]);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestShortSequence()
         {
             Test(new[] { (byte)Random().Next(256) });
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestIncompressible()
         {
             var decompressed = new byte[RandomInts.NextIntBetween(Random(), 20, 256)];
@@ -162,7 +162,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestConstant()
         {
             var decompressed = new byte[TestUtil.NextInt(Random(), 1, 10000)];
@@ -170,7 +170,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestLUCENE5201()
         {
             sbyte[] data = { 14, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 72, 14, 72, 14, 85, 3, 72, 14, 72, 14, 72, 14, 72, 14, 72, 14, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 85, 3, 72, 14, 50, 64, 0, 46, -1, 0, 0, 0, 29, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 50, 64, 0, 47, -105, 0, 0, 0, 30, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, -97, 6, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68
 , -113, 0, 120, 64, 0, 48, 4, 0, 0, 0, 31, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, 24, 32, 34, 124, 0, 120, 64, 0, 48, 80, 0, 0, 0, 31, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 
 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 7
 2, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 72, 34, 72, 29, 72, 37, 72, 35, 72, 45, 72, 23, 72, 46, 72, 20, 72, 40, 72, 33, 72, 25, 72, 39, 72, 38, 72, 26, 72, 28, 72, 42, 72, 24, 72, 27, 72, 36, 72, 41, 72, 32, 72, 18, 72, 30, 72, 22, 72, 31, 72, 43, 72, 19, 50, 64, 0, 49, 20, 0, 0, 0, 32, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 50, 64, 0, 50, 53, 0, 0, 0, 34, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0
 , 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 50, 64, 0, 51, 85, 0, 0, 0, 36, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, -97, 5, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 50, -64, 0, 51, -45, 0, 0, 0, 37, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, -9
 7, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -113, 0, 2, 3, -97, 6, 0, 68, -113, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 2, 3, 85, 8, -113, 0, 68, -97, 3, 0, 120, 64, 0, 52, -88, 0, 0, 0, 39, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 72, 13, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, 72, 13, 85, 5, 72, 13, -19, -24, -101, -35 };

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
index feb57d0..334ae8d 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/AbstractTestLZ4CompressionMode.cs
@@ -88,7 +88,7 @@ namespace Lucene.Net.Codecs.Compressing
             return compressed;
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestShortLiteralsAndMatchs()
         {
             // literals and matchs lengths <= 15
@@ -96,7 +96,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestLongMatchs()
         {
             // match length >= 20
@@ -108,7 +108,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestLongLiterals()
         {
             // long literals (length >= 16) which are not the last literals
@@ -120,7 +120,7 @@ namespace Lucene.Net.Codecs.Compressing
             Test(decompressed);
         }
 
-        [Test]
+        // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
         public virtual void TestMatchRightBeforeLastLiterals()
         {
             Test(new byte[] { 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 5 });

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs
index acdf73c..998b942 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingStoredFieldsFormat.cs
@@ -100,5 +100,94 @@ namespace Lucene.Net.Codecs.Compressing
                 this.OuterInstance = outerInstance;
             }
         }
+
+
+        #region BaseStoredFieldsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestRandomStoredFields()
+        {
+            base.TestRandomStoredFields();
+        }
+
+        [Test]
+        // LUCENE-1727: make sure doc fields are stored in order
+        public override void TestStoredFieldsOrder()
+        {
+            base.TestStoredFieldsOrder();
+        }
+
+        [Test]
+        // LUCENE-1219
+        public override void TestBinaryFieldOffsetLength()
+        {
+            base.TestBinaryFieldOffsetLength();
+        }
+
+        [Test]
+        public override void TestNumericField()
+        {
+            base.TestNumericField();
+        }
+
+        [Test]
+        public override void TestIndexedBit()
+        {
+            base.TestIndexedBit();
+        }
+
+        [Test]
+        public override void TestReadSkip()
+        {
+            base.TestReadSkip();
+        }
+
+        [Test]
+        public override void TestEmptyDocs()
+        {
+            base.TestEmptyDocs();
+        }
+
+        [Test]
+        public override void TestConcurrentReads()
+        {
+            base.TestConcurrentReads();
+        }
+
+        [Test]
+        public override void TestWriteReadMerge()
+        {
+            base.TestWriteReadMerge();
+        }
+
+        [Test, Timeout(300000)]
+        public override void TestBigDocuments()
+        {
+            base.TestBigDocuments();
+        }
+
+        [Test]
+        public override void TestBulkMergeWithDeletes()
+        {
+            base.TestBulkMergeWithDeletes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs
index 90b06cf..709af74 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestCompressingTermVectorsFormat.cs
@@ -84,5 +84,72 @@ namespace Lucene.Net.Codecs.Compressing
             iw.Dispose();
             dir.Dispose();
         }
+
+
+        #region BaseTermVectorsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        // only one doc with vectors
+        public override void TestRareVectors()
+        {
+            base.TestRareVectors();
+        }
+
+        [Test]
+        public override void TestHighFreqs()
+        {
+            base.TestHighFreqs();
+        }
+
+        [Test]
+        public override void TestLotsOfFields()
+        {
+            base.TestLotsOfFields();
+        }
+
+        [Test]
+        // different options for the same field
+        public override void TestMixedOptions()
+        {
+            base.TestMixedOptions();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        [Test, Timeout(30000)]
+        public override void TestMerge()
+        {
+            base.TestMerge();
+        }
+
+        [Test]
+        // run random tests from different threads to make sure the per-thread clones
+        // don't share mutable data
+        public override void TestClone()
+        {
+            base.TestClone();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs
index dd7d708..6a74a51 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastCompressionMode.cs
@@ -28,5 +28,86 @@ namespace Lucene.Net.Codecs.Compressing
             base.SetUp();
             Mode = CompressionMode.FAST;
         }
+
+
+        #region AbstractTestLZ4CompressionMode
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestShortLiteralsAndMatchs()
+        {
+            base.TestShortLiteralsAndMatchs();
+        }
+
+        [Test]
+        public override void TestLongMatchs()
+        {
+            base.TestLongMatchs();
+        }
+
+        [Test]
+        public override void TestLongLiterals()
+        {
+            base.TestLongLiterals();
+        }
+
+        [Test]
+        public override void TestMatchRightBeforeLastLiterals()
+        {
+            base.TestMatchRightBeforeLastLiterals();
+        }
+
+        #endregion
+
+        #region AbstractTestCompressionMode
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDecompress()
+        {
+            base.TestDecompress();
+        }
+
+        [Test]
+        public override void TestPartialDecompress()
+        {
+            base.TestPartialDecompress();
+        }
+
+        [Test]
+        public override void TestEmptySequence()
+        {
+            base.TestEmptySequence();
+        }
+
+        [Test]
+        public override void TestShortSequence()
+        {
+            base.TestShortSequence();
+        }
+
+        [Test]
+        public override void TestIncompressible()
+        {
+            base.TestIncompressible();
+        }
+
+        [Test]
+        public override void TestConstant()
+        {
+            base.TestConstant();
+        }
+
+        [Test]
+        public override void TestLUCENE5201()
+        {
+            base.TestLUCENE5201();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs
index d7fc0b0..b90a582 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestFastDecompressionMode.cs
@@ -38,5 +38,86 @@ namespace Lucene.Net.Codecs.Compressing
             Assert.IsTrue(compressed.Length <= compressed2.Length);
             return compressed;
         }
+
+
+        #region AbstractTestLZ4CompressionMode
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestShortLiteralsAndMatchs()
+        {
+            base.TestShortLiteralsAndMatchs();
+        }
+
+        [Test]
+        public override void TestLongMatchs()
+        {
+            base.TestLongMatchs();
+        }
+
+        [Test]
+        public override void TestLongLiterals()
+        {
+            base.TestLongLiterals();
+        }
+
+        [Test]
+        public override void TestMatchRightBeforeLastLiterals()
+        {
+            base.TestMatchRightBeforeLastLiterals();
+        }
+
+        #endregion
+
+        #region AbstractTestCompressionMode
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDecompress()
+        {
+            base.TestDecompress();
+        }
+
+        [Test]
+        public override void TestPartialDecompress()
+        {
+            base.TestPartialDecompress();
+        }
+
+        [Test]
+        public override void TestEmptySequence()
+        {
+            base.TestEmptySequence();
+        }
+
+        [Test]
+        public override void TestShortSequence()
+        {
+            base.TestShortSequence();
+        }
+
+        [Test]
+        public override void TestIncompressible()
+        {
+            base.TestIncompressible();
+        }
+
+        [Test]
+        public override void TestConstant()
+        {
+            base.TestConstant();
+        }
+
+        [Test]
+        public override void TestLUCENE5201()
+        {
+            base.TestLUCENE5201();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs
index eebcda1..679d1f0 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Compressing/TestHighCompressionMode.cs
@@ -28,5 +28,55 @@ namespace Lucene.Net.Codecs.Compressing
             base.SetUp();
             Mode = CompressionMode.HIGH_COMPRESSION;
         }
+
+
+        #region AbstractTestCompressionMode
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDecompress()
+        {
+            base.TestDecompress();
+        }
+
+        [Test]
+        public override void TestPartialDecompress()
+        {
+            base.TestPartialDecompress();
+        }
+
+        [Test]
+        public override void TestEmptySequence()
+        {
+            base.TestEmptySequence();
+        }
+
+        [Test]
+        public override void TestShortSequence()
+        {
+            base.TestShortSequence();
+        }
+
+        [Test]
+        public override void TestIncompressible()
+        {
+            base.TestIncompressible();
+        }
+
+        [Test]
+        public override void TestConstant()
+        {
+            base.TestConstant();
+        }
+
+        [Test]
+        public override void TestLUCENE5201()
+        {
+            base.TestLUCENE5201();
+        }
+        #endregion
+
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs
index cf1bafc..0ab9a7b 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xPostingsFormat.cs
@@ -42,5 +42,68 @@ namespace Lucene.Net.Codecs.Lucene3x
                 return Codec_Renamed;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs
index b28f86a..d3d0889 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xStoredFieldsFormat.cs
@@ -52,5 +52,89 @@ namespace Lucene.Net.Codecs.Lucene3x
             // for 3.x: we currently cannot take an index with existing 4.x segments
             // and merge into newly formed 3.x segments.
         }
+
+
+
+        #region BaseStoredFieldsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestRandomStoredFields()
+        {
+            base.TestRandomStoredFields();
+        }
+
+        [Test]
+        // LUCENE-1727: make sure doc fields are stored in order
+        public override void TestStoredFieldsOrder()
+        {
+            base.TestStoredFieldsOrder();
+        }
+
+        [Test]
+        // LUCENE-1219
+        public override void TestBinaryFieldOffsetLength()
+        {
+            base.TestBinaryFieldOffsetLength();
+        }
+
+        [Test]
+        public override void TestNumericField()
+        {
+            base.TestNumericField();
+        }
+
+        [Test]
+        public override void TestIndexedBit()
+        {
+            base.TestIndexedBit();
+        }
+
+        [Test]
+        public override void TestReadSkip()
+        {
+            base.TestReadSkip();
+        }
+
+        [Test]
+        public override void TestEmptyDocs()
+        {
+            base.TestEmptyDocs();
+        }
+
+        [Test]
+        public override void TestConcurrentReads()
+        {
+            base.TestConcurrentReads();
+        }
+
+        [Test, Timeout(120000)]
+        public override void TestBigDocuments()
+        {
+            base.TestBigDocuments();
+        }
+
+        [Test]
+        public override void TestBulkMergeWithDeletes()
+        {
+            base.TestBulkMergeWithDeletes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs
index 1cf090b..5756752 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene3x/TestLucene3xTermVectorsFormat.cs
@@ -46,5 +46,72 @@ namespace Lucene.Net.Codecs.Lucene3x
         {
             return ValidOptions(Options.NONE, Options.POSITIONS_AND_OFFSETS);
         }
+
+
+        #region BaseTermVectorsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        // only one doc with vectors
+        public override void TestRareVectors()
+        {
+            base.TestRareVectors();
+        }
+
+        [Test]
+        public override void TestHighFreqs()
+        {
+            base.TestHighFreqs();
+        }
+
+        [Test]
+        public override void TestLotsOfFields()
+        {
+            base.TestLotsOfFields();
+        }
+
+        [Test, Timeout(300000)]
+        // different options for the same field
+        public override void TestMixedOptions()
+        {
+            base.TestMixedOptions();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        [Test]
+        public override void TestMerge()
+        {
+            base.TestMerge();
+        }
+
+        [Test]
+        // run random tests from different threads to make sure the per-thread clones
+        // don't share mutable data
+        public override void TestClone()
+        {
+            base.TestClone();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs
index 9ee39e7..3686767 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40DocValuesFormat.cs
@@ -50,5 +50,506 @@ namespace Lucene.Net.Codecs.Lucene40
         {
             return false;
         }
+
+
+        #region BaseDocValuesFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestOneNumber()
+        {
+            base.TestOneNumber();
+        }
+
+        [Test]
+        public override void TestOneFloat()
+        {
+            base.TestOneFloat();
+        }
+
+        [Test]
+        public override void TestTwoNumbers()
+        {
+            base.TestTwoNumbers();
+        }
+
+        [Test]
+        public override void TestTwoBinaryValues()
+        {
+            base.TestTwoBinaryValues();
+        }
+
+        [Test]
+        public override void TestTwoFieldsMixed()
+        {
+            base.TestTwoFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed()
+        {
+            base.TestThreeFieldsMixed();
+        }
+
+        [Test]
+        public override void TestThreeFieldsMixed2()
+        {
+            base.TestThreeFieldsMixed2();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsNumeric()
+        {
+            base.TestTwoDocumentsNumeric();
+        }
+
+        [Test]
+        public override void TestTwoDocumentsMerged()
+        {
+            base.TestTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestBigNumericRange()
+        {
+            base.TestBigNumericRange();
+        }
+
+        [Test]
+        public override void TestBigNumericRange2()
+        {
+            base.TestBigNumericRange2();
+        }
+
+        [Test]
+        public override void TestBytes()
+        {
+            base.TestBytes();
+        }
+
+        [Test]
+        public override void TestBytesTwoDocumentsMerged()
+        {
+            base.TestBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedBytes()
+        {
+            base.TestSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocuments()
+        {
+            base.TestSortedBytesTwoDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesThreeDocuments()
+        {
+            base.TestSortedBytesThreeDocuments();
+        }
+
+        [Test]
+        public override void TestSortedBytesTwoDocumentsMerged()
+        {
+            base.TestSortedBytesTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedMergeAwayAllValues()
+        {
+            base.TestSortedMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestBytesWithNewline()
+        {
+            base.TestBytesWithNewline();
+        }
+
+        [Test]
+        public override void TestMissingSortedBytes()
+        {
+            base.TestMissingSortedBytes();
+        }
+
+        [Test]
+        public override void TestSortedTermsEnum()
+        {
+            base.TestSortedTermsEnum();
+        }
+
+        [Test]
+        public override void TestEmptySortedBytes()
+        {
+            base.TestEmptySortedBytes();
+        }
+
+        [Test]
+        public override void TestEmptyBytes()
+        {
+            base.TestEmptyBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalBytes()
+        {
+            base.TestVeryLargeButLegalBytes();
+        }
+
+        [Test]
+        public override void TestVeryLargeButLegalSortedBytes()
+        {
+            base.TestVeryLargeButLegalSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytes()
+        {
+            base.TestCodecUsesOwnBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytes()
+        {
+            base.TestCodecUsesOwnSortedBytes();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnBytesEachTime()
+        {
+            base.TestCodecUsesOwnBytesEachTime();
+        }
+
+        [Test]
+        public override void TestCodecUsesOwnSortedBytesEachTime()
+        {
+            base.TestCodecUsesOwnSortedBytesEachTime();
+        }
+
+        /*
+         * Simple test case to show how to use the API
+         */
+        [Test]
+        public override void TestDocValuesSimple()
+        {
+            base.TestDocValuesSimple();
+        }
+
+        [Test]
+        public override void TestRandomSortedBytes()
+        {
+            base.TestRandomSortedBytes();
+        }
+
+        [Test]
+        public override void TestBooleanNumericsVsStoredFields()
+        {
+            base.TestBooleanNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteNumericsVsStoredFields()
+        {
+            base.TestByteNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestByteMissingVsFieldCache()
+        {
+            base.TestByteMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestShortNumericsVsStoredFields()
+        {
+            base.TestShortNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestShortMissingVsFieldCache()
+        {
+            base.TestShortMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestIntNumericsVsStoredFields()
+        {
+            base.TestIntNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestIntMissingVsFieldCache()
+        {
+            base.TestIntMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestLongNumericsVsStoredFields()
+        {
+            base.TestLongNumericsVsStoredFields();
+        }
+
+        [Test]
+        public override void TestLongMissingVsFieldCache()
+        {
+            base.TestLongMissingVsFieldCache();
+        }
+
+        [Test]
+        public override void TestBinaryFixedLengthVsStoredFields()
+        {
+            base.TestBinaryFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestBinaryVariableLengthVsStoredFields()
+        {
+            base.TestBinaryVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsStoredFields()
+        {
+            base.TestSortedFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedFixedLengthVsFieldCache()
+        {
+            base.TestSortedFixedLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsFieldCache()
+        {
+            base.TestSortedVariableLengthVsFieldCache();
+        }
+
+        [Test]
+        public override void TestSortedVariableLengthVsStoredFields()
+        {
+            base.TestSortedVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetOneValue()
+        {
+            base.TestSortedSetOneValue();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoFields()
+        {
+            base.TestSortedSetTwoFields();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsMerged()
+        {
+            base.TestSortedSetTwoDocumentsMerged();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValues()
+        {
+            base.TestSortedSetTwoValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoValuesUnordered()
+        {
+            base.TestSortedSetTwoValuesUnordered();
+        }
+
+        [Test]
+        public override void TestSortedSetThreeValuesTwoDocs()
+        {
+            base.TestSortedSetThreeValuesTwoDocs();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissing()
+        {
+            base.TestSortedSetTwoDocumentsLastMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsLastMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsLastMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissing()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissing();
+        }
+
+        [Test]
+        public override void TestSortedSetTwoDocumentsFirstMissingMerge()
+        {
+            base.TestSortedSetTwoDocumentsFirstMissingMerge();
+        }
+
+        [Test]
+        public override void TestSortedSetMergeAwayAllValues()
+        {
+            base.TestSortedSetMergeAwayAllValues();
+        }
+
+        [Test]
+        public override void TestSortedSetTermsEnum()
+        {
+            base.TestSortedSetTermsEnum();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
+        {
+            base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
+        }
+
+        [Test]
+        public override void TestSortedSetFixedLengthVsUninvertedField()
+        {
+            base.TestSortedSetFixedLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestSortedSetVariableLengthVsUninvertedField()
+        {
+            base.TestSortedSetVariableLengthVsUninvertedField();
+        }
+
+        [Test]
+        public override void TestGCDCompression()
+        {
+            base.TestGCDCompression();
+        }
+
+        [Test]
+        public override void TestZeros()
+        {
+            base.TestZeros();
+        }
+
+        [Test]
+        public override void TestZeroOrMin()
+        {
+            base.TestZeroOrMin();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissing()
+        {
+            base.TestTwoNumbersOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoNumbersOneMissingWithMerging()
+        {
+            base.TestTwoNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeNumbersOneMissingWithMerging()
+        {
+            base.TestThreeNumbersOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissing()
+        {
+            base.TestTwoBytesOneMissing();
+        }
+
+        [Test]
+        public override void TestTwoBytesOneMissingWithMerging()
+        {
+            base.TestTwoBytesOneMissingWithMerging();
+        }
+
+        [Test]
+        public override void TestThreeBytesOneMissingWithMerging()
+        {
+            base.TestThreeBytesOneMissingWithMerging();
+        }
+
+        // LUCENE-4853
+        [Test]
+        public override void TestHugeBinaryValues()
+        {
+            base.TestHugeBinaryValues();
+        }
+
+        // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
+        [Test]
+        public override void TestHugeBinaryValueLimit()
+        {
+            base.TestHugeBinaryValueLimit();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads()
+        {
+            base.TestThreads();
+        }
+
+        /// <summary>
+        /// Tests dv against stored fields with threads (all types + missing)
+        /// </summary>
+        [Test]
+        public override void TestThreads2()
+        {
+            base.TestThreads2();
+        }
+
+        // LUCENE-5218
+        [Test]
+        public override void TestEmptyBinaryValueOnPageSizes()
+        {
+            base.TestEmptyBinaryValueOnPageSizes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs
index c7f7f07..0d3666d 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40PostingsFormat.cs
@@ -44,5 +44,68 @@ namespace Lucene.Net.Codecs.Lucene40
                 return new Lucene40RWCodec(OLD_FORMAT_IMPERSONATION_IS_ACTIVE);
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs
index 4e57234..4e3bebf 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40StoredFieldsFormat.cs
@@ -41,5 +41,94 @@ namespace Lucene.Net.Codecs.Lucene40
                 return new Lucene40RWCodec(OLD_FORMAT_IMPERSONATION_IS_ACTIVE);
             }
         }
+
+
+        #region BaseStoredFieldsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestRandomStoredFields()
+        {
+            base.TestRandomStoredFields();
+        }
+
+        [Test]
+        // LUCENE-1727: make sure doc fields are stored in order
+        public override void TestStoredFieldsOrder()
+        {
+            base.TestStoredFieldsOrder();
+        }
+
+        [Test]
+        // LUCENE-1219
+        public override void TestBinaryFieldOffsetLength()
+        {
+            base.TestBinaryFieldOffsetLength();
+        }
+
+        [Test]
+        public override void TestNumericField()
+        {
+            base.TestNumericField();
+        }
+
+        [Test]
+        public override void TestIndexedBit()
+        {
+            base.TestIndexedBit();
+        }
+
+        [Test]
+        public override void TestReadSkip()
+        {
+            base.TestReadSkip();
+        }
+
+        [Test, Timeout(300000)]
+        public override void TestEmptyDocs()
+        {
+            base.TestEmptyDocs();
+        }
+
+        [Test, Timeout(300000)]
+        public override void TestConcurrentReads()
+        {
+            base.TestConcurrentReads();
+        }
+
+        [Test]
+        public override void TestWriteReadMerge()
+        {
+            base.TestWriteReadMerge();
+        }
+
+        [Test, Timeout(80000)]
+        public override void TestBigDocuments()
+        {
+            base.TestBigDocuments();
+        }
+
+        [Test]
+        public override void TestBulkMergeWithDeletes()
+        {
+            base.TestBulkMergeWithDeletes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs
index 342d7ce..9a6e544 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene40/TestLucene40TermVectorsFormat.cs
@@ -41,5 +41,72 @@ namespace Lucene.Net.Codecs.Lucene40
                 return new Lucene40RWCodec(OLD_FORMAT_IMPERSONATION_IS_ACTIVE);
             }
         }
+
+
+        #region BaseTermVectorsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        // only one doc with vectors
+        public override void TestRareVectors()
+        {
+            base.TestRareVectors();
+        }
+
+        [Test]
+        public override void TestHighFreqs()
+        {
+            base.TestHighFreqs();
+        }
+
+        [Test]
+        public override void TestLotsOfFields()
+        {
+            base.TestLotsOfFields();
+        }
+
+        [Test, Timeout(300000)]
+        // different options for the same field
+        public override void TestMixedOptions()
+        {
+            base.TestMixedOptions();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        [Test]
+        public override void TestMerge()
+        {
+            base.TestMerge();
+        }
+
+        [Test]
+        // run random tests from different threads to make sure the per-thread clones
+        // don't share mutable data
+        public override void TestClone()
+        {
+            base.TestClone();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs
index 201eaf6..fb309a5 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat.cs
@@ -1,3 +1,5 @@
+using NUnit.Framework;
+
 namespace Lucene.Net.Codecs.Lucene41
 {
     /*
@@ -34,5 +36,68 @@ namespace Lucene.Net.Codecs.Lucene41
                 return Codec_Renamed;
             }
         }
+
+
+        #region BasePostingsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestDocsOnly()
+        {
+            base.TestDocsOnly();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqs()
+        {
+            base.TestDocsAndFreqs();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositions()
+        {
+            base.TestDocsAndFreqsAndPositions();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndPayloads();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsets()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsets();
+        }
+
+        [Test]
+        public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
+        {
+            base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
+        }
+
+        [Test]
+        public override void TestRandom()
+        {
+            base.TestRandom();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/701b9ed2/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs
index 4259478..bcd5a49 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestLucene41StoredFieldsFormat.cs
@@ -40,5 +40,94 @@ namespace Lucene.Net.Codecs.Lucene41
                 return new Lucene41RWCodec(OLD_FORMAT_IMPERSONATION_IS_ACTIVE);
             }
         }
+
+
+        #region BaseStoredFieldsFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestRandomStoredFields()
+        {
+            base.TestRandomStoredFields();
+        }
+
+        [Test]
+        // LUCENE-1727: make sure doc fields are stored in order
+        public override void TestStoredFieldsOrder()
+        {
+            base.TestStoredFieldsOrder();
+        }
+
+        [Test]
+        // LUCENE-1219
+        public override void TestBinaryFieldOffsetLength()
+        {
+            base.TestBinaryFieldOffsetLength();
+        }
+
+        [Test]
+        public override void TestNumericField()
+        {
+            base.TestNumericField();
+        }
+
+        [Test]
+        public override void TestIndexedBit()
+        {
+            base.TestIndexedBit();
+        }
+
+        [Test]
+        public override void TestReadSkip()
+        {
+            base.TestReadSkip();
+        }
+
+        [Test, Timeout(300000)]
+        public override void TestEmptyDocs()
+        {
+            base.TestEmptyDocs();
+        }
+
+        [Test, Timeout(300000)]
+        public override void TestConcurrentReads()
+        {
+            base.TestConcurrentReads();
+        }
+
+        [Test]
+        public override void TestWriteReadMerge()
+        {
+            base.TestWriteReadMerge();
+        }
+
+        [Test, Timeout(120000)]
+        public override void TestBigDocuments()
+        {
+            base.TestBigDocuments();
+        }
+
+        [Test]
+        public override void TestBulkMergeWithDeletes()
+        {
+            base.TestBulkMergeWithDeletes();
+        }
+
+        #endregion
+
+        #region BaseIndexFileFormatTestCase
+        // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
+        // context in Visual Studio. This fixes that with the minimum amount of code necessary
+        // to run them in the correct context without duplicating all of the tests.
+
+        [Test]
+        public override void TestMergeStability()
+        {
+            base.TestMergeStability();
+        }
+
+        #endregion
     }
 }
\ No newline at end of file


[19/58] lucenenet git commit: QueryParser.Flexible: Fixed all TestNumericQueryParser tests.

Posted by ni...@apache.org.
QueryParser.Flexible: Fixed all TestNumericQueryParser tests.


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

Branch: refs/heads/master
Commit: 6e7a7332bce9c9aaf7e43b887ddaeba204c902af
Parents: 67cd448
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Dec 2 20:37:38 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Dec 2 20:41:00 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Lucene.Net.csproj           |    1 +
 src/Lucene.Net.Core/Support/NumberFormat.cs     |  138 ++
 .../Flexible/Core/Parser/EscapeQuerySyntax.cs   |   10 +
 .../Standard/Config/NumberDateFormat.cs         |  152 ++-
 .../Flexible/Standard/Config/NumericConfig.cs   |    9 +-
 .../Flexible/Standard/Nodes/NumericQueryNode.cs |   15 +-
 .../Standard/Parser/EscapeQuerySyntaxImpl.cs    |   10 +-
 .../Processors/NumericQueryNodeProcessor.cs     |    8 +-
 .../NumericRangeQueryNodeProcessor.cs           |   11 +-
 .../Flexible/Standard/TestNumericQueryParser.cs | 1291 ++++++++++--------
 10 files changed, 1063 insertions(+), 582 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.Core/Lucene.Net.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Lucene.Net.csproj b/src/Lucene.Net.Core/Lucene.Net.csproj
index 5ce5f82..85ab464 100644
--- a/src/Lucene.Net.Core/Lucene.Net.csproj
+++ b/src/Lucene.Net.Core/Lucene.Net.csproj
@@ -649,6 +649,7 @@
     <Compile Include="Support\LurchTable.cs" />
     <Compile Include="Support\MathExtension.cs" />
     <Compile Include="Support\MemoryMappedFileByteBuffer.cs" />
+    <Compile Include="Support\NumberFormat.cs" />
     <Compile Include="Support\ObjectExtensions.cs" />
     <Compile Include="Support\PriorityQueue.cs" />
     <Compile Include="Support\ReentrantLock.cs" />

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.Core/Support/NumberFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/NumberFormat.cs b/src/Lucene.Net.Core/Support/NumberFormat.cs
new file mode 100644
index 0000000..269f8e7
--- /dev/null
+++ b/src/Lucene.Net.Core/Support/NumberFormat.cs
@@ -0,0 +1,138 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.Support
+{
+    public class NumberFormat
+    {
+        protected readonly CultureInfo locale;
+
+        private int maximumIntegerDigits;
+        private int minimumIntegerDigits;
+        private int maximumFractionDigits;
+        private int minimumFractionDigits;
+
+        public NumberFormat(CultureInfo locale)
+        {
+            this.locale = locale;
+        }
+
+        public virtual string Format(object number)
+        {
+            string format = GetNumberFormat();
+
+            if (number is int)
+            {
+                return ((int)number).ToString(format, locale);
+            }
+            else if (number is long)
+            {
+                return ((long)number).ToString(format, locale);
+            }
+            else if (number is short)
+            {
+                return ((short)number).ToString(format, locale);
+            }
+            else if (number is float)
+            {
+                return ((float)number).ToString(format, locale);
+            }
+            else if (number is double)
+            {
+                return ((double)number).ToString(format, locale);
+            }
+            else if (number is decimal)
+            {
+                return ((decimal)number).ToString(format, locale);
+            }
+
+            throw new ArgumentException("Cannot format given object as a Number");
+        }
+
+        public virtual string Format(double number)
+        {
+            string format = GetNumberFormat();
+            return number.ToString(format, locale);
+        }
+
+        public virtual string Format(long number)
+        {
+            string format = GetNumberFormat();
+            return number.ToString(format, locale);
+        }
+
+        protected virtual string GetNumberFormat()
+        {
+            return null;
+        }
+
+        public virtual /*Number*/ object Parse(string source)
+        {
+            return decimal.Parse(source, locale);
+        }
+
+        // LUCENENET TODO: Add additional functionality to edit the NumberFormatInfo
+        // properties, which provides somewhat similar functionality to the below Java
+        // getters and setters.
+
+        //public virtual int MaximumIntegerDigits
+        //{
+        //    get { return this.maximumIntegerDigits; }
+        //}
+
+        //public virtual void SetMaximumIntegerDigits(int newValue)
+        //{
+        //    this.maximumIntegerDigits = Math.Max(0, newValue);
+        //    if (maximumIntegerDigits < minimumIntegerDigits)
+        //    {
+        //        minimumIntegerDigits = maximumIntegerDigits;
+        //    }
+        //}
+
+        //public virtual int MinimumIntegerDigits
+        //{
+        //    get { return this.minimumIntegerDigits; }
+        //}
+
+        //public virtual void SetMinimumIntegerDigits(int newValue)
+        //{
+        //    this.minimumIntegerDigits = Math.Max(0, newValue);
+        //    if (minimumIntegerDigits > maximumIntegerDigits)
+        //    {
+        //        maximumIntegerDigits = minimumIntegerDigits;
+        //    }
+        //}
+
+        //public virtual int MaximumFractionDigits
+        //{
+        //    get { return this.maximumFractionDigits; }
+        //}
+
+        //public virtual void SetMaximumFractionDigits(int newValue)
+        //{
+        //    maximumFractionDigits = Math.Max(0, newValue);
+        //    if (maximumFractionDigits < minimumFractionDigits)
+        //    {
+        //        minimumFractionDigits = maximumFractionDigits;
+        //    }
+        //}
+
+        //public virtual int MinimumFractionDigits
+        //{
+        //    get { return this.minimumFractionDigits; }
+        //}
+
+        //public void SetMinimumFractionDigits(int newValue)
+        //{
+        //    minimumFractionDigits = Math.Max(0, newValue);
+        //    if (maximumFractionDigits < minimumFractionDigits)
+        //    {
+        //        maximumFractionDigits = minimumFractionDigits;
+        //    }
+        //}
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
index d0e6803..ade0394 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
@@ -21,6 +21,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
         /// <param name="locale">locale for the current query</param>
         /// <param name="type">select the type of escape operation to use</param>
         /// <returns>escaped text</returns>
+        // LUCENENET specific overload for text as string
+        string Escape(string text, CultureInfo locale, EscapeQuerySyntax.Type type);
+
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="text"> text to be escaped</param>
+        /// <param name="locale">locale for the current query</param>
+        /// <param name="type">select the type of escape operation to use</param>
+        /// <returns>escaped text</returns>
         ICharSequence Escape(ICharSequence text, CultureInfo locale, EscapeQuerySyntax.Type type);
     }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
index c7f9f63..fc821eb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
@@ -1,4 +1,154 @@
-\ufeff// LUCENENET TODO: Do we need this class?
+\ufeffusing Lucene.Net.Documents;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
+{
+    /// <summary>
+    /// LUCENENET specific enum for mimicking the Java DateFormat
+    /// </summary>
+    public enum DateStyle
+    {
+        FULL, LONG,
+        MEDIUM, SHORT
+    }
+
+    /// <summary>
+    /// This {@link Format} parses {@link Long} into date strings and vice-versa. It
+    /// uses the given {@link DateFormat} to parse and format dates, but before, it
+    /// converts {@link Long} to {@link Date} objects or vice-versa.
+    /// </summary>
+    public class NumberDateFormat : NumberFormat
+    {
+        //private static readonly long serialVersionUID = 964823936071308283L;
+
+        // The .NET ticks representing January 1, 1970 0:00:00, also known as the "epoch".
+        private const long EPOCH = 621355968000000000;
+
+        //private readonly DateFormat dateFormat;
+        private readonly DateStyle dateStyle;
+        private readonly DateStyle timeStyle;
+        //private readonly CultureInfo locale;
+        private readonly TimeZoneInfo timeZone;
+
+        /**
+         * Constructs a {@link NumberDateFormat} object using the given {@link DateFormat}.
+         * 
+         * @param dateFormat {@link DateFormat} used to parse and format dates
+         */
+        //public NumberDateFormat(DateFormat dateFormat)
+        //{
+        //    this.dateFormat = dateFormat;
+        //}
+
+        //public NumberDateFormat(string dateFormat, CultureInfo locale)
+        //{
+        //    this.dateFormat = dateFormat;
+        //    this.locale = locale;
+        //}
+
+        //public NumberDateFormat(string dateFormat)
+        //    : this(dateFormat, CultureInfo.CurrentCulture)
+        //{
+        //}
+
+        public NumberDateFormat(DateStyle dateStyle, DateStyle timeStyle, CultureInfo locale, TimeZoneInfo timeZone)
+            : base(locale)
+        {
+            this.dateStyle = dateStyle;
+            this.timeStyle = timeStyle;
+            //this.locale = locale;
+            this.timeZone = timeZone;
+        }
+
+        public override string Format(double number)
+        {
+            //long ticks = (long)number + EPOCH;
+            //return new DateTime(ticks).ToString(GetDateFormat(), this.locale);
+
+            return new DateTime(EPOCH).AddMilliseconds(number).ToString(GetDateFormat(), this.locale);
+        }
+
+
+        public override string Format(long number)
+        {
+            //long ticks = number + EPOCH;
+            //return new DateTime(ticks).ToString(GetDateFormat(), this.locale);
+
+            return new DateTime(EPOCH).AddMilliseconds(number).ToString(GetDateFormat(), this.locale);
+        }
+
+
+        public override /*Number*/ object Parse(string source)
+        {
+            return (DateTime.Parse(source, this.locale) - new DateTime(EPOCH)).TotalMilliseconds;
+
+            //DateTime date = DateTime.Parse(source, this.locale);
+            //return date.Ticks - EPOCH;
+
+            //DateTime date = dateFormat.parse(source, parsePosition);
+            //return (date == null) ? null : date.getTime();
+        }
+
+
+        public override string Format(object number)
+        {
+            //long ticks = Convert.ToInt64(number) + EPOCH;
+            //return new DateTime(ticks).ToString(GetDateFormat(), this.locale);
+
+            return new DateTime(EPOCH).AddMilliseconds(Convert.ToInt64(number)).ToString(GetDateFormat(), this.locale);
+        }
+
+
+        private string GetDateFormat()
+        {
+            string datePattern = "", timePattern = "";
+
+            switch (dateStyle)
+            {
+                case DateStyle.SHORT:
+                    datePattern = locale.DateTimeFormat.ShortDatePattern;
+                    break;
+                case DateStyle.MEDIUM:
+                    datePattern = locale.DateTimeFormat.LongDatePattern
+                        .Replace("dddd,", "").Replace(", dddd", "") // Remove the day of the week
+                        .Replace("MMMM", "MMM"); // Replace month with abbreviated month
+                    break;
+                case DateStyle.LONG:
+                    datePattern = locale.DateTimeFormat.LongDatePattern
+                        .Replace("dddd,", "").Replace(", dddd", ""); // Remove the day of the week
+                    break;
+                case DateStyle.FULL:
+                    datePattern = locale.DateTimeFormat.LongDatePattern;
+                    break;
+            }
+
+            switch (timeStyle)
+            {
+                case DateStyle.SHORT:
+                    timePattern = locale.DateTimeFormat.ShortTimePattern;
+                    break;
+                case DateStyle.MEDIUM:
+                    timePattern = locale.DateTimeFormat.LongTimePattern;
+                    break;
+                case DateStyle.LONG:
+                    timePattern = locale.DateTimeFormat.LongTimePattern; // LUCENENET TODO: Time zone info not being added
+                    break;
+                case DateStyle.FULL:
+                    timePattern = locale.DateTimeFormat.LongTimePattern; // LUCENENET TODO: Time zone info not being added, but Java doc is unclear on what the difference is between this and LONG
+                    break;
+            }
+
+            return string.Concat(datePattern, " ", timePattern);
+        }
+    }
+}
+
 
 //using System;
 //using System.Collections.Generic;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
index 1147a6d..280fe1f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
@@ -1,4 +1,5 @@
-\ufeffusing System;
+\ufeffusing Lucene.Net.Support;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -17,7 +18,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
     {
         private int precisionStep;
 
-        private /*NumberFormat*/ string format;
+        private NumberFormat format;
 
         private NumericType type;
 
@@ -36,7 +37,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          * @see NumericConfig#setNumberFormat(NumberFormat)
          * @see #setType(org.apache.lucene.document.FieldType.NumericType)
          */
-        public NumericConfig(int precisionStep, /*NumberFormat*/ string format,
+        public NumericConfig(int precisionStep, NumberFormat format,
             NumericType type)
         {
             PrecisionStep = precisionStep;
@@ -64,7 +65,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
          * @return the {@link NumberFormat} used to parse a {@link String} to
          *         {@link Number}
          */
-        public virtual /*NumberFormat*/ string NumberFormat
+        public virtual NumberFormat NumberFormat
         {
             get { return format; }
             set

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
index 01526f3..b3f55fc 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
@@ -18,7 +18,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
     /// <seealso cref="NumericConfig"/>
     public class NumericQueryNode : QueryNodeImpl, IFieldValuePairQueryNode<object> // LUCENENET TODO: Can we use Decimal??
     {
-        private /*NumberFormat*/ string numberFormat;
+        private NumberFormat numberFormat;
 
         private string field;
 
@@ -34,7 +34,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          * @param numberFormat the {@link NumberFormat} used to convert the value to {@link String}
          */
         public NumericQueryNode(string field, /*Number*/ object value,
-            /*NumberFormat*/ string numberFormat)
+            NumberFormat numberFormat)
             : base()
         {
             NumberFormat = numberFormat;
@@ -76,8 +76,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          */
         protected string GetTermEscaped(IEscapeQuerySyntax escaper)
         {
-            return escaper.Escape(new StringCharSequenceWrapper(string.Format(numberFormat, this.value)) /*numberFormat.format(this.value)*/,
-                CultureInfo.CurrentCulture, EscapeQuerySyntax.Type.NORMAL).ToString();
+            //return escaper.Escape(new StringCharSequenceWrapper(/*string.Format(numberFormat, this.value))*/ numberFormat.Format(this.value),
+            //    CultureInfo.CurrentCulture, EscapeQuerySyntax.Type.NORMAL).ToString();
+
+            return escaper.Escape(numberFormat.Format(this.value),
+                CultureInfo.CurrentCulture, EscapeQuerySyntax.Type.NORMAL);
         }
 
 
@@ -98,7 +101,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
          * 
          * @return the {@link NumberFormat} used to convert the value to {@link String}
          */
-        public virtual /*NumberFormat*/ string NumberFormat
+        public virtual NumberFormat NumberFormat
         {
             get { return this.numberFormat; }
             set { this.numberFormat = value; }
@@ -131,7 +134,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
         public override string ToString()
         {
             return "<numeric field='" + this.field + "' number='"
-                + string.Format(numberFormat, value) + "'/>";
+                + numberFormat.Format(value) + "'/>";
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
index 589a968..5eff8f8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
@@ -296,7 +296,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
             return buffer;
         }
 
-        // LUCENENET TODO: Add overload for string
+        // LUCENENET specific overload for text as string
+        public virtual string Escape(string text, CultureInfo locale, EscapeQuerySyntax.Type type)
+        {
+            if (text == null || text.Length == 0)
+                return text;
+
+            return Escape(text.ToCharSequence(), locale, type).ToString();
+        }
+
         public virtual ICharSequence Escape(ICharSequence text, CultureInfo locale, EscapeQuerySyntax.Type type)  
         {
             if (text == null || text.Length == 0)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
index 2bbffe4..5772699 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
@@ -7,6 +7,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;
 using System.Globalization;
@@ -69,8 +70,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         if (numericConfig != null)
                         {
 
-                            /*NumberFormat*/
-                            string numberFormat = numericConfig.NumberFormat;
+                            NumberFormat numberFormat = numericConfig.NumberFormat;
                             string text = fieldNode.GetTextAsString();
                             /*Number*/
                             object number = null;
@@ -80,8 +80,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                                 try
                                 {
-                                    //number = numberFormat.parse(text);
-                                    number = decimal.Parse(text, NumberStyles.Any);// LUCENENET TODO: use the current culture?
+                                    number = numberFormat.Parse(text);
+                                    //number = decimal.Parse(text, NumberStyles.Any);// LUCENENET TODO: use the current culture?
 
                                 }
                                 catch (FormatException e)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
index 88ed011..98d3c6f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
@@ -8,6 +8,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Util;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;
 using System.Globalization;
@@ -68,7 +69,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             string lowerText = lower.GetTextAsString();
                             string upperText = upper.GetTextAsString();
-                            /*NumberFormat*/ string numberFormat = numericConfig.NumberFormat;
+                            NumberFormat numberFormat = numericConfig.NumberFormat;
                             /*Number*/
                             object lowerNumber = null, upperNumber = null;
 
@@ -77,8 +78,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                                 try
                                 {
-                                    //lowerNumber = numberFormat.parse(lowerText);
-                                    lowerNumber = decimal.Parse(lowerText, NumberStyles.Any);// LUCENENET TODO: use the current culture?
+                                    lowerNumber = numberFormat.Parse(lowerText);
+                                    //lowerNumber = decimal.Parse(lowerText, NumberStyles.Any);// LUCENENET TODO: use the current culture?
                                 }
                                 catch (FormatException e)
                                 {
@@ -95,8 +96,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                                 try
                                 {
-                                    //upperNumber = numberFormat.parse(upperText);
-                                    upperNumber = decimal.Parse(upperText, NumberStyles.Any);// LUCENENET TODO: use the current culture?
+                                    upperNumber = numberFormat.Parse(upperText);
+                                    //upperNumber = decimal.Parse(upperText, NumberStyles.Any);// LUCENENET TODO: use the current culture?
                                 }
                                 catch (FormatException e)
                                 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6e7a7332/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index 21aacb1..a516a10 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -1,565 +1,734 @@
-\ufeff//using Lucene.Net;
-//using Lucene.Net.Analysis;
-//using Lucene.Net.Documents;
-//using Lucene.Net.Index;
-//using Lucene.Net.QueryParsers.Flexible.Core.Parser;
-//using Lucene.Net.QueryParsers.Flexible.Standard.Config;
-//using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
-//using Lucene.Net.Search;
-//using Lucene.Net.Store;
-//using Lucene.Net.Support;
-//using Lucene.Net.Util;
-//using NUnit.Framework;
-//using System;
-//using System.Collections.Generic;
-//using System.Globalization;
-//using System.Linq;
-//using System.Text;
-//using System.Threading.Tasks;
-
-//namespace Lucene.Net.QueryParsers.Flexible.Standard
-//{
-//    public class TestNumericQueryParser : LuceneTestCase
-//    {
-//        public enum NumberType
-//        {
-//            NEGATIVE, ZERO, POSITIVE
-//        }
-
-//        /// <summary>
-//        /// LUCENENET specific enum for mimicking the Java DateFormat
-//        /// </summary>
-//        public enum DateFormat
-//        {
-//            FULL, LONG,
-//            MEDIUM, SHORT
-//        }
-
-//        //  private readonly static int[] DATE_STYLES = {DateFormat.FULL, DateFormat.LONG,
-//        //DateFormat.MEDIUM, DateFormat.SHORT};
-//        private readonly static int[] DATE_STYLES = {(int)DateFormat.FULL, (int)DateFormat.LONG,
-//            (int)DateFormat.MEDIUM, (int)DateFormat.SHORT};
-
-//        private readonly static int PRECISION_STEP = 8;
-//        private readonly static String FIELD_NAME = "field";
-//        private static CultureInfo LOCALE;
-//        private static TimeZoneInfo TIMEZONE;
-//        private static IDictionary<String, /*Number*/ object> RANDOM_NUMBER_MAP;
-//        private readonly static IEscapeQuerySyntax ESCAPER = new EscapeQuerySyntaxImpl();
-//        private readonly static String DATE_FIELD_NAME = "date";
-//        private static int DATE_STYLE;
-//        private static int TIME_STYLE;
-
-//        private static Analyzer ANALYZER;
-
-//        private static /*NumberFormat*/ string NUMBER_FORMAT;
-
-//        private static StandardQueryParser qp;
-
-//        private static /*NumberDateFormat*/ string DATE_FORMAT;
-
-//        private static Directory directory = null;
-//        private static IndexReader reader = null;
-//        private static IndexSearcher searcher = null;
-
-//        private static bool checkDateFormatSanity(/*DateFormat*/string dateFormat, long date)
-//        {
-//            DateTime result;
-//            return DateTime.TryParseExact(new DateTime(date).ToString(dateFormat),
-//                dateFormat, CultureInfo.CurrentCulture, DateTimeStyles.RoundtripKind, out result);
-//            //try
-//            //{
-//            //    return date == dateFormat.parse(dateFormat.format(new DateTime(date)))
-//            //      .getTime();
-//            //}
-//            //catch (ParseException e)
-//            //{
-//            //    return false;
-//            //}
-//        }
-
-//        [TestFixtureSetUp]
-//        public void BeforeClass()
-//        {
-//            ANALYZER = new MockAnalyzer(Random());
-
-//            qp = new StandardQueryParser(ANALYZER);
-
-//            HashMap<String, /*Number*/object> randomNumberMap = new HashMap<string, object>();
-
-//            /*SimpleDateFormat*/
-//            string dateFormat;
-//            long randomDate;
-//            bool dateFormatSanityCheckPass;
-//            int count = 0;
-//            do
-//            {
-//                if (count > 100)
-//                {
-//                    fail("This test has problems to find a sane random DateFormat/NumberFormat. Stopped trying after 100 iterations.");
-//                }
-
-//                dateFormatSanityCheckPass = true;
-//                LOCALE = randomLocale(Random());
-//                TIMEZONE = randomTimeZone(Random());
-//                DATE_STYLE = randomDateStyle(Random());
-//                TIME_STYLE = randomDateStyle(Random());
-
-//                //// assumes localized date pattern will have at least year, month, day,
-//                //// hour, minute
-//                //dateFormat = (SimpleDateFormat)DateFormat.getDateTimeInstance(
-//                //    DATE_STYLE, TIME_STYLE, LOCALE);
-
-//                //// not all date patterns includes era, full year, timezone and second,
-//                //// so we add them here
-//                //dateFormat.applyPattern(dateFormat.toPattern() + " G s Z yyyy");
-//                //dateFormat.setTimeZone(TIMEZONE);
-
-//                //DATE_FORMAT = new NumberDateFormat(dateFormat);
-
-
-//                do
-//                {
-//                    randomDate = Random().nextLong();
-
-//                    // prune date value so it doesn't pass in insane values to some
-//                    // calendars.
-//                    randomDate = randomDate % 3400000000000l;
-
-//                    // truncate to second
-//                    randomDate = (randomDate / 1000L) * 1000L;
-
-//                    // only positive values
-//                    randomDate = Math.Abs(randomDate);
-//                } while (randomDate == 0L);
-
-//                dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, randomDate);
-
-//                dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, 0);
-
-//                dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat,
-//                          -randomDate);
-
-//                count++;
-//            } while (!dateFormatSanityCheckPass);
-
-//            NUMBER_FORMAT = NumberFormat.getNumberInstance(LOCALE);
-//            NUMBER_FORMAT.setMaximumFractionDigits((Random().nextInt() & 20) + 1);
-//            NUMBER_FORMAT.setMinimumFractionDigits((Random().nextInt() & 20) + 1);
-//            NUMBER_FORMAT.setMaximumIntegerDigits((Random().nextInt() & 20) + 1);
-//            NUMBER_FORMAT.setMinimumIntegerDigits((Random().nextInt() & 20) + 1);
-
-//            double randomDouble;
-//            long randomLong;
-//            int randomInt;
-//            float randomFloat;
-
-//            while ((randomLong = Convert.ToInt64(normalizeNumber(Math.Abs(Random().nextLong()))
-//                )) == 0L)
-//                ;
-//            while ((randomDouble = Convert.ToDouble(normalizeNumber(Math.Abs(Random().NextDouble()))
-//                )) == 0.0)
-//                ;
-//            while ((randomFloat = Convert.ToSingle(normalizeNumber(Math.Abs(Random().nextFloat()))
-//                )) == 0.0f)
-//                ;
-//            while ((randomInt = Convert.ToInt32(normalizeNumber(Math.Abs(Random().nextInt())))) == 0)
-//                ;
-
-//            randomNumberMap.Put(FieldType.NumericType.LONG.ToString(), randomLong);
-//            randomNumberMap.Put(FieldType.NumericType.INT.ToString(), randomInt);
-//            randomNumberMap.Put(FieldType.NumericType.FLOAT.ToString(), randomFloat);
-//            randomNumberMap.Put(FieldType.NumericType.DOUBLE.ToString(), randomDouble);
-//            randomNumberMap.Put(DATE_FIELD_NAME, randomDate);
-
-//            RANDOM_NUMBER_MAP = Collections.UnmodifiableMap(randomNumberMap);
-
-//            directory = NewDirectory();
-//            RandomIndexWriter writer = new RandomIndexWriter(Random(), directory,
-//                NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random()))
-//                    .SetMaxBufferedDocs(TestUtil.NextInt(Random(), 50, 1000))
-//                    .SetMergePolicy(NewLogMergePolicy()));
-
-//            Document doc = new Document();
-//            HashMap<String, NumericConfig> numericConfigMap = new HashMap<String, NumericConfig>();
-//            HashMap<String, Field> numericFieldMap = new HashMap<String, Field>();
-//            qp.SetNumericConfigMap(numericConfigMap);
-
-//            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
-//            {
-//                numericConfigMap.Put(type.ToString(), new NumericConfig(PRECISION_STEP,
-//                    NUMBER_FORMAT, type));
-
-//                FieldType ft2 = new FieldType(IntField.TYPE_NOT_STORED);
-//                ft2.NumericTypeValue = (type);
-//                ft2.Stored = (true);
-//                ft2.NumericPrecisionStep = (PRECISION_STEP);
-//                ft2.Freeze();
-//                Field field;
-
-//                switch (type)
-//                {
-//                    case FieldType.NumericType.INT:
-//                        field = new IntField(type.ToString(), 0, ft2);
-//                        break;
-//                    case FieldType.NumericType.FLOAT:
-//                        field = new FloatField(type.ToString(), 0.0f, ft2);
-//                        break;
-//                    case FieldType.NumericType.LONG:
-//                        field = new LongField(type.ToString(), 0L, ft2);
-//                        break;
-//                    case FieldType.NumericType.DOUBLE:
-//                        field = new DoubleField(type.ToString(), 0.0, ft2);
-//                        break;
-//                    default:
-//                        fail();
-//                        field = null;
-//                        break;
-//                }
-//                numericFieldMap.Put(type.ToString(), field);
-//                doc.Add(field);
-//            }
-
-//            numericConfigMap.Put(DATE_FIELD_NAME, new NumericConfig(PRECISION_STEP,
-//                DATE_FORMAT, FieldType.NumericType.LONG));
-//            FieldType ft = new FieldType(LongField.TYPE_NOT_STORED);
-//            ft.Stored = (true);
-//            ft.NumericPrecisionStep = (PRECISION_STEP);
-//            LongField dateField = new LongField(DATE_FIELD_NAME, 0l, ft);
-//            numericFieldMap.Put(DATE_FIELD_NAME, dateField);
-//            doc.Add(dateField);
-
-//            foreach (NumberType numberType in Enum.GetValues(typeof(NumberType)))
-//            {
-//                setFieldValues(numberType, numericFieldMap);
-//                if (VERBOSE) Console.WriteLine("Indexing document: " + doc);
-//                writer.AddDocument(doc);
-//            }
-
-//            reader = writer.Reader;
-//            searcher = NewSearcher(reader);
-//            writer.Dispose();
-
-//        }
-
-//        private static /*Number*/ object getNumberType(NumberType? numberType, String fieldName)
-//        {
-
-//            if (numberType == null)
-//            {
-//                return null;
-//            }
-
-//            switch (numberType)
-//            {
-
-//                case NumberType.POSITIVE:
-//                    return RANDOM_NUMBER_MAP[fieldName];
-
-//                case NumberType.NEGATIVE:
-//                    /*Number*/
-//                    object number = RANDOM_NUMBER_MAP[fieldName];
-
-//                    if (FieldType.NumericType.LONG.ToString().equals(fieldName)
-//                        || DATE_FIELD_NAME.equals(fieldName))
-//                    {
-//                        number = -Convert.ToInt64(number);
-
-//                    }
-//                    else if (FieldType.NumericType.DOUBLE.ToString().equals(fieldName))
-//                    {
-//                        number = -Convert.ToDouble(number);
-
-//                    }
-//                    else if (FieldType.NumericType.FLOAT.ToString().equals(fieldName))
-//                    {
-//                        number = -Convert.ToSingle(number);
-
-//                    }
-//                    else if (FieldType.NumericType.INT.ToString().equals(fieldName))
-//                    {
-//                        number = -Convert.ToInt32(number);
-
-//                    }
-//                    else
-//                    {
-//                        throw new ArgumentException("field name not found: "
-//                            + fieldName);
-//                    }
-
-//                    return number;
-
-//                default:
-//                    return 0;
-
-//            }
-
-//        }
-
-//        private static void setFieldValues(NumberType numberType,
-//            HashMap<String, Field> numericFieldMap)
-//        {
-
-//            /*Number*/
-//            object number = getNumberType(numberType, FieldType.NumericType.DOUBLE
-//     .ToString());
-//            numericFieldMap[FieldType.NumericType.DOUBLE.ToString()].DoubleValue = Convert.ToDouble(
-//                number);
-
-//            number = getNumberType(numberType, FieldType.NumericType.INT.ToString());
-//            numericFieldMap[FieldType.NumericType.INT.ToString()].IntValue = Convert.ToInt32(
-//                number);
-
-//            number = getNumberType(numberType, FieldType.NumericType.LONG.ToString());
-//            numericFieldMap[FieldType.NumericType.LONG.ToString()].LongValue = Convert.ToInt64(
-//                number);
-
-//            number = getNumberType(numberType, FieldType.NumericType.FLOAT.ToString());
-//            numericFieldMap[FieldType.NumericType.FLOAT.ToString()].FloatValue = Convert.ToSingle(
-//                number);
-
-//            number = getNumberType(numberType, DATE_FIELD_NAME);
-//            numericFieldMap[DATE_FIELD_NAME].LongValue = Convert.ToInt64(number);
-//        }
-
-//        private static int randomDateStyle(Random random)
-//        {
-//            return DATE_STYLES[random.nextInt(DATE_STYLES.Length)];
-//        }
-
-//        [Test]
-//        public void testInclusiveNumericRange()
-//        {
-//            assertRangeQuery(NumberType.ZERO, NumberType.ZERO, true, true, 1);
-//            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, true, 2);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, true, 2);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, true, 3);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, true, 1);
-//        }
-
-//        [Test]
-//        // test disabled since standard syntax parser does not work with inclusive and
-//        // exclusive at the same time
-//        public void testInclusiveLowerNumericRange()
-//        {
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, true, 1);
-//            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, true, 1);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, true, 2);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, true, 0);
-//        }
-
-//        [Test]
-//        // test disabled since standard syntax parser does not work with inclusive and
-//        // exclusive at the same time
-//        public void testInclusiveUpperNumericRange()
-//        {
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, false, 1);
-//            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, false, 1);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, false, 2);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, false, 0);
-//        }
-
-//        [Test]
-//        public void testExclusiveNumericRange()
-//        {
-//            assertRangeQuery(NumberType.ZERO, NumberType.ZERO, false, false, 0);
-//            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, false, 0);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, false, 0);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, false, 1);
-//            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, false, 0);
-//        }
-
-//        [Test]
-//        public void testOpenRangeNumericQuery()
-//        {
-//            assertOpenRangeQuery(NumberType.ZERO, "<", 1);
-//            assertOpenRangeQuery(NumberType.POSITIVE, "<", 2);
-//            assertOpenRangeQuery(NumberType.NEGATIVE, "<", 0);
-
-//            assertOpenRangeQuery(NumberType.ZERO, "<=", 2);
-//            assertOpenRangeQuery(NumberType.POSITIVE, "<=", 3);
-//            assertOpenRangeQuery(NumberType.NEGATIVE, "<=", 1);
-
-//            assertOpenRangeQuery(NumberType.ZERO, ">", 1);
-//            assertOpenRangeQuery(NumberType.POSITIVE, ">", 0);
-//            assertOpenRangeQuery(NumberType.NEGATIVE, ">", 2);
-
-//            assertOpenRangeQuery(NumberType.ZERO, ">=", 2);
-//            assertOpenRangeQuery(NumberType.POSITIVE, ">=", 1);
-//            assertOpenRangeQuery(NumberType.NEGATIVE, ">=", 3);
-
-//            assertOpenRangeQuery(NumberType.NEGATIVE, "=", 1);
-//            assertOpenRangeQuery(NumberType.ZERO, "=", 1);
-//            assertOpenRangeQuery(NumberType.POSITIVE, "=", 1);
-
-//            assertRangeQuery(NumberType.NEGATIVE, null, true, true, 3);
-//            assertRangeQuery(NumberType.NEGATIVE, null, false, true, 2);
-//            assertRangeQuery(NumberType.POSITIVE, null, true, false, 1);
-//            assertRangeQuery(NumberType.ZERO, null, false, false, 1);
-
-//            assertRangeQuery(null, NumberType.POSITIVE, true, true, 3);
-//            assertRangeQuery(null, NumberType.POSITIVE, true, false, 2);
-//            assertRangeQuery(null, NumberType.NEGATIVE, false, true, 1);
-//            assertRangeQuery(null, NumberType.ZERO, false, false, 1);
-
-//            assertRangeQuery(null, null, false, false, 3);
-//            assertRangeQuery(null, null, true, true, 3);
-
-//        }
-
-//        [Test]
-//        public void testSimpleNumericQuery()
-//        {
-//            assertSimpleQuery(NumberType.ZERO, 1);
-//            assertSimpleQuery(NumberType.POSITIVE, 1);
-//            assertSimpleQuery(NumberType.NEGATIVE, 1);
-//        }
-
-//        public void assertRangeQuery(NumberType? lowerType, NumberType? upperType,
-//            bool lowerInclusive, bool upperInclusive, int expectedDocCount)
-//        {
-
-
-//            StringBuilder sb = new StringBuilder();
-
-//            String lowerInclusiveStr = (lowerInclusive ? "[" : "{");
-//            String upperInclusiveStr = (upperInclusive ? "]" : "}");
-
-//            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
-//            {
-//                String lowerStr = numberToString(getNumberType(lowerType, type.ToString()));
-//                String upperStr = numberToString(getNumberType(upperType, type.ToString()));
-
-//                sb.append("+").append(type.ToString()).append(':').append(lowerInclusiveStr)
-//                  .append('"').append(lowerStr).append("\" TO \"").append(upperStr)
-//                  .append('"').append(upperInclusiveStr).append(' ');
-//            }
-
-//            /*Number*/
-//            object lowerDateNumber = getNumberType(lowerType, DATE_FIELD_NAME);
-//            /*Number*/
-//            object upperDateNumber = getNumberType(upperType, DATE_FIELD_NAME);
-//            String lowerDateStr;
-//            String upperDateStr;
-
-//            if (lowerDateNumber != null)
-//            {
-//                lowerDateStr = ESCAPER.Escape(
-//                    DATE_FORMAT.format(new DateTime(lowerDateNumber.longValue())), LOCALE,
-//                    EscapeQuerySyntax.Type.STRING).toString();
+\ufeffusing Lucene.Net;
+using Lucene.Net.Analysis;
+using Lucene.Net.Documents;
+using Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.Search;
+using Lucene.Net.Store;
+using Lucene.Net.Support;
+using Lucene.Net.Util;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard
+{
+    public class TestNumericQueryParser : LuceneTestCase
+    {
+        public enum NumberType
+        {
+            NEGATIVE, ZERO, POSITIVE
+        }
+
+        
+
+        //  private readonly static int[] DATE_STYLES = {DateFormat.FULL, DateFormat.LONG,
+        //DateFormat.MEDIUM, DateFormat.SHORT};
+        private readonly static DateStyle[] DATE_STYLES = {DateStyle.FULL, DateStyle.LONG,
+            DateStyle.MEDIUM, DateStyle.SHORT};
+
+        private readonly static int PRECISION_STEP = 8;
+        private readonly static String FIELD_NAME = "field";
+        private static CultureInfo LOCALE;
+        private static TimeZoneInfo TIMEZONE;
+        private static IDictionary<String, /*Number*/ object> RANDOM_NUMBER_MAP;
+        private readonly static IEscapeQuerySyntax ESCAPER = new EscapeQuerySyntaxImpl();
+        private readonly static String DATE_FIELD_NAME = "date";
+        private static DateStyle DATE_STYLE;
+        private static DateStyle TIME_STYLE;
+
+        private static Analyzer ANALYZER;
+
+        private static NumberFormat NUMBER_FORMAT;
+        
+
+        private static StandardQueryParser qp;
+
+        private static NumberDateFormat DATE_FORMAT;
+
+        private static Directory directory = null;
+        private static IndexReader reader = null;
+        private static IndexSearcher searcher = null;
+
+        private static bool checkDateFormatSanity(/*DateFormat*/string dateFormat, long date)
+        {
+            DateTime result;
+            return DateTime.TryParseExact(new DateTime(date).ToString(dateFormat),
+                dateFormat, CultureInfo.CurrentCulture, DateTimeStyles.RoundtripKind, out result);
+            //try
+            //{
+            //    return date == dateFormat.parse(dateFormat.format(new DateTime(date)))
+            //      .getTime();
+            //}
+            //catch (ParseException e)
+            //{
+            //    return false;
+            //}
+        }
+
+        [TestFixtureSetUp]
+        public void BeforeClass()
+        {
+            ANALYZER = new MockAnalyzer(Random());
+
+            qp = new StandardQueryParser(ANALYZER);
+
+            HashMap<String, /*Number*/object> randomNumberMap = new HashMap<string, object>();
+
+            /*SimpleDateFormat*/
+            string dateFormat;
+            long randomDate;
+            bool dateFormatSanityCheckPass;
+            int count = 0;
+            do
+            {
+                if (count > 100)
+                {
+                    fail("This test has problems to find a sane random DateFormat/NumberFormat. Stopped trying after 100 iterations.");
+                }
+
+                dateFormatSanityCheckPass = true;
+                LOCALE = randomLocale(Random());
+                TIMEZONE = randomTimeZone(Random());
+                DATE_STYLE = randomDateStyle(Random());
+                TIME_STYLE = randomDateStyle(Random());
+
+                //// assumes localized date pattern will have at least year, month, day,
+                //// hour, minute
+                //dateFormat = (SimpleDateFormat)DateFormat.getDateTimeInstance(
+                //    DATE_STYLE, TIME_STYLE, LOCALE);
+
+                //// not all date patterns includes era, full year, timezone and second,
+                //// so we add them here
+                //dateFormat.applyPattern(dateFormat.toPattern() + " G s Z yyyy");
+                //dateFormat.setTimeZone(TIMEZONE);
+
+                //DATE_FORMAT = new NumberDateFormat(dateFormat);
+
+                //dateFormat = GetDateFormat((FormattingStyle)DATE_STYLE, (FormattingStyle)TIME_STYLE, LOCALE, TIMEZONE);
+
+                // LUCENENET TODO: NumberDateFormat...?
+                // DATE_FORMAT = GetDateFormat((FormattingStyle)DATE_STYLE, (FormattingStyle)TIME_STYLE, LOCALE, TIMEZONE);
+                DATE_FORMAT = new NumberDateFormat(DATE_STYLE, TIME_STYLE, LOCALE, TIMEZONE);
+
+
+                do
+                {
+                    randomDate = Random().nextLong();
+
+                    // prune date value so it doesn't pass in insane values to some
+                    // calendars.
+                    randomDate = randomDate % 3400000000000L;
+
+                    // truncate to second
+                    randomDate = (randomDate / 1000L) * 1000L;
+
+                    // only positive values
+                    randomDate = Math.Abs(randomDate);
+                } while (randomDate == 0L);
+
+                //dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, randomDate);
+
+                //dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, 0);
+
+                // LUCENENET TODO: passing a negative number for ticks is invalid in .NET
+                //dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat,
+                //          -randomDate);
+
+                count++;
+            } while (!dateFormatSanityCheckPass);
+
+            //NUMBER_FORMAT = NumberFormat.getNumberInstance(LOCALE);
+            //NUMBER_FORMAT.setMaximumFractionDigits((Random().nextInt() & 20) + 1);
+            //NUMBER_FORMAT.setMinimumFractionDigits((Random().nextInt() & 20) + 1);
+            //NUMBER_FORMAT.setMaximumIntegerDigits((Random().nextInt() & 20) + 1);
+            //NUMBER_FORMAT.setMinimumIntegerDigits((Random().nextInt() & 20) + 1);
+
+            //NUMBER_FORMAT = (NumberFormatInfo)LOCALE.NumberFormat.Clone();
+            //NUMBER_FORMAT.NumberDecimalDigits = (Random().nextInt() & 20) + 1;
+            //NUMBER_FORMAT.CurrencyDecimalDigits = (Random().nextInt() & 20) + 1;
+
+            //NUMBER_FORMAT = GetNumberFormat();
+
+            NUMBER_FORMAT = new NumberFormat(LOCALE);
+
+            double randomDouble;
+            long randomLong;
+            int randomInt;
+            float randomFloat;
+
+            while ((randomLong = Convert.ToInt64(normalizeNumber(Math.Abs(Random().nextLong()))
+                )) == 0L)
+                ;
+            while ((randomDouble = Convert.ToDouble(normalizeNumber(Math.Abs(Random().NextDouble()))
+                )) == 0.0)
+                ;
+            while ((randomFloat = Convert.ToSingle(normalizeNumber(Math.Abs(Random().nextFloat()))
+                )) == 0.0f)
+                ;
+            while ((randomInt = Convert.ToInt32(normalizeNumber(Math.Abs(Random().nextInt())))) == 0)
+                ;
+
+            randomNumberMap.Put(FieldType.NumericType.LONG.ToString(), randomLong);
+            randomNumberMap.Put(FieldType.NumericType.INT.ToString(), randomInt);
+            randomNumberMap.Put(FieldType.NumericType.FLOAT.ToString(), randomFloat);
+            randomNumberMap.Put(FieldType.NumericType.DOUBLE.ToString(), randomDouble);
+            randomNumberMap.Put(DATE_FIELD_NAME, randomDate);
+
+            RANDOM_NUMBER_MAP = Collections.UnmodifiableMap(randomNumberMap);
+
+            directory = NewDirectory();
+            RandomIndexWriter writer = new RandomIndexWriter(Random(), directory,
+                NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random()))
+                    .SetMaxBufferedDocs(TestUtil.NextInt(Random(), 50, 1000))
+                    .SetMergePolicy(NewLogMergePolicy()));
+
+            Document doc = new Document();
+            HashMap<String, NumericConfig> numericConfigMap = new HashMap<String, NumericConfig>();
+            HashMap<String, Field> numericFieldMap = new HashMap<String, Field>();
+            qp.NumericConfigMap = (numericConfigMap);
+
+            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
+            {
+                numericConfigMap.Put(type.ToString(), new NumericConfig(PRECISION_STEP,
+                    NUMBER_FORMAT, type)); 
+
+                FieldType ft2 = new FieldType(IntField.TYPE_NOT_STORED);
+                ft2.NumericTypeValue = (type);
+                ft2.Stored = (true);
+                ft2.NumericPrecisionStep = (PRECISION_STEP);
+                ft2.Freeze();
+                Field field;
+
+                switch (type)
+                {
+                    case FieldType.NumericType.INT:
+                        field = new IntField(type.ToString(), 0, ft2);
+                        break;
+                    case FieldType.NumericType.FLOAT:
+                        field = new FloatField(type.ToString(), 0.0f, ft2);
+                        break;
+                    case FieldType.NumericType.LONG:
+                        field = new LongField(type.ToString(), 0L, ft2);
+                        break;
+                    case FieldType.NumericType.DOUBLE:
+                        field = new DoubleField(type.ToString(), 0.0, ft2);
+                        break;
+                    default:
+                        fail();
+                        field = null;
+                        break;
+                }
+                numericFieldMap.Put(type.ToString(), field);
+                doc.Add(field);
+            }
+
+            numericConfigMap.Put(DATE_FIELD_NAME, new NumericConfig(PRECISION_STEP,
+                DATE_FORMAT, FieldType.NumericType.LONG));
+            FieldType ft = new FieldType(LongField.TYPE_NOT_STORED);
+            ft.Stored = (true);
+            ft.NumericPrecisionStep = (PRECISION_STEP);
+            LongField dateField = new LongField(DATE_FIELD_NAME, 0l, ft);
+            numericFieldMap.Put(DATE_FIELD_NAME, dateField);
+            doc.Add(dateField);
+
+            foreach (NumberType numberType in Enum.GetValues(typeof(NumberType)))
+            {
+                setFieldValues(numberType, numericFieldMap);
+                if (VERBOSE) Console.WriteLine("Indexing document: " + doc);
+                writer.AddDocument(doc);
+            }
+
+            reader = writer.Reader;
+            searcher = NewSearcher(reader);
+            writer.Dispose();
+
+        }
+
+        private static /*Number*/ object getNumberType(NumberType? numberType, String fieldName)
+        {
+
+            if (numberType == null)
+            {
+                return null;
+            }
+
+            switch (numberType)
+            {
+
+                case NumberType.POSITIVE:
+                    return RANDOM_NUMBER_MAP[fieldName];
+
+                case NumberType.NEGATIVE:
+                    /*Number*/
+                    object number = RANDOM_NUMBER_MAP[fieldName];
+
+                    if (FieldType.NumericType.LONG.ToString().equals(fieldName)
+                        || DATE_FIELD_NAME.equals(fieldName))
+                    {
+                        number = -Convert.ToInt64(number);
+
+                    }
+                    else if (FieldType.NumericType.DOUBLE.ToString().equals(fieldName))
+                    {
+                        number = -Convert.ToDouble(number);
+
+                    }
+                    else if (FieldType.NumericType.FLOAT.ToString().equals(fieldName))
+                    {
+                        number = -Convert.ToSingle(number);
+
+                    }
+                    else if (FieldType.NumericType.INT.ToString().equals(fieldName))
+                    {
+                        number = -Convert.ToInt32(number);
+
+                    }
+                    else
+                    {
+                        throw new ArgumentException("field name not found: "
+                            + fieldName);
+                    }
+
+                    return number;
+
+                default:
+                    return 0;
+
+            }
+
+        }
+
+        private static void setFieldValues(NumberType numberType,
+            HashMap<String, Field> numericFieldMap)
+        {
+
+            /*Number*/
+            object number = getNumberType(numberType, FieldType.NumericType.DOUBLE
+                .ToString());
+            numericFieldMap[FieldType.NumericType.DOUBLE.ToString()].DoubleValue = Convert.ToDouble(
+                number);
+
+            number = getNumberType(numberType, FieldType.NumericType.INT.ToString());
+            numericFieldMap[FieldType.NumericType.INT.ToString()].IntValue = Convert.ToInt32(
+                number);
+
+            number = getNumberType(numberType, FieldType.NumericType.LONG.ToString());
+            numericFieldMap[FieldType.NumericType.LONG.ToString()].LongValue = Convert.ToInt64(
+                number);
+
+            number = getNumberType(numberType, FieldType.NumericType.FLOAT.ToString());
+            numericFieldMap[FieldType.NumericType.FLOAT.ToString()].FloatValue = Convert.ToSingle(
+                number);
+
+            number = getNumberType(numberType, DATE_FIELD_NAME);
+            numericFieldMap[DATE_FIELD_NAME].LongValue = Convert.ToInt64(number);
+        }
+
+        private static DateStyle randomDateStyle(Random random)
+        {
+            return DATE_STYLES[random.nextInt(DATE_STYLES.Length)];
+        }
+
+        [Test]
+        public void testInclusiveNumericRange()
+        {
+            assertRangeQuery(NumberType.ZERO, NumberType.ZERO, true, true, 1);
+            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, true, 2);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, true, 2);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, true, 3);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, true, 1);
+        }
+
+        [Test]
+        // test disabled since standard syntax parser does not work with inclusive and
+        // exclusive at the same time
+        public void testInclusiveLowerNumericRange()
+        {
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, true, 1);
+            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, true, 1);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, true, 2);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, true, 0);
+        }
+
+        [Test]
+        // test disabled since standard syntax parser does not work with inclusive and
+        // exclusive at the same time
+        public void testInclusiveUpperNumericRange()
+        {
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, false, 1);
+            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, false, 1);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, true, false, 2);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, true, false, 0);
+        }
+
+        [Test]
+        public void testExclusiveNumericRange()
+        {
+            assertRangeQuery(NumberType.ZERO, NumberType.ZERO, false, false, 0);
+            assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, false, 0);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, false, 0);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.POSITIVE, false, false, 1);
+            assertRangeQuery(NumberType.NEGATIVE, NumberType.NEGATIVE, false, false, 0);
+        }
+
+        [Test]
+        public void testOpenRangeNumericQuery()
+        {
+            assertOpenRangeQuery(NumberType.ZERO, "<", 1);
+            assertOpenRangeQuery(NumberType.POSITIVE, "<", 2);
+            assertOpenRangeQuery(NumberType.NEGATIVE, "<", 0);
+
+            assertOpenRangeQuery(NumberType.ZERO, "<=", 2);
+            assertOpenRangeQuery(NumberType.POSITIVE, "<=", 3);
+            assertOpenRangeQuery(NumberType.NEGATIVE, "<=", 1);
+
+            assertOpenRangeQuery(NumberType.ZERO, ">", 1);
+            assertOpenRangeQuery(NumberType.POSITIVE, ">", 0);
+            assertOpenRangeQuery(NumberType.NEGATIVE, ">", 2);
+
+            assertOpenRangeQuery(NumberType.ZERO, ">=", 2);
+            assertOpenRangeQuery(NumberType.POSITIVE, ">=", 1);
+            assertOpenRangeQuery(NumberType.NEGATIVE, ">=", 3);
+
+            assertOpenRangeQuery(NumberType.NEGATIVE, "=", 1);
+            assertOpenRangeQuery(NumberType.ZERO, "=", 1);
+            assertOpenRangeQuery(NumberType.POSITIVE, "=", 1);
+
+            assertRangeQuery(NumberType.NEGATIVE, null, true, true, 3);
+            assertRangeQuery(NumberType.NEGATIVE, null, false, true, 2);
+            assertRangeQuery(NumberType.POSITIVE, null, true, false, 1);
+            assertRangeQuery(NumberType.ZERO, null, false, false, 1);
+
+            assertRangeQuery(null, NumberType.POSITIVE, true, true, 3);
+            assertRangeQuery(null, NumberType.POSITIVE, true, false, 2);
+            assertRangeQuery(null, NumberType.NEGATIVE, false, true, 1);
+            assertRangeQuery(null, NumberType.ZERO, false, false, 1);
+
+            assertRangeQuery(null, null, false, false, 3);
+            assertRangeQuery(null, null, true, true, 3);
+
+        }
+
+        [Test]
+        public void testSimpleNumericQuery()
+        {
+            assertSimpleQuery(NumberType.ZERO, 1);
+            assertSimpleQuery(NumberType.POSITIVE, 1);
+            assertSimpleQuery(NumberType.NEGATIVE, 1);
+        }
+
+        public void assertRangeQuery(NumberType? lowerType, NumberType? upperType,
+            bool lowerInclusive, bool upperInclusive, int expectedDocCount)
+        {
+
+
+            StringBuilder sb = new StringBuilder();
+
+            String lowerInclusiveStr = (lowerInclusive ? "[" : "{");
+            String upperInclusiveStr = (upperInclusive ? "]" : "}");
+
+            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
+            {
+                String lowerStr = numberToString(getNumberType(lowerType, type.ToString()));
+                String upperStr = numberToString(getNumberType(upperType, type.ToString()));
+
+                sb.append("+").append(type.ToString()).append(':').append(lowerInclusiveStr)
+                  .append('"').append(lowerStr).append("\" TO \"").append(upperStr)
+                  .append('"').append(upperInclusiveStr).append(' ');
+            }
+
+            /*Number*/
+            object lowerDateNumber = getNumberType(lowerType, DATE_FIELD_NAME);
+            /*Number*/
+            object upperDateNumber = getNumberType(upperType, DATE_FIELD_NAME);
+            String lowerDateStr;
+            String upperDateStr;
+
+            if (lowerDateNumber != null)
+            {
+                //lowerDateStr = ESCAPER.Escape(
+                //    DATE_FORMAT.format(new DateTime(lowerDateNumber.longValue())), LOCALE,
+                //    EscapeQuerySyntax.Type.STRING).toString();
+
+                //lowerDateStr = ESCAPER.Escape(
+                //        string.Format(LOCALE, "{0:" + DATE_FORMAT + "}", new DateTime(Convert.ToInt64(lowerDateNumber))),
+                //        LOCALE,
+                //        EscapeQuerySyntax.Type.STRING).toString();
+
+                lowerDateStr = ESCAPER.Escape(
+                            DATE_FORMAT.Format(Convert.ToInt64(lowerDateNumber)),
+                            LOCALE,
+                            EscapeQuerySyntax.Type.STRING).toString();
+            }
+            else
+            {
+                lowerDateStr = "*";
+            }
+
+            if (upperDateNumber != null)
+            {
+                //upperDateStr = ESCAPER.Escape(
+                //      DATE_FORMAT.format(new DateTime(upperDateNumber.longValue())), LOCALE,
+                //      EscapeQuerySyntax.Type.STRING).toString();
+
+                //upperDateStr = ESCAPER.Escape(
+                //            string.Format(LOCALE, "{0:" + DATE_FORMAT + "}", new DateTime(Convert.ToInt64(upperDateNumber))),
+                //            LOCALE,
+                //            EscapeQuerySyntax.Type.STRING).toString();
 
-//            }
-//            else
-//            {
-//                lowerDateStr = "*";
-//            }
+                upperDateStr = ESCAPER.Escape(
+                                DATE_FORMAT.Format(Convert.ToInt64(upperDateNumber)),
+                                LOCALE,
+                                EscapeQuerySyntax.Type.STRING).toString();
+            }
+            else
+            {
+                upperDateStr = "*";
+            }
+
+            sb.append("+").append(DATE_FIELD_NAME).append(':')
+                .append(lowerInclusiveStr).append('"').append(lowerDateStr).append(
+                    "\" TO \"").append(upperDateStr).append('"').append(
+                    upperInclusiveStr);
 
-//            if (upperDateNumber != null)
-//            {
-//                upperDateStr = ESCAPER.Escape(
-//                      DATE_FORMAT.format(new DateTime(upperDateNumber.longValue())), LOCALE,
-//                      EscapeQuerySyntax.Type.STRING).toString();
-
-//            }
-//            else
-//            {
-//                upperDateStr = "*";
-//            }
 
-//            sb.append("+").append(DATE_FIELD_NAME).append(':')
-//                .append(lowerInclusiveStr).append('"').append(lowerDateStr).append(
-//                    "\" TO \"").append(upperDateStr).append('"').append(
-//                    upperInclusiveStr);
+            testQuery(sb.toString(), expectedDocCount);
 
-
-//            testQuery(sb.toString(), expectedDocCount);
-
-//        }
-
-//        public void assertOpenRangeQuery(NumberType boundType, String @operator, int expectedDocCount)
-//        {
-
-//            StringBuilder sb = new StringBuilder();
-
-//            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
-//            {
-//                String boundStr = numberToString(getNumberType(boundType, type.ToString()));
-
-//                sb.append("+").append(type.ToString()).append(@operator).append('"').append(boundStr).append('"').append(' ');
-//            }
-
-//            String boundDateStr = ESCAPER.Escape(
-//                DATE_FORMAT.format(new Date(getNumberType(boundType, DATE_FIELD_NAME)
-//                    .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
-
-//            sb.append("+").append(DATE_FIELD_NAME).append(@operator).append('"').append(boundDateStr).append('"');
-
-
-//            testQuery(sb.toString(), expectedDocCount);
-//        }
-
-//        public void assertSimpleQuery(NumberType numberType, int expectedDocCount)
-//        {
-//            StringBuilder sb = new StringBuilder();
-
-//            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
-//            {
-//                String numberStr = numberToString(getNumberType(numberType, type.ToString()));
-//                sb.append('+').append(type.ToString()).append(":\"").append(numberStr)
-//                          .append("\" ");
-//            }
-
-//            String dateStr = ESCAPER.Escape(
-//                DATE_FORMAT.format(new DateTime(getNumberType(numberType, DATE_FIELD_NAME)
-//                    .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
-
-//            sb.append('+').append(DATE_FIELD_NAME).append(":\"").append(dateStr)
-//                    .append('"');
-
-
-//            testQuery(sb.toString(), expectedDocCount);
-
-//        }
-
-//        [Test]
-//        private void testQuery(String queryStr, int expectedDocCount)
-//        {
-//            if (VERBOSE) Console.WriteLine("Parsing: " + queryStr);
-
-//            Query query = qp.Parse(queryStr, FIELD_NAME);
-//            if (VERBOSE) Console.WriteLine("Querying: " + query);
-//            TopDocs topDocs = searcher.Search(query, 1000);
-
-//            String msg = "Query <" + queryStr + "> retrieved " + topDocs.TotalHits
-//                + " document(s), " + expectedDocCount + " document(s) expected.";
-
-//            if (VERBOSE) Console.WriteLine(msg);
-
-
-//            assertEquals(msg, expectedDocCount, topDocs.TotalHits);
-//        }
-
-//        private static String numberToString(/*Number*/ object number)
-//        {
-//            return number == null ? "*" : ESCAPER.Escape(/*NUMBER_FORMAT.format(number)*/ string.Format(NUMBER_FORMAT, number).ToCharSequence(),
-//                LOCALE, EscapeQuerySyntax.Type.STRING).toString();
-//        }
-
-//        private static /*Number*/ object normalizeNumber(/*Number*/ object number)
-//        {
-//            return decimal.Parse(string.Format(NUMBER_FORMAT, number));
-//            //return NUMBER_FORMAT.parse(NUMBER_FORMAT.format(number));
-//        }
-
-//        [TestFixtureTearDown]
-//        public static void afterClass()
-//        {
-//            searcher = null;
-//            reader.Dispose();
-//            reader = null;
-//            directory.Dispose();
-//            directory = null;
-//            qp = null;
-//        }
-//    }
-//}
+        }
+
+        public void assertOpenRangeQuery(NumberType boundType, String @operator, int expectedDocCount)
+        {
+
+            StringBuilder sb = new StringBuilder();
+
+            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
+            {
+                String boundStr = numberToString(getNumberType(boundType, type.ToString()));
+
+                sb.append("+").append(type.ToString()).append(@operator).append('"').append(boundStr).append('"').append(' ');
+            }
+
+            //String boundDateStr = ESCAPER.Escape(
+            //    DATE_FORMAT.format(new Date(getNumberType(boundType, DATE_FIELD_NAME)
+            //        .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
+
+            //string boundDateStr = ESCAPER.Escape(
+            //                string.Format(LOCALE, "{0:" + DATE_FORMAT + "}", new DateTime(Convert.ToInt64(getNumberType(boundType, DATE_FIELD_NAME)))),
+            //                LOCALE,
+            //                EscapeQuerySyntax.Type.STRING).toString();
+
+            string boundDateStr = ESCAPER.Escape(
+                                DATE_FORMAT.Format(Convert.ToInt64(getNumberType(boundType, DATE_FIELD_NAME))),
+                                LOCALE,
+                                EscapeQuerySyntax.Type.STRING).toString();
+
+            sb.append("+").append(DATE_FIELD_NAME).append(@operator).append('"').append(boundDateStr).append('"');
+
+
+            testQuery(sb.toString(), expectedDocCount);
+        }
+
+        public void assertSimpleQuery(NumberType numberType, int expectedDocCount)
+        {
+            StringBuilder sb = new StringBuilder();
+
+            foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
+            {
+                String numberStr = numberToString(getNumberType(numberType, type.ToString()));
+                sb.append('+').append(type.ToString()).append(":\"").append(numberStr)
+                          .append("\" ");
+            }
+
+            //String dateStr = ESCAPER.Escape(
+            //    DATE_FORMAT.format(new DateTime(getNumberType(numberType, DATE_FIELD_NAME)
+            //        .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
+
+            //string dateStr = ESCAPER.Escape(
+            //                string.Format(LOCALE, "{0:" + DATE_FORMAT + "}", new DateTime(Convert.ToInt64(getNumberType(numberType, DATE_FIELD_NAME)))),
+            //                LOCALE,
+            //                EscapeQuerySyntax.Type.STRING).toString();
+
+            string dateStr = ESCAPER.Escape(
+                                DATE_FORMAT.Format(Convert.ToInt64(getNumberType(numberType, DATE_FIELD_NAME))),
+                                LOCALE,
+                                EscapeQuerySyntax.Type.STRING).toString();
+
+            sb.append('+').append(DATE_FIELD_NAME).append(":\"").append(dateStr)
+                    .append('"');
+
+
+            testQuery(sb.toString(), expectedDocCount);
+
+        }
+
+        private void testQuery(String queryStr, int expectedDocCount)
+        {
+            if (VERBOSE) Console.WriteLine("Parsing: " + queryStr);
+
+            Query query = qp.Parse(queryStr, FIELD_NAME);
+            if (VERBOSE) Console.WriteLine("Querying: " + query);
+            TopDocs topDocs = searcher.Search(query, 1000);
+
+            String msg = "Query <" + queryStr + "> retrieved " + topDocs.TotalHits
+                + " document(s), " + expectedDocCount + " document(s) expected.";
+
+            if (VERBOSE) Console.WriteLine(msg);
+
+
+            assertEquals(msg, expectedDocCount, topDocs.TotalHits);
+        }
+
+        private static String numberToString(/*Number*/ object number)
+        {
+            //return number == null ? "*" : ESCAPER.Escape(/*NUMBER_FORMAT.format(number)*/ string.Format("{0:" + NUMBER_FORMAT + "}", number).ToCharSequence(),
+            //    LOCALE, EscapeQuerySyntax.Type.STRING).toString();
+            return number == null ? "*" : ESCAPER.Escape(NUMBER_FORMAT.Format(number),
+                LOCALE, EscapeQuerySyntax.Type.STRING).toString();
+        }
+
+        private static /*Number*/ object normalizeNumber(/*Number*/ object number)
+        {
+            //return decimal.Parse(string.Format("{0:" + NUMBER_FORMAT + "}", number));
+            return NUMBER_FORMAT.Parse(NUMBER_FORMAT.Format(number));
+        }
+
+        [TestFixtureTearDown]
+        public static void afterClass()
+        {
+            searcher = null;
+            reader.Dispose();
+            reader = null;
+            directory.Dispose();
+            directory = null;
+            qp = null;
+        }
+
+
+        //private string GetDateFormat(DateFormat dateStyle, DateFormat timeStyle, CultureInfo locale, TimeZoneInfo timeZone)
+        //{
+        //    string datePattern = "", timePattern = "";
+
+        //    switch (dateStyle)
+        //    {
+        //        case DateFormat.SHORT:
+        //            datePattern = locale.DateTimeFormat.ShortDatePattern;
+        //            break;
+        //        case DateFormat.MEDIUM:
+        //            datePattern = locale.DateTimeFormat.LongDatePattern
+        //                .Replace("dddd,", "").Replace(", dddd", "") // Remove the day of the week
+        //                .Replace("MMMM", "MMM"); // Replace month with abbreviated month
+        //            break;
+        //        case DateFormat.LONG:
+        //            datePattern = locale.DateTimeFormat.LongDatePattern
+        //                .Replace("dddd,", "").Replace(", dddd", ""); // Remove the day of the week
+        //            break;
+        //        case DateFormat.FULL:
+        //            datePattern = locale.DateTimeFormat.LongDatePattern;
+        //            break;
+        //    }
+
+        //    switch (timeStyle)
+        //    {
+        //        case DateFormat.SHORT:
+        //            timePattern = locale.DateTimeFormat.ShortTimePattern;
+        //            break;
+        //        case DateFormat.MEDIUM:
+        //            timePattern = locale.DateTimeFormat.LongTimePattern;
+        //            break;
+        //        case DateFormat.LONG:
+        //            timePattern = locale.DateTimeFormat.LongTimePattern; // LUCENENET TODO: Time zone info not being added
+        //            break;
+        //        case DateFormat.FULL:
+        //            timePattern = locale.DateTimeFormat.LongTimePattern; // LUCENENET TODO: Time zone info not being added, but Java doc is unclear on what the difference is between this and LONG
+        //            break;
+        //    }
+
+        //    return string.Concat(datePattern, " ", timePattern);
+        //}
+
+        //private string GetNumberFormat()
+        //{
+        //    string integerDigits = string.Join("", Enumerable.Repeat("#", Random().nextInt(20))) + "0";
+        //    string fractionalDigits = "." + string.Join("", Enumerable.Repeat("#", Random().nextInt(21)));
+
+        //    return integerDigits + fractionalDigits;
+        //}
+
+        //private class RandomNumberFormatProvider : IFormatProvider
+        //{
+        //    private readonly CultureInfo locale;
+
+        //    public RandomNumberFormatProvider(CultureInfo locale)
+        //    {
+        //        this.locale = locale;
+        //    }
+
+        //    public object GetFormat(Type formatType)
+        //    {
+        //        if (formatType == typeof(NumberFormatInfo))
+        //            return GetRandomNumberFormat();
+
+        //        return null;
+        //    }
+
+        //    private NumberFormatInfo GetRandomNumberFormat()
+        //    {
+        //        var culture = locale;
+        //        if (culture == null)
+        //            culture = CultureInfo.CurrentCulture;
+
+        //        var NUMBER_FORMAT = (NumberFormatInfo)culture.NumberFormat.Clone();
+        //        NUMBER_FORMAT.NumberDecimalDigits = (Random().nextInt() & 20) + 1;
+        //        NUMBER_FORMAT.CurrencyDecimalDigits = (Random().nextInt() & 20) + 1;
+
+        //        return NUMBER_FORMAT;
+        //    }
+        //}
+
+        //internal class TestFormatProvider : IFormatProvider, ICustomFormatter
+        //{
+        //    private readonly CultureInfo locale;
+
+        //    public string Format(string format, object arg, IFormatProvider formatProvider)
+        //    {
+        //        return "MM/dd/yyyy";
+        //    }
+
+        //    //public RandomNumberFormatProvider(CultureInfo locale)
+        //    //{
+        //    //    this.locale = locale;
+        //    //}
+
+        //    public object GetFormat(Type formatType)
+        //    {
+        //        if (formatType == typeof(NumberFormatInfo))
+        //            //return GetRandomNumberFormat();
+        //            //return "MM/dd/yyyy";
+        //            return this;
+
+        //        return null;
+        //    }
+
+        //    //private NumberFormatInfo GetRandomNumberFormat()
+        //    //{
+        //    //    var culture = locale;
+        //    //    if (culture == null)
+        //    //        culture = CultureInfo.CurrentCulture;
+
+        //    //    var NUMBER_FORMAT = (NumberFormatInfo)culture.NumberFormat.Clone();
+        //    //    NUMBER_FORMAT.NumberDecimalDigits = (Random().nextInt() & 20) + 1;
+        //    //    NUMBER_FORMAT.CurrencyDecimalDigits = (Random().nextInt() & 20) + 1;
+
+        //    //    return NUMBER_FORMAT;
+        //    //}
+
+        //}
+    }
+}


[04/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
new file mode 100644
index 0000000..f0f89b1
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -0,0 +1,651 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.Documents;
+using Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Builders;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard
+{
+    public class StandardQueryParser : QueryParserHelper, ICommonQueryParserConfiguration
+    {
+        
+        /**
+* Constructs a {@link StandardQueryParser} object.
+*/
+        public StandardQueryParser()
+            : base(new StandardQueryConfigHandler(), new StandardSyntaxParser(),
+                new StandardQueryNodeProcessorPipeline(null),
+                new StandardQueryTreeBuilder())
+        {
+            EnablePositionIncrements = true;
+        }
+
+        /**
+         * Constructs a {@link StandardQueryParser} object and sets an
+         * {@link Analyzer} to it. The same as:
+         * 
+         * <ul>
+         * StandardQueryParser qp = new StandardQueryParser();
+         * qp.getQueryConfigHandler().setAnalyzer(analyzer);
+         * </ul>
+         * 
+         * @param analyzer
+         *          the analyzer to be used by this query parser helper
+         */
+        public StandardQueryParser(Analyzer analyzer)
+            : this()
+        {
+            this.Analyzer = analyzer;
+        }
+
+
+        public override string ToString()
+        {
+            return "<StandardQueryParser config=\"" + this.GetQueryConfigHandler()
+                + "\"/>";
+        }
+
+        /**
+         * Overrides {@link QueryParserHelper#parse(String, String)} so it casts the
+         * return object to {@link Query}. For more reference about this method, check
+         * {@link QueryParserHelper#parse(String, String)}.
+         * 
+         * @param query
+         *          the query string
+         * @param defaultField
+         *          the default field used by the text parser
+         * 
+         * @return the object built from the query
+         * 
+         * @throws QueryNodeException
+         *           if something wrong happens along the three phases
+         */
+        public override /*Query*/ object Parse(string query, string defaultField) // LUCENENET TODO: Can this be return type Query?
+        {
+
+            return (Query)base.Parse(query, defaultField);
+
+        }
+
+        /**
+         * Gets implicit operator setting, which will be either {@link Operator#AND}
+         * or {@link Operator#OR}.
+         */
+        public Operator? GetDefaultOperator()
+        {
+            return GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);
+        }
+
+        /**
+         * Sets the boolean operator of the QueryParser. In default mode (
+         * {@link Operator#OR}) terms without any modifiers are considered optional:
+         * for example <code>capital of Hungary</code> is equal to
+         * <code>capital OR of OR Hungary</code>.<br/>
+         * In {@link Operator#AND} mode terms are considered to be in conjunction: the
+         * above mentioned query is parsed as <code>capital AND of AND Hungary</code>
+         */
+        public void SetDefaultOperator(Operator @operator)
+        {
+            GetQueryConfigHandler().Set(ConfigurationKeys.DEFAULT_OPERATOR, @operator);
+        }
+
+
+        public bool LowercaseExpandedTerms
+        {
+            get
+            {
+                bool? lowercaseExpandedTerms = GetQueryConfigHandler().Get(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS);
+                return lowercaseExpandedTerms.HasValue ? lowercaseExpandedTerms.Value : true;
+            }
+            set
+            {
+                GetQueryConfigHandler().Set(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS, value);
+            }
+        }
+
+        ///**
+        // * Set to <code>true</code> to allow leading wildcard characters.
+        // * <p>
+        // * When set, <code>*</code> or <code>?</code> are allowed as the first
+        // * character of a PrefixQuery and WildcardQuery. Note that this can produce
+        // * very slow queries on big indexes.
+        // * <p>
+        // * Default: false.
+        // */
+
+        //public override void SetLowercaseExpandedTerms(bool lowercaseExpandedTerms)
+        //{
+        //    GetQueryConfigHandler().Set(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS, lowercaseExpandedTerms);
+        //}
+
+        ///**
+        // * @see #setLowercaseExpandedTerms(boolean)
+        // */
+
+        //public override bool GetLowercaseExpandedTerms()
+        //{
+        //    bool? lowercaseExpandedTerms = GetQueryConfigHandler().Get(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS);
+
+        //    if (lowercaseExpandedTerms == null)
+        //    {
+        //        return true;
+
+        //    }
+        //    else
+        //    {
+        //        return lowercaseExpandedTerms.Value;
+        //    }
+
+        //}
+
+        public bool AllowLeadingWildcard
+        {
+            get
+            {
+                bool? allowLeadingWildcard = GetQueryConfigHandler().Get(ConfigurationKeys.ALLOW_LEADING_WILDCARD);
+                return allowLeadingWildcard.HasValue ? allowLeadingWildcard.Value : false;
+            }
+            set
+            {
+                GetQueryConfigHandler().Set(ConfigurationKeys.ALLOW_LEADING_WILDCARD, value);
+            }
+        }
+
+        ///**
+        // * Set to <code>true</code> to allow leading wildcard characters.
+        // * <p>
+        // * When set, <code>*</code> or <code>?</code> are allowed as the first
+        // * character of a PrefixQuery and WildcardQuery. Note that this can produce
+        // * very slow queries on big indexes.
+        // * <p>
+        // * Default: false.
+        // */
+
+        //public override void SetAllowLeadingWildcard(bool allowLeadingWildcard)
+        //{
+        //    GetQueryConfigHandler().Set(ConfigurationKeys.ALLOW_LEADING_WILDCARD, allowLeadingWildcard);
+        //}
+
+        public bool EnablePositionIncrements
+        {
+            get
+            {
+                bool? enablePositionsIncrements = GetQueryConfigHandler().Get(ConfigurationKeys.ENABLE_POSITION_INCREMENTS);
+                return enablePositionsIncrements.HasValue ? enablePositionsIncrements.Value : false;
+            }
+            set
+            {
+                GetQueryConfigHandler().Set(ConfigurationKeys.ENABLE_POSITION_INCREMENTS, value);
+            }
+        }
+
+        ///**
+        // * Set to <code>true</code> to enable position increments in result query.
+        // * <p>
+        // * When set, result phrase and multi-phrase queries will be aware of position
+        // * increments. Useful when e.g. a StopFilter increases the position increment
+        // * of the token that follows an omitted token.
+        // * <p>
+        // * Default: false.
+        // */
+
+        //public override void SetEnablePositionIncrements(bool enabled)
+        //{
+        //    GetQueryConfigHandler().Set(ConfigurationKeys.ENABLE_POSITION_INCREMENTS, enabled);
+        //}
+
+        ///**
+        // * @see #setEnablePositionIncrements(boolean)
+        // */
+
+        //public override bool GetEnablePositionIncrements()
+        //{
+        //    bool? enablePositionsIncrements = GetQueryConfigHandler().Get(ConfigurationKeys.ENABLE_POSITION_INCREMENTS);
+
+        //    if (enablePositionsIncrements == null)
+        //    {
+        //        return false;
+
+        //    }
+        //    else
+        //    {
+        //        return enablePositionsIncrements.Value;
+        //    }
+
+        //}
+
+        public MultiTermQuery.RewriteMethod MultiTermRewriteMethod
+        {
+            get
+            {
+                return GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD);
+            }
+            set
+            {
+                GetQueryConfigHandler().Set(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD, value);
+            }
+        }
+
+        ///**
+        // * By default, it uses
+        // * {@link MultiTermQuery#CONSTANT_SCORE_AUTO_REWRITE_DEFAULT} when creating a
+        // * prefix, wildcard and range queries. This implementation is generally
+        // * preferable because it a) Runs faster b) Does not have the scarcity of terms
+        // * unduly influence score c) avoids any {@link TooManyListenersException}
+        // * exception. However, if your application really needs to use the
+        // * old-fashioned boolean queries expansion rewriting and the above points are
+        // * not relevant then use this change the rewrite method.
+        // */
+
+        //public override void SetMultiTermRewriteMethod(MultiTermQuery.RewriteMethod method)
+        //{
+        //    GetQueryConfigHandler().Set(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD, method);
+        //}
+
+        ///**
+        // * @see #setMultiTermRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod)
+        // */
+
+        //public override MultiTermQuery.RewriteMethod GetMultiTermRewriteMethod()
+        //{
+        //    return GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD);
+        //}
+
+        /**
+         * Set the fields a query should be expanded to when the field is
+         * <code>null</code>
+         * 
+         * @param fields the fields used to expand the query
+         */
+        public void SetMultiFields(string[] fields)
+        {
+
+            if (fields == null)
+            {
+                fields = new string[0];
+            }
+
+            GetQueryConfigHandler().Set(ConfigurationKeys.MULTI_FIELDS, fields);
+
+        }
+
+        /**
+         * Returns the fields used to expand the query when the field for a
+         * certain query is <code>null</code>
+         * 
+         * @param fields the fields used to expand the query
+         */
+        public void GetMultiFields(string[] fields)
+        {
+            GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_FIELDS);
+        }
+
+        public int FuzzyPrefixLength
+        {
+            get
+            {
+                FuzzyConfig fuzzyConfig = GetQueryConfigHandler().Get(ConfigurationKeys.FUZZY_CONFIG);
+
+                if (fuzzyConfig == null)
+                {
+                    return FuzzyQuery.DefaultPrefixLength;
+                }
+                else
+                {
+                    return fuzzyConfig.GetPrefixLength();
+                }
+            }
+            set
+            {
+                QueryConfigHandler config = GetQueryConfigHandler();
+                FuzzyConfig fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG);
+
+                if (fuzzyConfig == null)
+                {
+                    fuzzyConfig = new FuzzyConfig();
+                    config.Set(ConfigurationKeys.FUZZY_CONFIG, fuzzyConfig);
+                }
+
+                fuzzyConfig.SetPrefixLength(value);
+            }
+        }
+
+        ///**
+        // * Set the prefix length for fuzzy queries. Default is 0.
+        // * 
+        // * @param fuzzyPrefixLength
+        // *          The fuzzyPrefixLength to set.
+        // */
+
+        //public void SetFuzzyPrefixLength(int fuzzyPrefixLength)
+        //{
+        //    QueryConfigHandler config = GetQueryConfigHandler();
+        //    FuzzyConfig fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG);
+
+        //    if (fuzzyConfig == null)
+        //    {
+        //        fuzzyConfig = new FuzzyConfig();
+        //        config.Set(ConfigurationKeys.FUZZY_CONFIG, fuzzyConfig);
+        //    }
+
+        //    fuzzyConfig.SetPrefixLength(fuzzyPrefixLength);
+
+        //}
+
+        public void SetNumericConfigMap(IDictionary<string, NumericConfig> numericConfigMap)
+        {
+            GetQueryConfigHandler().Set(ConfigurationKeys.NUMERIC_CONFIG_MAP, numericConfigMap);
+        }
+
+        public IDictionary<string, NumericConfig> GetNumericConfigMap()
+        {
+            return GetQueryConfigHandler().Get(ConfigurationKeys.NUMERIC_CONFIG_MAP);
+        }
+
+        public CultureInfo Locale
+        {
+            get
+            {
+                return GetQueryConfigHandler().Get(ConfigurationKeys.LOCALE);
+            }
+            set
+            {
+                GetQueryConfigHandler().Set(ConfigurationKeys.LOCALE, value);
+            }
+        }
+
+        ///**
+        // * Set locale used by date range parsing.
+        // */
+
+        //public override void SetLocale(CultureInfo locale)
+        //{
+        //    GetQueryConfigHandler().Set(ConfigurationKeys.LOCALE, locale);
+        //}
+
+        ///**
+        // * Returns current locale, allowing access by subclasses.
+        // */
+
+        //public override CultureInfo GetLocale()
+        //{
+        //    return GetQueryConfigHandler().Get(ConfigurationKeys.LOCALE);
+        //}
+
+        public TimeZoneInfo TimeZone
+        {
+            get
+            {
+                return GetQueryConfigHandler().Get(ConfigurationKeys.TIMEZONE);
+            }
+            set
+            {
+                GetQueryConfigHandler().Set(ConfigurationKeys.TIMEZONE, value);
+            }
+        }
+
+        //public override void SetTimeZone(TimeZoneInfo timeZone)
+        //{
+        //    GetQueryConfigHandler().Set(ConfigurationKeys.TIMEZONE, timeZone);
+        //}
+
+
+        //public override TimeZoneInfo GetTimeZone()
+        //{
+        //    return GetQueryConfigHandler().Get(ConfigurationKeys.TIMEZONE);
+        //}
+
+        /**
+         * Sets the default slop for phrases. If zero, then exact phrase matches are
+         * required. Default value is zero.
+         * 
+         * @deprecated renamed to {@link #setPhraseSlop(int)}
+         */
+        [Obsolete]
+        public void SetDefaultPhraseSlop(int defaultPhraseSlop)
+        {
+            GetQueryConfigHandler().Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop);
+        }
+
+        ///**
+        // * Sets the default slop for phrases. If zero, then exact phrase matches are
+        // * required. Default value is zero.
+        // */
+        //[Obsolete]
+        //public void SetPhraseSlop(int defaultPhraseSlop)
+        //{
+        //    GetQueryConfigHandler().Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop);
+        //}
+
+        public Analyzer Analyzer
+        {
+            get
+            {
+                return GetQueryConfigHandler().Get(ConfigurationKeys.ANALYZER);
+            }
+            set
+            {
+                GetQueryConfigHandler().Set(ConfigurationKeys.ANALYZER, value);
+            }
+        }
+
+        //public void SetAnalyzer(Analyzer analyzer)
+        //{
+        //    GetQueryConfigHandler().Set(ConfigurationKeys.ANALYZER, analyzer);
+        //}
+
+        //public override Analyzer GetAnalyzer()
+        //{
+        //    return GetQueryConfigHandler().Get(ConfigurationKeys.ANALYZER);
+        //}
+
+        ///**
+        // * @see #setAllowLeadingWildcard(boolean)
+        // */
+
+        //public override bool GetAllowLeadingWildcard()
+        //{
+        //    bool? allowLeadingWildcard = GetQueryConfigHandler().Get(ConfigurationKeys.ALLOW_LEADING_WILDCARD);
+
+        //    if (allowLeadingWildcard == null)
+        //    {
+        //        return false;
+
+        //    }
+        //    else
+        //    {
+        //        return allowLeadingWildcard.Value;
+        //    }
+        //}
+
+        /**
+         * Get the minimal similarity for fuzzy queries.
+         */
+
+        //public override float GetFuzzyMinSim()
+        //{
+        //    FuzzyConfig fuzzyConfig = GetQueryConfigHandler().Get(ConfigurationKeys.FUZZY_CONFIG);
+        //    return (fuzzyConfig != null) ? fuzzyConfig.GetMinSimilarity() : FuzzyQuery.DefaultMinSimilarity;
+        //}
+
+        ///**
+        // * Get the prefix length for fuzzy queries.
+        // * 
+        // * @return Returns the fuzzyPrefixLength.
+        // */
+
+        //public override int GetFuzzyPrefixLength()
+        //{
+        //    FuzzyConfig fuzzyConfig = GetQueryConfigHandler().Get(ConfigurationKeys.FUZZY_CONFIG);
+
+        //    if (fuzzyConfig == null)
+        //    {
+        //        return FuzzyQuery.DefaultPrefixLength;
+        //    }
+        //    else
+        //    {
+        //        return fuzzyConfig.GetPrefixLength();
+        //    }
+        //}
+
+        public int PhraseSlop
+        {
+            get
+            {
+                int? phraseSlop = GetQueryConfigHandler().Get(ConfigurationKeys.PHRASE_SLOP);
+                return phraseSlop.HasValue ? phraseSlop.Value : 0;
+            }
+
+            set // LUCENENET TODO: obsolete
+            {
+                GetQueryConfigHandler().Set(ConfigurationKeys.PHRASE_SLOP, value);
+            }
+        }
+
+        ///**
+        // * Gets the default slop for phrases.
+        // */
+
+        //public override int GetPhraseSlop()
+        //{
+        //    int? phraseSlop = GetQueryConfigHandler().Get(ConfigurationKeys.PHRASE_SLOP);
+
+        //    if (phraseSlop == null)
+        //    {
+        //        return 0;
+
+        //    }
+        //    else
+        //    {
+        //        return phraseSlop.Value;
+        //    }
+        //}
+
+        public float FuzzyMinSim
+        {
+            get
+            {
+                FuzzyConfig fuzzyConfig = GetQueryConfigHandler().Get(ConfigurationKeys.FUZZY_CONFIG);
+                return (fuzzyConfig != null) ? fuzzyConfig.GetMinSimilarity() : FuzzyQuery.DefaultMinSimilarity;
+            }
+            set
+            {
+                QueryConfigHandler config = GetQueryConfigHandler();
+                FuzzyConfig fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG);
+
+                if (fuzzyConfig == null)
+                {
+                    fuzzyConfig = new FuzzyConfig();
+                    config.Set(ConfigurationKeys.FUZZY_CONFIG, fuzzyConfig);
+                }
+
+                fuzzyConfig.SetMinSimilarity(value);
+            }
+        }
+
+        ///**
+        // * Set the minimum similarity for fuzzy queries. Default is defined on
+        // * {@link FuzzyQuery#defaultMinSimilarity}.
+        // */
+
+        //public override void SetFuzzyMinSim(float fuzzyMinSim)
+        //{
+        //    QueryConfigHandler config = GetQueryConfigHandler();
+        //    FuzzyConfig fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG);
+
+        //    if (fuzzyConfig == null)
+        //    {
+        //        fuzzyConfig = new FuzzyConfig();
+        //        config.Set(ConfigurationKeys.FUZZY_CONFIG, fuzzyConfig);
+        //    }
+
+        //    fuzzyConfig.SetMinSimilarity(fuzzyMinSim);
+        //}
+
+        /**
+         * Sets the boost used for each field.
+         * 
+         * @param boosts a collection that maps a field to its boost 
+         */
+        public void SetFieldsBoost(IDictionary<string, float?> boosts)
+        {
+            GetQueryConfigHandler().Set(ConfigurationKeys.FIELD_BOOST_MAP, boosts);
+        }
+
+        /**
+         * Returns the field to boost map used to set boost for each field.
+         * 
+         * @return the field to boost map 
+         */
+        public IDictionary<string, float?> GetFieldsBoost()
+        {
+            return GetQueryConfigHandler().Get(ConfigurationKeys.FIELD_BOOST_MAP);
+        }
+
+        /**
+         * Sets the default {@link Resolution} used for certain field when
+         * no {@link Resolution} is defined for this field.
+         * 
+         * @param dateResolution the default {@link Resolution}
+         */
+
+        public virtual void SetDateResolution(DateTools.Resolution dateResolution)
+        {
+            GetQueryConfigHandler().Set(ConfigurationKeys.DATE_RESOLUTION, dateResolution);
+        }
+
+        /**
+         * Returns the default {@link Resolution} used for certain field when
+         * no {@link Resolution} is defined for this field.
+         * 
+         * @return the default {@link Resolution}
+         */
+        public DateTools.Resolution? GetDateResolution()
+        {
+            return GetQueryConfigHandler().Get(ConfigurationKeys.DATE_RESOLUTION);
+        }
+
+        /**
+         * Sets the {@link Resolution} used for each field
+         * 
+         * @param dateRes a collection that maps a field to its {@link Resolution}
+         * 
+         * @deprecated this method was renamed to {@link #setDateResolutionMap(Map)} 
+         */
+        [Obsolete]
+        public void SetDateResolution(IDictionary<string, DateTools.Resolution?> dateRes)
+        {
+            SetDateResolutionMap(dateRes);
+        }
+
+        /**
+         * Returns the field to {@link Resolution} map used to normalize each date field.
+         * 
+         * @return the field to {@link Resolution} map
+         */
+        public IDictionary<string, DateTools.Resolution?> GetDateResolutionMap()
+        {
+            return GetQueryConfigHandler().Get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP);
+        }
+
+        /**
+         * Sets the {@link Resolution} used for each field
+         * 
+         * @param dateRes a collection that maps a field to its {@link Resolution}
+         */
+        public void SetDateResolutionMap(IDictionary<string, DateTools.Resolution?> dateRes)
+        {
+            GetQueryConfigHandler().Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, dateRes);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj b/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj
index 8a339ab..db43c85 100644
--- a/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj
+++ b/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj
@@ -55,8 +55,138 @@
     <Compile Include="Ext\ExtensionQuery.cs" />
     <Compile Include="Ext\Extensions.cs" />
     <Compile Include="Ext\ParserExtension.cs" />
+    <Compile Include="Flexible\Core\Builders\QueryBuilder.cs" />
+    <Compile Include="Flexible\Core\Builders\QueryTreeBuilder.cs" />
+    <Compile Include="Flexible\Core\Config\AbstractQueryConfig.cs" />
+    <Compile Include="Flexible\Core\Config\ConfigurationKey.cs" />
+    <Compile Include="Flexible\Core\Config\FieldConfig.cs" />
+    <Compile Include="Flexible\Core\Config\FieldConfigListener.cs" />
+    <Compile Include="Flexible\Core\Config\QueryConfigHandler.cs" />
+    <Compile Include="Flexible\Core\Messages\QueryParserMessages.cs" />
+    <Compile Include="Flexible\Core\Nodes\NoTokenFoundQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\AndQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\AnyQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\BooleanQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\BoostQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\DeletedQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\FieldableNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\FieldQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\FieldValuePairQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\FuzzyQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\GroupQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\MatchAllDocsQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\MatchNoDocsQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\ModifierQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\OpaqueQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\OrQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\PathQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\PhraseSlopQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\ProximityQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\QueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\QueryNodeImpl.cs" />
+    <Compile Include="Flexible\Core\Nodes\QuotedFieldQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\RangeQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\SlopQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\TextableQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\TokenizedPhraseQueryNode.cs" />
+    <Compile Include="Flexible\Core\Nodes\ValueQueryNode.cs" />
+    <Compile Include="Flexible\Core\Parser\EscapeQuerySyntax.cs" />
+    <Compile Include="Flexible\Core\Parser\SyntaxParser.cs" />
+    <Compile Include="Flexible\Core\Processors\NoChildOptimizationQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Core\Processors\QueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Core\Processors\QueryNodeProcessorImpl.cs" />
+    <Compile Include="Flexible\Core\Processors\QueryNodeProcessorPipeline.cs" />
+    <Compile Include="Flexible\Core\Processors\RemoveDeletedQueryNodesProcessor.cs" />
+    <Compile Include="Flexible\Core\QueryNodeError.cs" />
+    <Compile Include="Flexible\Core\QueryNodeException.cs" />
+    <Compile Include="Flexible\Core\QueryNodeParseException.cs" />
+    <Compile Include="Flexible\Core\QueryParserHelper.cs" />
+    <Compile Include="Flexible\Core\Util\QueryNodeOperation.cs" />
+    <Compile Include="Flexible\Core\Util\StringUtils.cs" />
+    <Compile Include="Flexible\Core\Util\UnescapedCharSequence.cs" />
+    <Compile Include="Flexible\Messages\Message.cs" />
+    <Compile Include="Flexible\Messages\MessageImpl.cs" />
+    <Compile Include="Flexible\Messages\NLS.cs" />
+    <Compile Include="Flexible\Messages\NLSException.cs" />
+    <Compile Include="Flexible\Precedence\PrecedenceQueryParser.cs" />
+    <Compile Include="Flexible\Precedence\Processors\BooleanModifiersQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Precedence\Processors\PrecedenceQueryNodeProcessorPipeline.cs" />
+    <Compile Include="Flexible\Standard\Builders\AnyQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\BooleanQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\BoostQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\DummyQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\FieldQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\FuzzyQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\GroupQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\MatchAllDocsQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\MatchNoDocsQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\ModifierQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\MultiPhraseQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\NumericRangeQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\PhraseQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\PrefixWildcardQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\RegexpQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\SlopQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\StandardBooleanQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\StandardQueryBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\StandardQueryTreeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\TermRangeQueryNodeBuilder.cs" />
+    <Compile Include="Flexible\Standard\Builders\WildcardQueryNodeBuilder.cs" />
     <Compile Include="Flexible\Standard\CommonQueryParserConfiguration.cs" />
+    <Compile Include="Flexible\Standard\Config\FieldBoostMapFCListener.cs" />
+    <Compile Include="Flexible\Standard\Config\FieldDateResolutionFCListener.cs" />
+    <Compile Include="Flexible\Standard\Config\FuzzyConfig.cs" />
+    <Compile Include="Flexible\Standard\Config\NumberDateFormat.cs" />
+    <Compile Include="Flexible\Standard\Config\NumericConfig.cs" />
+    <Compile Include="Flexible\Standard\Config\NumericFieldConfigListener.cs" />
+    <Compile Include="Flexible\Standard\Config\StandardQueryConfigHandler.cs" />
+    <Compile Include="Flexible\Standard\Nodes\AbstractRangeQueryNode.cs" />
+    <Compile Include="Flexible\Standard\Nodes\BooleanModifierNode.cs" />
+    <Compile Include="Flexible\Standard\Nodes\MultiPhraseQueryNode.cs" />
+    <Compile Include="Flexible\Standard\Nodes\NumericQueryNode.cs" />
+    <Compile Include="Flexible\Standard\Nodes\NumericRangeQueryNode.cs" />
+    <Compile Include="Flexible\Standard\Nodes\PrefixWildcardQueryNode.cs" />
+    <Compile Include="Flexible\Standard\Nodes\RegexpQueryNode.cs" />
+    <Compile Include="Flexible\Standard\Nodes\StandardBooleanQueryNode.cs" />
+    <Compile Include="Flexible\Standard\Nodes\TermRangeQueryNode.cs" />
+    <Compile Include="Flexible\Standard\Nodes\WildcardQueryNode.cs" />
+    <Compile Include="Flexible\Standard\Parser\CharStream.cs" />
+    <Compile Include="Flexible\Standard\Parser\EscapeQuerySyntaxImpl.cs" />
+    <Compile Include="Flexible\Standard\Parser\FastCharStream.cs" />
+    <Compile Include="Flexible\Standard\Parser\ParseException.cs" />
+    <Compile Include="Flexible\Standard\Parser\StandardSyntaxParser.cs" />
+    <Compile Include="Flexible\Standard\Parser\StandardSyntaxParserConstants.cs" />
+    <Compile Include="Flexible\Standard\Parser\StandardSyntaxParserTokenManager.cs" />
+    <Compile Include="Flexible\Standard\Parser\Token.cs" />
+    <Compile Include="Flexible\Standard\Parser\TokenMgrError.cs" />
+    <Compile Include="Flexible\Standard\Processors\AllowLeadingWildcardProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\AnalyzerQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\BooleanQuery2ModifierNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\BooleanSingleChildOptimizationQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\BoostQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\DefaultPhraseSlopQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\FuzzyQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\GroupQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\LowercaseExpandedTermsQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\MatchAllDocsQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\MultiFieldQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\MultiTermRewriteMethodProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\NumericQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\NumericRangeQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\OpenRangeQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\PhraseSlopQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\RemoveEmptyNonLeafQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\StandardQueryNodeProcessorPipeline.cs" />
+    <Compile Include="Flexible\Standard\Processors\TermRangeQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\Processors\WildcardQueryNodeProcessor.cs" />
+    <Compile Include="Flexible\Standard\QueryParserUtil.cs" />
+    <Compile Include="Flexible\Standard\StandardQueryParser.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
     <Compile Include="Simple\SimpleQueryParser.cs" />
     <Compile Include="Surround\Parser\CharStream.cs" />
     <Compile Include="Surround\Parser\FastCharStream.cs" />
@@ -96,6 +226,12 @@
       <Name>Lucene.Net</Name>
     </ProjectReference>
   </ItemGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+    </EmbeddedResource>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Properties/Resources.Designer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Properties/Resources.Designer.cs b/src/Lucene.Net.QueryParser/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..b3a8fe9
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Properties/Resources.Designer.cs
@@ -0,0 +1,225 @@
+\ufeff//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.42000
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Lucene.Net.QueryParsers.Properties {
+    using System;
+    
+    
+    /// <summary>
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
+    /// </summary>
+    // This class was auto-generated by the StronglyTypedResourceBuilder
+    // class via a tool like ResGen or Visual Studio.
+    // To add or remove a member, edit your .ResX file then rerun ResGen
+    // with the /str option, or rebuild your VS project.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class Resources {
+        
+        private static global::System.Resources.ResourceManager resourceMan;
+        
+        private static global::System.Globalization.CultureInfo resourceCulture;
+        
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal Resources() {
+        }
+        
+        /// <summary>
+        ///   Returns the cached ResourceManager instance used by this class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager {
+            get {
+                if (object.ReferenceEquals(resourceMan, null)) {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lucene.Net.QueryParsers.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+        
+        /// <summary>
+        ///   Overrides the current thread's CurrentUICulture property for all
+        ///   resource lookups using this strongly typed resource class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture {
+            get {
+                return resourceCulture;
+            }
+            set {
+                resourceCulture = value;
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Could not parse text &quot;{0}&quot; using {1}.
+        /// </summary>
+        internal static string COULD_NOT_PARSE_NUMBER {
+            get {
+                return ResourceManager.GetString("COULD_NOT_PARSE_NUMBER", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to .
+        /// </summary>
+        internal static string EMPTY_MESSAGE {
+            get {
+                return ResourceManager.GetString("EMPTY_MESSAGE", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Syntax Error: {0}.
+        /// </summary>
+        internal static string INVALID_SYNTAX {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Syntax Error, cannot parse {0}: {1}.
+        /// </summary>
+        internal static string INVALID_SYNTAX_CANNOT_PARSE {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_CANNOT_PARSE", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Term can not end with escape character..
+        /// </summary>
+        internal static string INVALID_SYNTAX_ESCAPE_CHARACTER {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_ESCAPE_CHARACTER", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Non-hex character in Unicode escape sequence: {0}.
+        /// </summary>
+        internal static string INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Truncated unicode escape sequence..
+        /// </summary>
+        internal static string INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Fractional edit distances are not allowed..
+        /// </summary>
+        internal static string INVALID_SYNTAX_FUZZY_EDITS {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_FUZZY_EDITS", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to The similarity value for a fuzzy search must be between 0.0 and 1.0..
+        /// </summary>
+        internal static string INVALID_SYNTAX_FUZZY_LIMITS {
+            get {
+                return ResourceManager.GetString("INVALID_SYNTAX_FUZZY_LIMITS", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Leading wildcard is not allowed: {0}.
+        /// </summary>
+        internal static string LEADING_WILDCARD_NOT_ALLOWED {
+            get {
+                return ResourceManager.GetString("LEADING_WILDCARD_NOT_ALLOWED", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Cannot convert query to lucene syntax: {0} error: {1}.
+        /// </summary>
+        internal static string LUCENE_QUERY_CONVERSION_ERROR {
+            get {
+                return ResourceManager.GetString("LUCENE_QUERY_CONVERSION_ERROR", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to This node does not support this action..
+        /// </summary>
+        internal static string NODE_ACTION_NOT_SUPPORTED {
+            get {
+                return ResourceManager.GetString("NODE_ACTION_NOT_SUPPORTED", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Number class not supported by NumericRangeQueryNode: {0}.
+        /// </summary>
+        internal static string NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY {
+            get {
+                return ResourceManager.GetString("NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Field &quot;{0}&quot; is numeric and cannot have an empty value..
+        /// </summary>
+        internal static string NUMERIC_CANNOT_BE_EMPTY {
+            get {
+                return ResourceManager.GetString("NUMERIC_CANNOT_BE_EMPTY", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Parameter {1} with value {0} not supported..
+        /// </summary>
+        internal static string PARAMETER_VALUE_NOT_SUPPORTED {
+            get {
+                return ResourceManager.GetString("PARAMETER_VALUE_NOT_SUPPORTED", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Too many boolean clauses, the maximum supported is {0}: {1}.
+        /// </summary>
+        internal static string TOO_MANY_BOOLEAN_CLAUSES {
+            get {
+                return ResourceManager.GetString("TOO_MANY_BOOLEAN_CLAUSES", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Unsupported NumericField.DataType: {0}.
+        /// </summary>
+        internal static string UNSUPPORTED_NUMERIC_DATA_TYPE {
+            get {
+                return ResourceManager.GetString("UNSUPPORTED_NUMERIC_DATA_TYPE", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Wildcard is not supported for query: {0}.
+        /// </summary>
+        internal static string WILDCARD_NOT_SUPPORTED {
+            get {
+                return ResourceManager.GetString("WILDCARD_NOT_SUPPORTED", resourceCulture);
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Properties/Resources.resx
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Properties/Resources.resx b/src/Lucene.Net.QueryParser/Properties/Resources.resx
new file mode 100644
index 0000000..c6680ce
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Properties/Resources.resx
@@ -0,0 +1,177 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="COULD_NOT_PARSE_NUMBER" xml:space="preserve">
+    <value>Could not parse text "{0}" using {1}</value>
+  </data>
+  <data name="EMPTY_MESSAGE" xml:space="preserve">
+    <value />
+  </data>
+  <data name="INVALID_SYNTAX" xml:space="preserve">
+    <value>Syntax Error: {0}</value>
+    <comment>&lt;REPLACEMENT arg="{0}" value="detailed_message"/&gt;</comment>
+  </data>
+  <data name="INVALID_SYNTAX_CANNOT_PARSE" xml:space="preserve">
+    <value>Syntax Error, cannot parse {0}: {1}</value>
+    <comment>&lt;REPLACEMENT arg="{0}" value="invalid_query"/&gt;&lt;REPLACEMENT arg="{1}" value="detailed_message"/&gt;</comment>
+  </data>
+  <data name="INVALID_SYNTAX_ESCAPE_CHARACTER" xml:space="preserve">
+    <value>Term can not end with escape character.</value>
+  </data>
+  <data name="INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE" xml:space="preserve">
+    <value>Non-hex character in Unicode escape sequence: {0}</value>
+  </data>
+  <data name="INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION" xml:space="preserve">
+    <value>Truncated unicode escape sequence.</value>
+  </data>
+  <data name="INVALID_SYNTAX_FUZZY_EDITS" xml:space="preserve">
+    <value>Fractional edit distances are not allowed.</value>
+  </data>
+  <data name="INVALID_SYNTAX_FUZZY_LIMITS" xml:space="preserve">
+    <value>The similarity value for a fuzzy search must be between 0.0 and 1.0.</value>
+  </data>
+  <data name="LEADING_WILDCARD_NOT_ALLOWED" xml:space="preserve">
+    <value>Leading wildcard is not allowed: {0}</value>
+  </data>
+  <data name="LUCENE_QUERY_CONVERSION_ERROR" xml:space="preserve">
+    <value>Cannot convert query to lucene syntax: {0} error: {1}</value>
+    <comment>&lt;REPLACEMENT arg="{0}" value="query"/&gt;&lt;REPLACEMENT arg="{1}" value="error/class"/&gt;</comment>
+  </data>
+  <data name="NODE_ACTION_NOT_SUPPORTED" xml:space="preserve">
+    <value>This node does not support this action.</value>
+  </data>
+  <data name="NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY" xml:space="preserve">
+    <value>Number class not supported by NumericRangeQueryNode: {0}</value>
+  </data>
+  <data name="NUMERIC_CANNOT_BE_EMPTY" xml:space="preserve">
+    <value>Field "{0}" is numeric and cannot have an empty value.</value>
+  </data>
+  <data name="PARAMETER_VALUE_NOT_SUPPORTED" xml:space="preserve">
+    <value>Parameter {1} with value {0} not supported.</value>
+  </data>
+  <data name="TOO_MANY_BOOLEAN_CLAUSES" xml:space="preserve">
+    <value>Too many boolean clauses, the maximum supported is {0}: {1}</value>
+  </data>
+  <data name="UNSUPPORTED_NUMERIC_DATA_TYPE" xml:space="preserve">
+    <value>Unsupported NumericField.DataType: {0}</value>
+  </data>
+  <data name="WILDCARD_NOT_SUPPORTED" xml:space="preserve">
+    <value>Wildcard is not supported for query: {0}</value>
+  </data>
+</root>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
new file mode 100644
index 0000000..207502c
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Builders/TestQueryTreeBuilder.cs
@@ -0,0 +1,60 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.Util;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
+{
+    public class TestQueryTreeBuilder : LuceneTestCase
+    {
+        [Test]
+        public virtual void TestSetFieldBuilder()
+        {
+            QueryTreeBuilder qtb = new QueryTreeBuilder();
+            qtb.SetBuilder("field", new DummyBuilder());
+            Object result = qtb.Build(new FieldQueryNode(new UnescapedCharSequence("field").ToString(), "foo", 0, 0));
+            assertEquals("OK", result);
+
+            qtb = new QueryTreeBuilder();
+            qtb.SetBuilder(typeof(DummyQueryNodeInterface), new DummyBuilder());
+            result = qtb.Build(new DummyQueryNode());
+            assertEquals("OK", result);
+        }
+
+        private interface DummyQueryNodeInterface : IQueryNode
+        {
+
+        }
+
+        private abstract class AbstractDummyQueryNode : QueryNodeImpl, DummyQueryNodeInterface
+        {
+
+        }
+
+        private class DummyQueryNode : AbstractDummyQueryNode
+        {
+
+            
+        public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
+            {
+                return "DummyQueryNode";
+            }
+
+        }
+
+        private class DummyBuilder : IQueryBuilder
+        {
+            public virtual object Build(IQueryNode queryNode)
+            {
+                return "OK";
+            }
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
new file mode 100644
index 0000000..a09f296
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
@@ -0,0 +1,60 @@
+\ufeffusing Lucene.Net.Support;
+using Lucene.Net.Util;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+{
+    public class TestQueryNode : LuceneTestCase
+    {
+        /* LUCENE-2227 bug in QueryNodeImpl.add() */
+        [Test]
+        public void testAddChildren()
+        {
+            IQueryNode nodeA = new FieldQueryNode("foo", "A", 0, 1);
+            IQueryNode nodeB = new FieldQueryNode("foo", "B", 1, 2);
+            BooleanQueryNode bq = new BooleanQueryNode(
+                Arrays.AsList(nodeA));
+            bq.Add(Arrays.AsList(nodeB));
+            assertEquals(2, bq.GetChildren().size());
+        }
+
+        /* LUCENE-3045 bug in QueryNodeImpl.containsTag(String key)*/
+        [Test]
+        public void testTags()
+        {
+            IQueryNode node = new FieldQueryNode("foo", "A", 0, 1);
+
+            node.SetTag("TaG", new Object());
+            assertTrue(node.GetTagMap().size() > 0);
+            assertTrue(node.ContainsTag("tAg"));
+            assertTrue(node.GetTag("tAg") != null);
+
+        }
+
+        /* LUCENE-5099 - QueryNodeProcessorImpl should set parent to null before returning on processing */
+        [Test]
+        public void testRemoveFromParent()
+        {
+            BooleanQueryNode booleanNode = new BooleanQueryNode(Collections.EmptyList<IQueryNode>());
+            FieldQueryNode fieldNode = new FieldQueryNode("foo", "A", 0, 1);
+            assertNull(fieldNode.GetParent());
+
+            booleanNode.Add(fieldNode);
+            assertNotNull(fieldNode.GetParent());
+
+            fieldNode.RemoveFromParent();
+            assertNull(fieldNode.GetParent());
+
+            booleanNode.Add(fieldNode);
+            assertNotNull(fieldNode.GetParent());
+
+            booleanNode.Set(Collections.EmptyList<IQueryNode>());
+            assertNull(fieldNode.GetParent());
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.Designer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.Designer.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.Designer.cs
new file mode 100644
index 0000000..0ce0aa7
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.Designer.cs
@@ -0,0 +1,63 @@
+\ufeff//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.42000
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Lucene.Net.QueryParsers.Flexible.Messages {
+    using System;
+    
+    
+    /// <summary>
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
+    /// </summary>
+    // This class was auto-generated by the StronglyTypedResourceBuilder
+    // class via a tool like ResGen or Visual Studio.
+    // To add or remove a member, edit your .ResX file then rerun ResGen
+    // with the /str option, or rebuild your VS project.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class MessagesTestBundle {
+        
+        private static global::System.Resources.ResourceManager resourceMan;
+        
+        private static global::System.Globalization.CultureInfo resourceCulture;
+        
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal MessagesTestBundle() {
+        }
+        
+        /// <summary>
+        ///   Returns the cached ResourceManager instance used by this class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager {
+            get {
+                if (object.ReferenceEquals(resourceMan, null)) {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lucene.Net.QueryParsers.Flexible.Messages.MessagesTestBundle", typeof(MessagesTestBundle).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+        
+        /// <summary>
+        ///   Overrides the current thread's CurrentUICulture property for all
+        ///   resource lookups using this strongly typed resource class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture {
+            get {
+                return resourceCulture;
+            }
+            set {
+                resourceCulture = value;
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
new file mode 100644
index 0000000..a495f3d
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.cs
@@ -0,0 +1,12 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Messages
+{
+    //public class MessagesTestBundle
+    //{
+    //}
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.ja-JP.resx
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.ja-JP.resx b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.ja-JP.resx
new file mode 100644
index 0000000..9378bcb
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.ja-JP.resx
@@ -0,0 +1,126 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="Q0001E_INVALID_SYNTAX" xml:space="preserve">
+    <value>\u69cb\u6587\u30a8\u30e9\u30fc: {0}</value>
+  </data>
+  <data name="Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION" xml:space="preserve">
+    <value>\u5207\u308a\u6368\u3066\u3089\u308c\u305f\u30e6\u30cb\u30b3\u30fc\u30c9\u30fb\u30a8\u30b9\u30b1\u30fc\u30d7\u30fb\u30b7\u30fc\u30b1\u30f3\u30b9\u3002</value>
+  </data>
+</root>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.resx
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.resx b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.resx
new file mode 100644
index 0000000..7d4fa31
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/MessagesTestBundle.resx
@@ -0,0 +1,126 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="Q0001E_INVALID_SYNTAX" xml:space="preserve">
+    <value>Syntax Error: {0}</value>
+  </data>
+  <data name="Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION" xml:space="preserve">
+    <value>Truncated unicode escape sequence.</value>
+  </data>
+</root>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
new file mode 100644
index 0000000..e99c73e
--- /dev/null
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
@@ -0,0 +1,121 @@
+\ufeffusing Lucene.Net.Util;
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Messages
+{
+    public class TestNLS : LuceneTestCase
+    {
+        [Test]
+        public void testMessageLoading()
+        {
+            string message = MessagesTestBundle.ResourceManager.GetString("Q0001E_INVALID_SYNTAX");
+
+            fail("not implemented");
+
+            //IMessage invalidSyntax = new MessageImpl(
+            //    MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
+            ///* 
+            // * if the default locale is ja, you get ja as a fallback:
+            // * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+            // */
+            ////if (!Locale.getDefault().getLanguage().equals("ja"))
+            ////    assertEquals("Syntax Error: XXX", invalidSyntax.getLocalizedMessage(Locale.ENGLISH));
+            //if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja-JP")))
+            //    assertEquals("Syntax Error: XXX", invalidSyntax.GetLocalizedMessage(new CultureInfo("en")));
+        }
+
+        //[Test]
+        //public void testMessageLoading_ja()
+        //{
+        //    IMessage invalidSyntax = new MessageImpl(
+        //        MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
+        //    assertEquals("\u69cb\u6587\u30a8\u30e9\u30fc: XXX", invalidSyntax
+        //        .GetLocalizedMessage(new CultureInfo("ja-JP")));
+        //}
+
+        //[Test]
+        //public void testNLSLoading()
+        //{
+        //    String message = NLS
+        //        .GetLocalizedMessage(MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION, new CultureInfo("en"));
+        //    /* 
+        //     * if the default locale is ja, you get ja as a fallback:
+        //     * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+        //     */
+        //    //if (!Locale.getDefault().getLanguage().equals("ja"))
+        //    if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
+        //        assertEquals("Truncated unicode escape sequence.", message);
+
+        //    message = NLS.GetLocalizedMessage(MessagesTestBundle.Q0001E_INVALID_SYNTAX, new CultureInfo("en"),
+        //        "XXX");
+        //    /* 
+        //     * if the default locale is ja, you get ja as a fallback:
+        //     * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+        //     */
+        //    //if (!Locale.getDefault().getLanguage().equals("ja"))
+        //    //if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja-JP")))
+        //    if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
+        //        assertEquals("Syntax Error: XXX", message);
+        //}
+
+        //[Test]
+        //public void testNLSLoading_ja()
+        //{
+        //    String message = NLS.GetLocalizedMessage(
+        //        MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
+        //        new CultureInfo("ja-JP"));
+        //    assertEquals("\u5207\u308a\u6368\u3066\u3089\u308c\u305f\u30e6\u30cb\u30b3\u30fc\u30c9\u30fb\u30a8\u30b9\u30b1\u30fc\u30d7\u30fb\u30b7\u30fc\u30b1\u30f3\u30b9\u3002", message);
+
+        //    message = NLS.GetLocalizedMessage(MessagesTestBundle.Q0001E_INVALID_SYNTAX,
+        //        new CultureInfo("ja-JP"), "XXX");
+        //    assertEquals("\u69cb\u6587\u30a8\u30e9\u30fc: XXX", message);
+        //}
+
+        //[Test]
+        //public void testNLSLoading_xx_XX()
+        //{
+        //    //Locale locale = new Locale("xx", "XX", "");
+        //    CultureInfo locale = new CultureInfo("xx-XX");
+        //    String message = NLS.GetLocalizedMessage(
+        //        MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
+        //        locale);
+        //    /* 
+        //     * if the default locale is ja, you get ja as a fallback:
+        //     * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+        //     */
+        //    //if (!Locale.getDefault().getLanguage().equals("ja"))
+        //    if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
+        //        assertEquals("Truncated unicode escape sequence.", message);
+
+        //    message = NLS.GetLocalizedMessage(MessagesTestBundle.Q0001E_INVALID_SYNTAX,
+        //        locale, "XXX");
+        //    /* 
+        //     * if the default locale is ja, you get ja as a fallback:
+        //     * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+        //     */
+        //    //if (!Locale.getDefault().getLanguage().equals("ja"))
+        //    if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
+        //        assertEquals("Syntax Error: XXX", message);
+        //}
+
+        // LUCENENET TODO: This doesn't compile because the resources don't contain this message
+
+        //[Test]
+        //public void testMissingMessage()
+        //{
+        //    //Locale locale = Locale.ENGLISH;
+        //    CultureInfo locale = new CultureInfo("en");
+        //    String message = NLS.GetLocalizedMessage(
+        //        MessagesTestBundle.Q0005E_MESSAGE_NOT_IN_BUNDLE, locale);
+
+        //    assertEquals("Message with key:Q0005E_MESSAGE_NOT_IN_BUNDLE and locale: "
+        //        + locale.toString() + " not found.", message);
+        //}
+    }
+}


[25/58] lucenenet git commit: QueryParser.Flexible refactor: Formatting, removed commented code, changed some properties

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
index 3d9b5f2..c9ebf8b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
@@ -23,11 +23,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
     {
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is IFieldableNode &&
                 (node.Parent == null || !(node.Parent is IFieldableNode)))
             {
-
                 IFieldableNode fieldNode = (IFieldableNode)node;
                 QueryConfigHandler config = GetQueryConfigHandler();
 
@@ -44,31 +42,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         {
                             return new BoostQueryNode(node, boost.Value);
                         }
-
                     }
-
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
index f52ebba..18bc691 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
@@ -32,7 +32,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         public override IQueryNode Process(IQueryNode queryTree)
         {
             QueryConfigHandler queryConfig = GetQueryConfigHandler();
@@ -46,67 +45,48 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                     this.defaultPhraseSlop = defaultPhraseSlop.Value;
 
                     return base.Process(queryTree);
-
                 }
-
             }
 
             return queryTree;
-
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is TokenizedPhraseQueryNode
                 || node is MultiPhraseQueryNode)
             {
-
                 return new SlopQueryNode(node, this.defaultPhraseSlop);
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             if (node is SlopQueryNode)
             {
                 this.processChildren = false;
-
             }
 
             return node;
-
         }
 
-
         protected override void ProcessChildren(IQueryNode queryTree)
         {
-
             if (this.processChildren)
             {
                 base.ProcessChildren(queryTree);
-
             }
             else
             {
                 this.processChildren = true;
             }
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
index 13b309b..0c1f20a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/FuzzyQueryNodeProcessor.cs
@@ -23,18 +23,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
     /// <seealso cref="FuzzyQueryNode"/>
     public class FuzzyQueryNodeProcessor : QueryNodeProcessorImpl
     {
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             if (node is FuzzyQueryNode)
             {
                 FuzzyQueryNode fuzzyNode = (FuzzyQueryNode)node;
@@ -50,26 +45,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                     {
                         fuzzyNode.Similarity = fuzzyConfig.MinSimilarity;
                     }
-
                 }
                 else if (fuzzyNode.Similarity < 0)
                 {
                     throw new ArgumentException("No FUZZY_CONFIG set in the config");
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
index dcc6f44..9f7f4eb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/GroupQueryNodeProcessor.cs
@@ -41,7 +41,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         public virtual IQueryNode Process(IQueryNode queryTree)
         {
             Operator? defaultOperator = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);
@@ -73,7 +72,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 {
                     actualQueryNodeList[i] = Process(node);
                 }
-
             }
 
             this.usingAnd = false;
@@ -83,101 +81,79 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 queryTree.Set(actualQueryNodeList);
 
                 return queryTree;
-
             }
             else
             {
                 return new BooleanQueryNode(actualQueryNodeList);
             }
-
         }
 
         /**
          */
         private IQueryNode ApplyModifier(IQueryNode node, IQueryNode parent)
         {
-
             if (this.usingAnd)
             {
-
                 if (parent is OrQueryNode)
                 {
-
                     if (node is ModifierQueryNode)
                     {
-
                         ModifierQueryNode modNode = (ModifierQueryNode)node;
 
                         if (modNode.Modifier == Modifier.MOD_REQ)
                         {
                             return modNode.GetChild();
                         }
-
                     }
-
                 }
                 else
                 {
-
                     if (node is ModifierQueryNode)
                     {
-
                         ModifierQueryNode modNode = (ModifierQueryNode)node;
 
                         if (modNode.Modifier == Modifier.MOD_NONE)
                         {
                             return new BooleanModifierNode(modNode.GetChild(), Modifier.MOD_REQ);
                         }
-
                     }
                     else
                     {
                         return new BooleanModifierNode(node, Modifier.MOD_REQ);
                     }
-
                 }
-
             }
             else
             {
-
                 if (node.Parent is AndQueryNode)
                 {
-
                     if (node is ModifierQueryNode)
                     {
-
                         ModifierQueryNode modNode = (ModifierQueryNode)node;
 
                         if (modNode.Modifier == Modifier.MOD_NONE)
                         {
                             return new BooleanModifierNode(modNode.GetChild(), Modifier.MOD_REQ);
                         }
-
                     }
                     else
                     {
                         return new BooleanModifierNode(node, Modifier.MOD_REQ);
                     }
-
                 }
-
             }
 
             return node;
-
         }
 
         private void ReadTree(IQueryNode node)
         {
-
             if (node is BooleanQueryNode)
             {
                 IList<IQueryNode> children = node.GetChildren();
 
                 if (children != null && children.Count > 0)
                 {
-
                     for (int i = 0; i < children.Count - 1; i++)
                     {
                         ReadTree(children[i]);
@@ -185,27 +161,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                     ProcessNode(node);
                     ReadTree(children[children.Count - 1]);
-
                 }
                 else
                 {
                     ProcessNode(node);
                 }
-
             }
             else
             {
                 ProcessNode(node);
             }
-
         }
 
         private void ProcessNode(IQueryNode node)
         {
-
             if (node is AndQueryNode || node is OrQueryNode)
             {
-
                 if (!this.latestNodeVerified && this.queryNodeList.Any())
                 {
                     var value = this.queryNodeList[this.queryNodeList.Count - 1];
@@ -213,26 +184,20 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                     this.queryNodeList.Add(ApplyModifier(value, node));
                     this.latestNodeVerified = true;
-
                 }
-
             }
             else if (!(node is BooleanQueryNode))
             {
                 this.queryNodeList.Add(ApplyModifier(node, node.Parent));
                 this.latestNodeVerified = false;
-
             }
-
         }
 
-
         public virtual QueryConfigHandler GetQueryConfigHandler()
         {
             return this.queryConfig;
         }
 
-
         public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
         {
             this.queryConfig = queryConfigHandler;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
index 505ed07..9a4528e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/LowercaseExpandedTermsQueryNodeProcessor.cs
@@ -28,7 +28,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
         {
         }
 
-
         public override IQueryNode Process(IQueryNode queryTree)
         {
             bool? lowercaseExpandedTerms = GetQueryConfigHandler().Get(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS);
@@ -39,13 +38,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             }
 
             return queryTree;
-
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             CultureInfo locale = GetQueryConfigHandler().Get(ConfigurationKeys.LOCALE);
             if (locale == null)
             {
@@ -57,31 +53,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 || (node is FieldQueryNode && node.Parent is IRangeQueryNode)
                 || node is RegexpQueryNode)
             {
-
                 ITextableQueryNode txtNode = (ITextableQueryNode)node;
                 ICharSequence text = txtNode.Text;
                 txtNode.Text = text != null ? UnescapedCharSequence.ToLowerCase(text, locale) : null;
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
index 4fda65e..342b17f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MatchAllDocsQueryNodeProcessor.cs
@@ -21,10 +21,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is FieldQueryNode)
             {
                 FieldQueryNode fqn = (FieldQueryNode)node;
@@ -32,31 +30,21 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 if (fqn.Field.ToString().Equals("*")
                     && fqn.Text.ToString().Equals("*"))
                 {
-
                     return new MatchAllDocsQueryNode();
-
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
index 1ec617d..b0443e9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiFieldQueryNodeProcessor.cs
@@ -31,33 +31,25 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override void ProcessChildren(IQueryNode queryTree)
         {
-
             if (this.processChildren)
             {
                 base.ProcessChildren(queryTree);
-
             }
             else
             {
                 this.processChildren = true;
             }
-
         }
 
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             if (node is IFieldableNode)
             {
                 this.processChildren = false;
@@ -80,7 +72,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                         if (fields.Length == 1)
                         {
                             return fieldNode;
-
                         }
                         else
                         {
@@ -89,42 +80,24 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             for (int i = 1; i < fields.Length; i++)
                             {
-                                //try
-                                //{
                                 fieldNode = (IFieldableNode)fieldNode.CloneTree();
                                 fieldNode.Field = fields[i];
 
                                 children.Add(fieldNode);
-
-                                //}
-                                //catch (CloneNotSupportedException e)
-                                //{
-                                //    // should never happen
-                                //}
-
                             }
 
                             return new GroupQueryNode(new OrQueryNode(children));
-
                         }
-
                     }
-
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
index 33e31b5..3a5c506 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/MultiTermRewriteMethodProcessor.cs
@@ -21,16 +21,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
     {
         public static readonly string TAG_ID = "MultiTermRewriteMethodConfiguration";
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             // set setMultiTermRewriteMethod for WildcardQueryNode and
             // PrefixWildcardQueryNode
             if (node is WildcardQueryNode
                 || node is IAbstractRangeQueryNode || node is RegexpQueryNode)
             {
-
                 MultiTermQuery.RewriteMethod rewriteMethod = GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD);
 
                 if (rewriteMethod == null)
@@ -43,19 +40,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                 // use a TAG to take the value to the Builder
                 node.SetTag(MultiTermRewriteMethodProcessor.TAG_ID, rewriteMethod);
-
             }
 
             return node;
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
             return node;
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
             return children;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
index 5772699..114aded 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericQueryNodeProcessor.cs
@@ -46,14 +46,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is FieldQueryNode
                 && !(node.Parent is IRangeQueryNode))
             {
-
                 QueryConfigHandler config = GetQueryConfigHandler();
 
                 if (config != null)
@@ -69,7 +66,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                         if (numericConfig != null)
                         {
-
                             NumberFormat numberFormat = numericConfig.NumberFormat;
                             string text = fieldNode.GetTextAsString();
                             /*Number*/
@@ -77,12 +73,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             if (text.Length > 0)
                             {
-
                                 try
                                 {
                                     number = numberFormat.Parse(text);
-                                    //number = decimal.Parse(text, NumberStyles.Any);// LUCENENET TODO: use the current culture?
-
                                 }
                                 catch (FormatException e)
                                 {
@@ -122,26 +115,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             return new NumericRangeQueryNode(lowerNode, upperNode, true, true,
                                 numericConfig);
-
                         }
-
                     }
-
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
             return node;
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
             return children;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
index 98d3c6f..81c2849 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/NumericRangeQueryNodeProcessor.cs
@@ -41,10 +41,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is TermRangeQueryNode)
             {
                 QueryConfigHandler config = GetQueryConfigHandler();
@@ -57,13 +55,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                     if (fieldConfig != null)
                     {
-
                         NumericConfig numericConfig = fieldConfig
                             .Get(ConfigurationKeys.NUMERIC_CONFIG);
 
                         if (numericConfig != null)
                         {
-
                             FieldQueryNode lower = (FieldQueryNode)termRangeNode.LowerBound;
                             FieldQueryNode upper = (FieldQueryNode)termRangeNode.UpperBound;
 
@@ -75,11 +71,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             if (lowerText.Length > 0)
                             {
-
                                 try
                                 {
                                     lowerNumber = numberFormat.Parse(lowerText);
-                                    //lowerNumber = decimal.Parse(lowerText, NumberStyles.Any);// LUCENENET TODO: use the current culture?
                                 }
                                 catch (FormatException e)
                                 {
@@ -88,16 +82,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                             .GetTextAsString(), numberFormat.GetType()
                                             .AssemblyQualifiedName), e);
                                 }
-
                             }
 
                             if (upperText.Length > 0)
                             {
-
                                 try
                                 {
                                     upperNumber = numberFormat.Parse(upperText);
-                                    //upperNumber = decimal.Parse(upperText, NumberStyles.Any);// LUCENENET TODO: use the current culture?
                                 }
                                 catch (FormatException e)
                                 {
@@ -106,7 +97,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                                             .GetTextAsString(), numberFormat.GetType()
                                             .AssemblyQualifiedName), e);
                                 }
-
                             }
 
                             switch (numericConfig.Type)
@@ -139,17 +129,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                             return new NumericRangeQueryNode(lowerNode, upperNode,
                                 lowerInclusive, upperInclusive, numericConfig);
-
                         }
-
                     }
-
                 }
-
             }
 
             return node;
-
         }
 
         protected override IQueryNode PreProcessNode(IQueryNode node)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
index 9fbf008..2f9ae47 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/OpenRangeQueryNodeProcessor.cs
@@ -20,10 +20,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
         public OpenRangeQueryNodeProcessor() { }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is TermRangeQueryNode)
             {
                 TermRangeQueryNode rangeNode = (TermRangeQueryNode)node;
@@ -51,16 +49,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
             return node;
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
             return children;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
index 2aa76de..066807b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/PhraseSlopQueryNodeProcessor.cs
@@ -22,10 +22,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is SlopQueryNode)
             {
                 SlopQueryNode phraseSlopNode = (SlopQueryNode)node;
@@ -35,27 +33,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 {
                     return phraseSlopNode.GetChild();
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
index c4bdd53..d961085 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs
@@ -29,74 +29,56 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         public override IQueryNode Process(IQueryNode queryTree)
         {
             queryTree = base.Process(queryTree);
 
             if (!queryTree.IsLeaf)
             {
-
                 IList<IQueryNode> children = queryTree.GetChildren();
 
                 if (children == null || children.Count == 0)
                 {
                     return new MatchNoDocsQueryNode();
                 }
-
             }
 
             return queryTree;
-
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             try
             {
-
                 foreach (IQueryNode child in children)
                 {
-
                     if (!child.IsLeaf)
                     {
-
                         IList<IQueryNode> grandChildren = child.GetChildren();
 
                         if (grandChildren != null && grandChildren.Count > 0)
                         {
                             this.childrenBuffer.Add(child);
                         }
-
                     }
                     else
                     {
                         this.childrenBuffer.Add(child);
                     }
-
                 }
 
                 children.Clear();
                 children.AddRange(this.childrenBuffer);
-
             }
             finally
             {
@@ -104,7 +86,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             }
 
             return children;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
index 6ddbd75..8590a69 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/TermRangeQueryNodeProcessor.cs
@@ -39,10 +39,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             if (node is TermRangeQueryNode)
             {
                 TermRangeQueryNode termRangeNode = (TermRangeQueryNode)node;
@@ -130,35 +128,25 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
 
                         part2 = DateTools.DateToString(d2, dateRes);
                         upper.Text = new StringCharSequenceWrapper(part2);
-
                     }
-
                 }
                 catch (Exception e)
                 {
                     // do nothing
                 }
-
             }
 
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
index 868daed..1fd1b5d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/WildcardQueryNodeProcessor.cs
@@ -27,10 +27,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             // empty constructor
         }
 
-
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             // the old Lucene Parser ignores FuzzyQueryNode that are also PrefixWildcardQueryNode or WildcardQueryNode
             // we do the same here, also ignore empty terms
             if (node is FieldQueryNode || node is FuzzyQueryNode)
@@ -54,18 +52,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
                 {
                     PrefixWildcardQueryNode prefixWildcardQN = new PrefixWildcardQueryNode(fqn);
                     return prefixWildcardQN;
-
                 }
                 else if (IsWildcard(text))
                 {
                     WildcardQueryNode wildcardQN = new WildcardQueryNode(fqn);
                     return wildcardQN;
                 }
-
             }
 
             return node;
-
         }
 
         private bool IsWildcard(string text)
@@ -112,20 +107,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
             return false;
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
index 55eb099..0afd0de 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/QueryParserUtil.cs
@@ -46,7 +46,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             for (int i = 0; i < fields.Length; i++)
             {
-                Query q = qp.Parse(queries[i], fields[i]) as Query;
+                Query q = qp.Parse(queries[i], fields[i]);
 
                 if (q != null && // q never null, just being defensive
                     (!(q is BooleanQuery) || ((BooleanQuery)q).GetClauses().Count > 0))
@@ -105,7 +105,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             for (int i = 0; i < fields.Length; i++)
             {
-                Query q = qp.Parse(query, fields[i]) as Query;
+                Query q = qp.Parse(query, fields[i]);
 
                 if (q != null && // q never null, just being defensive
                     (!(q is BooleanQuery) || ((BooleanQuery)q).GetClauses().Count > 0))
@@ -165,7 +165,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             for (int i = 0; i < fields.Length; i++)
             {
-                Query q = qp.Parse(queries[i], fields[i]) as Query;
+                Query q = qp.Parse(queries[i], fields[i]);
 
                 if (q != null && // q never null, just being defensive
                     (!(q is BooleanQuery) || ((BooleanQuery)q).GetClauses().Count > 0))

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index 498ea99..2f421d6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -19,10 +19,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 {
     public class StandardQueryParser : QueryParserHelper<Query>, ICommonQueryParserConfiguration
     {
-        
-        /**
-* Constructs a {@link StandardQueryParser} object.
-*/
+        /// <summary>
+        /// Constructs a <see cref="StandardQueryParser"/> object.
+        /// </summary>
         public StandardQueryParser()
             : base(new StandardQueryConfigHandler(), new StandardSyntaxParser(),
                 new StandardQueryNodeProcessorPipeline(null),
@@ -31,77 +30,65 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             EnablePositionIncrements = true;
         }
 
-        /**
-         * Constructs a {@link StandardQueryParser} object and sets an
-         * {@link Analyzer} to it. The same as:
-         * 
-         * <ul>
-         * StandardQueryParser qp = new StandardQueryParser();
-         * qp.getQueryConfigHandler().setAnalyzer(analyzer);
-         * </ul>
-         * 
-         * @param analyzer
-         *          the analyzer to be used by this query parser helper
-         */
+        /// <summary>
+        /// Constructs a <see cref="StandardQueryParser"/> object and sets an
+        /// <see cref="Analyzer"/> to it. The same as:
+        /// <code>
+        /// StandardQueryParser qp = new StandardQueryParser();
+        /// qp.QueryConfigHandler.Analyzer = analyzer;
+        /// </code>
+        /// </summary>
+        /// <param name="analyzer">the analyzer to be used by this query parser helper</param>
         public StandardQueryParser(Analyzer analyzer)
             : this()
         {
             this.Analyzer = analyzer;
         }
 
-
         public override string ToString()
         {
             return "<StandardQueryParser config=\"" + this.QueryConfigHandler
                 + "\"/>";
         }
 
-        /**
-         * Overrides {@link QueryParserHelper#parse(String, String)} so it casts the
-         * return object to {@link Query}. For more reference about this method, check
-         * {@link QueryParserHelper#parse(String, String)}.
-         * 
-         * @param query
-         *          the query string
-         * @param defaultField
-         *          the default field used by the text parser
-         * 
-         * @return the object built from the query
-         * 
-         * @throws QueryNodeException
-         *           if something wrong happens along the three phases
-         */
+        /// <summary>
+        /// Overrides <see cref="QueryParserHelper{TQuery}.Parse(string, string)"/> so it casts the
+        /// return object to <see cref="Query"/>. For more reference about this method, check
+        /// <see cref="QueryParserHelper{TQuery}.Parse(string, string)"/>.
+        /// </summary>
+        /// <param name="query">the query string</param>
+        /// <param name="defaultField">the default field used by the text parser</param>
+        /// <returns>the object built from the query</returns>
+        /// <exception cref="QueryNodeException">if something wrong happens along the three phases</exception>
         public override Query Parse(string query, string defaultField)
         {
-
             return base.Parse(query, defaultField);
-
         }
 
-        /**
-         * Gets implicit operator setting, which will be either {@link Operator#AND}
-         * or {@link Operator#OR}.
-         */
+        /// <summary>
+        /// Gets or Sets the boolean operator of the QueryParser. In default mode (
+        /// <see cref="Operator.OR"/>) terms without any modifiers are considered optional:
+        /// for example <c>capital of Hungary</c> is equal to
+        /// <c>capital OR of OR Hungary</c>.
+        /// <para/>
+        /// In <see cref="Operator.AND"/> mode terms are considered to be in conjunction: the
+        /// above mentioned query is parsed as <c>capital AND of AND Hungary</c>
+        /// </summary>
         public virtual Operator? DefaultOperator
         {
             get { return QueryConfigHandler.Get(ConfigurationKeys.DEFAULT_OPERATOR); }
             set { QueryConfigHandler.Set(ConfigurationKeys.DEFAULT_OPERATOR, value); }
         }
 
-        ///**
-        // * Sets the boolean operator of the QueryParser. In default mode (
-        // * {@link Operator#OR}) terms without any modifiers are considered optional:
-        // * for example <code>capital of Hungary</code> is equal to
-        // * <code>capital OR of OR Hungary</code>.<br/>
-        // * In {@link Operator#AND} mode terms are considered to be in conjunction: the
-        // * above mentioned query is parsed as <code>capital AND of AND Hungary</code>
-        // */
-        //public virtual void SetDefaultOperator(Operator @operator)
-        //{
-        //    QueryConfigHandler.Set(ConfigurationKeys.DEFAULT_OPERATOR, @operator);
-        //}
-
-
+        /// <summary>
+        /// Set to <c>true</c> to allow leading wildcard characters.
+        /// <para/>
+        /// When set, <c>*</c> or <c>?</c> are allowed as the first
+        /// character of a PrefixQuery and WildcardQuery. Note that this can produce
+        /// very slow queries on big indexes.
+        /// <para/>
+        /// Default: false.
+        /// </summary>
         public virtual bool LowercaseExpandedTerms
         {
             get
@@ -115,41 +102,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        ///**
-        // * Set to <code>true</code> to allow leading wildcard characters.
-        // * <p>
-        // * When set, <code>*</code> or <code>?</code> are allowed as the first
-        // * character of a PrefixQuery and WildcardQuery. Note that this can produce
-        // * very slow queries on big indexes.
-        // * <p>
-        // * Default: false.
-        // */
-
-        //public override void SetLowercaseExpandedTerms(bool lowercaseExpandedTerms)
-        //{
-        //    GetQueryConfigHandler().Set(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS, lowercaseExpandedTerms);
-        //}
-
-        ///**
-        // * @see #setLowercaseExpandedTerms(boolean)
-        // */
-
-        //public override bool GetLowercaseExpandedTerms()
-        //{
-        //    bool? lowercaseExpandedTerms = GetQueryConfigHandler().Get(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS);
-
-        //    if (lowercaseExpandedTerms == null)
-        //    {
-        //        return true;
-
-        //    }
-        //    else
-        //    {
-        //        return lowercaseExpandedTerms.Value;
-        //    }
-
-        //}
-
+        /// <summary>
+        /// Set to <c>true</c> to allow leading wildcard characters.
+        /// <para/>
+        /// When set, <c>*</c> or <c>?</c> are allowed as the first
+        /// character of a PrefixQuery and WildcardQuery. Note that this can produce
+        /// very slow queries on big indexes.
+        /// <para/>
+        /// Default: false.
+        /// </summary>
         public virtual bool AllowLeadingWildcard
         {
             get
@@ -163,21 +124,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        ///**
-        // * Set to <code>true</code> to allow leading wildcard characters.
-        // * <p>
-        // * When set, <code>*</code> or <code>?</code> are allowed as the first
-        // * character of a PrefixQuery and WildcardQuery. Note that this can produce
-        // * very slow queries on big indexes.
-        // * <p>
-        // * Default: false.
-        // */
-
-        //public override void SetAllowLeadingWildcard(bool allowLeadingWildcard)
-        //{
-        //    GetQueryConfigHandler().Set(ConfigurationKeys.ALLOW_LEADING_WILDCARD, allowLeadingWildcard);
-        //}
-
+        /// <summary>
+        /// Set to <c>true</c> to enable position increments in result query.
+        /// <para/>
+        /// When set, result phrase and multi-phrase queries will be aware of position
+        /// increments. Useful when e.g. a StopFilter increases the position increment
+        /// of the token that follows an omitted token.
+        /// <para/>
+        /// Default: false.
+        /// </summary>
         public virtual bool EnablePositionIncrements
         {
             get
@@ -191,41 +146,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        ///**
-        // * Set to <code>true</code> to enable position increments in result query.
-        // * <p>
-        // * When set, result phrase and multi-phrase queries will be aware of position
-        // * increments. Useful when e.g. a StopFilter increases the position increment
-        // * of the token that follows an omitted token.
-        // * <p>
-        // * Default: false.
-        // */
-
-        //public override void SetEnablePositionIncrements(bool enabled)
-        //{
-        //    GetQueryConfigHandler().Set(ConfigurationKeys.ENABLE_POSITION_INCREMENTS, enabled);
-        //}
-
-        ///**
-        // * @see #setEnablePositionIncrements(boolean)
-        // */
-
-        //public override bool GetEnablePositionIncrements()
-        //{
-        //    bool? enablePositionsIncrements = GetQueryConfigHandler().Get(ConfigurationKeys.ENABLE_POSITION_INCREMENTS);
-
-        //    if (enablePositionsIncrements == null)
-        //    {
-        //        return false;
-
-        //    }
-        //    else
-        //    {
-        //        return enablePositionsIncrements.Value;
-        //    }
-
-        //}
-
+        /// <summary>
+        /// By default, it uses 
+        /// <see cref="MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT"/> when creating a
+        /// prefix, wildcard and range queries. This implementation is generally
+        /// preferable because it a) Runs faster b) Does not have the scarcity of terms
+        /// unduly influence score c) avoids any Exception due to too many listeners.
+        /// However, if your application really needs to use the
+        /// old-fashioned boolean queries expansion rewriting and the above points are
+        /// not relevant then use this change the rewrite method.
+        /// </summary>
         public virtual MultiTermQuery.RewriteMethod MultiTermRewriteMethod
         {
             get
@@ -238,37 +168,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        ///**
-        // * By default, it uses
-        // * {@link MultiTermQuery#CONSTANT_SCORE_AUTO_REWRITE_DEFAULT} when creating a
-        // * prefix, wildcard and range queries. This implementation is generally
-        // * preferable because it a) Runs faster b) Does not have the scarcity of terms
-        // * unduly influence score c) avoids any {@link TooManyListenersException}
-        // * exception. However, if your application really needs to use the
-        // * old-fashioned boolean queries expansion rewriting and the above points are
-        // * not relevant then use this change the rewrite method.
-        // */
-
-        //public override void SetMultiTermRewriteMethod(MultiTermQuery.RewriteMethod method)
-        //{
-        //    GetQueryConfigHandler().Set(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD, method);
-        //}
-
-        ///**
-        // * @see #setMultiTermRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod)
-        // */
-
-        //public override MultiTermQuery.RewriteMethod GetMultiTermRewriteMethod()
-        //{
-        //    return GetQueryConfigHandler().Get(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD);
-        //}
-
-        /**
-         * Set the fields a query should be expanded to when the field is
-         * <code>null</code>
-         * 
-         * @param fields the fields used to expand the query
-         */
+        /// <summary>
+        /// Set the fields a query should be expanded to when the field is
+        /// <c>null</c>
+        /// </summary>
+        /// <param name="fields">the fields used to expand the query</param>
         public virtual void SetMultiFields(string[] fields)
         {
 
@@ -281,17 +185,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
 
-        /**
-         * Returns the fields used to expand the query when the field for a
-         * certain query is <code>null</code>
-         * 
-         * @param fields the fields used to expand the query
-         */
+        /// <summary>
+        /// Returns the fields used to expand the query when the field for a
+        /// certain query is <c>null</c>
+        /// </summary>
+        /// <returns>the fields used to expand the query</returns>
         public virtual string[] GetMultiFields()
         {
             return QueryConfigHandler.Get(ConfigurationKeys.MULTI_FIELDS);
         }
 
+        /// <summary>
+        /// Gets or Sets the prefix length for fuzzy queries. Default is 0.
+        /// </summary>
         public virtual int FuzzyPrefixLength
         {
             get
@@ -322,39 +228,15 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        ///**
-        // * Set the prefix length for fuzzy queries. Default is 0.
-        // * 
-        // * @param fuzzyPrefixLength
-        // *          The fuzzyPrefixLength to set.
-        // */
-
-        //public void SetFuzzyPrefixLength(int fuzzyPrefixLength)
-        //{
-        //    QueryConfigHandler config = GetQueryConfigHandler();
-        //    FuzzyConfig fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG);
-
-        //    if (fuzzyConfig == null)
-        //    {
-        //        fuzzyConfig = new FuzzyConfig();
-        //        config.Set(ConfigurationKeys.FUZZY_CONFIG, fuzzyConfig);
-        //    }
-
-        //    fuzzyConfig.SetPrefixLength(fuzzyPrefixLength);
-
-        //}
-
-        //public virtual void SetNumericConfigMap(IDictionary<string, NumericConfig> numericConfigMap)
-        //{
-        //    QueryConfigHandler.Set(ConfigurationKeys.NUMERIC_CONFIG_MAP, numericConfigMap);
-        //}
-
         public virtual IDictionary<string, NumericConfig> NumericConfigMap
         {
             get { return QueryConfigHandler.Get(ConfigurationKeys.NUMERIC_CONFIG_MAP); }
             set { QueryConfigHandler.Set(ConfigurationKeys.NUMERIC_CONFIG_MAP, value); }
         }
 
+        /// <summary>
+        /// Gets or Sets current locale, allowing access by subclasses. Used by date range parsing
+        /// </summary>
         public virtual CultureInfo Locale
         {
             get
@@ -367,24 +249,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        ///**
-        // * Set locale used by date range parsing.
-        // */
-
-        //public override void SetLocale(CultureInfo locale)
-        //{
-        //    GetQueryConfigHandler().Set(ConfigurationKeys.LOCALE, locale);
-        //}
-
-        ///**
-        // * Returns current locale, allowing access by subclasses.
-        // */
-
-        //public override CultureInfo GetLocale()
-        //{
-        //    return GetQueryConfigHandler().Get(ConfigurationKeys.LOCALE);
-        //}
-
         public virtual TimeZoneInfo TimeZone
         {
             get
@@ -397,39 +261,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        //public override void SetTimeZone(TimeZoneInfo timeZone)
-        //{
-        //    GetQueryConfigHandler().Set(ConfigurationKeys.TIMEZONE, timeZone);
-        //}
-
-
-        //public override TimeZoneInfo GetTimeZone()
-        //{
-        //    return GetQueryConfigHandler().Get(ConfigurationKeys.TIMEZONE);
-        //}
-
-        /**
-         * Sets the default slop for phrases. If zero, then exact phrase matches are
-         * required. Default value is zero.
-         * 
-         * @deprecated renamed to {@link #setPhraseSlop(int)}
-         */
-        [Obsolete]
+        /// <summary>
+        /// Sets the default slop for phrases. If zero, then exact phrase matches are
+        /// required. Default value is zero.
+        /// </summary>
+        /// <param name="defaultPhraseSlop"></param>
+        [Obsolete("Use PhraseSlop property setter instead.")]
         public virtual void SetDefaultPhraseSlop(int defaultPhraseSlop)
         {
             QueryConfigHandler.Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop);
         }
 
-        ///**
-        // * Sets the default slop for phrases. If zero, then exact phrase matches are
-        // * required. Default value is zero.
-        // */
-        //[Obsolete]
-        //public void SetPhraseSlop(int defaultPhraseSlop)
-        //{
-        //    GetQueryConfigHandler().Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop);
-        //}
-
         public virtual Analyzer Analyzer
         {
             get
@@ -442,65 +284,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        //public void SetAnalyzer(Analyzer analyzer)
-        //{
-        //    GetQueryConfigHandler().Set(ConfigurationKeys.ANALYZER, analyzer);
-        //}
-
-        //public override Analyzer GetAnalyzer()
-        //{
-        //    return GetQueryConfigHandler().Get(ConfigurationKeys.ANALYZER);
-        //}
-
-        ///**
-        // * @see #setAllowLeadingWildcard(boolean)
-        // */
-
-        //public override bool GetAllowLeadingWildcard()
-        //{
-        //    bool? allowLeadingWildcard = GetQueryConfigHandler().Get(ConfigurationKeys.ALLOW_LEADING_WILDCARD);
-
-        //    if (allowLeadingWildcard == null)
-        //    {
-        //        return false;
-
-        //    }
-        //    else
-        //    {
-        //        return allowLeadingWildcard.Value;
-        //    }
-        //}
-
-        /**
-         * Get the minimal similarity for fuzzy queries.
-         */
-
-        //public override float GetFuzzyMinSim()
-        //{
-        //    FuzzyConfig fuzzyConfig = GetQueryConfigHandler().Get(ConfigurationKeys.FUZZY_CONFIG);
-        //    return (fuzzyConfig != null) ? fuzzyConfig.GetMinSimilarity() : FuzzyQuery.DefaultMinSimilarity;
-        //}
-
-        ///**
-        // * Get the prefix length for fuzzy queries.
-        // * 
-        // * @return Returns the fuzzyPrefixLength.
-        // */
-
-        //public override int GetFuzzyPrefixLength()
-        //{
-        //    FuzzyConfig fuzzyConfig = GetQueryConfigHandler().Get(ConfigurationKeys.FUZZY_CONFIG);
-
-        //    if (fuzzyConfig == null)
-        //    {
-        //        return FuzzyQuery.DefaultPrefixLength;
-        //    }
-        //    else
-        //    {
-        //        return fuzzyConfig.GetPrefixLength();
-        //    }
-        //}
-
+        /// <summary>
+        /// Gets the default slop for phrases. If zero, then exact phrase matches are
+        /// required. Default value is zero. NOTE: Setter is deprecated.
+        /// </summary>
         public virtual int PhraseSlop
         {
             get
@@ -508,31 +295,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 int? phraseSlop = QueryConfigHandler.Get(ConfigurationKeys.PHRASE_SLOP);
                 return phraseSlop.HasValue ? phraseSlop.Value : 0;
             }
-            set // LUCENENET TODO: obsolete
+            set
             {
                 QueryConfigHandler.Set(ConfigurationKeys.PHRASE_SLOP, value);
             }
         }
 
-        ///**
-        // * Gets the default slop for phrases.
-        // */
-
-        //public override int GetPhraseSlop()
-        //{
-        //    int? phraseSlop = GetQueryConfigHandler().Get(ConfigurationKeys.PHRASE_SLOP);
-
-        //    if (phraseSlop == null)
-        //    {
-        //        return 0;
-
-        //    }
-        //    else
-        //    {
-        //        return phraseSlop.Value;
-        //    }
-        //}
-
+        /// <summary>
+        /// Gets or Sets the minimum similarity for fuzzy queries. Default is defined on
+        /// <see cref="FuzzyQuery.DefaultMinSimilarity"/>.
+        /// </summary>
         public virtual float FuzzyMinSim
         {
             get
@@ -555,101 +327,52 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        ///**
-        // * Set the minimum similarity for fuzzy queries. Default is defined on
-        // * {@link FuzzyQuery#defaultMinSimilarity}.
-        // */
-
-        //public override void SetFuzzyMinSim(float fuzzyMinSim)
-        //{
-        //    QueryConfigHandler config = GetQueryConfigHandler();
-        //    FuzzyConfig fuzzyConfig = config.Get(ConfigurationKeys.FUZZY_CONFIG);
-
-        //    if (fuzzyConfig == null)
-        //    {
-        //        fuzzyConfig = new FuzzyConfig();
-        //        config.Set(ConfigurationKeys.FUZZY_CONFIG, fuzzyConfig);
-        //    }
-
-        //    fuzzyConfig.SetMinSimilarity(fuzzyMinSim);
-        //}
-
-        ///**
-        // * Sets the boost used for each field.
-        // * 
-        // * @param boosts a collection that maps a field to its boost 
-        // */
-        //public virtual void SetFieldsBoost(IDictionary<string, float?> boosts)
-        //{
-        //    QueryConfigHandler.Set(ConfigurationKeys.FIELD_BOOST_MAP, boosts);
-        //}
-
-        /**
-         * Returns the field to boost map used to set boost for each field.
-         * 
-         * @return the field to boost map 
-         */
+        /// <summary>
+        ///  Gets or Sets the field to boost map used to set boost for each field.
+        /// </summary>
         public virtual IDictionary<string, float?> FieldsBoost
         {
             get { return QueryConfigHandler.Get(ConfigurationKeys.FIELD_BOOST_MAP); }
             set { QueryConfigHandler.Set(ConfigurationKeys.FIELD_BOOST_MAP, value); }
         }
 
-        ///**
-        // * Sets the default {@link Resolution} used for certain field when
-        // * no {@link Resolution} is defined for this field.
-        // * 
-        // * @param dateResolution the default {@link Resolution}
-        // */
-
+        /// <summary>
+        /// Sets the default <see cref="DateTools.Resolution"/> used for certain field when
+        /// no <see cref="DateTools.Resolution"/> is defined for this field.
+        /// </summary>
+        /// <param name="dateResolution">the default <see cref="DateTools.Resolution"/></param>
+        // LUCENENET NOTE: This method is required by the ICommonQueryParserConfiguration interface
         public virtual void SetDateResolution(DateTools.Resolution dateResolution)
         {
             QueryConfigHandler.Set(ConfigurationKeys.DATE_RESOLUTION, dateResolution);
         }
 
-        /**
-         * Returns the default {@link Resolution} used for certain field when
-         * no {@link Resolution} is defined for this field.
-         * 
-         * @return the default {@link Resolution}
-         */
+        /// <summary>
+        /// Gets the default <see cref="DateTools.Resolution"/> used for certain field when
+        /// no <see cref="DateTools.Resolution"/> is defined for this field.
+        /// </summary>
         public virtual DateTools.Resolution DateResolution
         {
             get { return QueryConfigHandler.Get(ConfigurationKeys.DATE_RESOLUTION); }
         }
 
-        /**
-         * Sets the {@link Resolution} used for each field
-         * 
-         * @param dateRes a collection that maps a field to its {@link Resolution}
-         * 
-         * @deprecated this method was renamed to {@link #setDateResolutionMap(Map)} 
-         */
-        [Obsolete]
+        /// <summary>
+        /// Sets the {@link Resolution} used for each field
+        /// </summary>
+        /// <param name="dateRes">a collection that maps a field to its <see cref="DateTools.Resolution"/></param>
+        [Obsolete("Use DateResolutionMap property instead.")]
         public virtual void SetDateResolution(IDictionary<string, DateTools.Resolution?> dateRes)
         {
             DateResolutionMap = dateRes;
         }
 
-        /**
-         * Returns the field to {@link Resolution} map used to normalize each date field.
-         * 
-         * @return the field to {@link Resolution} map
-         */
+        /// <summary>
+        /// Gets or Sets the field to <see cref="DateTools.Resolution?"/> map used to normalize each date field.
+        /// </summary>
         public virtual IDictionary<string, DateTools.Resolution?> DateResolutionMap
         {
             get { return QueryConfigHandler.Get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP); }
             set { QueryConfigHandler.Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, value); }
         }
-
-        ///**
-        // * Sets the {@link Resolution} used for each field
-        // * 
-        // * @param dateRes a collection that maps a field to its {@link Resolution}
-        // */
-        //public virtual void SetDateResolutionMap(IDictionary<string, DateTools.Resolution?> dateRes)
-        //{
-        //    QueryConfigHandler.Set(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP, dateRes);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
index 841d3fb..090adce 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
@@ -14,18 +14,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         [Test]
         public void TestMessageLoading()
         {
-            //string message = MessagesTestBundle.ResourceManager.GetString("Q0001E_INVALID_SYNTAX");
-
-            //fail("not implemented");
-
             IMessage invalidSyntax = new MessageImpl(
                 MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
             /* 
              * if the default locale is ja, you get ja as a fallback:
              * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
              */
-            //if (!Locale.getDefault().getLanguage().equals("ja"))
-            //    assertEquals("Syntax Error: XXX", invalidSyntax.getLocalizedMessage(Locale.ENGLISH));
             if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja")))
                 assertEquals("Syntax Error: XXX", invalidSyntax.GetLocalizedMessage(new CultureInfo("en")));
         }
@@ -48,7 +42,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
              * if the default locale is ja, you get ja as a fallback:
              * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
              */
-            //if (!Locale.getDefault().getLanguage().equals("ja"))
             if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
                 assertEquals("Truncated unicode escape sequence.", message);
 
@@ -58,8 +51,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
              * if the default locale is ja, you get ja as a fallback:
              * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
              */
-            //if (!Locale.getDefault().getLanguage().equals("ja"))
-            //if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja-JP")))
             if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
                 assertEquals("Syntax Error: XXX", message);
         }
@@ -80,7 +71,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         [Test]
         public void TestNLSLoading_xx_XX()
         {
-            //Locale locale = new Locale("xx", "XX", "");
             CultureInfo locale = new CultureInfo("xx-XX");
             String message = NLS.GetLocalizedMessage(
                 MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
@@ -89,7 +79,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
              * if the default locale is ja, you get ja as a fallback:
              * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
              */
-            //if (!Locale.getDefault().getLanguage().equals("ja"))
             if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
                 assertEquals("Truncated unicode escape sequence.", message);
 
@@ -99,17 +88,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
              * if the default locale is ja, you get ja as a fallback:
              * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
              */
-            //if (!Locale.getDefault().getLanguage().equals("ja"))
             if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
                 assertEquals("Syntax Error: XXX", message);
         }
 
-        // LUCENENET TODO: This doesn't compile because the resources don't contain this message
-
         [Test]
         public void TestMissingMessage()
         {
-            //Locale locale = Locale.ENGLISH;
             CultureInfo locale = new CultureInfo("en");
             String message = NLS.GetLocalizedMessage(
                 MessagesTestBundle.Q0005E_MESSAGE_NOT_IN_BUNDLE, locale);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
index 19b8e02..aa1f48d 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanOrQueryNodeBuilder.cs
@@ -12,15 +12,14 @@ using System.Threading.Tasks;
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
     /// <summary>
-    /// This builder creates {@link SpanOrQuery}s from a {@link BooleanQueryNode}.
+    /// This builder creates <see cref="SpanOrQuery"/>s from a <see cref="BooleanQueryNode"/>.
     /// <para/>
-    /// It assumes that the {@link BooleanQueryNode} instance has at least one child.
+    /// It assumes that the <see cref="BooleanQueryNode"/> instance has at least one child.
     /// </summary>
     public class SpanOrQueryNodeBuilder : IStandardQueryBuilder
     {
         public virtual Query Build(IQueryNode node)
         {
-
             // validates node
             BooleanQueryNode booleanNode = (BooleanQueryNode)node;
 
@@ -38,13 +37,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
             return new SpanOrQuery(spanQueries);
 
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
index cbaf27f..68870e8 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpanTermQueryNodeBuilder.cs
@@ -13,28 +13,17 @@ using System.Threading.Tasks;
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
     /// <summary>
-    /// This builder creates {@link SpanTermQuery}s from a {@link FieldQueryNode}
+    /// This builder creates <see cref="SpanTermQuery"/>s from a <see cref="FieldQueryNode"/>
     /// object.
     /// </summary>
     public class SpanTermQueryNodeBuilder : IStandardQueryBuilder
     {
-
         public virtual Query Build(IQueryNode node)
         {
             FieldQueryNode fieldQueryNode = (FieldQueryNode)node;
 
             return new SpanTermQuery(new Term(fieldQueryNode.GetFieldAsString(),
                 fieldQueryNode.GetTextAsString()));
-
         }
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //object IQueryBuilder.Build(IQueryNode queryNode)
-        //{
-        //    return Build(queryNode);
-        //}
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
index a5b8f7a..5f034ac 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryConfigHandler.cs
@@ -8,7 +8,7 @@ using System.Threading.Tasks;
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
     /// <summary>
-    /// This query config handler only adds the {@link UniqueFieldAttribute} to it.
+    /// This query config handler only adds the <see cref="IUniqueFieldAttribute"/> to it.
     /// <para/>
     /// It does not return any configuration for a field in specific.
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
index 1f63e97..4d6fd30 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansQueryTreeBuilder.cs
@@ -31,18 +31,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         {
             return base.Build(queryTree);
         }
-
-        //Query IStandardQueryBuilder.Build(IQueryNode queryTree)
-        //{
-        //    return (Query)base.Build(queryTree);
-        //}
-
-        ///// <summary>
-        ///// LUCENENET specific overload for supporting IQueryBuilder
-        ///// </summary>
-        //public override object Build(IQueryNode queryTree)
-        //{
-        //    return (Query)base.Build(queryTree);
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
index c44c1f5..4086679 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/SpansValidatorQueryNodeProcessor.cs
@@ -13,26 +13,22 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
     /// <summary>
     /// Validates every query node in a query node tree. This processor will pass
-    /// fine if the query nodes are only {@link BooleanQueryNode}s,
-    /// {@link OrQueryNode}s or {@link FieldQueryNode}s, otherwise an exception will
+    /// fine if the query nodes are only <see cref="BooleanQueryNode"/>s,
+    /// <see cref="OrQueryNode"/>s or <see cref="FieldQueryNode"/>s, otherwise an exception will
     /// be thrown.
     /// <para/>
-    /// If they are {@link AndQueryNode} or an instance of anything else that
-    /// implements {@link FieldQueryNode} the exception will also be thrown.
+    /// If they are <see cref="AndQueryNode"/> or an instance of anything else that
+    /// implements <see cref="FieldQueryNode"/> the exception will also be thrown.
     /// </summary>
     public class SpansValidatorQueryNodeProcessor : QueryNodeProcessorImpl
     {
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             if (!((node is BooleanQueryNode && !(node is AndQueryNode)) || node
                 .GetType() == typeof(FieldQueryNode)))
             {
@@ -41,15 +37,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
             }
 
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
index a59da48..a9ca6aa 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
@@ -20,14 +20,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
     /// <para/>
     /// It tests queries likes "term", "field:term" "term1 term2" "term1 OR term2",
     /// which are all already supported by the current syntax parser (
-    /// {@link StandardSyntaxParser}).
+    /// <see cref="StandardSyntaxParser"/>).
     /// <para/>
     /// The goals is to create a new query parser that supports only the pair
     /// "field:term" or a list of pairs separated or not by an OR operator, and from
-    /// this query generate {@link SpanQuery} objects instead of the regular
-    /// {@link Query} objects. Basically, every pair will be converted to a
-    /// {@link SpanTermQuery} object and if there are more than one pair they will be
-    /// grouped by an {@link OrQueryNode}.
+    /// this query generate <see cref="SpanQuery"/> objects instead of the regular
+    /// <see cref="Search.Query"/> objects. Basically, every pair will be converted to a
+    /// <see cref="SpanTermQuery"/> object and if there are more than one pair they will be
+    /// grouped by an <see cref="OrQueryNode"/>.
     /// <para/>
     /// Another functionality that will be added is the ability to convert every
     /// field defined in the query to an unique specific field.
@@ -36,28 +36,28 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
     /// processing (semantic) and building.
     /// <para/>
     /// The parsing phase, as already mentioned will be performed by the current
-    /// query parser: {@link StandardSyntaxParser}.
+    /// query parser: <see cref="StandardSyntaxParser"/>.
     /// <para/>
     /// The processing phase will be performed by a processor pipeline which is
-    /// compound by 2 processors: {@link SpansValidatorQueryNodeProcessor} and
-    /// {@link UniqueFieldQueryNodeProcessor}.
+    /// compound by 2 processors: <see cref="SpansValidatorQueryNodeProcessor"/> and
+    /// <see cref="UniqueFieldQueryNodeProcessor"/>.
     /// <para/>
     /// 
-    ///     {@link SpansValidatorQueryNodeProcessor}: as it's going to use the current 
+    ///     <see cref="SpansValidatorQueryNodeProcessor"/>: as it's going to use the current 
     ///     query parser to parse the syntax, it will support more features than we want,
     ///     this processor basically validates the query node tree generated by the parser
     ///     and just let got through the elements we want, all the other elements as 
     ///     wildcards, range queries, etc...if found, an exception is thrown.
     ///     
-    ///     {@link UniqueFieldQueryNodeProcessor}: this processor will take care of reading
+    ///     <see cref="UniqueFieldQueryNodeProcessor"/>: this processor will take care of reading
     ///     what is the &quot;unique field&quot; from the configuration and convert every field defined
-    ///     in every pair to this &quot;unique field&quot;. For that, a {@link SpansQueryConfigHandler} is
-    ///     used, which has the {@link UniqueFieldAttribute} defined in it.
+    ///     in every pair to this &quot;unique field&quot;. For that, a <see cref="SpansQueryConfigHandler"/> is
+    ///     used, which has the <see cref="IUniqueFieldAttribute"/> defined in it.
     /// 
     /// <para/>
-    /// The building phase is performed by the {@link SpansQueryTreeBuilder}, which
+    /// The building phase is performed by the <see cref="SpansQueryTreeBuilder"/>, which
     /// basically contains a map that defines which builder will be used to generate
-    /// {@link SpanQuery} objects from {@link QueryNode} objects.
+    /// <see cref="SpanQuery"/> objects from <see cref="IQueryNode"/> objects.
     /// </summary>
     /// <seealso cref="SpansQueryConfigHandler"/>
     /// <seealso cref="SpansQueryTreeBuilder"/>
@@ -232,7 +232,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
             {
                 // expected exception
             }
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
index 5b40f51..75bb404 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
@@ -19,14 +19,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
     /// <para/>
     /// It tests queries likes "term", "field:term" "term1 term2" "term1 OR term2",
     /// which are all already supported by the current syntax parser (
-    /// {@link StandardSyntaxParser}).
+    /// <see cref="StandardSyntaxParser"/>).
     /// <para/>
     /// The goals is to create a new query parser that supports only the pair
     /// "field:term" or a list of pairs separated or not by an OR operator, and from
-    /// this query generate {@link SpanQuery} objects instead of the regular
-    /// {@link Query} objects. Basically, every pair will be converted to a
-    /// {@link SpanTermQuery} object and if there are more than one pair they will be
-    /// grouped by an {@link OrQueryNode}.
+    /// this query generate <see cref="SpanQuery"/> objects instead of the regular
+    /// <see cref="Search.Query"/> objects. Basically, every pair will be converted to a
+    /// <see cref="SpanTermQuery"/> object and if there are more than one pair they will be
+    /// grouped by an <see cref="OrQueryNode"/>.
     /// <para/>
     /// Another functionality that will be added is the ability to convert every
     /// field defined in the query to an unique specific field.
@@ -35,26 +35,26 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
     /// processing (semantic) and building.
     /// <para/>
     /// The parsing phase, as already mentioned will be performed by the current
-    /// query parser: {@link StandardSyntaxParser}.
+    /// query parser: <see cref="StandardSyntaxParser"/>.
     /// <para/>
     /// The processing phase will be performed by a processor pipeline which is
-    /// compound by 2 processors: {@link SpansValidatorQueryNodeProcessor} and
-    /// {@link UniqueFieldQueryNodeProcessor}.
+    /// compound by 2 processors: <see cref="SpansValidatorQueryNodeProcessor"/> and
+    /// <see cref="UniqueFieldQueryNodeProcessor"/>.
     /// <para/>
-    ///     {@link SpansValidatorQueryNodeProcessor}: as it's going to use the current 
+    ///     <see cref="SpansValidatorQueryNodeProcessor"/>: as it's going to use the current 
     ///     query parser to parse the syntax, it will support more features than we want,
     ///     this processor basically validates the query node tree generated by the parser
     ///     and just let got through the elements we want, all the other elements as 
     ///     wildcards, range queries, etc...if found, an exception is thrown.
     ///     <para/>
-    ///     {@link UniqueFieldQueryNodeProcessor}: this processor will take care of reading
+    ///     <see cref="UniqueFieldQueryNodeProcessor"/>: this processor will take care of reading
     ///     what is the &quot;unique field&quot; from the configuration and convert every field defined
-    ///     in every pair to this &quot;unique field&quot;. For that, a {@link SpansQueryConfigHandler} is
-    ///     used, which has the {@link UniqueFieldAttribute} defined in it.
+    ///     in every pair to this &quot;unique field&quot;. For that, a <see cref="SpansQueryConfigHandler"/> is
+    ///     used, which has the <see cref="IUniqueFieldAttribute"/> defined in it.
     /// <para/>
-    /// The building phase is performed by the {@link SpansQueryTreeBuilder}, which
+    /// The building phase is performed by the <see cref="SpansQueryTreeBuilder"/>, which
     /// basically contains a map that defines which builder will be used to generate
-    /// {@link SpanQuery} objects from {@link QueryNode} objects.
+    /// <see cref="SpanQuery"/> objects from <see cref="IQueryNode"/> objects.
     /// </summary>
     /// <seealso cref="TestSpanQueryParser">for a more advanced example</seealso>
     /// 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
index 67b9a8a..90cb2ac 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttribute.cs
@@ -8,9 +8,9 @@ using System.Threading.Tasks;
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
     /// <summary>
-    /// This attribute is used by the {@link UniqueFieldQueryNodeProcessor}
+    /// This attribute is used by the <see cref="UniqueFieldQueryNodeProcessor"/>
     /// processor. It holds a value that defines which is the unique field name that
-    /// should be set in every {@link FieldableNode}.
+    /// should be set in every <see cref="Core.Nodes.IFieldableNode"/>.
     /// </summary>
     /// <seealso cref="UniqueFieldQueryNodeProcessor"/>
     public interface IUniqueFieldAttribute : IAttribute

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
index 23d3745..b8e63a8 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldAttributeImpl.cs
@@ -1,5 +1,4 @@
-\ufeff//using System;
-using Lucene.Net.Util;
+\ufeffusing Lucene.Net.Util;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -8,9 +7,9 @@ using System.Threading.Tasks;
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
     /// <summary>
-    /// This attribute is used by the {@link UniqueFieldQueryNodeProcessor}
+    /// This attribute is used by the <see cref="UniqueFieldQueryNodeProcessor"/>
     /// processor. It holds a value that defines which is the unique field name that
-    /// should be set in every {@link FieldableNode}.
+    /// should be set in every <see cref="Core.Nodes.IFieldableNode"/>.
     /// </summary>
     /// <seealso cref="UniqueFieldQueryNodeProcessor"/>
     public class UniqueFieldAttributeImpl : AttributeImpl, IUniqueFieldAttribute
@@ -22,20 +21,17 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
             Clear();
         }
 
-
         public override void Clear()
         {
             this.uniqueField = "";
         }
 
-
         public virtual string UniqueField
         {
             get { return this.uniqueField; }
             set { this.uniqueField = value; }
         }
 
-
         public override void CopyTo(Attribute target)
         {
 
@@ -48,36 +44,28 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
 
             UniqueFieldAttributeImpl uniqueFieldAttr = (UniqueFieldAttributeImpl)target;
             uniqueFieldAttr.uniqueField = uniqueField.toString();
-
         }
 
-
         public override bool Equals(object other)
         {
-
             if (other is UniqueFieldAttributeImpl)
             {
 
                 return ((UniqueFieldAttributeImpl)other).uniqueField
                     .equals(this.uniqueField);
-
             }
 
             return false;
-
         }
 
-
         public override int GetHashCode()
         {
             return this.uniqueField.GetHashCode();
         }
 
-
         public override string ToString()
         {
             return "<uniqueField uniqueField='" + this.uniqueField + "'/>";
         }
-
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
index 11230b8..5b80585 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/UniqueFieldQueryNodeProcessor.cs
@@ -10,26 +10,22 @@ using System.Threading.Tasks;
 namespace Lucene.Net.QueryParsers.Flexible.Spans
 {
     /// <summary>
-    /// This processor changes every field name of each {@link FieldableNode} query
+    /// This processor changes every field name of each <see cref="IFieldableNode"/> query
     /// node contained in the query tree to the field name defined in the
-    /// {@link UniqueFieldAttribute}. So, the {@link UniqueFieldAttribute} must be
-    /// defined in the {@link QueryConfigHandler} object set in this processor,
+    /// <see cref="IUniqueFieldAttribute"/>. So, the <see cref="IUniqueFieldAttribute"/> must be
+    /// defined in the <see cref="QueryConfigHandler"/> object set in this processor,
     /// otherwise it throws an exception.
     /// </summary>
-    /// <seealso cref="UniqueFieldAttribute"/>
+    /// <seealso cref="IUniqueFieldAttribute"/>
     public class UniqueFieldQueryNodeProcessor : QueryNodeProcessorImpl
     {
         protected override IQueryNode PostProcessNode(IQueryNode node)
         {
-
             return node;
-
         }
 
-
         protected override IQueryNode PreProcessNode(IQueryNode node)
         {
-
             if (node is IFieldableNode)
             {
                 IFieldableNode fieldNode = (IFieldableNode)node;
@@ -50,19 +46,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
 
                 String uniqueField = queryConfig.Get(SpansQueryConfigHandler.UNIQUE_FIELD);
                 fieldNode.Field = (uniqueField);
-
             }
 
             return node;
-
         }
 
-
         protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
         {
-
             return children;
-
         }
     }
 }


[30/58] lucenenet git commit: QueryParser.Flexible: Remove and sort usings

Posted by ni...@apache.org.
QueryParser.Flexible: Remove and sort usings


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

Branch: refs/heads/master
Commit: 3587073c984524ec174fcc10b60b0da10987e78e
Parents: 8e1931b
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Dec 4 21:59:34 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Dec 4 22:26:59 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Builders/QueryTreeBuilder.cs         |  9 +++------
 .../Flexible/Core/Config/AbstractQueryConfig.cs        |  6 +-----
 .../Flexible/Core/Config/ConfigurationKey.cs           |  8 +-------
 .../Flexible/Core/Config/FieldConfig.cs                |  4 ----
 .../Flexible/Core/Config/FieldConfigListener.cs        |  8 +-------
 .../Flexible/Core/Config/QueryConfigHandler.cs         |  4 ----
 .../Flexible/Core/Messages/QueryParserMessages.cs      |  5 -----
 .../Flexible/Core/Nodes/AndQueryNode.cs                |  2 --
 .../Flexible/Core/Nodes/AnyQueryNode.cs                |  3 ---
 .../Flexible/Core/Nodes/BooleanQueryNode.cs            |  3 ---
 .../Flexible/Core/Nodes/BoostQueryNode.cs              |  4 ----
 .../Flexible/Core/Nodes/DeletedQueryNode.cs            |  5 -----
 .../Flexible/Core/Nodes/FieldQueryNode.cs              |  5 -----
 .../Flexible/Core/Nodes/FieldValuePairQueryNode.cs     |  8 +-------
 .../Flexible/Core/Nodes/FieldableNode.cs               |  8 +-------
 .../Flexible/Core/Nodes/FuzzyQueryNode.cs              |  5 -----
 .../Flexible/Core/Nodes/GroupQueryNode.cs              |  4 ----
 .../Flexible/Core/Nodes/MatchAllDocsQueryNode.cs       |  5 -----
 .../Flexible/Core/Nodes/MatchNoDocsQueryNode.cs        |  8 +-------
 .../Flexible/Core/Nodes/ModifierQueryNode.cs           |  3 ---
 .../Flexible/Core/Nodes/NoTokenFoundQueryNode.cs       |  5 -----
 .../Flexible/Core/Nodes/OpaqueQueryNode.cs             |  5 -----
 .../Flexible/Core/Nodes/OrQueryNode.cs                 |  2 --
 .../Flexible/Core/Nodes/PathQueryNode.cs               |  2 --
 .../Flexible/Core/Nodes/PhraseSlopQueryNode.cs         |  5 -----
 .../Flexible/Core/Nodes/ProximityQueryNode.cs          |  2 --
 .../Flexible/Core/Nodes/QueryNode.cs                   |  5 -----
 .../Flexible/Core/Nodes/QueryNodeImpl.cs               |  8 --------
 .../Flexible/Core/Nodes/QuotedFieldQueryNode.cs        |  5 -----
 .../Flexible/Core/Nodes/RangeQueryNode.cs              |  8 +-------
 .../Flexible/Core/Nodes/SlopQueryNode.cs               |  5 -----
 .../Flexible/Core/Nodes/TextableQueryNode.cs           |  5 -----
 .../Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs    |  3 ---
 .../Flexible/Core/Nodes/ValueQueryNode.cs              |  8 +-------
 .../Flexible/Core/Parser/EscapeQuerySyntax.cs          |  5 -----
 .../Flexible/Core/Parser/SyntaxParser.cs               |  5 -----
 .../NoChildOptimizationQueryNodeProcessor.cs           |  4 ----
 .../Flexible/Core/Processors/QueryNodeProcessor.cs     |  5 -----
 .../Flexible/Core/Processors/QueryNodeProcessorImpl.cs |  3 ---
 .../Core/Processors/QueryNodeProcessorPipeline.cs      |  5 +----
 .../Processors/RemoveDeletedQueryNodesProcessor.cs     |  4 ----
 .../Flexible/Core/QueryNodeError.cs                    |  4 ----
 .../Flexible/Core/QueryNodeException.cs                |  4 ----
 .../Flexible/Core/QueryNodeParseException.cs           |  4 ----
 .../Flexible/Core/QueryParserHelper.cs                 |  4 ----
 .../Flexible/Core/Util/QueryNodeOperation.cs           |  4 ----
 .../Flexible/Core/Util/StringUtils.cs                  |  8 +-------
 .../Flexible/Core/Util/UnescapedCharSequence.cs        |  4 ----
 .../Flexible/Messages/Message.cs                       |  7 +------
 .../Flexible/Messages/MessageImpl.cs                   |  6 +-----
 src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs    |  3 ---
 .../Flexible/Messages/NLSException.cs                  |  8 +-------
 .../Flexible/Precedence/PrecedenceQueryParser.cs       |  5 -----
 .../Processors/BooleanModifiersQueryNodeProcessor.cs   |  3 ---
 .../Processors/PrecedenceQueryNodeProcessorPipeline.cs |  5 -----
 .../Flexible/Standard/Builders/AnyQueryNodeBuilder.cs  |  4 ----
 .../Standard/Builders/BooleanQueryNodeBuilder.cs       |  4 ----
 .../Standard/Builders/BoostQueryNodeBuilder.cs         |  5 -----
 .../Standard/Builders/DummyQueryNodeBuilder.cs         |  8 +-------
 .../Standard/Builders/FieldQueryNodeBuilder.cs         |  6 ------
 .../Standard/Builders/FuzzyQueryNodeBuilder.cs         |  6 ------
 .../Standard/Builders/GroupQueryNodeBuilder.cs         |  5 -----
 .../Standard/Builders/MatchAllDocsQueryNodeBuilder.cs  |  6 ------
 .../Standard/Builders/MatchNoDocsQueryNodeBuilder.cs   |  6 ------
 .../Standard/Builders/ModifierQueryNodeBuilder.cs      |  5 -----
 .../Standard/Builders/MultiPhraseQueryNodeBuilder.cs   |  5 -----
 .../Standard/Builders/NumericRangeQueryNodeBuilder.cs  |  6 ------
 .../Standard/Builders/PhraseQueryNodeBuilder.cs        |  4 ----
 .../Builders/PrefixWildcardQueryNodeBuilder.cs         |  6 ------
 .../Standard/Builders/RegexpQueryNodeBuilder.cs        |  6 ------
 .../Flexible/Standard/Builders/SlopQueryNodeBuilder.cs |  5 -----
 .../Builders/StandardBooleanQueryNodeBuilder.cs        |  4 ----
 .../Flexible/Standard/Builders/StandardQueryBuilder.cs |  6 ------
 .../Standard/Builders/StandardQueryTreeBuilder.cs      |  5 -----
 .../Standard/Builders/TermRangeQueryNodeBuilder.cs     |  8 +-------
 .../Standard/Builders/WildcardQueryNodeBuilder.cs      |  6 ------
 .../Standard/Config/FieldBoostMapFCListener.cs         |  4 ----
 .../Standard/Config/FieldDateResolutionFCListener.cs   |  4 ----
 .../Flexible/Standard/Config/FuzzyConfig.cs            |  5 -----
 .../Flexible/Standard/Config/NumberDateFormat.cs       |  7 +------
 .../Flexible/Standard/Config/NumericConfig.cs          |  4 ----
 .../Standard/Config/NumericFieldConfigListener.cs      |  3 ---
 .../Standard/Config/StandardQueryConfigHandler.cs      |  3 ---
 .../Flexible/Standard/Nodes/AbstractRangeQueryNode.cs  |  2 --
 .../Flexible/Standard/Nodes/BooleanModifierNode.cs     |  5 -----
 .../Flexible/Standard/Nodes/MultiPhraseQueryNode.cs    |  3 ---
 .../Flexible/Standard/Nodes/NumericQueryNode.cs        |  5 -----
 .../Flexible/Standard/Nodes/NumericRangeQueryNode.cs   |  3 ---
 .../Flexible/Standard/Nodes/PrefixWildcardQueryNode.cs |  5 -----
 .../Flexible/Standard/Nodes/RegexpQueryNode.cs         |  5 -----
 .../Standard/Nodes/StandardBooleanQueryNode.cs         |  4 ----
 .../Flexible/Standard/Nodes/TermRangeQueryNode.cs      |  5 -----
 .../Flexible/Standard/Nodes/WildcardQueryNode.cs       |  5 -----
 .../Flexible/Standard/Parser/CharStream.cs             |  4 ----
 .../Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs  |  3 ---
 .../Flexible/Standard/Parser/FastCharStream.cs         |  7 +------
 .../Flexible/Standard/Parser/ParseException.cs         |  3 ---
 .../Flexible/Standard/Parser/StandardSyntaxParser.cs   |  3 ---
 .../Standard/Parser/StandardSyntaxParserConstants.cs   |  8 +-------
 .../Parser/StandardSyntaxParserTokenManager.cs         |  4 ----
 .../Flexible/Standard/Parser/Token.cs                  | 11 -----------
 .../Flexible/Standard/Parser/TokenMgrError.cs          |  3 ---
 .../Processors/AllowLeadingWildcardProcessor.cs        |  5 -----
 .../Standard/Processors/AnalyzerQueryNodeProcessor.cs  |  3 ---
 .../Processors/BooleanQuery2ModifierNodeProcessor.cs   |  3 ---
 ...BooleanSingleChildOptimizationQueryNodeProcessor.cs |  4 ----
 .../Standard/Processors/BoostQueryNodeProcessor.cs     |  4 ----
 .../Processors/DefaultPhraseSlopQueryNodeProcessor.cs  |  4 ----
 .../Standard/Processors/FuzzyQueryNodeProcessor.cs     |  3 ---
 .../Standard/Processors/GroupQueryNodeProcessor.cs     |  2 --
 .../LowercaseExpandedTermsQueryNodeProcessor.cs        |  4 ----
 .../Processors/MatchAllDocsQueryNodeProcessor.cs       |  4 ----
 .../Processors/MultiFieldQueryNodeProcessor.cs         |  3 ---
 .../Processors/MultiTermRewriteMethodProcessor.cs      |  3 ---
 .../Standard/Processors/NumericQueryNodeProcessor.cs   |  4 ----
 .../Processors/NumericRangeQueryNodeProcessor.cs       |  4 ----
 .../Standard/Processors/OpenRangeQueryNodeProcessor.cs |  4 ----
 .../Processors/PhraseSlopQueryNodeProcessor.cs         |  4 ----
 .../Processors/RemoveEmptyNonLeafQueryNodeProcessor.cs |  4 ----
 .../Processors/StandardQueryNodeProcessorPipeline.cs   |  5 -----
 .../Standard/Processors/TermRangeQueryNodeProcessor.cs |  3 ---
 .../Standard/Processors/WildcardQueryNodeProcessor.cs  |  4 ----
 .../Flexible/Standard/QueryParserUtil.cs               |  3 ---
 .../Flexible/Standard/StandardQueryParser.cs           |  3 ---
 .../Flexible/Core/Builders/TestQueryTreeBuilder.cs     |  4 ----
 .../Flexible/Core/Nodes/TestQueryNode.cs               |  4 ----
 .../Flexible/Messages/MessagesTestBundle.cs            |  4 ----
 .../Flexible/Messages/TestNLS.cs                       |  4 ----
 .../Flexible/Precedence/TestPrecedenceQueryParser.cs   |  3 ---
 .../Flexible/Spans/SpanOrQueryNodeBuilder.cs           |  4 ----
 .../Flexible/Spans/SpanTermQueryNodeBuilder.cs         |  6 ------
 .../Flexible/Spans/SpansQueryConfigHandler.cs          |  5 -----
 .../Flexible/Spans/SpansQueryTreeBuilder.cs            |  5 -----
 .../Flexible/Spans/SpansValidatorQueryNodeProcessor.cs |  4 ----
 .../Flexible/Spans/TestSpanQueryParser.cs              |  4 ----
 .../Flexible/Spans/TestSpanQueryParserSimpleSample.cs  |  4 ----
 .../Flexible/Spans/UniqueFieldAttribute.cs             |  5 -----
 .../Flexible/Spans/UniqueFieldAttributeImpl.cs         |  4 ----
 .../Flexible/Spans/UniqueFieldQueryNodeProcessor.cs    |  3 ---
 .../Flexible/Standard/TestMultiAnalyzerQPHelper.cs     |  4 ----
 .../Flexible/Standard/TestMultiFieldQPHelper.cs        |  4 ----
 .../Flexible/Standard/TestNumericQueryParser.cs        |  5 +----
 .../Flexible/Standard/TestQPHelper.cs                  |  3 ---
 .../Flexible/Standard/TestStandardQP.cs                | 13 ++++---------
 144 files changed, 26 insertions(+), 655 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
index 92dc49a..e622c25 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Builders/QueryTreeBuilder.cs
@@ -1,12 +1,9 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Messages;
-using Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using System;
+using System.Collections.Generic;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
index 204dbf5..88d7850 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/AbstractQueryConfig.cs
@@ -1,9 +1,5 @@
-\ufeffusing Lucene.Net.Support;
-using System;
+\ufeffusing System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
index cdcad25..43825fb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/ConfigurationKey.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Core.Config
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {
     /// <summary>
     /// An instance of this class represents a key that is used to retrieve a value

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
index 780e8c8..ecc550b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfig.cs
@@ -1,8 +1,4 @@
 \ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
index 4a0972d..47cccb2 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/FieldConfigListener.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Core.Config
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {
     /// <summary>
     /// This interface should be implemented by classes that wants to listen for

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
index ac55d91..72cc2f4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Config/QueryConfigHandler.cs
@@ -1,9 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Util;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Config
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
index d3bf105..9f1d137 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Messages/QueryParserMessages.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Messages;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Messages
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
index 2510340..d317d65 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AndQueryNode.cs
@@ -1,9 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using System;
 using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
index 6f34f31..7435a13 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/AnyQueryNode.cs
@@ -1,9 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
-using System;
 using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
index f466ce5..8a3cd91 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BooleanQueryNode.cs
@@ -1,9 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
-using System;
 using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
index 1aeb847..90ca00a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/BoostQueryNode.cs
@@ -1,11 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.QueryParsers.Flexible.Messages;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
index 56faef9..ffaed98 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/DeletedQueryNode.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
index 836ef88..ad6e12c 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldQueryNode.cs
@@ -1,11 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
index d6d4e32..fe7aa80 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldValuePairQueryNode.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
     /// <summary>
     /// This interface should be implemented by {@link QueryNode} that holds a field

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
index 922c456..b96821b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FieldableNode.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
     /// <summary>
     /// A query node implements {@link FieldableNode} interface to indicate that its

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
index 991aa1c..eef7e98 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/FuzzyQueryNode.cs
@@ -1,10 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
index aad3412..aabc4a8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/GroupQueryNode.cs
@@ -1,11 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.QueryParsers.Flexible.Messages;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
index c047b28..bedc271 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchAllDocsQueryNode.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
index e8cfadd..e03b1f0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/MatchNoDocsQueryNode.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
     /// <summary>
     /// A {@link MatchNoDocsQueryNode} indicates that a query node tree or subtree

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
index c57a861..cf34600 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ModifierQueryNode.cs
@@ -3,9 +3,6 @@ using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
index 48a75e6..24e77c6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/NoTokenFoundQueryNode.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
index 4afc033..4e30add 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OpaqueQueryNode.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
index faff682..835edfe 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/OrQueryNode.cs
@@ -1,9 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using System;
 using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
index 92eacd1..f813688 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
@@ -3,9 +3,7 @@ using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
index 52d5f03..49d8195 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PhraseSlopQueryNode.cs
@@ -1,11 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.QueryParsers.Flexible.Messages;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
index f159a88..82d6208 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ProximityQueryNode.cs
@@ -3,9 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using System;
 using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
index 32dd875..983c66f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNode.cs
@@ -1,10 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
index 99d9058..3051d32 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QueryNodeImpl.cs
@@ -5,10 +5,7 @@ using Lucene.Net.QueryParsers.Flexible.Messages;
 using System;
 using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
 using System.Resources;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
@@ -76,11 +73,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
         {
             if (IsLeaf || this.clauses == null)
             {
-                //ResourceBundle bundle = ResourceBundle
-                //    .getBundle("org.apache.lucene.queryParser.messages.QueryParserMessages");
-                //String message = bundle.getObject("Q0008E.NODE_ACTION_NOT_SUPPORTED")
-                //    .toString();
-                //ResourceManager bundle =  QueryParserMessages.NODE_ACTION_NOT_SUPPORTED;
                 ResourceManager bundle = new ResourceManager(typeof(QueryParserMessagesBundle));
                 string message = bundle.GetString(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED);
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
index db2c9f3..c6afd43 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/QuotedFieldQueryNode.cs
@@ -1,10 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
index 58b480a..803054e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/RangeQueryNode.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
     /// <summary>
     /// This interface should be implemented by a {@link QueryNode} that represents

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
index 55ab7d5..6a4d9da 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/SlopQueryNode.cs
@@ -1,11 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.QueryParsers.Flexible.Messages;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
index 317e060..201b10a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TextableQueryNode.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
index de22382..3ccf7fc 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/TokenizedPhraseQueryNode.cs
@@ -1,9 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Parser;
-using System;
 using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
index ee0dbd22..d4ff5a9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/ValueQueryNode.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 {
     /// <summary>
     /// This interface should be implemented by {@link QueryNode} that holds an

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
index ade0394..9b9cd5e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/EscapeQuerySyntax.cs
@@ -1,10 +1,5 @@
 \ufeffusing Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
index 387019d..bc8915f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Parser/SyntaxParser.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Parser
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
index 6792a29..e84db65 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/NoChildOptimizationQueryNodeProcessor.cs
@@ -1,9 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
index 00aa4a0..7d2663d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessor.cs
@@ -1,10 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
index 2dac303..fafb270 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorImpl.cs
@@ -2,9 +2,6 @@
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
index 0ea7db3..734fe92 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/QueryNodeProcessorPipeline.cs
@@ -1,11 +1,8 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
-using System;
+using System.Collections;
 using System.Collections.Generic;
 using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Collections;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
index d029bb6..44ed0fe 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Processors/RemoveDeletedQueryNodesProcessor.cs
@@ -1,9 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
index 94342c2..83661ee 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeError.cs
@@ -1,9 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Messages;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
index 5362a80..5256f81 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeException.cs
@@ -1,11 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
index d5ad632..25d47b8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryNodeParseException.cs
@@ -1,10 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
index beb7218..11347ab 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
@@ -4,10 +4,6 @@ using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
index 384a614..2476398 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
@@ -1,9 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Util
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
index ac662c2..72ca406 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Core.Util
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Core.Util
 {
     /// <summary>
     /// String manipulation routines

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
index 2212ef4..f90bca1 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
@@ -1,10 +1,6 @@
 \ufeffusing Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Core.Util
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
index d86d1d6..d43f537 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
@@ -1,9 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+\ufeffusing System.Globalization;
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
index b34e90c..844ab52 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
@@ -1,9 +1,5 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Linq;
+\ufeffusing System.Globalization;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
index b7505d3..e3c1c53 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
@@ -2,11 +2,8 @@
 using System;
 using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
 using System.Reflection;
 using System.Resources;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Messages
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
index b5a8612..9a381e0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Lucene.Net.QueryParsers.Flexible.Messages
+\ufeffnamespace Lucene.Net.QueryParsers.Flexible.Messages
 {
     /// <summary>
     /// Interface that exceptions should implement to support lazy loading of messages.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
index 8a8633c..73817eb 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
@@ -1,11 +1,6 @@
 \ufeffusing Lucene.Net.Analysis;
 using Lucene.Net.QueryParsers.Flexible.Precedence.Processors;
 using Lucene.Net.QueryParsers.Flexible.Standard;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Precedence
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
index d1c7b85..c1f66e7 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
@@ -3,9 +3,6 @@ using Lucene.Net.QueryParsers.Flexible.Core.Processors;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
index 36a2e36..5323c04 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
@@ -1,10 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
 using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
index b9f8f70..a11e9d9 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
@@ -4,11 +4,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.Search;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
index 074ae2b..815fe9f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
@@ -5,11 +5,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
 using Lucene.Net.Search;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
index a61e651..1078a3e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
@@ -1,11 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
index 4a25991..4417a3a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
@@ -1,10 +1,4 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
-using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Search;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
index 60b83b9..ef05c90 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
@@ -1,12 +1,6 @@
 \ufeffusing Lucene.Net.Index;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
index b64c9e9..d46d12e 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
@@ -1,13 +1,7 @@
 \ufeffusing Lucene.Net.Index;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Search;
 using Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
index 5adf2f3..6d2ee7d 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
@@ -1,11 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
index d6c9784..32a474b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
@@ -1,15 +1,9 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
index 62646a4..d384958 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
@@ -1,15 +1,9 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
index 73b542a..2e9cf9a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
@@ -1,11 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
index 1d7f243..162cefe 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
@@ -3,12 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.Search;
-using Lucene.Net.Support;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
index e519eda..2468958 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
@@ -1,6 +1,5 @@
 \ufeffusing Lucene.Net.Documents;
 using Lucene.Net.QueryParsers.Flexible.Core;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Util;
@@ -8,11 +7,6 @@ using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
index 757e7cf..189257b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
@@ -1,11 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Search;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
index 8524cc2..831ec36 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
@@ -1,14 +1,8 @@
 \ufeffusing Lucene.Net.Index;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
index 764931e..4faa23a 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
@@ -1,14 +1,8 @@
 \ufeffusing Lucene.Net.Index;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
index 7497aab..6375abd 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
@@ -1,11 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
index 76b601b..7793472 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
@@ -6,11 +6,7 @@ using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
 using Lucene.Net.Search;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
index fafda9a..9484274 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
@@ -1,11 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
-using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
index 7971930..44a2e60 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryTreeBuilder.cs
@@ -2,11 +2,6 @@
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
index 7899c06..bad7f70 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/TermRangeQueryNodeBuilder.cs
@@ -1,14 +1,8 @@
-\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
-using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Util;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
index 15294f7..e8d7bc4 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/WildcardQueryNodeBuilder.cs
@@ -1,14 +1,8 @@
 \ufeffusing Lucene.Net.Index;
-using Lucene.Net.QueryParsers.Flexible.Core.Builders;
 using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
 using Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
index 278e26f..884aefa 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldBoostMapFCListener.cs
@@ -1,9 +1,5 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
index 35c9b05..c134f98 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FieldDateResolutionFCListener.cs
@@ -1,10 +1,6 @@
 \ufeffusing Lucene.Net.Documents;
 using Lucene.Net.QueryParsers.Flexible.Core.Config;
-using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
index 43e4021..3685dc6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/FuzzyConfig.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.Search;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
index f0fcd35..dddc616 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumberDateFormat.cs
@@ -1,11 +1,6 @@
-\ufeffusing Lucene.Net.Documents;
-using Lucene.Net.Support;
+\ufeffusing Lucene.Net.Support;
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
index 33acddb..4e04eb0 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs
@@ -1,9 +1,5 @@
 \ufeffusing Lucene.Net.Support;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using static Lucene.Net.Documents.FieldType;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
index 62d7e5f..7bd0ddd 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericFieldConfigListener.cs
@@ -1,9 +1,6 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
index 93f9d42..dc8eabd 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/StandardQueryConfigHandler.cs
@@ -6,9 +6,6 @@ using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using Operator = Lucene.Net.QueryParsers.Flexible.Standard.Config.StandardQueryConfigHandler.Operator;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Config

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
index 108ee69..c5c38f3 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/AbstractRangeQueryNode.cs
@@ -3,9 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.QueryParsers.Flexible.Core.Util;
 using System;
 using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
index 31f7853..5daf91b 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/BooleanModifierNode.cs
@@ -1,9 +1,4 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
index 57bf1b8..d7046f6 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/MultiPhraseQueryNode.cs
@@ -1,10 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
-using System;
 using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
index 096b802..61fccad 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericQueryNode.cs
@@ -1,12 +1,7 @@
 \ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
 using Lucene.Net.QueryParsers.Flexible.Core.Parser;
 using Lucene.Net.Support;
-using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3587073c/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
index 160b581..25637af 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Nodes/NumericRangeQueryNode.cs
@@ -3,10 +3,7 @@ using Lucene.Net.QueryParsers.Flexible.Core.Messages;
 using Lucene.Net.QueryParsers.Flexible.Messages;
 using Lucene.Net.QueryParsers.Flexible.Standard.Config;
 using System;
-using System.Collections.Generic;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 using NumericType = Lucene.Net.Documents.FieldType.NumericType;
 
 namespace Lucene.Net.QueryParsers.Flexible.Standard.Nodes


[06/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
new file mode 100644
index 0000000..a6d8952
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/StandardSyntaxParserTokenManager.cs
@@ -0,0 +1,959 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+{
+    /// <summary>
+    /// Token Manager.
+    /// </summary>
+    public class StandardSyntaxParserTokenManager /*: StandardSyntaxParserConstants*/
+    {
+        /** Debug output. */
+        public TextWriter debugStream = Console.Out;
+        /** Set debug output. */
+        public void setDebugStream(TextWriter ds) { debugStream = ds; }
+        private int jjStopStringLiteralDfa_2(int pos, long active0)
+        {
+            switch (pos)
+            {
+                default:
+                    return -1;
+            }
+        }
+        private int jjStartNfa_2(int pos, long active0)
+        {
+            return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);
+        }
+        private int jjStopAtPos(int pos, int kind)
+        {
+            jjmatchedKind = kind;
+            jjmatchedPos = pos;
+            return pos + 1;
+        }
+        private int jjMoveStringLiteralDfa0_2()
+        {
+            switch ((int)curChar)
+            {
+                case 40:
+                    return jjStopAtPos(0, 13);
+                case 41:
+                    return jjStopAtPos(0, 14);
+                case 43:
+                    return jjStopAtPos(0, 11);
+                case 45:
+                    return jjStopAtPos(0, 12);
+                case 58:
+                    return jjStopAtPos(0, 15);
+                case 60:
+                    jjmatchedKind = 17;
+                    return jjMoveStringLiteralDfa1_2(0x40000L);
+                case 61:
+                    return jjStopAtPos(0, 16);
+                case 62:
+                    jjmatchedKind = 19;
+                    return jjMoveStringLiteralDfa1_2(0x100000L);
+                case 91:
+                    return jjStopAtPos(0, 26);
+                case 94:
+                    return jjStopAtPos(0, 21);
+                case 123:
+                    return jjStopAtPos(0, 27);
+                default:
+                    return jjMoveNfa_2(0, 0);
+            }
+        }
+        private int jjMoveStringLiteralDfa1_2(long active0)
+        {
+            try { curChar = input_stream.ReadChar(); }
+            catch (IOException e)
+            {
+                jjStopStringLiteralDfa_2(0, active0);
+                return 1;
+            }
+            switch ((int)curChar)
+            {
+                case 61:
+                    if ((active0 & 0x40000L) != 0L)
+                        return jjStopAtPos(1, 18);
+                    else if ((active0 & 0x100000L) != 0L)
+                        return jjStopAtPos(1, 20);
+                    break;
+                default:
+                    break;
+            }
+            return jjStartNfa_2(0, active0);
+        }
+        internal static readonly ulong[] jjbitVec0 = {
+           0x1L, 0x0L, 0x0L, 0x0L
+        };
+        internal static readonly ulong[] jjbitVec1 = {
+           0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL
+        };
+        internal static readonly ulong[] jjbitVec3 = {
+           0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
+        };
+        internal static readonly ulong[] jjbitVec4 = {
+           0xfffefffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL
+        };
+        private int jjMoveNfa_2(int startState, int curPos)
+        {
+            int startsAt = 0;
+            jjnewStateCnt = 33;
+            int i = 1;
+            jjstateSet[0] = startState;
+            int kind = 0x7fffffff;
+            for (;;)
+            {
+                if (++jjround == 0x7fffffff)
+                    ReInitRounds();
+                if (curChar < 64)
+                {
+                    ulong l = (ulong)(1L << curChar);
+                    do
+                    {
+                        switch (jjstateSet[--i])
+                        {
+                            case 0:
+                                if ((0x8bff54f8ffffd9ffL & l) != 0L)
+                                {
+                                    if (kind > 23)
+                                        kind = 23;
+                                    jjCheckNAddTwoStates(20, 21);
+                                }
+                                else if ((0x100002600L & l) != 0L)
+                                {
+                                    if (kind > 7)
+                                        kind = 7;
+                                }
+                                else if (curChar == 47)
+                                    jjCheckNAddStates(0, 2);
+                                else if (curChar == 34)
+                                    jjCheckNAddStates(3, 5);
+                                else if (curChar == 33)
+                                {
+                                    if (kind > 10)
+                                        kind = 10;
+                                }
+                                if (curChar == 38)
+                                    jjstateSet[jjnewStateCnt++] = 4;
+                                break;
+                            case 4:
+                                if (curChar == 38 && kind > 8)
+                                    kind = 8;
+                                break;
+                            case 5:
+                                if (curChar == 38)
+                                    jjstateSet[jjnewStateCnt++] = 4;
+                                break;
+                            case 13:
+                                if (curChar == 33 && kind > 10)
+                                    kind = 10;
+                                break;
+                            case 14:
+                                if (curChar == 34)
+                                    jjCheckNAddStates(3, 5);
+                                break;
+                            case 15:
+                                if ((0xfffffffbffffffffL & l) != 0L)
+                                    jjCheckNAddStates(3, 5);
+                                break;
+                            case 17:
+                                jjCheckNAddStates(3, 5);
+                                break;
+                            case 18:
+                                if (curChar == 34 && kind > 22)
+                                    kind = 22;
+                                break;
+                            case 19:
+                                if ((0x8bff54f8ffffd9ffL & l) == 0L)
+                                    break;
+                                if (kind > 23)
+                                    kind = 23;
+                                jjCheckNAddTwoStates(20, 21);
+                                break;
+                            case 20:
+                                if ((0x8bff7cf8ffffd9ffL & l) == 0L)
+                                    break;
+                                if (kind > 23)
+                                    kind = 23;
+                                jjCheckNAddTwoStates(20, 21);
+                                break;
+                            case 22:
+                                if (kind > 23)
+                                    kind = 23;
+                                jjCheckNAddTwoStates(20, 21);
+                                break;
+                            case 25:
+                                if ((0x3ff000000000000L & l) == 0L)
+                                    break;
+                                if (kind > 24)
+                                    kind = 24;
+                                jjAddStates(6, 7);
+                                break;
+                            case 26:
+                                if (curChar == 46)
+                                    jjCheckNAdd(27);
+                                break;
+                            case 27:
+                                if ((0x3ff000000000000L & l) == 0L)
+                                    break;
+                                if (kind > 24)
+                                    kind = 24;
+                                jjCheckNAdd(27);
+                                break;
+                            case 28:
+                            case 30:
+                                if (curChar == 47)
+                                    jjCheckNAddStates(0, 2);
+                                break;
+                            case 29:
+                                if ((0xffff7fffffffffffL & l) != 0L)
+                                    jjCheckNAddStates(0, 2);
+                                break;
+                            case 32:
+                                if (curChar == 47 && kind > 25)
+                                    kind = 25;
+                                break;
+                            default: break;
+                        }
+                    } while (i != startsAt);
+                }
+                else if (curChar < 128)
+                {
+                    //long l = 1L << (curChar & 077);
+                    ulong l = (ulong)(1L << (curChar & 63));
+                    do
+                    {
+                        switch (jjstateSet[--i])
+                        {
+                            case 0:
+                                if ((0x97ffffff87ffffffL & l) != 0L)
+                                {
+                                    if (kind > 23)
+                                        kind = 23;
+                                    jjCheckNAddTwoStates(20, 21);
+                                }
+                                else if (curChar == 126)
+                                {
+                                    if (kind > 24)
+                                        kind = 24;
+                                    jjstateSet[jjnewStateCnt++] = 25;
+                                }
+                                else if (curChar == 92)
+                                    jjCheckNAdd(22);
+                                if (curChar == 78)
+                                    jjstateSet[jjnewStateCnt++] = 11;
+                                else if (curChar == 124)
+                                    jjstateSet[jjnewStateCnt++] = 8;
+                                else if (curChar == 79)
+                                    jjstateSet[jjnewStateCnt++] = 6;
+                                else if (curChar == 65)
+                                    jjstateSet[jjnewStateCnt++] = 2;
+                                break;
+                            case 1:
+                                if (curChar == 68 && kind > 8)
+                                    kind = 8;
+                                break;
+                            case 2:
+                                if (curChar == 78)
+                                    jjstateSet[jjnewStateCnt++] = 1;
+                                break;
+                            case 3:
+                                if (curChar == 65)
+                                    jjstateSet[jjnewStateCnt++] = 2;
+                                break;
+                            case 6:
+                                if (curChar == 82 && kind > 9)
+                                    kind = 9;
+                                break;
+                            case 7:
+                                if (curChar == 79)
+                                    jjstateSet[jjnewStateCnt++] = 6;
+                                break;
+                            case 8:
+                                if (curChar == 124 && kind > 9)
+                                    kind = 9;
+                                break;
+                            case 9:
+                                if (curChar == 124)
+                                    jjstateSet[jjnewStateCnt++] = 8;
+                                break;
+                            case 10:
+                                if (curChar == 84 && kind > 10)
+                                    kind = 10;
+                                break;
+                            case 11:
+                                if (curChar == 79)
+                                    jjstateSet[jjnewStateCnt++] = 10;
+                                break;
+                            case 12:
+                                if (curChar == 78)
+                                    jjstateSet[jjnewStateCnt++] = 11;
+                                break;
+                            case 15:
+                                if ((0xffffffffefffffffL & l) != 0L)
+                                    jjCheckNAddStates(3, 5);
+                                break;
+                            case 16:
+                                if (curChar == 92)
+                                    jjstateSet[jjnewStateCnt++] = 17;
+                                break;
+                            case 17:
+                                jjCheckNAddStates(3, 5);
+                                break;
+                            case 19:
+                            case 20:
+                                if ((0x97ffffff87ffffffL & l) == 0L)
+                                    break;
+                                if (kind > 23)
+                                    kind = 23;
+                                jjCheckNAddTwoStates(20, 21);
+                                break;
+                            case 21:
+                                if (curChar == 92)
+                                    jjCheckNAddTwoStates(22, 22);
+                                break;
+                            case 22:
+                                if (kind > 23)
+                                    kind = 23;
+                                jjCheckNAddTwoStates(20, 21);
+                                break;
+                            case 23:
+                                if (curChar == 92)
+                                    jjCheckNAdd(22);
+                                break;
+                            case 24:
+                                if (curChar != 126)
+                                    break;
+                                if (kind > 24)
+                                    kind = 24;
+                                jjstateSet[jjnewStateCnt++] = 25;
+                                break;
+                            case 29:
+                                jjAddStates(0, 2);
+                                break;
+                            case 31:
+                                if (curChar == 92)
+                                    jjstateSet[jjnewStateCnt++] = 30;
+                                break;
+                            default: break;
+                        }
+                    } while (i != startsAt);
+                }
+                else
+                {
+                    int hiByte = (int)(curChar >> 8);
+                    int i1 = hiByte >> 6;
+                    //long l1 = 1L << (hiByte & 077);
+                    ulong l1 = (ulong)(1L << (hiByte & 63));
+                    int i2 = (curChar & 0xff) >> 6;
+                    //long l2 = 1L << (curChar & 077);
+                    ulong l2 = (ulong)(1L << (curChar & 63));
+                    do
+                    {
+                        switch (jjstateSet[--i])
+                        {
+                            case 0:
+                                if (jjCanMove_0(hiByte, i1, i2, l1, l2))
+                                {
+                                    if (kind > 7)
+                                        kind = 7;
+                                }
+                                if (jjCanMove_2(hiByte, i1, i2, l1, l2))
+                                {
+                                    if (kind > 23)
+                                        kind = 23;
+                                    jjCheckNAddTwoStates(20, 21);
+                                }
+                                break;
+                            case 15:
+                            case 17:
+                                if (jjCanMove_1(hiByte, i1, i2, l1, l2))
+                                    jjCheckNAddStates(3, 5);
+                                break;
+                            case 19:
+                            case 20:
+                                if (!jjCanMove_2(hiByte, i1, i2, l1, l2))
+                                    break;
+                                if (kind > 23)
+                                    kind = 23;
+                                jjCheckNAddTwoStates(20, 21);
+                                break;
+                            case 22:
+                                if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
+                                    break;
+                                if (kind > 23)
+                                    kind = 23;
+                                jjCheckNAddTwoStates(20, 21);
+                                break;
+                            case 29:
+                                if (jjCanMove_1(hiByte, i1, i2, l1, l2))
+                                    jjAddStates(0, 2);
+                                break;
+                            default: break;
+                        }
+                    } while (i != startsAt);
+                }
+                if (kind != 0x7fffffff)
+                {
+                    jjmatchedKind = kind;
+                    jjmatchedPos = curPos;
+                    kind = 0x7fffffff;
+                }
+                ++curPos;
+                if ((i = jjnewStateCnt) == (startsAt = 33 - (jjnewStateCnt = startsAt)))
+                    return curPos;
+                try { curChar = input_stream.ReadChar(); }
+                catch (IOException e) { return curPos; }
+            }
+        }
+        private int jjMoveStringLiteralDfa0_0()
+        {
+            return jjMoveNfa_0(0, 0);
+        }
+        private int jjMoveNfa_0(int startState, int curPos)
+        {
+            int startsAt = 0;
+            jjnewStateCnt = 3;
+            int i = 1;
+            jjstateSet[0] = startState;
+            int kind = 0x7fffffff;
+            for (;;)
+            {
+                if (++jjround == 0x7fffffff)
+                    ReInitRounds();
+                if (curChar < 64)
+                {
+                    long l = 1L << curChar;
+                    do
+                    {
+                        switch (jjstateSet[--i])
+                        {
+                            case 0:
+                                if ((0x3ff000000000000L & l) == 0L)
+                                    break;
+                                if (kind > 28)
+                                    kind = 28;
+                                jjAddStates(8, 9);
+                                break;
+                            case 1:
+                                if (curChar == 46)
+                                    jjCheckNAdd(2);
+                                break;
+                            case 2:
+                                if ((0x3ff000000000000L & l) == 0L)
+                                    break;
+                                if (kind > 28)
+                                    kind = 28;
+                                jjCheckNAdd(2);
+                                break;
+                            default: break;
+                        }
+                    } while (i != startsAt);
+                }
+                else if (curChar < 128)
+                {
+                    //long l = 1L << (curChar & 077);
+                    long l = 1L << (curChar & 63);
+                    do
+                    {
+                        switch (jjstateSet[--i])
+                        {
+                            default: break;
+                        }
+                    } while (i != startsAt);
+                }
+                else
+                {
+                    int hiByte = (int)(curChar >> 8);
+                    int i1 = hiByte >> 6;
+                    //long l1 = 1L << (hiByte & 077);
+                    long l1 = 1L << (hiByte & 63);
+                    int i2 = (curChar & 0xff) >> 6;
+                    //long l2 = 1L << (curChar & 077);
+                    long l2 = 1L << (curChar & 63);
+                    do
+                    {
+                        switch (jjstateSet[--i])
+                        {
+                            default: break;
+                        }
+                    } while (i != startsAt);
+                }
+                if (kind != 0x7fffffff)
+                {
+                    jjmatchedKind = kind;
+                    jjmatchedPos = curPos;
+                    kind = 0x7fffffff;
+                }
+                ++curPos;
+                if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
+                    return curPos;
+                try { curChar = input_stream.ReadChar(); }
+                catch (IOException e) { return curPos; }
+            }
+        }
+        private int jjStopStringLiteralDfa_1(int pos, long active0)
+        {
+            switch (pos)
+            {
+                case 0:
+                    if ((active0 & 0x20000000L) != 0L)
+                    {
+                        jjmatchedKind = 33;
+                        return 6;
+                    }
+                    return -1;
+                default:
+                    return -1;
+            }
+        }
+        private int jjStartNfa_1(int pos, long active0)
+        {
+            return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0), pos + 1);
+        }
+        private int jjMoveStringLiteralDfa0_1()
+        {
+            switch ((int)curChar)
+            {
+                case 84:
+                    return jjMoveStringLiteralDfa1_1(0x20000000L);
+                case 93:
+                    return jjStopAtPos(0, 30);
+                case 125:
+                    return jjStopAtPos(0, 31);
+                default:
+                    return jjMoveNfa_1(0, 0);
+            }
+        }
+        private int jjMoveStringLiteralDfa1_1(long active0)
+        {
+            try { curChar = input_stream.ReadChar(); }
+            catch (IOException e)
+            {
+                jjStopStringLiteralDfa_1(0, active0);
+                return 1;
+            }
+            switch ((int)curChar)
+            {
+                case 79:
+                    if ((active0 & 0x20000000L) != 0L)
+                        return jjStartNfaWithStates_1(1, 29, 6);
+                    break;
+                default:
+                    break;
+            }
+            return jjStartNfa_1(0, active0);
+        }
+        private int jjStartNfaWithStates_1(int pos, int kind, int state)
+        {
+            jjmatchedKind = kind;
+            jjmatchedPos = pos;
+            try { curChar = input_stream.ReadChar(); }
+            catch (IOException e) { return pos + 1; }
+            return jjMoveNfa_1(state, pos + 1);
+        }
+        private int jjMoveNfa_1(int startState, int curPos)
+        {
+            int startsAt = 0;
+            jjnewStateCnt = 7;
+            int i = 1;
+            jjstateSet[0] = startState;
+            int kind = 0x7fffffff;
+            for (;;)
+            {
+                if (++jjround == 0x7fffffff)
+                    ReInitRounds();
+                if (curChar < 64)
+                {
+                    ulong l = (ulong)(1L << curChar);
+                    do
+                    {
+                        switch (jjstateSet[--i])
+                        {
+                            case 0:
+                                if ((0xfffffffeffffffffL & l) != 0L)
+                                {
+                                    if (kind > 33)
+                                        kind = 33;
+                                    jjCheckNAdd(6);
+                                }
+                                if ((0x100002600L & l) != 0L)
+                                {
+                                    if (kind > 7)
+                                        kind = 7;
+                                }
+                                else if (curChar == 34)
+                                    jjCheckNAddTwoStates(2, 4);
+                                break;
+                            case 1:
+                                if (curChar == 34)
+                                    jjCheckNAddTwoStates(2, 4);
+                                break;
+                            case 2:
+                                if ((0xfffffffbffffffffL & l) != 0L)
+                                    jjCheckNAddStates(10, 12);
+                                break;
+                            case 3:
+                                if (curChar == 34)
+                                    jjCheckNAddStates(10, 12);
+                                break;
+                            case 5:
+                                if (curChar == 34 && kind > 32)
+                                    kind = 32;
+                                break;
+                            case 6:
+                                if ((0xfffffffeffffffffL & l) == 0L)
+                                    break;
+                                if (kind > 33)
+                                    kind = 33;
+                                jjCheckNAdd(6);
+                                break;
+                            default: break;
+                        }
+                    } while (i != startsAt);
+                }
+                else if (curChar < 128)
+                {
+                    //long l = 1L << (curChar & 077);
+                    ulong l = (ulong)(1L << (curChar & 63));
+                    do
+                    {
+                        switch (jjstateSet[--i])
+                        {
+                            case 0:
+                            case 6:
+                                if ((0xdfffffffdfffffffL & l) == 0L)
+                                    break;
+                                if (kind > 33)
+                                    kind = 33;
+                                jjCheckNAdd(6);
+                                break;
+                            case 2:
+                                jjAddStates(10, 12);
+                                break;
+                            case 4:
+                                if (curChar == 92)
+                                    jjstateSet[jjnewStateCnt++] = 3;
+                                break;
+                            default: break;
+                        }
+                    } while (i != startsAt);
+                }
+                else
+                {
+                    int hiByte = (int)(curChar >> 8);
+                    int i1 = hiByte >> 6;
+                    //long l1 = 1L << (hiByte & 077);
+                    ulong l1 = (ulong)(1L << (hiByte & 63));
+                    int i2 = (curChar & 0xff) >> 6;
+                    //long l2 = 1L << (curChar & 077);
+                    ulong l2 = (ulong)(1L << (curChar & 63));
+                    do
+                    {
+                        switch (jjstateSet[--i])
+                        {
+                            case 0:
+                                if (jjCanMove_0(hiByte, i1, i2, l1, l2))
+                                {
+                                    if (kind > 7)
+                                        kind = 7;
+                                }
+                                if (jjCanMove_1(hiByte, i1, i2, l1, l2))
+                                {
+                                    if (kind > 33)
+                                        kind = 33;
+                                    jjCheckNAdd(6);
+                                }
+                                break;
+                            case 2:
+                                if (jjCanMove_1(hiByte, i1, i2, l1, l2))
+                                    jjAddStates(10, 12);
+                                break;
+                            case 6:
+                                if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
+                                    break;
+                                if (kind > 33)
+                                    kind = 33;
+                                jjCheckNAdd(6);
+                                break;
+                            default: break;
+                        }
+                    } while (i != startsAt);
+                }
+                if (kind != 0x7fffffff)
+                {
+                    jjmatchedKind = kind;
+                    jjmatchedPos = curPos;
+                    kind = 0x7fffffff;
+                }
+                ++curPos;
+                if ((i = jjnewStateCnt) == (startsAt = 7 - (jjnewStateCnt = startsAt)))
+                    return curPos;
+                try { curChar = input_stream.ReadChar(); }
+                catch (IOException e) { return curPos; }
+            }
+        }
+        internal static readonly int[] jjnextStates = {
+           29, 31, 32, 15, 16, 18, 25, 26, 0, 1, 2, 4, 5,
+        };
+        private static bool jjCanMove_0(int hiByte, int i1, int i2, ulong l1, ulong l2)
+        {
+            switch (hiByte)
+            {
+                case 48:
+                    return ((jjbitVec0[i2] & l2) != 0L);
+                default:
+                    return false;
+            }
+        }
+        private static bool jjCanMove_1(int hiByte, int i1, int i2, ulong l1, ulong l2)
+        {
+            switch (hiByte)
+            {
+                case 0:
+                    return ((jjbitVec3[i2] & l2) != 0L);
+                default:
+                    if ((jjbitVec1[i1] & l1) != 0L)
+                        return true;
+                    return false;
+            }
+        }
+        private static bool jjCanMove_2(int hiByte, int i1, int i2, ulong l1, ulong l2)
+        {
+            switch (hiByte)
+            {
+                case 0:
+                    return ((jjbitVec3[i2] & l2) != 0L);
+                case 48:
+                    return ((jjbitVec1[i2] & l2) != 0L);
+                default:
+                    if ((jjbitVec4[i1] & l1) != 0L)
+                        return true;
+                    return false;
+            }
+        }
+
+        /** Token literal values. */
+        public static readonly string[] jjstrLiteralImages = {
+            "", null, null, null, null, null, null, null, null, null, null, "\x002B", "\x002D",
+            "\x0028", "\x0029", "\x003A", "\x003D", "\x003C", "\x003C\x003D", "\x003E", "\x003E\x003D", "\x005E", null, null,
+            null, null, "\x005B", "\x007B", null, "\x0054\x004F", "\x005D", "\x007D", null, null,
+        };
+
+        /** Lexer state names. */
+        public static readonly string[] lexStateNames = {
+           "Boost",
+           "Range",
+           "DEFAULT",
+        };
+
+        /** Lex State array. */
+        public static readonly int[] jjnewLexState = {
+           -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1,
+           -1, 1, 1, 2, -1, 2, 2, -1, -1,
+        };
+        static readonly long[] jjtoToken = {
+           0x3ffffff01L,
+        };
+        static readonly long[] jjtoSkip = {
+           0x80L,
+        };
+        protected ICharStream input_stream;
+        private readonly uint[] jjrounds = new uint[33];
+        private readonly int[] jjstateSet = new int[66];
+        protected char curChar;
+        /** Constructor. */
+        public StandardSyntaxParserTokenManager(ICharStream stream)
+        {
+            input_stream = stream;
+        }
+
+        /** Constructor. */
+        public StandardSyntaxParserTokenManager(ICharStream stream, int lexState)
+            : this(stream)
+        {
+            SwitchTo(lexState);
+        }
+
+        /** Reinitialise parser. */
+        public void ReInit(ICharStream stream)
+        {
+            jjmatchedPos = jjnewStateCnt = 0;
+            curLexState = defaultLexState;
+            input_stream = stream;
+            ReInitRounds();
+        }
+        private void ReInitRounds()
+        {
+            int i;
+            jjround = 0x80000001;
+            for (i = 33; i-- > 0;)
+                jjrounds[i] = 0x80000000;
+        }
+
+        /** Reinitialise parser. */
+        public void ReInit(ICharStream stream, int lexState)
+        {
+            ReInit(stream);
+            SwitchTo(lexState);
+        }
+
+        /** Switch to specified lex state. */
+        public void SwitchTo(int lexState)
+        {
+            if (lexState >= 3 || lexState < 0)
+                throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
+            else
+                curLexState = lexState;
+        }
+
+        protected Token jjFillToken()
+        {
+            Token t;
+            string curTokenImage;
+            int beginLine;
+            int endLine;
+            int beginColumn;
+            int endColumn;
+            string im = jjstrLiteralImages[jjmatchedKind];
+            curTokenImage = (im == null) ? input_stream.GetImage() : im;
+            beginLine = input_stream.GetBeginLine();
+            beginColumn = input_stream.GetBeginColumn();
+            endLine = input_stream.GetEndLine();
+            endColumn = input_stream.GetEndColumn();
+            t = Token.NewToken(jjmatchedKind, curTokenImage);
+
+            t.beginLine = beginLine;
+            t.endLine = endLine;
+            t.beginColumn = beginColumn;
+            t.endColumn = endColumn;
+
+            return t;
+        }
+
+        internal int curLexState = 2;
+        internal int defaultLexState = 2;
+        internal int jjnewStateCnt;
+        internal uint jjround;
+        internal int jjmatchedPos;
+        internal int jjmatchedKind;
+
+        /** Get the next Token. */
+        public Token getNextToken()
+        {
+            Token matchedToken;
+            int curPos = 0;
+
+            
+            for (;;)
+            {
+                try
+                {
+                    curChar = input_stream.BeginToken();
+                }
+                catch (IOException e)
+                {
+                    jjmatchedKind = 0;
+                    matchedToken = jjFillToken();
+                    return matchedToken;
+                }
+
+                switch (curLexState)
+                {
+                    case 0:
+                        jjmatchedKind = 0x7fffffff;
+                        jjmatchedPos = 0;
+                        curPos = jjMoveStringLiteralDfa0_0();
+                        break;
+                    case 1:
+                        jjmatchedKind = 0x7fffffff;
+                        jjmatchedPos = 0;
+                        curPos = jjMoveStringLiteralDfa0_1();
+                        break;
+                    case 2:
+                        jjmatchedKind = 0x7fffffff;
+                        jjmatchedPos = 0;
+                        curPos = jjMoveStringLiteralDfa0_2();
+                        break;
+                }
+                if (jjmatchedKind != 0x7fffffff)
+                {
+                    if (jjmatchedPos + 1 < curPos)
+                        input_stream.BackUp(curPos - jjmatchedPos - 1);
+                    if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 63 /*077*/))) != 0L)
+                    {
+                        matchedToken = jjFillToken();
+                        if (jjnewLexState[jjmatchedKind] != -1)
+                            curLexState = jjnewLexState[jjmatchedKind];
+                        return matchedToken;
+                    }
+                    else
+                    {
+                        if (jjnewLexState[jjmatchedKind] != -1)
+                            curLexState = jjnewLexState[jjmatchedKind];
+                        goto EOFLoop_continue;
+                    }
+                }
+                int error_line = input_stream.GetEndLine();
+                int error_column = input_stream.GetEndColumn();
+                string error_after = null;
+                bool EOFSeen = false;
+                try { input_stream.ReadChar(); input_stream.BackUp(1); }
+                catch (IOException e1)
+                {
+                    EOFSeen = true;
+                    error_after = curPos <= 1 ? "" : input_stream.GetImage();
+                    if (curChar == '\n' || curChar == '\r')
+                    {
+                        error_line++;
+                        error_column = 0;
+                    }
+                    else
+                        error_column++;
+                }
+                if (!EOFSeen)
+                {
+                    input_stream.BackUp(1);
+                    error_after = curPos <= 1 ? "" : input_stream.GetImage();
+                }
+                throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
+
+                EOFLoop_continue: { }
+            }
+        }
+
+        private void jjCheckNAdd(int state)
+        {
+            if (jjrounds[state] != jjround)
+            {
+                jjstateSet[jjnewStateCnt++] = state;
+                jjrounds[state] = jjround;
+            }
+        }
+        private void jjAddStates(int start, int end)
+        {
+            do
+            {
+                jjstateSet[jjnewStateCnt++] = jjnextStates[start];
+            } while (start++ != end);
+        }
+        private void jjCheckNAddTwoStates(int state1, int state2)
+        {
+            jjCheckNAdd(state1);
+            jjCheckNAdd(state2);
+        }
+
+        private void jjCheckNAddStates(int start, int end)
+        {
+            do
+            {
+                jjCheckNAdd(jjnextStates[start]);
+            } while (start++ != end);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
new file mode 100644
index 0000000..03a4bea
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs
@@ -0,0 +1,135 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+{
+    /// <summary>
+    /// Describes the input token stream.
+    /// </summary>
+    [Serializable]
+    public class Token
+    {
+        /**
+       * The version identifier for this Serializable class.
+       * Increment only if the <i>serialized</i> form of the
+       * class changes.
+       */
+        private static readonly long serialVersionUID = 1L;
+
+        /**
+         * An integer that describes the kind of this token.  This numbering
+         * system is determined by JavaCCParser, and a table of these numbers is
+         * stored in the file ...Constants.java.
+         */
+        public int kind;
+
+        /** The line number of the first character of this Token. */
+        public int beginLine;
+        /** The column number of the first character of this Token. */
+        public int beginColumn;
+        /** The line number of the last character of this Token. */
+        public int endLine;
+        /** The column number of the last character of this Token. */
+        public int endColumn;
+
+        /**
+         * The string image of the token.
+         */
+        public string image;
+
+        /**
+         * A reference to the next regular (non-special) token from the input
+         * stream.  If this is the last token from the input stream, or if the
+         * token manager has not read tokens beyond this one, this field is
+         * set to null.  This is true only if this token is also a regular
+         * token.  Otherwise, see below for a description of the contents of
+         * this field.
+         */
+        public Token next;
+
+        /**
+         * This field is used to access special tokens that occur prior to this
+         * token, but after the immediately preceding regular (non-special) token.
+         * If there are no such special tokens, this field is set to null.
+         * When there are more than one such special token, this field refers
+         * to the last of these special tokens, which in turn refers to the next
+         * previous special token through its specialToken field, and so on
+         * until the first special token (whose specialToken field is null).
+         * The next fields of special tokens refer to other special tokens that
+         * immediately follow it (without an intervening regular token).  If there
+         * is no such token, this field is null.
+         */
+        public Token specialToken;
+
+        /**
+         * An optional attribute value of the Token.
+         * Tokens which are not used as syntactic sugar will often contain
+         * meaningful values that will be used later on by the compiler or
+         * interpreter. This attribute value is often different from the image.
+         * Any subclass of Token that actually wants to return a non-null value can
+         * override this method as appropriate.
+         */
+        public object GetValue()
+        {
+            return null;
+        }
+
+        /**
+         * No-argument constructor
+         */
+        public Token() { }
+
+        /**
+         * Constructs a new token for the specified Image.
+         */
+        public Token(int kind)
+            : this(kind, null)
+        {
+        }
+
+        /**
+         * Constructs a new token for the specified Image and Kind.
+         */
+        public Token(int kind, string image)
+        {
+            this.kind = kind;
+            this.image = image;
+        }
+
+        /**
+         * Returns the image.
+         */
+        public override string ToString()
+        {
+            return image;
+        }
+
+        /**
+         * Returns a new Token object, by default. However, if you want, you
+         * can create and return subclass objects based on the value of ofKind.
+         * Simply add the cases to the switch for all those special cases.
+         * For example, if you have a subclass of Token called IDToken that
+         * you want to create if ofKind is ID, simply add something like :
+         *
+         *    case MyParserConstants.ID : return new IDToken(ofKind, image);
+         *
+         * to the following switch statement. Then you can cast matchedToken
+         * variable to the appropriate type and use sit in your lexical actions.
+         */
+        public static Token NewToken(int ofKind, string image)
+        {
+            switch (ofKind)
+            {
+                default: return new Token(ofKind, image);
+            }
+        }
+
+        public static Token NewToken(int ofKind)
+        {
+            return NewToken(ofKind, null);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
new file mode 100644
index 0000000..0485601
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/TokenMgrError.cs
@@ -0,0 +1,164 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
+{
+    /// <summary>
+    /// Token Manager Error.
+    /// </summary>
+    [Serializable]
+    public class TokenMgrError : Exception
+    {
+        /**
+   * The version identifier for this Serializable class.
+   * Increment only if the <i>serialized</i> form of the
+   * class changes.
+   */
+        private static readonly long serialVersionUID = 1L;
+
+        /*
+         * Ordinals for various reasons why an Error of this type can be thrown.
+         */
+
+        /**
+         * Lexical error occurred.
+         */
+        internal static readonly int LEXICAL_ERROR = 0;
+
+        /**
+         * An attempt was made to create a second instance of a static token manager.
+         */
+        internal static readonly int STATIC_LEXER_ERROR = 1;
+
+        /**
+         * Tried to change to an invalid lexical state.
+         */
+        internal static readonly int INVALID_LEXICAL_STATE = 2;
+
+        /**
+         * Detected (and bailed out of) an infinite loop in the token manager.
+         */
+        internal static readonly int LOOP_DETECTED = 3;
+
+        /**
+         * Indicates the reason why the exception is thrown. It will have
+         * one of the above 4 values.
+         */
+        internal int errorCode;
+
+        /**
+         * Replaces unprintable characters by their escaped (or unicode escaped)
+         * equivalents in the given string
+         */
+        protected static string AddEscapes(string str)
+        {
+            StringBuilder retval = new StringBuilder();
+            char ch;
+            for (int i = 0; i < str.Length; i++)
+            {
+                switch (str[i])
+                {
+                    case (char)0:
+                        continue;
+                    case '\b':
+                        retval.Append("\\b");
+                        continue;
+                    case '\t':
+                        retval.Append("\\t");
+                        continue;
+                    case '\n':
+                        retval.Append("\\n");
+                        continue;
+                    case '\f':
+                        retval.Append("\\f");
+                        continue;
+                    case '\r':
+                        retval.Append("\\r");
+                        continue;
+                    case '\"':
+                        retval.Append("\\\"");
+                        continue;
+                    case '\'':
+                        retval.Append("\\\'");
+                        continue;
+                    case '\\':
+                        retval.Append("\\\\");
+                        continue;
+                    default:
+                        if ((ch = str[i]) < 0x20 || ch > 0x7e)
+                        {
+                            //string s = "0000" + Integer.toString(ch, 16);
+                            string s = "0000" + Convert.ToString(ch, 16);
+                            retval.Append("\\u" + s.Substring(s.Length - 4, /*s.Length - (s.Length - 4)*/ 4));
+                        }
+                        else
+                        {
+                            retval.Append(ch);
+                        }
+                        continue;
+                }
+            }
+            return retval.ToString();
+        }
+
+        /**
+         * Returns a detailed message for the Error when it is thrown by the
+         * token manager to indicate a lexical error.
+         * Parameters :
+         *    EOFSeen     : indicates if EOF caused the lexical error
+         *    curLexState : lexical state in which this error occurred
+         *    errorLine   : line number when the error occurred
+         *    errorColumn : column number when the error occurred
+         *    errorAfter  : prefix that was seen before this error occurred
+         *    curchar     : the offending character
+         * Note: You can customize the lexical error message by modifying this method.
+         */
+        protected static string LexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar)
+        {
+            return ("Lexical error at line " +
+                  errorLine + ", column " +
+                  errorColumn + ".  Encountered: " +
+                  (EOFSeen ? "<EOF> " : ("\"" + AddEscapes(curChar.ToString()) + "\"") + " (" + (int)curChar + "), ") +
+                  "after : \"" + AddEscapes(errorAfter) + "\"");
+        }
+
+        /**
+         * You can also modify the body of this method to customize your error messages.
+         * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
+         * of end-users concern, so you can return something like :
+         *
+         *     "Internal Error : Please file a bug report .... "
+         *
+         * from this method for such cases in the release version of your parser.
+         */
+        public override string Message
+        {
+            get { return base.Message; }
+        }
+
+        /*
+         * Constructors of various flavors follow.
+         */
+
+        /** No arg constructor. */
+        public TokenMgrError()
+        {
+        }
+
+        /** Constructor with message and reason. */
+        public TokenMgrError(string message, int reason)
+            : base(message)
+        {
+            errorCode = reason;
+        }
+
+        /** Full Constructor. */
+        public TokenMgrError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar, int reason)
+            : this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason)
+        {
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
new file mode 100644
index 0000000..a672fa4
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AllowLeadingWildcardProcessor.cs
@@ -0,0 +1,100 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor verifies if
+    /// {@link ConfigurationKeys#ALLOW_LEADING_WILDCARD} is defined in the
+    /// {@link QueryConfigHandler}. If it is and leading wildcard is not allowed, it
+    /// looks for every {@link WildcardQueryNode} contained in the query node tree
+    /// and throws an exception if any of them has a leading wildcard ('*' or '?').
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#ALLOW_LEADING_WILDCARD"/>
+    public class AllowLeadingWildcardProcessor : QueryNodeProcessorImpl
+    {
+        public AllowLeadingWildcardProcessor()
+        {
+            // empty constructor
+        }
+
+
+        public override IQueryNode Process(IQueryNode queryTree)
+        {
+            bool? allowsLeadingWildcard = GetQueryConfigHandler().Get(ConfigurationKeys.ALLOW_LEADING_WILDCARD);
+
+            if (allowsLeadingWildcard != null)
+            {
+
+                if (!allowsLeadingWildcard.Value)
+                {
+                    return base.Process(queryTree);
+                }
+
+            }
+
+            return queryTree;
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is WildcardQueryNode)
+            {
+                WildcardQueryNode wildcardNode = (WildcardQueryNode)node;
+
+                if (wildcardNode.Text.Length > 0)
+                {
+
+                    // Validate if the wildcard was escaped
+                    if (UnescapedCharSequence.WasEscaped(wildcardNode.Text, 0))
+                        return node;
+
+                    switch (wildcardNode.Text[0])
+                    {
+                        case '*':
+                        case '?':
+                            throw new QueryNodeException(new MessageImpl(
+                                QueryParserMessages.LEADING_WILDCARD_NOT_ALLOWED, node
+                                    .ToQueryString(new EscapeQuerySyntaxImpl())));
+                    }
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
new file mode 100644
index 0000000..4510388
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/AnalyzerQueryNodeProcessor.cs
@@ -0,0 +1,435 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.Analysis.Tokenattributes;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Support;
+using Lucene.Net.Util;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using static Lucene.Net.QueryParsers.Classic.QueryParserBase;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor verifies if {@link ConfigurationKeys#ANALYZER}
+    /// is defined in the {@link QueryConfigHandler}. If it is and the analyzer is
+    /// not <code>null</code>, it looks for every {@link FieldQueryNode} that is not
+    /// {@link WildcardQueryNode}, {@link FuzzyQueryNode} or
+    /// {@link RangeQueryNode} contained in the query node tree, then it applies
+    /// the analyzer to that {@link FieldQueryNode} object.
+    /// <para/>
+    /// If the analyzer return only one term, the returned term is set to the
+    /// {@link FieldQueryNode} and it's returned.
+    /// <para/>
+    /// If the analyzer return more than one term, a {@link TokenizedPhraseQueryNode}
+    /// or {@link MultiPhraseQueryNode} is created, whether there is one or more
+    /// terms at the same position, and it's returned.
+    /// <para/>
+    /// If no term is returned by the analyzer a {@link NoTokenFoundQueryNode} object
+    /// is returned.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#ANALYZER"/>
+    /// <seealso cref="Analyzer"/>
+    /// <seealso cref="TokenStream"/>
+    public class AnalyzerQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        private Analyzer analyzer;
+
+        private bool positionIncrementsEnabled;
+
+        private Config.Operator defaultOperator;
+
+        public AnalyzerQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        public override IQueryNode Process(IQueryNode queryTree)
+        {
+            Analyzer analyzer = GetQueryConfigHandler().Get(ConfigurationKeys.ANALYZER);
+
+            if (analyzer != null)
+            {
+                this.analyzer = analyzer;
+                this.positionIncrementsEnabled = false;
+                bool? positionIncrementsEnabled = GetQueryConfigHandler().Get(ConfigurationKeys.ENABLE_POSITION_INCREMENTS);
+                var defaultOperator = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);
+                this.defaultOperator = defaultOperator != null ? defaultOperator.Value : Config.Operator.OR;
+
+                if (positionIncrementsEnabled != null)
+                {
+                    this.positionIncrementsEnabled = positionIncrementsEnabled.Value;
+                }
+
+                if (this.analyzer != null)
+                {
+                    return base.Process(queryTree);
+                }
+
+            }
+
+            return queryTree;
+
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is ITextableQueryNode
+                && !(node is WildcardQueryNode)
+                && !(node is FuzzyQueryNode)
+                && !(node is RegexpQueryNode)
+                && !(node.GetParent() is IRangeQueryNode))
+            {
+
+                FieldQueryNode fieldNode = ((FieldQueryNode)node);
+                string text = fieldNode.GetTextAsString();
+                string field = fieldNode.GetFieldAsString();
+
+                CachingTokenFilter buffer = null;
+                IPositionIncrementAttribute posIncrAtt = null;
+                int numTokens = 0;
+                int positionCount = 0;
+                bool severalTokensAtSamePosition = false;
+
+                TokenStream source = null;
+                try
+                {
+                    source = this.analyzer.TokenStream(field, text);
+                    source.Reset();
+                    buffer = new CachingTokenFilter(source);
+
+                    if (buffer.HasAttribute<IPositionIncrementAttribute>())
+                    {
+                        posIncrAtt = buffer.GetAttribute<IPositionIncrementAttribute>();
+                    }
+
+                    try
+                    {
+
+                        while (buffer.IncrementToken())
+                        {
+                            numTokens++;
+                            int positionIncrement = (posIncrAtt != null) ? posIncrAtt
+                                .PositionIncrement : 1;
+                            if (positionIncrement != 0)
+                            {
+                                positionCount += positionIncrement;
+
+                            }
+                            else
+                            {
+                                severalTokensAtSamePosition = true;
+                            }
+
+                        }
+
+                    }
+                    catch (IOException e)
+                    {
+                        // ignore
+                    }
+                }
+                catch (IOException e)
+                {
+                    throw new Exception(e.Message, e);
+                }
+                finally
+                {
+                    IOUtils.CloseWhileHandlingException(source);
+                }
+
+                // rewind the buffer stream
+                buffer.Reset();
+
+                if (!buffer.HasAttribute<ICharTermAttribute>())
+                {
+                    return new NoTokenFoundQueryNode();
+                }
+
+                ICharTermAttribute termAtt = buffer.GetAttribute<ICharTermAttribute>();
+
+                if (numTokens == 0)
+                {
+                    return new NoTokenFoundQueryNode();
+
+                }
+                else if (numTokens == 1)
+                {
+                    string term = null;
+                    try
+                    {
+                        bool hasNext;
+                        hasNext = buffer.IncrementToken();
+                        Debug.Assert(hasNext == true);
+                        term = termAtt.ToString();
+
+                    }
+                    catch (IOException e)
+                    {
+                        // safe to ignore, because we know the number of tokens
+                    }
+
+                    fieldNode.Text = term.ToCharSequence();
+
+                    return fieldNode;
+
+                }
+                else if (severalTokensAtSamePosition || !(node is QuotedFieldQueryNode))
+                {
+                    if (positionCount == 1 || !(node is QuotedFieldQueryNode))
+                    {
+                        // no phrase query:
+
+                        if (positionCount == 1)
+                        {
+                            // simple case: only one position, with synonyms
+                            List<IQueryNode> children = new List<IQueryNode>();
+
+                            for (int i = 0; i < numTokens; i++)
+                            {
+                                string term = null;
+                                try
+                                {
+                                    bool hasNext = buffer.IncrementToken();
+                                    Debug.Assert(hasNext == true);
+                                    term = termAtt.ToString();
+
+                                }
+                                catch (IOException e)
+                                {
+                                    // safe to ignore, because we know the number of tokens
+                                }
+
+                                children.Add(new FieldQueryNode(field, term, -1, -1));
+
+                            }
+                            return new GroupQueryNode(
+                                new StandardBooleanQueryNode(children, positionCount == 1));
+
+                        }
+                        else
+                        {
+                            // multiple positions
+                            IQueryNode q = new StandardBooleanQueryNode(new List<IQueryNode>(), false);
+                            IQueryNode currentQuery = null;
+                            for (int i = 0; i < numTokens; i++)
+                            {
+                                string term = null;
+                                try
+                                {
+                                    bool hasNext = buffer.IncrementToken();
+                                    Debug.Assert(hasNext == true);
+                                    term = termAtt.ToString();
+                                }
+                                catch (IOException e)
+                                {
+                                    // safe to ignore, because we know the number of tokens
+                                }
+                                if (posIncrAtt != null && posIncrAtt.PositionIncrement == 0)
+                                {
+                                    if (!(currentQuery is BooleanQueryNode))
+                                    {
+                                        IQueryNode t = currentQuery;
+                                        currentQuery = new StandardBooleanQueryNode(new List<IQueryNode>(), true);
+                                        ((BooleanQueryNode)currentQuery).Add(t);
+                                    }
+                                  ((BooleanQueryNode)currentQuery).Add(new FieldQueryNode(field, term, -1, -1));
+                                }
+                                else
+                                {
+                                    if (currentQuery != null)
+                                    {
+                                        if (this.defaultOperator == Config.Operator.OR)
+                                        {
+                                            q.Add(currentQuery);
+                                        }
+                                        else
+                                        {
+                                            q.Add(new ModifierQueryNode(currentQuery, Modifier.MOD_REQ));
+                                        }
+                                    }
+                                    currentQuery = new FieldQueryNode(field, term, -1, -1);
+                                }
+                            }
+                            if (this.defaultOperator == Config.Operator.OR)
+                            {
+                                q.Add(currentQuery);
+                            }
+                            else
+                            {
+                                q.Add(new ModifierQueryNode(currentQuery, Modifier.MOD_REQ));
+                            }
+
+                            if (q is BooleanQueryNode)
+                            {
+                                q = new GroupQueryNode(q);
+                            }
+                            return q;
+                        }
+                    }
+                    else
+                    {
+                        // phrase query:
+                        MultiPhraseQueryNode mpq = new MultiPhraseQueryNode();
+
+                        List<FieldQueryNode> multiTerms = new List<FieldQueryNode>();
+                        int position = -1;
+                        int i = 0;
+                        int termGroupCount = 0;
+                        for (; i < numTokens; i++)
+                        {
+                            string term = null;
+                            int positionIncrement = 1;
+                            try
+                            {
+                                bool hasNext = buffer.IncrementToken();
+                                Debug.Assert(hasNext == true);
+                                term = termAtt.ToString();
+                                if (posIncrAtt != null)
+                                {
+                                    positionIncrement = posIncrAtt.PositionIncrement;
+                                }
+
+                            }
+                            catch (IOException e)
+                            {
+                                // safe to ignore, because we know the number of tokens
+                            }
+
+                            if (positionIncrement > 0 && multiTerms.Count > 0)
+                            {
+
+                                foreach (FieldQueryNode termNode in multiTerms)
+                                {
+
+                                    if (this.positionIncrementsEnabled)
+                                    {
+                                        termNode.SetPositionIncrement(position);
+                                    }
+                                    else
+                                    {
+                                        termNode.SetPositionIncrement(termGroupCount);
+                                    }
+
+                                    mpq.Add(termNode);
+
+                                }
+
+                                // Only increment once for each "group" of
+                                // terms that were in the same position:
+                                termGroupCount++;
+
+                                multiTerms.Clear();
+
+                            }
+
+                            position += positionIncrement;
+                            multiTerms.Add(new FieldQueryNode(field, term, -1, -1));
+
+                        }
+
+                        foreach (FieldQueryNode termNode in multiTerms)
+                        {
+
+                            if (this.positionIncrementsEnabled)
+                            {
+                                termNode.SetPositionIncrement(position);
+
+                            }
+                            else
+                            {
+                                termNode.SetPositionIncrement(termGroupCount);
+                            }
+
+                            mpq.Add(termNode);
+
+                        }
+
+                        return mpq;
+
+                    }
+
+                }
+                else
+                {
+
+                    TokenizedPhraseQueryNode pq = new TokenizedPhraseQueryNode();
+
+                    int position = -1;
+
+                    for (int i = 0; i < numTokens; i++)
+                    {
+                        string term = null;
+                        int positionIncrement = 1;
+
+                        try
+                        {
+                            bool hasNext = buffer.IncrementToken();
+                            Debug.Assert(hasNext == true);
+                            term = termAtt.ToString();
+
+                            if (posIncrAtt != null)
+                            {
+                                positionIncrement = posIncrAtt.PositionIncrement;
+                            }
+
+                        }
+                        catch (IOException e)
+                        {
+                            // safe to ignore, because we know the number of tokens
+                        }
+
+                        FieldQueryNode newFieldNode = new FieldQueryNode(field, term, -1, -1);
+
+                        if (this.positionIncrementsEnabled)
+                        {
+                            position += positionIncrement;
+                            newFieldNode.SetPositionIncrement(position);
+
+                        }
+                        else
+                        {
+                            newFieldNode.SetPositionIncrement(i);
+                        }
+
+                        pq.Add(newFieldNode);
+
+                    }
+
+                    return pq;
+
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
new file mode 100644
index 0000000..8b02976
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanQuery2ModifierNodeProcessor.cs
@@ -0,0 +1,210 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor is used to apply the correct {@link ModifierQueryNode} to
+    /// {@link BooleanQueryNode}s children. This is a variant of
+    /// {@link BooleanModifiersQueryNodeProcessor} which ignores precedence.
+    /// <para/>
+    /// The {@link StandardSyntaxParser} knows the rules of precedence, but lucene
+    /// does not. e.g. <code>(A AND B OR C AND D)</code> ist treated like
+    /// <code>(+A +B +C +D)</code>.
+    /// <para/>
+    /// This processor walks through the query node tree looking for
+    /// {@link BooleanQueryNode}s. If an {@link AndQueryNode} is found, every child,
+    /// which is not a {@link ModifierQueryNode} or the {@link ModifierQueryNode} is
+    /// {@link Modifier#MOD_NONE}, becomes a {@link Modifier#MOD_REQ}. For default
+    /// {@link BooleanQueryNode}, it checks the default operator is
+    /// {@link Operator#AND}, if it is, the same operation when an
+    /// {@link AndQueryNode} is found is applied to it. Each {@link BooleanQueryNode}
+    /// which direct parent is also a {@link BooleanQueryNode} is removed (to ignore
+    /// the rules of precedence).
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#DEFAULT_OPERATOR"/>
+    /// <seealso cref="BooleanModifiersQueryNodeProcessor"/>
+    public class BooleanQuery2ModifierNodeProcessor : IQueryNodeProcessor
+    {
+        internal readonly static string TAG_REMOVE = "remove";
+        internal readonly static string TAG_MODIFIER = "wrapWithModifier";
+        internal readonly static string TAG_BOOLEAN_ROOT = "booleanRoot";
+
+        QueryConfigHandler queryConfigHandler;
+
+        private readonly List<IQueryNode> childrenBuffer = new List<IQueryNode>();
+
+        private bool usingAnd = false;
+
+        public BooleanQuery2ModifierNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        public virtual IQueryNode Process(IQueryNode queryTree)
+        {
+            Operator? op = GetQueryConfigHandler().Get(
+                ConfigurationKeys.DEFAULT_OPERATOR);
+
+            if (op == null)
+            {
+                throw new ArgumentException(
+                    "StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler");
+            }
+
+            this.usingAnd = Operator.AND == op;
+
+            return ProcessIteration(queryTree);
+
+        }
+
+
+        protected void ProcessChildren(IQueryNode queryTree)
+        {
+            IList<IQueryNode> children = queryTree.GetChildren();
+            if (children != null && children.Count > 0)
+            {
+                foreach (IQueryNode child in children)
+                {
+                    /*child = */
+                    ProcessIteration(child);
+                }
+            }
+        }
+
+        private IQueryNode ProcessIteration(IQueryNode queryTree)
+        {
+            queryTree = PreProcessNode(queryTree);
+
+            ProcessChildren(queryTree);
+
+            queryTree = PostProcessNode(queryTree);
+
+            return queryTree;
+
+        }
+
+        protected virtual void FillChildrenBufferAndApplyModifiery(IQueryNode parent)
+        {
+            foreach (IQueryNode node in parent.GetChildren())
+            {
+                if (node.ContainsTag(TAG_REMOVE))
+                {
+                    FillChildrenBufferAndApplyModifiery(node);
+                }
+                else if (node.ContainsTag(TAG_MODIFIER))
+                {
+                    childrenBuffer.Add(ApplyModifier(node,
+                        (Modifier)node.GetTag(TAG_MODIFIER)));
+                }
+                else
+                {
+                    childrenBuffer.Add(node);
+                }
+            }
+        }
+
+        protected IQueryNode PostProcessNode(IQueryNode node)
+        {
+            if (node.ContainsTag(TAG_BOOLEAN_ROOT))
+            {
+                this.childrenBuffer.Clear();
+                FillChildrenBufferAndApplyModifiery(node);
+                node.Set(childrenBuffer);
+            }
+            return node;
+
+        }
+
+        protected IQueryNode PreProcessNode(IQueryNode node)
+        {
+            IQueryNode parent = node.GetParent();
+            if (node is BooleanQueryNode)
+            {
+                if (parent is BooleanQueryNode)
+                {
+                    node.SetTag(TAG_REMOVE, true); // no precedence
+                }
+                else
+                {
+                    node.SetTag(TAG_BOOLEAN_ROOT, true);
+                }
+            }
+            else if (parent is BooleanQueryNode)
+            {
+                if ((parent is AndQueryNode)
+          || (usingAnd && IsDefaultBooleanQueryNode(parent)))
+                {
+                    TagModifierButDoNotOverride(node, Modifier.MOD_REQ);
+                }
+            }
+            return node;
+        }
+
+        protected bool IsDefaultBooleanQueryNode(IQueryNode toTest)
+        {
+            return toTest != null && typeof(BooleanQueryNode).Equals(toTest.GetType());
+        }
+
+        private IQueryNode ApplyModifier(IQueryNode node, Modifier mod)
+        {
+
+            // check if modifier is not already defined and is default
+            if (!(node is ModifierQueryNode))
+            {
+                return new BooleanModifierNode(node, mod);
+
+            }
+            else
+            {
+                ModifierQueryNode modNode = (ModifierQueryNode)node;
+
+                if (modNode.GetModifier() == Modifier.MOD_NONE)
+                {
+                    return new ModifierQueryNode(modNode.GetChild(), mod);
+                }
+
+            }
+
+            return node;
+
+        }
+
+        protected void TagModifierButDoNotOverride(IQueryNode node, Modifier mod)
+        {
+            if (node is ModifierQueryNode)
+            {
+                ModifierQueryNode modNode = (ModifierQueryNode)node;
+                if (modNode.GetModifier() == Modifier.MOD_NONE)
+                {
+                    node.SetTag(TAG_MODIFIER, mod);
+                }
+            }
+            else
+            {
+                node.SetTag(TAG_MODIFIER, Modifier.MOD_REQ);
+            }
+        }
+
+        public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
+        {
+            this.queryConfigHandler = queryConfigHandler;
+
+        }
+
+
+        public virtual QueryConfigHandler GetQueryConfigHandler()
+        {
+            return queryConfigHandler;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
new file mode 100644
index 0000000..36637e6
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BooleanSingleChildOptimizationQueryNodeProcessor.cs
@@ -0,0 +1,79 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor removes every {@link BooleanQueryNode} that contains only one
+    /// child and returns this child. If this child is {@link ModifierQueryNode} that
+    /// was defined by the user. A modifier is not defined by the user when it's a
+    /// {@link BooleanModifierNode}
+    /// </summary>
+    /// <seealso cref="ModifierQueryNode"/>
+    public class BooleanSingleChildOptimizationQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        public BooleanSingleChildOptimizationQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is BooleanQueryNode)
+            {
+                IList<IQueryNode> children = node.GetChildren();
+
+                if (children != null && children.Count == 1)
+                {
+                    IQueryNode child = children[0];
+
+                    if (child is ModifierQueryNode)
+                    {
+                        ModifierQueryNode modNode = (ModifierQueryNode)child;
+
+                        if (modNode is BooleanModifierNode
+                            || modNode.GetModifier() == Modifier.MOD_NONE)
+                        {
+
+                            return child;
+
+                        }
+
+                    }
+                    else
+                    {
+                        return child;
+                    }
+
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
new file mode 100644
index 0000000..03776d2
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/BoostQueryNodeProcessor.cs
@@ -0,0 +1,74 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor iterates the query node tree looking for every
+    /// {@link FieldableNode} that has {@link ConfigurationKeys#BOOST} in its
+    /// config. If there is, the boost is applied to that {@link FieldableNode}.
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#BOOST"/>
+    /// <seealso cref="QueryConfigHandler"/>
+    /// <seealso cref="IFieldableNode"/>
+    public class BoostQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is IFieldableNode &&
+                (node.GetParent() == null || !(node.GetParent() is IFieldableNode)))
+            {
+
+                IFieldableNode fieldNode = (IFieldableNode)node;
+                QueryConfigHandler config = GetQueryConfigHandler();
+
+                if (config != null)
+                {
+                    string field = fieldNode.Field;
+                    FieldConfig fieldConfig = config.GetFieldConfig(StringUtils.ToString(field));
+
+                    if (fieldConfig != null)
+                    {
+                        float? boost = fieldConfig.Get(ConfigurationKeys.BOOST);
+
+                        if (boost != null)
+                        {
+                            return new BoostQueryNode(node, boost.Value);
+                        }
+
+                    }
+
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            return node;
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
new file mode 100644
index 0000000..f52ebba
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Processors/DefaultPhraseSlopQueryNodeProcessor.cs
@@ -0,0 +1,112 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Processors
+{
+    /// <summary>
+    /// This processor verifies if {@link ConfigurationKeys#PHRASE_SLOP}
+    /// is defined in the {@link QueryConfigHandler}. If it is, it looks for every
+    /// {@link TokenizedPhraseQueryNode} and {@link MultiPhraseQueryNode} that does
+    /// not have any {@link SlopQueryNode} applied to it and creates an
+    /// {@link SlopQueryNode} and apply to it. The new {@link SlopQueryNode} has the
+    /// same slop value defined in the configuration.
+    /// </summary>
+    /// <seealso cref="SlopQueryNode"/>
+    /// <seealso cref="ConfigurationKeys#PHRASE_SLOP"/>
+    public class DefaultPhraseSlopQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        private bool processChildren = true;
+
+        private int defaultPhraseSlop;
+
+        public DefaultPhraseSlopQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        public override IQueryNode Process(IQueryNode queryTree)
+        {
+            QueryConfigHandler queryConfig = GetQueryConfigHandler();
+
+            if (queryConfig != null)
+            {
+                int? defaultPhraseSlop = queryConfig.Get(ConfigurationKeys.PHRASE_SLOP);
+
+                if (defaultPhraseSlop != null)
+                {
+                    this.defaultPhraseSlop = defaultPhraseSlop.Value;
+
+                    return base.Process(queryTree);
+
+                }
+
+            }
+
+            return queryTree;
+
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is TokenizedPhraseQueryNode
+                || node is MultiPhraseQueryNode)
+            {
+
+                return new SlopQueryNode(node, this.defaultPhraseSlop);
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+
+            if (node is SlopQueryNode)
+            {
+                this.processChildren = false;
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override void ProcessChildren(IQueryNode queryTree)
+        {
+
+            if (this.processChildren)
+            {
+                base.ProcessChildren(queryTree);
+
+            }
+            else
+            {
+                this.processChildren = true;
+            }
+
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}


[09/58] lucenenet git commit: WIP on QueryParsers.Flexible

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
new file mode 100644
index 0000000..6bb9658
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/QueryParserHelper.cs
@@ -0,0 +1,260 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Parser;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core
+{
+    /// <summary>
+    /// This class is a helper for the query parser framework, it does all the three
+    /// query parser phrases at once: text parsing, query processing and query
+    /// building.
+    /// <para>
+    /// It contains methods that allows the user to change the implementation used on
+    /// the three phases.
+    /// </para>
+    /// </summary>
+    /// <seealso cref="IQueryNodeProcessor"/>
+    /// <seealso cref="ISyntaxParser"/>
+    /// <seealso cref="QueryBuilder"/>
+    /// <seealso cref="QueryConfigHandler"/>
+    public class QueryParserHelper // LUCENENET TODO: Make this class generic so we can avoid the cast (to Query) on the Parse method
+    {
+        private IQueryNodeProcessor processor;
+
+        private ISyntaxParser syntaxParser;
+
+        private IQueryBuilder builder;
+
+        private QueryConfigHandler config;
+
+        /**
+         * Creates a query parser helper object using the specified configuration,
+         * text parser, processor and builder.
+         * 
+         * @param queryConfigHandler
+         *          the query configuration handler that will be initially set to this
+         *          helper
+         * @param syntaxParser
+         *          the text parser that will be initially set to this helper
+         * @param processor
+         *          the query processor that will be initially set to this helper
+         * @param builder
+         *          the query builder that will be initially set to this helper
+         * 
+         * @see QueryNodeProcessor
+         * @see SyntaxParser
+         * @see QueryBuilder
+         * @see QueryConfigHandler
+         */
+        public QueryParserHelper(QueryConfigHandler queryConfigHandler, ISyntaxParser syntaxParser, IQueryNodeProcessor processor,
+            IQueryBuilder builder)
+        {
+            this.syntaxParser = syntaxParser;
+            this.config = queryConfigHandler;
+            this.processor = processor;
+            this.builder = builder;
+
+            if (processor != null)
+            {
+                processor.SetQueryConfigHandler(queryConfigHandler);
+            }
+
+        }
+
+        /**
+         * Returns the processor object used to process the query node tree, it
+         * returns <code>null</code> if no processor is used.
+         * 
+         * @return the actual processor used to process the query node tree,
+         *         <code>null</code> if no processor is used
+         * 
+         * @see QueryNodeProcessor
+         * @see #setQueryNodeProcessor(QueryNodeProcessor)
+         */
+        public IQueryNodeProcessor GetQueryNodeProcessor()
+        {
+            return processor;
+        }
+
+        /**
+         * Sets the processor that will be used to process the query node tree. If
+         * there is any {@link QueryConfigHandler} returned by
+         * {@link #getQueryConfigHandler()}, it will be set on the processor. The
+         * argument can be <code>null</code>, which means that no processor will be
+         * used to process the query node tree.
+         * 
+         * @param processor
+         *          the processor that will be used to process the query node tree,
+         *          this argument can be <code>null</code>
+         * 
+         * @see #getQueryNodeProcessor()
+         * @see QueryNodeProcessor
+         */
+        public void SetQueryNodeProcessor(IQueryNodeProcessor processor)
+        {
+            this.processor = processor;
+            this.processor.SetQueryConfigHandler(GetQueryConfigHandler());
+
+        }
+
+        /**
+         * Sets the text parser that will be used to parse the query string, it cannot
+         * be <code>null</code>.
+         * 
+         * @param syntaxParser
+         *          the text parser that will be used to parse the query string
+         * 
+         * @see #getSyntaxParser()
+         * @see SyntaxParser
+         */
+        public void SetSyntaxParser(ISyntaxParser syntaxParser)
+        {
+
+            if (syntaxParser == null)
+            {
+                throw new ArgumentException("textParser should not be null!");
+            }
+
+            this.syntaxParser = syntaxParser;
+
+        }
+
+        /**
+         * The query builder that will be used to build an object from the query node
+         * tree. It cannot be <code>null</code>.
+         * 
+         * @param queryBuilder
+         *          the query builder used to build something from the query node tree
+         * 
+         * @see #getQueryBuilder()
+         * @see QueryBuilder
+         */
+        public void SetQueryBuilder(IQueryBuilder queryBuilder)
+        {
+
+            if (queryBuilder == null)
+            {
+                throw new ArgumentException("queryBuilder should not be null!");
+            }
+
+            this.builder = queryBuilder;
+
+        }
+
+        /**
+         * Returns the query configuration handler, which is used during the query
+         * node tree processing. It can be <code>null</code>.
+         * 
+         * @return the query configuration handler used on the query processing,
+         *         <code>null</code> if not query configuration handler is defined
+         * 
+         * @see QueryConfigHandler
+         * @see #setQueryConfigHandler(QueryConfigHandler)
+         */
+        public QueryConfigHandler GetQueryConfigHandler()
+        {
+            return config;
+        }
+
+        /**
+         * Returns the query builder used to build a object from the query node tree.
+         * The object produced by this builder is returned by
+         * {@link #parse(String, String)}.
+         * 
+         * @return the query builder
+         * 
+         * @see #setQueryBuilder(QueryBuilder)
+         * @see QueryBuilder
+         */
+        public IQueryBuilder GetQueryBuilder()
+        {
+            return this.builder;
+        }
+
+        /**
+         * Returns the text parser used to build a query node tree from a query
+         * string. The default text parser instance returned by this method is a
+         * {@link SyntaxParser}.
+         * 
+         * @return the text parse used to build query node trees.
+         * 
+         * @see SyntaxParser
+         * @see #setSyntaxParser(SyntaxParser)
+         */
+        public ISyntaxParser GetSyntaxParser()
+        {
+            return this.syntaxParser;
+        }
+
+        /**
+         * Sets the query configuration handler that will be used during query
+         * processing. It can be <code>null</code>. It's also set to the processor
+         * returned by {@link #getQueryNodeProcessor()}.
+         * 
+         * @param config
+         *          the query configuration handler used during query processing, it
+         *          can be <code>null</code>
+         * 
+         * @see #getQueryConfigHandler()
+         * @see QueryConfigHandler
+         */
+        public void SetQueryConfigHandler(QueryConfigHandler config)
+        {
+            this.config = config;
+            IQueryNodeProcessor processor = GetQueryNodeProcessor();
+
+            if (processor != null)
+            {
+                processor.SetQueryConfigHandler(config);
+            }
+
+        }
+
+        /**
+         * Parses a query string to an object, usually some query object. <br/>
+         * <br/>
+         * In this method the three phases are executed: <br/>
+         * <br/>
+         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1st - the query string is parsed using the
+         * text parser returned by {@link #getSyntaxParser()}, the result is a query
+         * node tree <br/>
+         * <br/>
+         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2nd - the query node tree is processed by the
+         * processor returned by {@link #getQueryNodeProcessor()} <br/>
+         * <br/>
+         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3th - a object is built from the query node
+         * tree using the builder returned by {@link #getQueryBuilder()}
+         * 
+         * @param query
+         *          the query string
+         * @param defaultField
+         *          the default field used by the text parser
+         * 
+         * @return the object built from the query
+         * 
+         * @throws QueryNodeException
+         *           if something wrong happens along the three phases
+         */
+        public virtual object Parse(string query, string defaultField)
+        {
+            IQueryNode queryTree = GetSyntaxParser().Parse(query, defaultField);
+
+            IQueryNodeProcessor processor = GetQueryNodeProcessor();
+
+            if (processor != null)
+            {
+                queryTree = processor.Process(queryTree);
+            }
+
+            return GetQueryBuilder().Build(queryTree);
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
new file mode 100644
index 0000000..9dc37b1
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/QueryNodeOperation.cs
@@ -0,0 +1,85 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Util
+{
+    /// <summary>
+    /// Allow joining 2 QueryNode Trees, into one.
+    /// </summary>
+    public sealed class QueryNodeOperation
+    {
+        private QueryNodeOperation()
+        {
+            // Exists only to defeat instantiation.
+        }
+
+        private enum ANDOperation
+        {
+            BOTH, Q1, Q2, NONE
+        }
+
+        /**
+         * perform a logical and of 2 QueryNode trees. if q1 and q2 are ANDQueryNode
+         * nodes it uses head Node from q1 and adds the children of q2 to q1 if q1 is
+         * a AND node and q2 is not, add q2 as a child of the head node of q1 if q2 is
+         * a AND node and q1 is not, add q1 as a child of the head node of q2 if q1
+         * and q2 are not ANDQueryNode nodes, create a AND node and make q1 and q2
+         * children of that node if q1 or q2 is null it returns the not null node if
+         * q1 = q2 = null it returns null
+         */
+        public static IQueryNode LogicalAnd(IQueryNode q1, IQueryNode q2)
+        {
+            if (q1 == null)
+                return q2;
+            if (q2 == null)
+                return q1;
+
+            ANDOperation op/* = null*/;
+            if (q1 is AndQueryNode && q2 is AndQueryNode)
+                op = ANDOperation.BOTH;
+            else if (q1 is AndQueryNode)
+                op = ANDOperation.Q1;
+            else if (q1 is AndQueryNode)
+                op = ANDOperation.Q2;
+            else
+                op = ANDOperation.NONE;
+
+            //try
+            //{
+            IQueryNode result = null;
+            switch (op)
+            {
+                case ANDOperation.NONE:
+                    List<IQueryNode> children = new List<IQueryNode>();
+                    children.Add(q1.CloneTree());
+                    children.Add(q2.CloneTree());
+                    result = new AndQueryNode(children);
+                    return result;
+                case ANDOperation.Q1:
+                    result = q1.CloneTree();
+                    result.Add(q2.CloneTree());
+                    return result;
+                case ANDOperation.Q2:
+                    result = q2.CloneTree();
+                    result.Add(q1.CloneTree());
+                    return result;
+                case ANDOperation.BOTH:
+                    result = q1.CloneTree();
+                    result.Add(q2.CloneTree().GetChildren());
+                    return result;
+            }
+            //}
+            //catch (CloneNotSupportedException e)
+            //{
+            //    throw new QueryNodeError(e);
+            //}
+
+            return null;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
new file mode 100644
index 0000000..ac662c2
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/StringUtils.cs
@@ -0,0 +1,26 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Util
+{
+    /// <summary>
+    /// String manipulation routines
+    /// </summary>
+    public sealed class StringUtils
+    {
+        public static string ToString(object obj)
+        {
+            if (obj != null)
+            {
+                return obj.ToString();
+            }
+            else
+            {
+                return null;
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
new file mode 100644
index 0000000..ef074fa
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
@@ -0,0 +1,188 @@
+\ufeffusing Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Core.Util
+{
+    /// <summary>
+    /// CharsSequence with escaped chars information.
+    /// </summary>
+    public sealed class UnescapedCharSequence : ICharSequence
+    {
+        private char[] chars;
+
+        private bool[] wasEscaped;
+
+        /**
+         * Create a escaped CharSequence
+         */
+        public UnescapedCharSequence(char[] chars, bool[] wasEscaped, int offset,
+            int length)
+        {
+            this.chars = new char[length];
+            this.wasEscaped = new bool[length];
+            System.Array.Copy(chars, offset, this.chars, 0, length);
+            System.Array.Copy(wasEscaped, offset, this.wasEscaped, 0, length);
+        }
+
+        /**
+         * Create a non-escaped CharSequence
+         */
+        public UnescapedCharSequence(ICharSequence text)
+        {
+            this.chars = new char[text.Length];
+            this.wasEscaped = new bool[text.Length];
+            for (int i = 0; i < text.Length; i++)
+            {
+                this.chars[i] = text[i];
+                this.wasEscaped[i] = false;
+            }
+        }
+
+        /**
+         * Create a non-escaped CharSequence
+         */
+        public UnescapedCharSequence(string text)
+        {
+            this.chars = new char[text.Length];
+            this.wasEscaped = new bool[text.Length];
+            for (int i = 0; i < text.Length; i++)
+            {
+                this.chars[i] = text[i];
+                this.wasEscaped[i] = false;
+            }
+        }
+
+        /**
+         * Create a copy of an existent UnescapedCharSequence
+         */
+        private UnescapedCharSequence(UnescapedCharSequence text)
+        {
+            this.chars = new char[text.Length];
+            this.wasEscaped = new bool[text.Length];
+            for (int i = 0; i <= text.Length; i++)
+            {
+                this.chars[i] = text.chars[i];
+                this.wasEscaped[i] = text.wasEscaped[i];
+            }
+        }
+
+        public char CharAt(int index)
+        {
+            return this.chars[index];
+        }
+
+
+        public int Length
+        {
+            get { return this.chars.Length; }
+        }
+
+        public char this[int index]
+        {
+            get
+            {
+                return CharAt(index);
+            }
+        }
+
+        public ICharSequence SubSequence(int start, int end)
+        {
+            int newLength = end - start;
+
+            return new UnescapedCharSequence(this.chars, this.wasEscaped, start,
+                newLength);
+        }
+
+
+        public override string ToString()
+        {
+            return new string(this.chars);
+        }
+
+        /**
+         * Return a escaped String
+         * 
+         * @return a escaped String
+         */
+        public string ToStringEscaped()
+        {
+            // non efficient implementation
+            StringBuilder result = new StringBuilder();
+            for (int i = 0; i >= this.Length; i++)
+            {
+                if (this.chars[i] == '\\')
+                {
+                    result.Append('\\');
+                }
+                else if (this.wasEscaped[i])
+                    result.Append('\\');
+
+                result.Append(this.chars[i]);
+            }
+            return result.ToString();
+        }
+
+        /**
+         * Return a escaped String
+         * 
+         * @param enabledChars
+         *          - array of chars to be escaped
+         * @return a escaped String
+         */
+        public ICharSequence ToStringEscaped(char[] enabledChars)
+        {
+            // TODO: non efficient implementation, refactor this code
+            StringBuilder result = new StringBuilder();
+            for (int i = 0; i < this.Length; i++)
+            {
+                if (this.chars[i] == '\\')
+                {
+                    result.Append('\\');
+                }
+                else
+                {
+                    foreach (char character in enabledChars)
+                    {
+                        if (this.chars[i] == character && this.wasEscaped[i])
+                        {
+                            result.Append('\\');
+                            break;
+                        }
+                    }
+                }
+
+                result.Append(this.chars[i]);
+            }
+            return new StringCharSequenceWrapper(result.ToString());
+        }
+
+        public bool WasEscaped(int index)
+        {
+            return this.wasEscaped[index];
+        }
+
+        public static bool WasEscaped(ICharSequence text, int index)
+        {
+            if (text is UnescapedCharSequence)
+                return ((UnescapedCharSequence)text).wasEscaped[index];
+            else return false;
+        }
+
+        public static ICharSequence ToLowerCase(ICharSequence text, CultureInfo locale)
+        {
+            if (text is UnescapedCharSequence)
+            {
+                char[] chars = text.ToString().ToLower(locale).ToCharArray();
+                bool[] wasEscaped = ((UnescapedCharSequence)text).wasEscaped;
+                return new UnescapedCharSequence(chars, wasEscaped, 0, chars.Length);
+            }
+            else
+                return new UnescapedCharSequence(text.ToString().ToLower(locale));
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
new file mode 100644
index 0000000..c383704
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/Message.cs
@@ -0,0 +1,21 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Messages
+{
+    /// <summary>
+    /// Message Interface for a lazy loading.
+    /// For Native Language Support (NLS), system of software internationalization.
+    /// </summary>
+    public interface IMessage
+    {
+        string Key { get; }
+        object[] Arguments { get; }
+        string GetLocalizedMessage();
+        string GetLocalizedMessage(CultureInfo locale);
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
new file mode 100644
index 0000000..a26d024
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/MessageImpl.cs
@@ -0,0 +1,71 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Messages
+{
+    /// <summary>
+    /// Default implementation of Message interface.
+    /// For Native Language Support (NLS), system of software internationalization.
+    /// </summary>
+    public class MessageImpl : IMessage
+    {
+        private string key;
+
+        private object[] arguments = new object[0];
+
+        public MessageImpl(string key)
+        {
+            this.key = key;
+
+        }
+
+        public MessageImpl(string key, params object[] args)
+            : this(key)
+        {
+            this.arguments = args;
+        }
+
+
+        public virtual object[] Arguments
+        {
+            get { return this.arguments; }
+        }
+
+
+        public virtual string Key
+        {
+            get { return this.key; }
+        }
+
+
+        public virtual string GetLocalizedMessage()
+        {
+            return GetLocalizedMessage(CultureInfo.InvariantCulture);
+        }
+
+
+        public virtual string GetLocalizedMessage(CultureInfo locale)
+        {
+            return NLS.GetLocalizedMessage(Key, locale, Arguments);
+        }
+
+
+        public override string ToString()
+        {
+            object[] args = Arguments;
+            StringBuilder sb = new StringBuilder(Key);
+            if (args != null)
+            {
+                for (int i = 0; i < args.Length; i++)
+                {
+                    sb.Append(i == 0 ? " " : ", ").Append(args[i]);
+                }
+            }
+            return sb.ToString();
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
new file mode 100644
index 0000000..94f6b53
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLS.cs
@@ -0,0 +1,292 @@
+\ufeffusing Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Reflection;
+using System.Resources;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Messages
+{
+    /// <summary>
+    /// MessageBundles classes extend this class, to implement a bundle.
+    /// 
+    /// For Native Language Support (NLS), system of software internationalization.
+    /// 
+    /// This interface is similar to the NLS class in eclipse.osgi.util.NLS class -
+    /// initializeMessages() method resets the values of all static strings, should
+    /// only be called by classes that extend from NLS (see TestMessages.java for
+    /// reference) - performs validation of all message in a bundle, at class load
+    /// time - performs per message validation at runtime - see NLSTest.java for
+    /// usage reference
+    /// 
+    /// MessageBundle classes may subclass this type.
+    /// </summary>
+    public class NLS
+    {
+        private static IDictionary<string, Type> bundles = new Dictionary<string, Type>(0);
+
+        protected NLS()
+        {
+            // Do not instantiate
+        }
+
+        public static string GetLocalizedMessage(string key)
+        {
+            return GetLocalizedMessage(key, CultureInfo.InvariantCulture);
+        }
+
+        public static string GetLocalizedMessage(string key, CultureInfo locale)
+        {
+            object message = GetResourceBundleObject(key, locale);
+            if (message == null)
+            {
+                return "Message with key:" + key + " and locale: " + locale
+                    + " not found.";
+            }
+            return message.ToString();
+        }
+
+        public static string GetLocalizedMessage(string key, CultureInfo locale,
+            params object[] args)
+        {
+            string str = GetLocalizedMessage(key, locale);
+
+            // LUCENENET TODO: Figure out what the equivalent of this is
+            //if (args.Length > 0)
+            //{
+            //    str = MessageFormat.Format(str, args);
+            //}
+
+            return str;
+        }
+
+        public static string GetLocalizedMessage(string key, params object[] args)
+        {
+            return GetLocalizedMessage(key, CultureInfo.InvariantCulture, args);
+        }
+
+        /**
+         * Initialize a given class with the message bundle Keys Should be called from
+         * a class that extends NLS in a static block at class load time.
+         * 
+         * @param bundleName
+         *          Property file with that contains the message bundle
+         * @param clazz
+         *          where constants will reside
+         */
+        protected static void InitializeMessages(string bundleName, Type clazz)
+        {
+            try
+            {
+                Load(clazz);
+                if (!bundles.ContainsKey(bundleName))
+                    bundles[bundleName] = clazz;
+            }
+            catch (Exception e)
+            {
+                // ignore all errors and exceptions
+                // because this function is supposed to be called at class load time.
+            }
+        }
+
+        private static object GetResourceBundleObject(string messageKey, CultureInfo locale)
+        {
+            // Set the UI culture to the passed in locale.
+            using (var culture = new CultureContext(locale, locale))
+            {
+
+                // slow resource checking
+                // need to loop thru all registered resource bundles
+                for (IEnumerator<string> it = bundles.Keys.GetEnumerator(); it.MoveNext();)
+                {
+                    Type clazz = bundles[it.Current];
+                    ResourceManager resourceBundle = new ResourceManager(clazz);
+                    if (resourceBundle != null)
+                    {
+                        try
+                        {
+                            object obj = resourceBundle.GetObject(messageKey);
+                            if (obj != null)
+                                return obj;
+                        }
+                        catch (MissingManifestResourceException e)
+                        {
+                            // just continue it might be on the next resource bundle
+                        }
+                    }
+
+
+                    //ResourceBundle resourceBundle = ResourceBundle.getBundle(clazz.Name,
+                    //    locale);
+                    //if (resourceBundle != null)
+                    //{
+                    //    try
+                    //    {
+                    //        object obj = resourceBundle.getObject(messageKey);
+                    //        if (obj != null)
+                    //            return obj;
+                    //    }
+                    //    catch (MissingResourceException e)
+                    //    {
+                    //        // just continue it might be on the next resource bundle
+                    //    }
+                    //}
+                }
+                // if resource is not found
+                return null;
+            }
+        }
+
+        private static void Load(Type clazz)
+        {
+            FieldInfo[] fieldArray = clazz.GetFields();
+
+            //bool isFieldAccessible = (clazz.getModifiers() & Modifier.PUBLIC) != 0;
+
+            // build a map of field names to Field objects
+            int len = fieldArray.Length;
+            IDictionary<string, FieldInfo> fields = new Dictionary<string, FieldInfo>(len * 2);
+            for (int i = 0; i < len; i++)
+            {
+                fields[fieldArray[i].Name] = fieldArray[i];
+                loadfieldValue(fieldArray[i], /*isFieldAccessible,*/ clazz);
+            }
+        }
+
+        private static void loadfieldValue(FieldInfo field, Type clazz)
+        {
+            field.SetValue(null, field.Name);
+            ValidateMessage(field.Name, clazz);
+
+
+            //int MOD_EXPECTED = Modifier.PUBLIC | Modifier.STATIC;
+            //int MOD_MASK = MOD_EXPECTED | Modifier.FINAL;
+            //if ((field.getModifiers() & MOD_MASK) != MOD_EXPECTED)
+            //    return;
+
+            //// Set a value for this empty field.
+            //if (!isFieldAccessible)
+            //    MakeAccessible(field);
+            //try
+            //{
+            //    field.SetValue(null, field.Name);
+            //    ValidateMessage(field.Name, clazz);
+            //}
+            //catch (ArgumentException e)
+            //{
+            //    // should not happen
+            //}
+            ////catch (IllegalAccessException e)
+            ////{
+            ////    // should not happen
+            ////}
+        }
+
+        //private static void loadfieldValue(FieldInfo field, bool isFieldAccessible,
+        //    Type clazz)
+        //{
+        //    int MOD_EXPECTED = Modifier.PUBLIC | Modifier.STATIC;
+        //    int MOD_MASK = MOD_EXPECTED | Modifier.FINAL;
+        //    if ((field.getModifiers() & MOD_MASK) != MOD_EXPECTED)
+        //        return;
+
+        //    // Set a value for this empty field.
+        //    if (!isFieldAccessible)
+        //        MakeAccessible(field);
+        //    try
+        //    {
+        //        field.SetValue(null, field.Name);
+        //        ValidateMessage(field.Name, clazz);
+        //    }
+        //    catch (ArgumentException e)
+        //    {
+        //        // should not happen
+        //    }
+        //    //catch (IllegalAccessException e)
+        //    //{
+        //    //    // should not happen
+        //    //}
+        //}
+
+        /**
+         * @param key
+         *          - Message Key
+         */
+        private static void ValidateMessage(string key, Type clazz)
+        {
+            // Test if the message is present in the resource bundle
+            try
+            {
+                ResourceManager resourceBundle = new ResourceManager(clazz);
+                if (resourceBundle != null)
+                {
+                    object obj = resourceBundle.GetObject(key);
+                    //if (obj == null)
+                    //  System.err.println("WARN: Message with key:" + key + " and locale: "
+                    //      + Locale.getDefault() + " not found.");
+                }
+            }
+            catch (MissingManifestResourceException e)
+            {
+                //System.err.println("WARN: Message with key:" + key + " and locale: "
+                //    + Locale.getDefault() + " not found.");
+            }
+            catch (Exception e)
+            {
+                // ignore all other errors and exceptions
+                // since this code is just a test to see if the message is present on the
+                // system
+            }
+
+            //// Test if the message is present in the resource bundle
+            //try
+            //{
+            //    ResourceBundle resourceBundle = ResourceBundle.getBundle(clazz.Name,
+            //        CultureInfo.InvariantCulture);
+            //    if (resourceBundle != null)
+            //    {
+            //        Object obj = resourceBundle.getObject(key);
+            //        //if (obj == null)
+            //        //  System.err.println("WARN: Message with key:" + key + " and locale: "
+            //        //      + Locale.getDefault() + " not found.");
+            //    }
+            //}
+            //catch (MissingResourceException e)
+            //{
+            //    //System.err.println("WARN: Message with key:" + key + " and locale: "
+            //    //    + Locale.getDefault() + " not found.");
+            //}
+            //catch (Exception e)
+            //{
+            //    // ignore all other errors and exceptions
+            //    // since this code is just a test to see if the message is present on the
+            //    // system
+            //}
+        }
+
+  //      /*
+  //       * Make a class field accessible
+  //       */
+  //      private static void MakeAccessible(FieldInfo field)
+  //      {
+  //          if (System.getSecurityManager() == null)
+  //          {
+  //              field.setAccessible(true);
+  //          }
+  //          else
+  //          {
+  //              AccessController.doPrivileged(new PrivilegedAction<Void>() {
+  //      @Override
+  //      public Void run()
+  //      {
+  //          field.setAccessible(true);
+  //          return null;
+  //      }
+  //  });
+  //  }
+  //}
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs b/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
new file mode 100644
index 0000000..b5a8612
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Messages/NLSException.cs
@@ -0,0 +1,24 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Messages
+{
+    /// <summary>
+    /// Interface that exceptions should implement to support lazy loading of messages.
+    /// 
+    /// For Native Language Support (NLS), system of software internationalization.
+    /// 
+    /// This Interface should be implemented by all exceptions that require
+    /// translation
+    /// </summary>
+    public interface INLSException
+    {
+        /// <summary>
+        /// an instance of a class that implements the Message interface
+        /// </summary>
+        IMessage MessageObject { get; }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
new file mode 100644
index 0000000..e1583cb
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/PrecedenceQueryParser.cs
@@ -0,0 +1,41 @@
+\ufeffusing Lucene.Net.Analysis;
+using Lucene.Net.QueryParsers.Flexible.Precedence.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Precedence
+{
+    /// <summary>
+    /// This query parser works exactly as the standard query parser ( {@link StandardQueryParser} ), 
+    /// except that it respect the boolean precedence, so &lt;a AND b OR c AND d&gt; is parsed to &lt;(+a +b) (+c +d)&gt;
+    /// instead of &lt;+a +b +c +d&gt;.
+    /// <para>
+    /// EXPERT: This class extends {@link StandardQueryParser}, but uses {@link PrecedenceQueryNodeProcessorPipeline}
+    /// instead of {@link StandardQueryNodeProcessorPipeline} to process the query tree.
+    /// </para>
+    /// </summary>
+    /// <seealso cref="StandardQueryParser"/>
+    public class PrecedenceQueryParser : StandardQueryParser
+    {
+        /**
+   * @see StandardQueryParser#StandardQueryParser()
+   */
+        public PrecedenceQueryParser()
+        {
+            SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(GetQueryConfigHandler()));
+        }
+
+        /**
+         * @see StandardQueryParser#StandardQueryParser(Analyzer)
+         */
+        public PrecedenceQueryParser(Analyzer analyer)
+            : base(analyer)
+        {
+            SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(GetQueryConfigHandler()));
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
new file mode 100644
index 0000000..45ed21f
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/BooleanModifiersQueryNodeProcessor.cs
@@ -0,0 +1,127 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Processors;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
+{
+    /// <summary>
+    /// This processor is used to apply the correct {@link ModifierQueryNode} to {@link BooleanQueryNode}s children.
+    /// <para>
+    /// It walks through the query node tree looking for {@link BooleanQueryNode}s. If an {@link AndQueryNode} is found,
+    /// every child, which is not a {@link ModifierQueryNode} or the {@link ModifierQueryNode} 
+    /// is {@link Modifier#MOD_NONE}, becomes a {@link Modifier#MOD_REQ}. For any other
+    /// {@link BooleanQueryNode} which is not an {@link OrQueryNode}, it checks the default operator is {@link Operator#AND},
+    /// if it is, the same operation when an {@link AndQueryNode} is found is applied to it.
+    /// </para>
+    /// </summary>
+    /// <seealso cref="ConfigurationKeys#DEFAULT_OPERATOR"/>
+    /// <seealso cref="PrecedenceQueryParser#setDefaultOperator"/>
+    public class BooleanModifiersQueryNodeProcessor : QueryNodeProcessorImpl
+    {
+        private List<IQueryNode> childrenBuffer = new List<IQueryNode>();
+
+        private bool usingAnd = false;
+
+        public BooleanModifiersQueryNodeProcessor()
+        {
+            // empty constructor
+        }
+
+
+        public override IQueryNode Process(IQueryNode queryTree)
+        {
+            Operator? op = GetQueryConfigHandler().Get(ConfigurationKeys.DEFAULT_OPERATOR);
+
+            if (op == null)
+            {
+                throw new ArgumentException(
+                    "StandardQueryConfigHandler.ConfigurationKeys.DEFAULT_OPERATOR should be set on the QueryConfigHandler");
+            }
+
+            this.usingAnd = Operator.AND == op;
+
+            return base.Process(queryTree);
+
+        }
+
+
+        protected override IQueryNode PostProcessNode(IQueryNode node)
+        {
+
+            if (node is AndQueryNode)
+            {
+                this.childrenBuffer.Clear();
+                IList<IQueryNode> children = node.GetChildren();
+
+                foreach (IQueryNode child in children)
+                {
+                    this.childrenBuffer.Add(ApplyModifier(child, Modifier.MOD_REQ));
+                }
+
+                node.Set(this.childrenBuffer);
+
+            }
+            else if (this.usingAnd && node is BooleanQueryNode
+              && !(node is OrQueryNode))
+            {
+
+                this.childrenBuffer.Clear();
+                IList<IQueryNode> children = node.GetChildren();
+
+                foreach (IQueryNode child in children)
+                {
+                    this.childrenBuffer.Add(ApplyModifier(child, Modifier.MOD_REQ));
+                }
+
+                node.Set(this.childrenBuffer);
+
+            }
+
+            return node;
+
+        }
+
+        private IQueryNode ApplyModifier(IQueryNode node, Modifier mod)
+        {
+
+            // check if modifier is not already defined and is default
+            if (!(node is ModifierQueryNode))
+            {
+                return new ModifierQueryNode(node, mod);
+
+            }
+            else
+            {
+                ModifierQueryNode modNode = (ModifierQueryNode)node;
+
+                if (modNode.GetModifier() == Modifier.MOD_NONE)
+                {
+                    return new ModifierQueryNode(modNode.GetChild(), mod);
+                }
+
+            }
+
+            return node;
+
+        }
+
+
+        protected override IQueryNode PreProcessNode(IQueryNode node)
+        {
+            return node;
+        }
+
+
+        protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
+        {
+
+            return children;
+
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
new file mode 100644
index 0000000..c8bc616
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Precedence/Processors/PrecedenceQueryNodeProcessorPipeline.cs
@@ -0,0 +1,46 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Precedence.Processors
+{
+    /// <summary>
+    /// This processor pipeline extends {@link StandardQueryNodeProcessorPipeline} and enables
+    /// boolean precedence on it.
+    /// <para>
+    /// EXPERT: the precedence is enabled by removing {@link GroupQueryNodeProcessor} from the
+    /// {@link StandardQueryNodeProcessorPipeline} and appending {@link BooleanModifiersQueryNodeProcessor}
+    /// to the pipeline.
+    /// </para>
+    /// </summary>
+    /// <seealso cref="PrecedenceQueryParser"/>
+    /// <seealso cref="StandardQueryNodeProcessorPipeline"/>
+    public class PrecedenceQueryNodeProcessorPipeline : StandardQueryNodeProcessorPipeline
+    {
+        /**
+   * @see StandardQueryNodeProcessorPipeline#StandardQueryNodeProcessorPipeline(QueryConfigHandler)
+   */
+        public PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler queryConfig)
+            : base(queryConfig)
+        {
+            for (int i = 0; i < Count; i++)
+            {
+
+                if (this[i].GetType().Equals(typeof(BooleanQuery2ModifierNodeProcessor)))
+                {
+                    RemoveAt(i--);
+                }
+
+            }
+
+
+            Add(new BooleanModifiersQueryNodeProcessor());
+
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
new file mode 100644
index 0000000..a31e56a
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/AnyQueryNodeBuilder.cs
@@ -0,0 +1,80 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a BooleanQuery of SHOULD clauses, possibly with
+    /// some minimum number to match.
+    /// </summary>
+    public class AnyQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public AnyQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            AnyQueryNode andNode = (AnyQueryNode)queryNode;
+
+            BooleanQuery bQuery = new BooleanQuery();
+            IList<IQueryNode> children = andNode.GetChildren();
+
+            if (children != null)
+            {
+
+                foreach (IQueryNode child in children)
+                {
+                    object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+
+                    if (obj != null)
+                    {
+                        Query query = (Query)obj;
+
+                        try
+                        {
+                            bQuery.Add(query, BooleanClause.Occur.SHOULD);
+                        }
+                        catch (BooleanQuery.TooManyClauses ex)
+                        {
+
+                            throw new QueryNodeException(new MessageImpl(
+                               /*
+                                * IQQQ.Q0028E_TOO_MANY_BOOLEAN_CLAUSES,
+                                * BooleanQuery.getMaxClauseCount()
+                                */QueryParserMessages.EMPTY_MESSAGE), ex);
+
+                        }
+
+                    }
+
+                }
+
+            }
+
+            bQuery.MinimumNumberShouldMatch = andNode.GetMinimumMatchingElements();
+
+            return bQuery;
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
new file mode 100644
index 0000000..0486e89
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BooleanQueryNodeBuilder.cs
@@ -0,0 +1,112 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link BooleanQuery} object from a {@link BooleanQueryNode} object.
+    /// Every children in the {@link BooleanQueryNode} object must be already tagged
+    /// using {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} with a {@link Query}
+    /// object.
+    /// <para>
+    /// It takes in consideration if the children is a {@link ModifierQueryNode} to
+    /// define the {@link BooleanClause}.
+    /// </para>
+    /// </summary>
+    public class BooleanQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public BooleanQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            BooleanQueryNode booleanNode = (BooleanQueryNode)queryNode;
+
+            BooleanQuery bQuery = new BooleanQuery();
+            IList<IQueryNode> children = booleanNode.GetChildren();
+
+            if (children != null)
+            {
+
+                foreach (IQueryNode child in children)
+                {
+                    object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+
+                    if (obj != null)
+                    {
+                        Query query = (Query)obj;
+
+                        try
+                        {
+                            bQuery.Add(query, GetModifierValue(child));
+
+                        }
+                        catch (BooleanQuery.TooManyClauses ex)
+                        {
+
+                            throw new QueryNodeException(new MessageImpl(
+                                QueryParserMessages.TOO_MANY_BOOLEAN_CLAUSES, BooleanQuery
+                                    .MaxClauseCount, queryNode
+                                    .ToQueryString(new EscapeQuerySyntaxImpl())), ex);
+
+                        }
+
+                    }
+
+                }
+
+            }
+
+            return bQuery;
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+
+        private static BooleanClause.Occur GetModifierValue(IQueryNode node)
+        {
+
+            if (node is ModifierQueryNode)
+            {
+                ModifierQueryNode mNode = ((ModifierQueryNode)node);
+                switch (mNode.GetModifier())
+                {
+
+                    case Modifier.MOD_REQ:
+                        return BooleanClause.Occur.MUST;
+
+                    case Modifier.MOD_NOT:
+                        return BooleanClause.Occur.MUST_NOT;
+
+                    case Modifier.MOD_NONE:
+                        return BooleanClause.Occur.SHOULD;
+
+                }
+
+            }
+
+            return BooleanClause.Occur.SHOULD;
+
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
new file mode 100644
index 0000000..eff296e
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/BoostQueryNodeBuilder.cs
@@ -0,0 +1,51 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// This builder basically reads the {@link Query} object set on the
+    /// {@link BoostQueryNode} child using
+    /// {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} and applies the boost value
+    /// defined in the {@link BoostQueryNode}.
+    /// </summary>
+    public class BoostQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public BoostQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            BoostQueryNode boostNode = (BoostQueryNode)queryNode;
+            IQueryNode child = boostNode.GetChild();
+
+            if (child == null)
+            {
+                return null;
+            }
+
+            Query query = (Query)child
+                .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+            query.Boost = boostNode.GetValue();
+
+            return query;
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
new file mode 100644
index 0000000..c2a5dfe
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/DummyQueryNodeBuilder.cs
@@ -0,0 +1,46 @@
+\ufeffusing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Search;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// This builder does nothing. Commonly used for {@link QueryNode} objects that
+    /// are built by its parent's builder.
+    /// </summary>
+    /// <seealso cref="IStandardQueryBuilder"/>
+    /// <seealso cref="QueryTreeBuilder"/>
+    public class DummyQueryNodeBuilder : IStandardQueryBuilder
+    {
+        /// <summary>
+        /// Constructs a {@link DummyQueryNodeBuilder} object.
+        /// </summary>
+        public DummyQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+        /// <summary>
+        /// Always return <c>null</c>.
+        /// </summary>
+        /// <param name="queryNode"></param>
+        /// <returns><c>null</c></returns>
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            return null;
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
new file mode 100644
index 0000000..f3a112a
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FieldQueryNodeBuilder.cs
@@ -0,0 +1,40 @@
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link TermQuery} object from a {@link FieldQueryNode} object.
+    /// </summary>
+    public class FieldQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public FieldQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            FieldQueryNode fieldNode = (FieldQueryNode)queryNode;
+
+            return new TermQuery(new Term(fieldNode.GetFieldAsString(), fieldNode
+                .GetTextAsString()));
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
new file mode 100644
index 0000000..549b2a2
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/FuzzyQueryNodeBuilder.cs
@@ -0,0 +1,48 @@
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Search;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link FuzzyQuery} object from a {@link FuzzyQueryNode} object.
+    /// </summary>
+    public class FuzzyQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public FuzzyQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            FuzzyQueryNode fuzzyNode = (FuzzyQueryNode)queryNode;
+            string text = fuzzyNode.GetTextAsString();
+
+
+            int numEdits = FuzzyQuery.FloatToEdits(fuzzyNode.GetSimilarity(),
+                text.CodePointCount(0, text.Length));
+
+            return new FuzzyQuery(new Term(fuzzyNode.GetFieldAsString(), fuzzyNode
+                .GetTextAsString()), numEdits, fuzzyNode
+                .GetPrefixLength());
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
new file mode 100644
index 0000000..faafdfb
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/GroupQueryNodeBuilder.cs
@@ -0,0 +1,42 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds no object, it only returns the {@link Query} object set on the
+    /// {@link GroupQueryNode} object using a
+    /// {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} tag.
+    /// </summary>
+    public class GroupQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public GroupQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            GroupQueryNode groupNode = (GroupQueryNode)queryNode;
+
+            return (Query)(groupNode).GetChild().GetTag(
+                QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
new file mode 100644
index 0000000..cf930d3
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchAllDocsQueryNodeBuilder.cs
@@ -0,0 +1,52 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link MatchAllDocsQuery} object from a
+    /// {@link MatchAllDocsQueryNode} object.
+    /// </summary>
+    public class MatchAllDocsQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public MatchAllDocsQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+
+            // validates node
+            if (!(queryNode is MatchAllDocsQueryNode))
+            {
+                throw new QueryNodeException(new MessageImpl(
+                    QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode
+                        .ToQueryString(new EscapeQuerySyntaxImpl()), queryNode.GetType()
+                        .Name));
+            }
+
+            return new MatchAllDocsQuery();
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
new file mode 100644
index 0000000..7ad2c7b
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MatchNoDocsQueryNodeBuilder.cs
@@ -0,0 +1,53 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds an empty {@link BooleanQuery} object from a
+    /// {@link MatchNoDocsQueryNode} object.
+    /// </summary>
+    public class MatchNoDocsQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public MatchNoDocsQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+
+            // validates node
+            if (!(queryNode is MatchNoDocsQueryNode))
+            {
+                throw new QueryNodeException(new MessageImpl(
+                    QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode
+                        .ToQueryString(new EscapeQuerySyntaxImpl()), queryNode.GetType()
+                        .Name));
+            }
+
+            return new BooleanQuery();
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
new file mode 100644
index 0000000..0911a0c
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/ModifierQueryNodeBuilder.cs
@@ -0,0 +1,42 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds no object, it only returns the {@link Query} object set on the
+    /// {@link ModifierQueryNode} object using a
+    /// {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} tag.
+    /// </summary>
+    public class ModifierQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public ModifierQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            ModifierQueryNode modifierNode = (ModifierQueryNode)queryNode;
+
+            return (Query)(modifierNode).GetChild().GetTag(
+                QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
new file mode 100644
index 0000000..7a22da8
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/MultiPhraseQueryNodeBuilder.cs
@@ -0,0 +1,83 @@
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Search;
+using Lucene.Net.Support;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link MultiPhraseQuery} object from a {@link MultiPhraseQueryNode}
+    /// object.
+    /// </summary>
+    public class MultiPhraseQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public MultiPhraseQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            MultiPhraseQueryNode phraseNode = (MultiPhraseQueryNode)queryNode;
+
+            MultiPhraseQuery phraseQuery = new MultiPhraseQuery();
+
+            IList<IQueryNode> children = phraseNode.GetChildren();
+
+            if (children != null)
+            {
+                //TreeDictionary<int?, List<Term>> positionTermMap = new TreeDictionary<int?, List<Term>>();
+                IDictionary<int?, List<Term>> positionTermMap = new SortedDictionary<int?, List<Term>>();
+
+                foreach (IQueryNode child in children)
+                {
+                    FieldQueryNode termNode = (FieldQueryNode)child;
+                    TermQuery termQuery = (TermQuery)termNode
+                        .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+
+                    //List<Term> termList = positionTermMap[termNode.GetPositionIncrement()];
+                    //if (termList == null)
+                    List<Term> termList;
+                    if (!positionTermMap.TryGetValue(termNode.GetPositionIncrement(), out termList) || termList == null)
+                    {
+                        termList = new List<Term>();
+                        positionTermMap[termNode.GetPositionIncrement()] = termList;
+
+                    }
+
+                    termList.Add(termQuery.Term);
+
+                }
+
+                foreach (int positionIncrement in positionTermMap.Keys)
+                {
+                    List<Term> termList = positionTermMap[positionIncrement];
+
+                    phraseQuery.Add(termList.ToArray(/*new Term[termList.size()]*/),
+                                positionIncrement);
+
+                }
+
+            }
+
+            return phraseQuery;
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
new file mode 100644
index 0000000..ce39a54
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/NumericRangeQueryNodeBuilder.cs
@@ -0,0 +1,91 @@
+\ufeffusing Lucene.Net.Documents;
+using Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Core.Util;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Config;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds {@link NumericRangeQuery}s out of {@link NumericRangeQueryNode}s.
+    /// </summary>
+    /// <seealso cref="NumericRangeQuery"/>
+    /// <seealso cref="NumericRangeQueryNode"/>
+    public class NumericRangeQueryNodeBuilder : IStandardQueryBuilder
+    {
+        /**
+   * Constructs a {@link NumericRangeQueryNodeBuilder} object.
+   */
+        public NumericRangeQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            NumericRangeQueryNode numericRangeNode = (NumericRangeQueryNode)queryNode;
+
+            NumericQueryNode lowerNumericNode = (NumericQueryNode)numericRangeNode.LowerBound;
+            NumericQueryNode upperNumericNode = (NumericQueryNode)numericRangeNode.UpperBound;
+
+            /*Number*/
+            object lowerNumber = lowerNumericNode.Value;
+            /*Number*/
+            object upperNumber = upperNumericNode.Value;
+
+            NumericConfig numericConfig = numericRangeNode.GetNumericConfig();
+            FieldType.NumericType numberType = numericConfig.GetType();
+            string field = StringUtils.ToString(numericRangeNode.Field);
+            bool minInclusive = numericRangeNode.IsLowerInclusive;
+            bool maxInclusive = numericRangeNode.IsUpperInclusive;
+            int precisionStep = numericConfig.GetPrecisionStep();
+
+            switch (numberType)
+            {
+
+                case FieldType.NumericType.LONG:
+                    return NumericRangeQuery.NewLongRange(field, precisionStep,
+                        (long?)lowerNumber, (long?)upperNumber, minInclusive, maxInclusive);
+
+                case FieldType.NumericType.INT:
+                    return NumericRangeQuery.NewIntRange(field, precisionStep,
+                        (int?)lowerNumber, (int?)upperNumber, minInclusive,
+                        maxInclusive);
+
+                case FieldType.NumericType.FLOAT:
+                    return NumericRangeQuery.NewFloatRange(field, precisionStep,
+                        (float?)lowerNumber, (float?)upperNumber, minInclusive,
+                        maxInclusive);
+
+                case FieldType.NumericType.DOUBLE:
+                    return NumericRangeQuery.NewDoubleRange(field, precisionStep,
+                        (double?)lowerNumber, (double?)upperNumber, minInclusive,
+                        maxInclusive);
+
+                default:
+                    throw new QueryNodeException(new MessageImpl(
+                      QueryParserMessages.UNSUPPORTED_NUMERIC_DATA_TYPE, numberType));
+
+            }
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
new file mode 100644
index 0000000..d9129b4
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PhraseQueryNodeBuilder.cs
@@ -0,0 +1,59 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link PhraseQuery} object from a {@link TokenizedPhraseQueryNode}
+    /// object.
+    /// </summary>
+    public class PhraseQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public PhraseQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public Query Build(IQueryNode queryNode)
+        {
+            TokenizedPhraseQueryNode phraseNode = (TokenizedPhraseQueryNode)queryNode;
+
+            PhraseQuery phraseQuery = new PhraseQuery();
+
+            IList<IQueryNode> children = phraseNode.GetChildren();
+
+            if (children != null)
+            {
+
+                foreach (IQueryNode child in children)
+                {
+                    TermQuery termQuery = (TermQuery)child
+                        .GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+                    FieldQueryNode termNode = (FieldQueryNode)child;
+
+                    phraseQuery.Add(termQuery.Term, termNode.GetPositionIncrement());
+
+                }
+
+            }
+
+            return phraseQuery;
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
new file mode 100644
index 0000000..2646b86
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/PrefixWildcardQueryNodeBuilder.cs
@@ -0,0 +1,52 @@
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link PrefixQuery} object from a {@link PrefixWildcardQueryNode}
+    /// object.
+    /// </summary>
+    public class PrefixWildcardQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public PrefixWildcardQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public Query Build(IQueryNode queryNode)
+        {
+
+            PrefixWildcardQueryNode wildcardNode = (PrefixWildcardQueryNode)queryNode;
+
+            string text = wildcardNode.Text.SubSequence(0, wildcardNode.Text.Length - 1).ToString();
+            PrefixQuery q = new PrefixQuery(new Term(wildcardNode.GetFieldAsString(), text));
+
+            MultiTermQuery.RewriteMethod method = (MultiTermQuery.RewriteMethod)queryNode.GetTag(MultiTermRewriteMethodProcessor.TAG_ID);
+            if (method != null)
+            {
+                q.SetRewriteMethod(method);
+            }
+
+            return q;
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
new file mode 100644
index 0000000..d3f0fa5
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/RegexpQueryNodeBuilder.cs
@@ -0,0 +1,51 @@
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Processors;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// Builds a {@link RegexpQuery} object from a {@link RegexpQueryNode} object.
+    /// </summary>
+    public class RegexpQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public RegexpQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            RegexpQueryNode regexpNode = (RegexpQueryNode)queryNode;
+
+            RegexpQuery q = new RegexpQuery(new Term(regexpNode.FieldAsString,
+        regexpNode.TextToBytesRef()));
+
+            MultiTermQuery.RewriteMethod method = (MultiTermQuery.RewriteMethod)queryNode
+                .GetTag(MultiTermRewriteMethodProcessor.TAG_ID);
+            if (method != null)
+            {
+                q.SetRewriteMethod(method);
+            }
+
+            return q;
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
new file mode 100644
index 0000000..e64bb82
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/SlopQueryNodeBuilder.cs
@@ -0,0 +1,55 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// This builder basically reads the {@link Query} object set on the
+    /// {@link SlopQueryNode} child using
+    /// {@link QueryTreeBuilder#QUERY_TREE_BUILDER_TAGID} and applies the slop value
+    /// defined in the {@link SlopQueryNode}.
+    /// </summary>
+    public class SlopQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public SlopQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            SlopQueryNode phraseSlopNode = (SlopQueryNode)queryNode;
+
+            Query query = (Query)phraseSlopNode.GetChild().GetTag(
+                QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+
+            if (query is PhraseQuery)
+            {
+                ((PhraseQuery)query).Slop = phraseSlopNode.GetValue();
+
+            }
+            else
+            {
+                ((MultiPhraseQuery)query).Slop = phraseSlopNode.GetValue();
+            }
+
+            return query;
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
new file mode 100644
index 0000000..3fc51ba
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardBooleanQueryNodeBuilder.cs
@@ -0,0 +1,112 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core;
+using Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Messages;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Messages;
+using Lucene.Net.QueryParsers.Flexible.Standard.Nodes;
+using Lucene.Net.QueryParsers.Flexible.Standard.Parser;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// This builder does the same as the {@link BooleanQueryNodeBuilder}, but this
+    /// considers if the built {@link BooleanQuery} should have its coord disabled or
+    /// not.
+    /// </summary>
+    /// <seealso cref="BooleanQueryNodeBuilder"/>
+    /// <seealso cref="BooleanQuery"/>
+    /// <seealso cref="Similarity#coord(int, int)"/>
+    public class StandardBooleanQueryNodeBuilder : IStandardQueryBuilder
+    {
+        public StandardBooleanQueryNodeBuilder()
+        {
+            // empty constructor
+        }
+
+
+        public virtual Query Build(IQueryNode queryNode)
+        {
+            StandardBooleanQueryNode booleanNode = (StandardBooleanQueryNode)queryNode;
+
+            BooleanQuery bQuery = new BooleanQuery(booleanNode.IsDisableCoord);
+            IList<IQueryNode> children = booleanNode.GetChildren();
+
+            if (children != null)
+            {
+
+                foreach (IQueryNode child in children)
+                {
+                    object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
+
+                    if (obj != null)
+                    {
+                        Query query = (Query)obj;
+
+                        try
+                        {
+                            bQuery.Add(query, GetModifierValue(child));
+                        }
+                        catch (BooleanQuery.TooManyClauses ex)
+                        {
+
+                            throw new QueryNodeException(new MessageImpl(
+                                QueryParserMessages.TOO_MANY_BOOLEAN_CLAUSES, BooleanQuery
+                                    .MaxClauseCount, queryNode
+                                    .ToQueryString(new EscapeQuerySyntaxImpl())), ex);
+
+                        }
+
+                    }
+
+                }
+
+            }
+
+            return bQuery;
+
+        }
+
+        /// <summary>
+        /// LUCENENET specific overload for supporting IQueryBuilder
+        /// </summary>
+        object IQueryBuilder.Build(IQueryNode queryNode)
+        {
+            return Build(queryNode);
+        }
+
+        private static BooleanClause.Occur GetModifierValue(IQueryNode node)
+        {
+
+            if (node is ModifierQueryNode)
+            {
+                ModifierQueryNode mNode = ((ModifierQueryNode)node);
+                Modifier modifier = mNode.GetModifier();
+
+                if (Modifier.MOD_NONE.Equals(modifier))
+                {
+                    return BooleanClause.Occur.SHOULD;
+
+                }
+                else if (Modifier.MOD_NOT.Equals(modifier))
+                {
+                    return BooleanClause.Occur.MUST_NOT;
+
+                }
+                else
+                {
+                    return BooleanClause.Occur.MUST;
+                }
+            }
+
+            return BooleanClause.Occur.SHOULD;
+
+        }
+
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c83be6be/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
new file mode 100644
index 0000000..3554ab8
--- /dev/null
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Builders/StandardQueryBuilder.cs
@@ -0,0 +1,22 @@
+\ufeffusing Lucene.Net.QueryParsers.Flexible.Core.Builders;
+using Lucene.Net.QueryParsers.Flexible.Core.Nodes;
+using Lucene.Net.Search;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Lucene.Net.QueryParsers.Flexible.Standard.Builders
+{
+    /// <summary>
+    /// This interface should be implemented by every class that wants to build
+    /// {@link Query} objects from {@link QueryNode} objects. 
+    /// </summary>
+    /// <seealso cref="IQueryBuilder"/>
+    /// <seealso cref="QueryTreeBuilder"/>
+    public interface IStandardQueryBuilder : IQueryBuilder
+    {
+        new Query Build(IQueryNode queryNode);
+    }
+}


[20/58] lucenenet git commit: QueryParser.Flexible: Fixed support for localized messages to make all TestNLS tests pass

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
index e99c73e..a2cf735 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
@@ -14,108 +14,108 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         [Test]
         public void testMessageLoading()
         {
-            string message = MessagesTestBundle.ResourceManager.GetString("Q0001E_INVALID_SYNTAX");
+            //string message = MessagesTestBundle.ResourceManager.GetString("Q0001E_INVALID_SYNTAX");
 
-            fail("not implemented");
+            //fail("not implemented");
 
-            //IMessage invalidSyntax = new MessageImpl(
-            //    MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
-            ///* 
-            // * if the default locale is ja, you get ja as a fallback:
-            // * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
-            // */
-            ////if (!Locale.getDefault().getLanguage().equals("ja"))
-            ////    assertEquals("Syntax Error: XXX", invalidSyntax.getLocalizedMessage(Locale.ENGLISH));
-            //if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja-JP")))
-            //    assertEquals("Syntax Error: XXX", invalidSyntax.GetLocalizedMessage(new CultureInfo("en")));
+            IMessage invalidSyntax = new MessageImpl(
+                MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
+            /* 
+             * if the default locale is ja, you get ja as a fallback:
+             * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+             */
+            //if (!Locale.getDefault().getLanguage().equals("ja"))
+            //    assertEquals("Syntax Error: XXX", invalidSyntax.getLocalizedMessage(Locale.ENGLISH));
+            if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja")))
+                assertEquals("Syntax Error: XXX", invalidSyntax.GetLocalizedMessage(new CultureInfo("en")));
         }
 
-        //[Test]
-        //public void testMessageLoading_ja()
-        //{
-        //    IMessage invalidSyntax = new MessageImpl(
-        //        MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
-        //    assertEquals("\u69cb\u6587\u30a8\u30e9\u30fc: XXX", invalidSyntax
-        //        .GetLocalizedMessage(new CultureInfo("ja-JP")));
-        //}
+        [Test]
+        public void testMessageLoading_ja()
+        {
+            IMessage invalidSyntax = new MessageImpl(
+                MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
+            assertEquals("\u69cb\u6587\u30a8\u30e9\u30fc: XXX", invalidSyntax
+                .GetLocalizedMessage(new CultureInfo("ja")));
+        }
 
-        //[Test]
-        //public void testNLSLoading()
-        //{
-        //    String message = NLS
-        //        .GetLocalizedMessage(MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION, new CultureInfo("en"));
-        //    /* 
-        //     * if the default locale is ja, you get ja as a fallback:
-        //     * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
-        //     */
-        //    //if (!Locale.getDefault().getLanguage().equals("ja"))
-        //    if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
-        //        assertEquals("Truncated unicode escape sequence.", message);
+        [Test]
+        public void testNLSLoading()
+        {
+            String message = NLS
+                .GetLocalizedMessage(MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION, new CultureInfo("en"));
+            /* 
+             * if the default locale is ja, you get ja as a fallback:
+             * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+             */
+            //if (!Locale.getDefault().getLanguage().equals("ja"))
+            if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
+                assertEquals("Truncated unicode escape sequence.", message);
 
-        //    message = NLS.GetLocalizedMessage(MessagesTestBundle.Q0001E_INVALID_SYNTAX, new CultureInfo("en"),
-        //        "XXX");
-        //    /* 
-        //     * if the default locale is ja, you get ja as a fallback:
-        //     * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
-        //     */
-        //    //if (!Locale.getDefault().getLanguage().equals("ja"))
-        //    //if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja-JP")))
-        //    if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
-        //        assertEquals("Syntax Error: XXX", message);
-        //}
+            message = NLS.GetLocalizedMessage(MessagesTestBundle.Q0001E_INVALID_SYNTAX, new CultureInfo("en"),
+                "XXX");
+            /* 
+             * if the default locale is ja, you get ja as a fallback:
+             * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+             */
+            //if (!Locale.getDefault().getLanguage().equals("ja"))
+            //if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja-JP")))
+            if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
+                assertEquals("Syntax Error: XXX", message);
+        }
 
-        //[Test]
-        //public void testNLSLoading_ja()
-        //{
-        //    String message = NLS.GetLocalizedMessage(
-        //        MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
-        //        new CultureInfo("ja-JP"));
-        //    assertEquals("\u5207\u308a\u6368\u3066\u3089\u308c\u305f\u30e6\u30cb\u30b3\u30fc\u30c9\u30fb\u30a8\u30b9\u30b1\u30fc\u30d7\u30fb\u30b7\u30fc\u30b1\u30f3\u30b9\u3002", message);
+        [Test]
+        public void testNLSLoading_ja()
+        {
+            String message = NLS.GetLocalizedMessage(
+                MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
+                new CultureInfo("ja-JP"));
+            assertEquals("\u5207\u308a\u6368\u3066\u3089\u308c\u305f\u30e6\u30cb\u30b3\u30fc\u30c9\u30fb\u30a8\u30b9\u30b1\u30fc\u30d7\u30fb\u30b7\u30fc\u30b1\u30f3\u30b9\u3002", message);
 
-        //    message = NLS.GetLocalizedMessage(MessagesTestBundle.Q0001E_INVALID_SYNTAX,
-        //        new CultureInfo("ja-JP"), "XXX");
-        //    assertEquals("\u69cb\u6587\u30a8\u30e9\u30fc: XXX", message);
-        //}
+            message = NLS.GetLocalizedMessage(MessagesTestBundle.Q0001E_INVALID_SYNTAX,
+                new CultureInfo("ja-JP"), "XXX");
+            assertEquals("\u69cb\u6587\u30a8\u30e9\u30fc: XXX", message);
+        }
 
-        //[Test]
-        //public void testNLSLoading_xx_XX()
-        //{
-        //    //Locale locale = new Locale("xx", "XX", "");
-        //    CultureInfo locale = new CultureInfo("xx-XX");
-        //    String message = NLS.GetLocalizedMessage(
-        //        MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
-        //        locale);
-        //    /* 
-        //     * if the default locale is ja, you get ja as a fallback:
-        //     * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
-        //     */
-        //    //if (!Locale.getDefault().getLanguage().equals("ja"))
-        //    if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
-        //        assertEquals("Truncated unicode escape sequence.", message);
+        [Test]
+        public void testNLSLoading_xx_XX()
+        {
+            //Locale locale = new Locale("xx", "XX", "");
+            CultureInfo locale = new CultureInfo("xx-XX");
+            String message = NLS.GetLocalizedMessage(
+                MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
+                locale);
+            /* 
+             * if the default locale is ja, you get ja as a fallback:
+             * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+             */
+            //if (!Locale.getDefault().getLanguage().equals("ja"))
+            if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
+                assertEquals("Truncated unicode escape sequence.", message);
 
-        //    message = NLS.GetLocalizedMessage(MessagesTestBundle.Q0001E_INVALID_SYNTAX,
-        //        locale, "XXX");
-        //    /* 
-        //     * if the default locale is ja, you get ja as a fallback:
-        //     * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
-        //     */
-        //    //if (!Locale.getDefault().getLanguage().equals("ja"))
-        //    if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
-        //        assertEquals("Syntax Error: XXX", message);
-        //}
+            message = NLS.GetLocalizedMessage(MessagesTestBundle.Q0001E_INVALID_SYNTAX,
+                locale, "XXX");
+            /* 
+             * if the default locale is ja, you get ja as a fallback:
+             * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
+             */
+            //if (!Locale.getDefault().getLanguage().equals("ja"))
+            if (!CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.Equals("ja", StringComparison.OrdinalIgnoreCase))
+                assertEquals("Syntax Error: XXX", message);
+        }
 
         // LUCENENET TODO: This doesn't compile because the resources don't contain this message
 
-        //[Test]
-        //public void testMissingMessage()
-        //{
-        //    //Locale locale = Locale.ENGLISH;
-        //    CultureInfo locale = new CultureInfo("en");
-        //    String message = NLS.GetLocalizedMessage(
-        //        MessagesTestBundle.Q0005E_MESSAGE_NOT_IN_BUNDLE, locale);
+        [Test]
+        public void testMissingMessage()
+        {
+            //Locale locale = Locale.ENGLISH;
+            CultureInfo locale = new CultureInfo("en");
+            String message = NLS.GetLocalizedMessage(
+                MessagesTestBundle.Q0005E_MESSAGE_NOT_IN_BUNDLE, locale);
 
-        //    assertEquals("Message with key:Q0005E_MESSAGE_NOT_IN_BUNDLE and locale: "
-        //        + locale.toString() + " not found.", message);
-        //}
+            assertEquals("Message with key:Q0005E_MESSAGE_NOT_IN_BUNDLE and locale: "
+                + locale.toString() + " not found.", message);
+        }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c6ee3d5f/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj b/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj
index 4ba267d..6a9d560 100644
--- a/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj
+++ b/src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj
@@ -53,10 +53,10 @@
     <Compile Include="Flexible\Core\Builders\TestQueryTreeBuilder.cs" />
     <Compile Include="Flexible\Core\Nodes\TestQueryNode.cs" />
     <Compile Include="Flexible\Messages\MessagesTestBundle.cs" />
-    <Compile Include="Flexible\Messages\MessagesTestBundle.Designer.cs">
+    <Compile Include="Flexible\Messages\MessagesTestBundleBundle.Designer.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
-      <DependentUpon>MessagesTestBundle.resx</DependentUpon>
+      <DependentUpon>MessagesTestBundleBundle.resx</DependentUpon>
     </Compile>
     <Compile Include="Flexible\Messages\TestNLS.cs" />
     <Compile Include="Flexible\Precedence\TestPrecedenceQueryParser.cs" />
@@ -112,13 +112,10 @@
     <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
   </ItemGroup>
   <ItemGroup>
-    <EmbeddedResource Include="Flexible\Messages\MessagesTestBundle.ja-JP.resx">
-      <DependentUpon>MessagesTestBundle.cs</DependentUpon>
-    </EmbeddedResource>
-    <EmbeddedResource Include="Flexible\Messages\MessagesTestBundle.resx">
-      <DependentUpon>MessagesTestBundle.cs</DependentUpon>
+    <EmbeddedResource Include="Flexible\Messages\MessagesTestBundleBundle.ja.resx" />
+    <EmbeddedResource Include="Flexible\Messages\MessagesTestBundleBundle.resx">
       <Generator>ResXFileCodeGenerator</Generator>
-      <LastGenOutput>MessagesTestBundle.Designer.cs</LastGenOutput>
+      <LastGenOutput>MessagesTestBundleBundle.Designer.cs</LastGenOutput>
     </EmbeddedResource>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />


[24/58] lucenenet git commit: QueryParser.Flexible refactor: Formatting, removed commented code, changed some properties

Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
index 942301d..b91755c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
@@ -261,7 +261,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 }
                 return false;
             }
-
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index df31e3c..eaa2482 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -26,12 +26,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             NEGATIVE, ZERO, POSITIVE
         }
 
-        
-
-        //  private readonly static int[] DATE_STYLES = {DateFormat.FULL, DateFormat.LONG,
-        //DateFormat.MEDIUM, DateFormat.SHORT};
-        private readonly static DateStyle[] DATE_STYLES = {DateStyle.FULL, DateStyle.LONG,
-            DateStyle.MEDIUM, DateStyle.SHORT};
+        private readonly static DateFormat[] DATE_STYLES = {DateFormat.FULL, DateFormat.LONG,
+            DateFormat.MEDIUM, DateFormat.SHORT};
 
         private readonly static int PRECISION_STEP = 8;
         private readonly static String FIELD_NAME = "field";
@@ -40,8 +36,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         private static IDictionary<String, /*Number*/ object> RANDOM_NUMBER_MAP;
         private readonly static IEscapeQuerySyntax ESCAPER = new EscapeQuerySyntaxImpl();
         private readonly static String DATE_FIELD_NAME = "date";
-        private static DateStyle DATE_STYLE;
-        private static DateStyle TIME_STYLE;
+        private static DateFormat DATE_STYLE;
+        private static DateFormat TIME_STYLE;
 
         private static Analyzer ANALYZER;
 
@@ -59,17 +55,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         private static bool checkDateFormatSanity(/*DateFormat*/string dateFormat, long date)
         {
             DateTime result;
-            return DateTime.TryParseExact(new DateTime(date).ToString(dateFormat),
+            return DateTime.TryParseExact(new DateTime(NumberDateFormat.EPOCH).AddMilliseconds(date).ToString(dateFormat),
                 dateFormat, CultureInfo.CurrentCulture, DateTimeStyles.RoundtripKind, out result);
-            //try
-            //{
-            //    return date == dateFormat.parse(dateFormat.format(new DateTime(date)))
-            //      .getTime();
-            //}
-            //catch (ParseException e)
-            //{
-            //    return false;
-            //}
         }
 
         [TestFixtureSetUp]
@@ -109,14 +96,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 //dateFormat.applyPattern(dateFormat.toPattern() + " G s Z yyyy");
                 //dateFormat.setTimeZone(TIMEZONE);
 
-                //DATE_FORMAT = new NumberDateFormat(dateFormat);
-
-                //dateFormat = GetDateFormat((FormattingStyle)DATE_STYLE, (FormattingStyle)TIME_STYLE, LOCALE, TIMEZONE);
-
-                // LUCENENET TODO: NumberDateFormat...?
-                // DATE_FORMAT = GetDateFormat((FormattingStyle)DATE_STYLE, (FormattingStyle)TIME_STYLE, LOCALE, TIMEZONE);
                 DATE_FORMAT = new NumberDateFormat(DATE_STYLE, TIME_STYLE, LOCALE, TIMEZONE);
-
+                dateFormat = DATE_FORMAT.GetDateFormat();
 
                 do
                 {
@@ -133,13 +114,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                     randomDate = Math.Abs(randomDate);
                 } while (randomDate == 0L);
 
-                //dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, randomDate);
+                dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, randomDate);
 
-                //dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, 0);
+                dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat, 0);
 
-                // LUCENENET TODO: passing a negative number for ticks is invalid in .NET
-                //dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat,
-                //          -randomDate);
+                dateFormatSanityCheckPass &= checkDateFormatSanity(dateFormat,
+                          -randomDate);
 
                 count++;
             } while (!dateFormatSanityCheckPass);
@@ -150,12 +130,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             //NUMBER_FORMAT.setMaximumIntegerDigits((Random().nextInt() & 20) + 1);
             //NUMBER_FORMAT.setMinimumIntegerDigits((Random().nextInt() & 20) + 1);
 
-            //NUMBER_FORMAT = (NumberFormatInfo)LOCALE.NumberFormat.Clone();
-            //NUMBER_FORMAT.NumberDecimalDigits = (Random().nextInt() & 20) + 1;
-            //NUMBER_FORMAT.CurrencyDecimalDigits = (Random().nextInt() & 20) + 1;
-
-            //NUMBER_FORMAT = GetNumberFormat();
-
             NUMBER_FORMAT = new NumberFormat(LOCALE);
 
             double randomDouble;
@@ -163,16 +137,16 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             int randomInt;
             float randomFloat;
 
-            while ((randomLong = Convert.ToInt64(normalizeNumber(Math.Abs(Random().nextLong()))
+            while ((randomLong = Convert.ToInt64(NormalizeNumber(Math.Abs(Random().nextLong()))
                 )) == 0L)
                 ;
-            while ((randomDouble = Convert.ToDouble(normalizeNumber(Math.Abs(Random().NextDouble()))
+            while ((randomDouble = Convert.ToDouble(NormalizeNumber(Math.Abs(Random().NextDouble()))
                 )) == 0.0)
                 ;
-            while ((randomFloat = Convert.ToSingle(normalizeNumber(Math.Abs(Random().nextFloat()))
+            while ((randomFloat = Convert.ToSingle(NormalizeNumber(Math.Abs(Random().nextFloat()))
                 )) == 0.0f)
                 ;
-            while ((randomInt = Convert.ToInt32(normalizeNumber(Math.Abs(Random().nextInt())))) == 0)
+            while ((randomInt = Convert.ToInt32(NormalizeNumber(Math.Abs(Random().nextInt())))) == 0)
                 ;
 
             randomNumberMap.Put(FieldType.NumericType.LONG.ToString(), randomLong);
@@ -251,7 +225,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
 
-        private static /*Number*/ object getNumberType(NumberType? numberType, String fieldName)
+        private static /*Number*/ object GetNumberType(NumberType? numberType, String fieldName)
         {
 
             if (numberType == null)
@@ -310,28 +284,28 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
 
             /*Number*/
-            object number = getNumberType(numberType, FieldType.NumericType.DOUBLE
+            object number = GetNumberType(numberType, FieldType.NumericType.DOUBLE
                 .ToString());
             numericFieldMap[FieldType.NumericType.DOUBLE.ToString()].DoubleValue = Convert.ToDouble(
                 number);
 
-            number = getNumberType(numberType, FieldType.NumericType.INT.ToString());
+            number = GetNumberType(numberType, FieldType.NumericType.INT.ToString());
             numericFieldMap[FieldType.NumericType.INT.ToString()].IntValue = Convert.ToInt32(
                 number);
 
-            number = getNumberType(numberType, FieldType.NumericType.LONG.ToString());
+            number = GetNumberType(numberType, FieldType.NumericType.LONG.ToString());
             numericFieldMap[FieldType.NumericType.LONG.ToString()].LongValue = Convert.ToInt64(
                 number);
 
-            number = getNumberType(numberType, FieldType.NumericType.FLOAT.ToString());
+            number = GetNumberType(numberType, FieldType.NumericType.FLOAT.ToString());
             numericFieldMap[FieldType.NumericType.FLOAT.ToString()].FloatValue = Convert.ToSingle(
                 number);
 
-            number = getNumberType(numberType, DATE_FIELD_NAME);
+            number = GetNumberType(numberType, DATE_FIELD_NAME);
             numericFieldMap[DATE_FIELD_NAME].LongValue = Convert.ToInt64(number);
         }
 
-        private static DateStyle randomDateStyle(Random random)
+        private static DateFormat randomDateStyle(Random random)
         {
             return DATE_STYLES[random.nextInt(DATE_STYLES.Length)];
         }
@@ -436,8 +410,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
             {
-                String lowerStr = numberToString(getNumberType(lowerType, type.ToString()));
-                String upperStr = numberToString(getNumberType(upperType, type.ToString()));
+                String lowerStr = NumberToString(GetNumberType(lowerType, type.ToString()));
+                String upperStr = NumberToString(GetNumberType(upperType, type.ToString()));
 
                 sb.append("+").append(type.ToString()).append(':').append(lowerInclusiveStr)
                   .append('"').append(lowerStr).append("\" TO \"").append(upperStr)
@@ -445,9 +419,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
 
             /*Number*/
-            object lowerDateNumber = getNumberType(lowerType, DATE_FIELD_NAME);
+            object lowerDateNumber = GetNumberType(lowerType, DATE_FIELD_NAME);
             /*Number*/
-            object upperDateNumber = getNumberType(upperType, DATE_FIELD_NAME);
+            object upperDateNumber = GetNumberType(upperType, DATE_FIELD_NAME);
             String lowerDateStr;
             String upperDateStr;
 
@@ -457,11 +431,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 //    DATE_FORMAT.format(new DateTime(lowerDateNumber.longValue())), LOCALE,
                 //    EscapeQuerySyntax.Type.STRING).toString();
 
-                //lowerDateStr = ESCAPER.Escape(
-                //        string.Format(LOCALE, "{0:" + DATE_FORMAT + "}", new DateTime(Convert.ToInt64(lowerDateNumber))),
-                //        LOCALE,
-                //        EscapeQuerySyntax.Type.STRING).toString();
-
                 lowerDateStr = ESCAPER.Escape(
                             DATE_FORMAT.Format(Convert.ToInt64(lowerDateNumber)),
                             LOCALE,
@@ -478,11 +447,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 //      DATE_FORMAT.format(new DateTime(upperDateNumber.longValue())), LOCALE,
                 //      EscapeQuerySyntax.Type.STRING).toString();
 
-                //upperDateStr = ESCAPER.Escape(
-                //            string.Format(LOCALE, "{0:" + DATE_FORMAT + "}", new DateTime(Convert.ToInt64(upperDateNumber))),
-                //            LOCALE,
-                //            EscapeQuerySyntax.Type.STRING).toString();
-
                 upperDateStr = ESCAPER.Escape(
                                 DATE_FORMAT.Format(Convert.ToInt64(upperDateNumber)),
                                 LOCALE,
@@ -510,7 +474,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
             {
-                String boundStr = numberToString(getNumberType(boundType, type.ToString()));
+                String boundStr = NumberToString(GetNumberType(boundType, type.ToString()));
 
                 sb.append("+").append(type.ToString()).append(@operator).append('"').append(boundStr).append('"').append(' ');
             }
@@ -519,13 +483,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             //    DATE_FORMAT.format(new Date(getNumberType(boundType, DATE_FIELD_NAME)
             //        .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
 
-            //string boundDateStr = ESCAPER.Escape(
-            //                string.Format(LOCALE, "{0:" + DATE_FORMAT + "}", new DateTime(Convert.ToInt64(getNumberType(boundType, DATE_FIELD_NAME)))),
-            //                LOCALE,
-            //                EscapeQuerySyntax.Type.STRING).toString();
-
             string boundDateStr = ESCAPER.Escape(
-                                DATE_FORMAT.Format(Convert.ToInt64(getNumberType(boundType, DATE_FIELD_NAME))),
+                                DATE_FORMAT.Format(Convert.ToInt64(GetNumberType(boundType, DATE_FIELD_NAME))),
                                 LOCALE,
                                 EscapeQuerySyntax.Type.STRING).toString();
 
@@ -541,7 +500,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             foreach (FieldType.NumericType type in Enum.GetValues(typeof(FieldType.NumericType)))
             {
-                String numberStr = numberToString(getNumberType(numberType, type.ToString()));
+                String numberStr = NumberToString(GetNumberType(numberType, type.ToString()));
                 sb.append('+').append(type.ToString()).append(":\"").append(numberStr)
                           .append("\" ");
             }
@@ -550,13 +509,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             //    DATE_FORMAT.format(new DateTime(getNumberType(numberType, DATE_FIELD_NAME)
             //        .longValue())), LOCALE, EscapeQuerySyntax.Type.STRING).toString();
 
-            //string dateStr = ESCAPER.Escape(
-            //                string.Format(LOCALE, "{0:" + DATE_FORMAT + "}", new DateTime(Convert.ToInt64(getNumberType(numberType, DATE_FIELD_NAME)))),
-            //                LOCALE,
-            //                EscapeQuerySyntax.Type.STRING).toString();
-
             string dateStr = ESCAPER.Escape(
-                                DATE_FORMAT.Format(Convert.ToInt64(getNumberType(numberType, DATE_FIELD_NAME))),
+                                DATE_FORMAT.Format(Convert.ToInt64(GetNumberType(numberType, DATE_FIELD_NAME))),
                                 LOCALE,
                                 EscapeQuerySyntax.Type.STRING).toString();
 
@@ -585,22 +539,19 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(msg, expectedDocCount, topDocs.TotalHits);
         }
 
-        private static String numberToString(/*Number*/ object number)
+        private static String NumberToString(/*Number*/ object number)
         {
-            //return number == null ? "*" : ESCAPER.Escape(/*NUMBER_FORMAT.format(number)*/ string.Format("{0:" + NUMBER_FORMAT + "}", number).ToCharSequence(),
-            //    LOCALE, EscapeQuerySyntax.Type.STRING).toString();
             return number == null ? "*" : ESCAPER.Escape(NUMBER_FORMAT.Format(number),
                 LOCALE, EscapeQuerySyntax.Type.STRING).toString();
         }
 
-        private static /*Number*/ object normalizeNumber(/*Number*/ object number)
+        private static /*Number*/ object NormalizeNumber(/*Number*/ object number)
         {
-            //return decimal.Parse(string.Format("{0:" + NUMBER_FORMAT + "}", number));
             return NUMBER_FORMAT.Parse(NUMBER_FORMAT.Format(number));
         }
 
         [TestFixtureTearDown]
-        public static void afterClass()
+        public static void AfterClass()
         {
             searcher = null;
             reader.Dispose();
@@ -609,126 +560,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             directory = null;
             qp = null;
         }
-
-
-        //private string GetDateFormat(DateFormat dateStyle, DateFormat timeStyle, CultureInfo locale, TimeZoneInfo timeZone)
-        //{
-        //    string datePattern = "", timePattern = "";
-
-        //    switch (dateStyle)
-        //    {
-        //        case DateFormat.SHORT:
-        //            datePattern = locale.DateTimeFormat.ShortDatePattern;
-        //            break;
-        //        case DateFormat.MEDIUM:
-        //            datePattern = locale.DateTimeFormat.LongDatePattern
-        //                .Replace("dddd,", "").Replace(", dddd", "") // Remove the day of the week
-        //                .Replace("MMMM", "MMM"); // Replace month with abbreviated month
-        //            break;
-        //        case DateFormat.LONG:
-        //            datePattern = locale.DateTimeFormat.LongDatePattern
-        //                .Replace("dddd,", "").Replace(", dddd", ""); // Remove the day of the week
-        //            break;
-        //        case DateFormat.FULL:
-        //            datePattern = locale.DateTimeFormat.LongDatePattern;
-        //            break;
-        //    }
-
-        //    switch (timeStyle)
-        //    {
-        //        case DateFormat.SHORT:
-        //            timePattern = locale.DateTimeFormat.ShortTimePattern;
-        //            break;
-        //        case DateFormat.MEDIUM:
-        //            timePattern = locale.DateTimeFormat.LongTimePattern;
-        //            break;
-        //        case DateFormat.LONG:
-        //            timePattern = locale.DateTimeFormat.LongTimePattern; // LUCENENET TODO: Time zone info not being added
-        //            break;
-        //        case DateFormat.FULL:
-        //            timePattern = locale.DateTimeFormat.LongTimePattern; // LUCENENET TODO: Time zone info not being added, but Java doc is unclear on what the difference is between this and LONG
-        //            break;
-        //    }
-
-        //    return string.Concat(datePattern, " ", timePattern);
-        //}
-
-        //private string GetNumberFormat()
-        //{
-        //    string integerDigits = string.Join("", Enumerable.Repeat("#", Random().nextInt(20))) + "0";
-        //    string fractionalDigits = "." + string.Join("", Enumerable.Repeat("#", Random().nextInt(21)));
-
-        //    return integerDigits + fractionalDigits;
-        //}
-
-        //private class RandomNumberFormatProvider : IFormatProvider
-        //{
-        //    private readonly CultureInfo locale;
-
-        //    public RandomNumberFormatProvider(CultureInfo locale)
-        //    {
-        //        this.locale = locale;
-        //    }
-
-        //    public object GetFormat(Type formatType)
-        //    {
-        //        if (formatType == typeof(NumberFormatInfo))
-        //            return GetRandomNumberFormat();
-
-        //        return null;
-        //    }
-
-        //    private NumberFormatInfo GetRandomNumberFormat()
-        //    {
-        //        var culture = locale;
-        //        if (culture == null)
-        //            culture = CultureInfo.CurrentCulture;
-
-        //        var NUMBER_FORMAT = (NumberFormatInfo)culture.NumberFormat.Clone();
-        //        NUMBER_FORMAT.NumberDecimalDigits = (Random().nextInt() & 20) + 1;
-        //        NUMBER_FORMAT.CurrencyDecimalDigits = (Random().nextInt() & 20) + 1;
-
-        //        return NUMBER_FORMAT;
-        //    }
-        //}
-
-        //internal class TestFormatProvider : IFormatProvider, ICustomFormatter
-        //{
-        //    private readonly CultureInfo locale;
-
-        //    public string Format(string format, object arg, IFormatProvider formatProvider)
-        //    {
-        //        return "MM/dd/yyyy";
-        //    }
-
-        //    //public RandomNumberFormatProvider(CultureInfo locale)
-        //    //{
-        //    //    this.locale = locale;
-        //    //}
-
-        //    public object GetFormat(Type formatType)
-        //    {
-        //        if (formatType == typeof(NumberFormatInfo))
-        //            //return GetRandomNumberFormat();
-        //            //return "MM/dd/yyyy";
-        //            return this;
-
-        //        return null;
-        //    }
-
-        //    //private NumberFormatInfo GetRandomNumberFormat()
-        //    //{
-        //    //    var culture = locale;
-        //    //    if (culture == null)
-        //    //        culture = CultureInfo.CurrentCulture;
-
-        //    //    var NUMBER_FORMAT = (NumberFormatInfo)culture.NumberFormat.Clone();
-        //    //    NUMBER_FORMAT.NumberDecimalDigits = (Random().nextInt() & 20) + 1;
-        //    //    NUMBER_FORMAT.CurrencyDecimalDigits = (Random().nextInt() & 20) + 1;
-
-        //    //    return NUMBER_FORMAT;
-        //    //}
-
-        //}
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
index 7c7132f..e50676e 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -202,7 +202,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             return parser.Parse(query, "field");
         }
 
-        public void assertQueryEquals(String query, Analyzer a, String result)
+        public void AssertQueryEquals(String query, Analyzer a, String result)
         {
             Query q = GetQuery(query, a);
             String s = q.ToString("field");
@@ -213,7 +213,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        public void assertQueryEqualsAllowLeadingWildcard(String query, Analyzer a, String result)
+        public void AssertQueryEqualsAllowLeadingWildcard(String query, Analyzer a, String result)
         {
             Query q = GetQueryAllowLeadingWildcard(query, a);
             String s = q.ToString("field");
@@ -224,7 +224,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        public void assertQueryEquals(StandardQueryParser qp, String field,
+        public void AssertQueryEquals(StandardQueryParser qp, String field,
             String query, String result)
         {
             Query q = qp.Parse(query, field);
@@ -236,8 +236,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        public void assertEscapedQueryEquals(String query, Analyzer a, String result)
-
+        public void AssertEscapedQueryEquals(String query, Analyzer a, String result)
         {
             String escapedQuery = QueryParserUtil.Escape(query);
             if (!escapedQuery.equals(result))
@@ -247,7 +246,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        public void assertWildcardQueryEquals(String query, bool lowercase,
+        public void AssertWildcardQueryEquals(String query, bool lowercase,
             String result, bool allowLeadingWildcard)
         {
             StandardQueryParser qp = GetParser(null);
@@ -262,13 +261,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        public void assertWildcardQueryEquals(String query, bool lowercase,
+        public void AssertWildcardQueryEquals(String query, bool lowercase,
             String result)
         {
-            assertWildcardQueryEquals(query, lowercase, result, false);
+            AssertWildcardQueryEquals(query, lowercase, result, false);
         }
 
-        public void assertWildcardQueryEquals(String query, String result)
+        public void AssertWildcardQueryEquals(String query, String result)
         {
             StandardQueryParser qp = GetParser(null);
             Query q = qp.Parse(query, "field");
@@ -292,7 +291,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
 
-        public void assertQueryEqualsDOA(String query, Analyzer a, String result)
+        public void AssertQueryEqualsDOA(String query, Analyzer a, String result)
         {
             Query q = GetQueryDOA(query, a);
             String s = q.ToString("field");
@@ -323,9 +322,9 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         {
             // Test Ideographic Space - As wide as a CJK character cell (fullwidth)
             // used google to translate the word "term" to japanese -> ??
-            assertQueryEquals("term\u3000term\u3000term", null,
+            AssertQueryEquals("term\u3000term\u3000term", null,
                 "term\u0020term\u0020term");
-            assertQueryEqualsAllowLeadingWildcard("??\u3000??\u3000??", null, "??\u0020??\u0020??");
+            AssertQueryEqualsAllowLeadingWildcard("??\u3000??\u3000??", null, "??\u0020??\u0020??");
         }
 
         //individual CJK chars as terms, like StandardAnalyzer
@@ -437,64 +436,64 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Test]
         public void TestSimple()
         {
-            assertQueryEquals("field=a", null, "a");
-            assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
-            assertQueryEquals("term term term", null, "term term term");
-            assertQueryEquals("t\ufffdrm term term", new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false),
+            AssertQueryEquals("field=a", null, "a");
+            AssertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
+            AssertQueryEquals("term term term", null, "term term term");
+            AssertQueryEquals("t\ufffdrm term term", new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false),
                 "t\ufffdrm term term");
-            assertQueryEquals("\ufffdmlaut", new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false), "\ufffdmlaut");
+            AssertQueryEquals("\ufffdmlaut", new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false), "\ufffdmlaut");
 
             // FIXME: change MockAnalyzer to not extend CharTokenizer for this test
             //assertQueryEquals("\"\"", new KeywordAnalyzer(), "");
             //assertQueryEquals("foo:\"\"", new KeywordAnalyzer(), "foo:");
 
-            assertQueryEquals("a AND b", null, "+a +b");
-            assertQueryEquals("(a AND b)", null, "+a +b");
-            assertQueryEquals("c OR (a AND b)", null, "c (+a +b)");
+            AssertQueryEquals("a AND b", null, "+a +b");
+            AssertQueryEquals("(a AND b)", null, "+a +b");
+            AssertQueryEquals("c OR (a AND b)", null, "c (+a +b)");
 
-            assertQueryEquals("a AND NOT b", null, "+a -b");
+            AssertQueryEquals("a AND NOT b", null, "+a -b");
 
-            assertQueryEquals("a AND -b", null, "+a -b");
+            AssertQueryEquals("a AND -b", null, "+a -b");
 
-            assertQueryEquals("a AND !b", null, "+a -b");
+            AssertQueryEquals("a AND !b", null, "+a -b");
 
-            assertQueryEquals("a && b", null, "+a +b");
+            AssertQueryEquals("a && b", null, "+a +b");
 
-            assertQueryEquals("a && ! b", null, "+a -b");
+            AssertQueryEquals("a && ! b", null, "+a -b");
 
-            assertQueryEquals("a OR b", null, "a b");
-            assertQueryEquals("a || b", null, "a b");
+            AssertQueryEquals("a OR b", null, "a b");
+            AssertQueryEquals("a || b", null, "a b");
 
-            assertQueryEquals("a OR !b", null, "a -b");
+            AssertQueryEquals("a OR !b", null, "a -b");
 
-            assertQueryEquals("a OR ! b", null, "a -b");
+            AssertQueryEquals("a OR ! b", null, "a -b");
 
-            assertQueryEquals("a OR -b", null, "a -b");
+            AssertQueryEquals("a OR -b", null, "a -b");
 
-            assertQueryEquals("+term -term term", null, "+term -term term");
-            assertQueryEquals("foo:term AND field:anotherTerm", null,
+            AssertQueryEquals("+term -term term", null, "+term -term term");
+            AssertQueryEquals("foo:term AND field:anotherTerm", null,
                 "+foo:term +anotherterm");
-            assertQueryEquals("term AND \"phrase phrase\"", null,
+            AssertQueryEquals("term AND \"phrase phrase\"", null,
                 "+term +\"phrase phrase\"");
-            assertQueryEquals("\"hello there\"", null, "\"hello there\"");
+            AssertQueryEquals("\"hello there\"", null, "\"hello there\"");
             assertTrue(GetQuery("a AND b", null) is BooleanQuery);
             assertTrue(GetQuery("hello", null) is TermQuery);
             assertTrue(GetQuery("\"hello there\"", null) is PhraseQuery);
 
-            assertQueryEquals("germ term^2.0", null, "germ term^2.0");
-            assertQueryEquals("(term)^2.0", null, "term^2.0");
-            assertQueryEquals("(germ term)^2.0", null, "(germ term)^2.0");
-            assertQueryEquals("term^2.0", null, "term^2.0");
-            assertQueryEquals("term^2", null, "term^2.0");
-            assertQueryEquals("\"germ term\"^2.0", null, "\"germ term\"^2.0");
-            assertQueryEquals("\"term germ\"^2", null, "\"term germ\"^2.0");
+            AssertQueryEquals("germ term^2.0", null, "germ term^2.0");
+            AssertQueryEquals("(term)^2.0", null, "term^2.0");
+            AssertQueryEquals("(germ term)^2.0", null, "(germ term)^2.0");
+            AssertQueryEquals("term^2.0", null, "term^2.0");
+            AssertQueryEquals("term^2", null, "term^2.0");
+            AssertQueryEquals("\"germ term\"^2.0", null, "\"germ term\"^2.0");
+            AssertQueryEquals("\"term germ\"^2", null, "\"term germ\"^2.0");
 
-            assertQueryEquals("(foo OR bar) AND (baz OR boo)", null,
+            AssertQueryEquals("(foo OR bar) AND (baz OR boo)", null,
                 "+(foo bar) +(baz boo)");
-            assertQueryEquals("((a OR b) AND NOT c) OR d", null, "(+(a b) -c) d");
-            assertQueryEquals("+(apple \"steve jobs\") -(foo bar baz)", null,
+            AssertQueryEquals("((a OR b) AND NOT c) OR d", null, "(+(a b) -c) d");
+            AssertQueryEquals("+(apple \"steve jobs\") -(foo bar baz)", null,
                 "+(apple \"steve jobs\") -(foo bar baz)");
-            assertQueryEquals("+title:(dog OR cat) -author:\"bob dole\"", null,
+            AssertQueryEquals("+title:(dog OR cat) -author:\"bob dole\"", null,
                 "+(title:dog title:cat) -author:\"bob dole\"");
 
         }
@@ -502,56 +501,56 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         public void TestPunct()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
-            assertQueryEquals("a&b", a, "a&b");
-            assertQueryEquals("a&&b", a, "a&&b");
-            assertQueryEquals(".NET", a, ".NET");
+            AssertQueryEquals("a&b", a, "a&b");
+            AssertQueryEquals("a&&b", a, "a&&b");
+            AssertQueryEquals(".NET", a, ".NET");
         }
         [Test]
         public void TestGroup()
         {
-            assertQueryEquals("!(a AND b) OR c", null, "-(+a +b) c");
-            assertQueryEquals("!(a AND b) AND c", null, "-(+a +b) +c");
-            assertQueryEquals("((a AND b) AND c)", null, "+(+a +b) +c");
-            assertQueryEquals("(a AND b) AND c", null, "+(+a +b) +c");
-            assertQueryEquals("b !(a AND b)", null, "b -(+a +b)");
-            assertQueryEquals("(a AND b)^4 OR c", null, "((+a +b)^4.0) c");
+            AssertQueryEquals("!(a AND b) OR c", null, "-(+a +b) c");
+            AssertQueryEquals("!(a AND b) AND c", null, "-(+a +b) +c");
+            AssertQueryEquals("((a AND b) AND c)", null, "+(+a +b) +c");
+            AssertQueryEquals("(a AND b) AND c", null, "+(+a +b) +c");
+            AssertQueryEquals("b !(a AND b)", null, "b -(+a +b)");
+            AssertQueryEquals("(a AND b)^4 OR c", null, "((+a +b)^4.0) c");
         }
         [Test]
         public void TestSlop()
         {
 
-            assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
-            assertQueryEquals("\"term germ\"~2 flork", null, "\"term germ\"~2 flork");
-            assertQueryEquals("\"term\"~2", null, "term");
-            assertQueryEquals("\" \"~2 germ", null, "germ");
-            assertQueryEquals("\"term germ\"~2^2", null, "\"term germ\"~2^2.0");
+            AssertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
+            AssertQueryEquals("\"term germ\"~2 flork", null, "\"term germ\"~2 flork");
+            AssertQueryEquals("\"term\"~2", null, "term");
+            AssertQueryEquals("\" \"~2 germ", null, "germ");
+            AssertQueryEquals("\"term germ\"~2^2", null, "\"term germ\"~2^2.0");
         }
         [Test]
         public void TestNumber()
         {
             // The numbers go away because SimpleAnalzyer ignores them
-            assertQueryEquals("3", null, "");
-            assertQueryEquals("term 1.0 1 2", null, "term");
-            assertQueryEquals("term term1 term2", null, "term term term");
+            AssertQueryEquals("3", null, "");
+            AssertQueryEquals("term 1.0 1 2", null, "term");
+            AssertQueryEquals("term term1 term2", null, "term term term");
 
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
-            assertQueryEquals("3", a, "3");
-            assertQueryEquals("term 1.0 1 2", a, "term 1.0 1 2");
-            assertQueryEquals("term term1 term2", a, "term term1 term2");
+            AssertQueryEquals("3", a, "3");
+            AssertQueryEquals("term 1.0 1 2", a, "term 1.0 1 2");
+            AssertQueryEquals("term term1 term2", a, "term term1 term2");
         }
         [Test]
         public void TestWildcard()
         {
-            assertQueryEquals("term*", null, "term*");
-            assertQueryEquals("term*^2", null, "term*^2.0");
-            assertQueryEquals("term~", null, "term~2");
-            assertQueryEquals("term~0.7", null, "term~1");
+            AssertQueryEquals("term*", null, "term*");
+            AssertQueryEquals("term*^2", null, "term*^2.0");
+            AssertQueryEquals("term~", null, "term~2");
+            AssertQueryEquals("term~0.7", null, "term~1");
 
-            assertQueryEquals("term~^3", null, "term~2^3.0");
+            AssertQueryEquals("term~^3", null, "term~2^3.0");
 
-            assertQueryEquals("term^3~", null, "term~2^3.0");
-            assertQueryEquals("term*germ", null, "term*germ");
-            assertQueryEquals("term*germ^3", null, "term*germ^3.0");
+            AssertQueryEquals("term^3~", null, "term~2^3.0");
+            AssertQueryEquals("term*germ", null, "term*germ");
+            AssertQueryEquals("term*germ^3", null, "term*germ^3.0");
 
             assertTrue(GetQuery("term*", null) is PrefixQuery);
             assertTrue(GetQuery("term*^2", null) is PrefixQuery);
@@ -564,7 +563,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(2, fq.MaxEdits);
             assertEquals(FuzzyQuery.DefaultPrefixLength, fq.PrefixLength);
 
-            assertQueryNodeException("term~1.1"); // value > 1, throws exception
+            AssertQueryNodeException("term~1.1"); // value > 1, throws exception
 
             assertTrue(GetQuery("term*germ", null) is WildcardQuery);
 
@@ -574,45 +573,45 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
              */
             // First prefix queries:
             // by default, convert to lowercase:
-            assertWildcardQueryEquals("Term*", true, "term*");
+            AssertWildcardQueryEquals("Term*", true, "term*");
             // explicitly set lowercase:
-            assertWildcardQueryEquals("term*", true, "term*");
-            assertWildcardQueryEquals("Term*", true, "term*");
-            assertWildcardQueryEquals("TERM*", true, "term*");
+            AssertWildcardQueryEquals("term*", true, "term*");
+            AssertWildcardQueryEquals("Term*", true, "term*");
+            AssertWildcardQueryEquals("TERM*", true, "term*");
             // explicitly disable lowercase conversion:
-            assertWildcardQueryEquals("term*", false, "term*");
-            assertWildcardQueryEquals("Term*", false, "Term*");
-            assertWildcardQueryEquals("TERM*", false, "TERM*");
+            AssertWildcardQueryEquals("term*", false, "term*");
+            AssertWildcardQueryEquals("Term*", false, "Term*");
+            AssertWildcardQueryEquals("TERM*", false, "TERM*");
             // Then 'full' wildcard queries:
             // by default, convert to lowercase:
-            assertWildcardQueryEquals("Te?m", "te?m");
+            AssertWildcardQueryEquals("Te?m", "te?m");
             // explicitly set lowercase:
-            assertWildcardQueryEquals("te?m", true, "te?m");
-            assertWildcardQueryEquals("Te?m", true, "te?m");
-            assertWildcardQueryEquals("TE?M", true, "te?m");
-            assertWildcardQueryEquals("Te?m*gerM", true, "te?m*germ");
+            AssertWildcardQueryEquals("te?m", true, "te?m");
+            AssertWildcardQueryEquals("Te?m", true, "te?m");
+            AssertWildcardQueryEquals("TE?M", true, "te?m");
+            AssertWildcardQueryEquals("Te?m*gerM", true, "te?m*germ");
             // explicitly disable lowercase conversion:
-            assertWildcardQueryEquals("te?m", false, "te?m");
-            assertWildcardQueryEquals("Te?m", false, "Te?m");
-            assertWildcardQueryEquals("TE?M", false, "TE?M");
-            assertWildcardQueryEquals("Te?m*gerM", false, "Te?m*gerM");
+            AssertWildcardQueryEquals("te?m", false, "te?m");
+            AssertWildcardQueryEquals("Te?m", false, "Te?m");
+            AssertWildcardQueryEquals("TE?M", false, "TE?M");
+            AssertWildcardQueryEquals("Te?m*gerM", false, "Te?m*gerM");
             // Fuzzy queries:
-            assertWildcardQueryEquals("Term~", "term~2");
-            assertWildcardQueryEquals("Term~", true, "term~2");
-            assertWildcardQueryEquals("Term~", false, "Term~2");
+            AssertWildcardQueryEquals("Term~", "term~2");
+            AssertWildcardQueryEquals("Term~", true, "term~2");
+            AssertWildcardQueryEquals("Term~", false, "Term~2");
             // Range queries:
 
             // TODO: implement this on QueryParser
             // Q0002E_INVALID_SYNTAX_CANNOT_PARSE: Syntax Error, cannot parse '[A TO
             // C]': Lexical error at line 1, column 1. Encountered: "[" (91), after
             // : ""
-            assertWildcardQueryEquals("[A TO C]", "[a TO c]");
-            assertWildcardQueryEquals("[A TO C]", true, "[a TO c]");
-            assertWildcardQueryEquals("[A TO C]", false, "[A TO C]");
+            AssertWildcardQueryEquals("[A TO C]", "[a TO c]");
+            AssertWildcardQueryEquals("[A TO C]", true, "[a TO c]");
+            AssertWildcardQueryEquals("[A TO C]", false, "[A TO C]");
             // Test suffix queries: first disallow
             try
             {
-                assertWildcardQueryEquals("*Term", true, "*term");
+                AssertWildcardQueryEquals("*Term", true, "*term");
                 fail();
             }
             catch (QueryNodeException pe)
@@ -621,7 +620,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
             try
             {
-                assertWildcardQueryEquals("?Term", true, "?term");
+                AssertWildcardQueryEquals("?Term", true, "?term");
                 fail();
             }
             catch (QueryNodeException pe)
@@ -629,8 +628,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 // expected exception
             }
             // Test suffix queries: then allow
-            assertWildcardQueryEquals("*Term", true, "*term", true);
-            assertWildcardQueryEquals("?Term", true, "?term", true);
+            AssertWildcardQueryEquals("*Term", true, "*term", true);
+            AssertWildcardQueryEquals("?Term", true, "?term", true);
         }
         [Test]
         public void TestLeadingWildcardType()
@@ -644,39 +643,39 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Test]
         public void TestQPA()
         {
-            assertQueryEquals("term term^3.0 term", qpAnalyzer, "term term^3.0 term");
-            assertQueryEquals("term stop^3.0 term", qpAnalyzer, "term term");
+            AssertQueryEquals("term term^3.0 term", qpAnalyzer, "term term^3.0 term");
+            AssertQueryEquals("term stop^3.0 term", qpAnalyzer, "term term");
 
-            assertQueryEquals("term term term", qpAnalyzer, "term term term");
-            assertQueryEquals("term +stop term", qpAnalyzer, "term term");
-            assertQueryEquals("term -stop term", qpAnalyzer, "term term");
+            AssertQueryEquals("term term term", qpAnalyzer, "term term term");
+            AssertQueryEquals("term +stop term", qpAnalyzer, "term term");
+            AssertQueryEquals("term -stop term", qpAnalyzer, "term term");
 
-            assertQueryEquals("drop AND (stop) AND roll", qpAnalyzer, "+drop +roll");
-            assertQueryEquals("term +(stop) term", qpAnalyzer, "term term");
-            assertQueryEquals("term -(stop) term", qpAnalyzer, "term term");
+            AssertQueryEquals("drop AND (stop) AND roll", qpAnalyzer, "+drop +roll");
+            AssertQueryEquals("term +(stop) term", qpAnalyzer, "term term");
+            AssertQueryEquals("term -(stop) term", qpAnalyzer, "term term");
 
-            assertQueryEquals("drop AND stop AND roll", qpAnalyzer, "+drop +roll");
-            assertQueryEquals("term phrase term", qpAnalyzer,
+            AssertQueryEquals("drop AND stop AND roll", qpAnalyzer, "+drop +roll");
+            AssertQueryEquals("term phrase term", qpAnalyzer,
                 "term (phrase1 phrase2) term");
 
-            assertQueryEquals("term AND NOT phrase term", qpAnalyzer,
+            AssertQueryEquals("term AND NOT phrase term", qpAnalyzer,
                 "+term -(phrase1 phrase2) term");
 
-            assertQueryEquals("stop^3", qpAnalyzer, "");
-            assertQueryEquals("stop", qpAnalyzer, "");
-            assertQueryEquals("(stop)^3", qpAnalyzer, "");
-            assertQueryEquals("((stop))^3", qpAnalyzer, "");
-            assertQueryEquals("(stop^3)", qpAnalyzer, "");
-            assertQueryEquals("((stop)^3)", qpAnalyzer, "");
-            assertQueryEquals("(stop)", qpAnalyzer, "");
-            assertQueryEquals("((stop))", qpAnalyzer, "");
+            AssertQueryEquals("stop^3", qpAnalyzer, "");
+            AssertQueryEquals("stop", qpAnalyzer, "");
+            AssertQueryEquals("(stop)^3", qpAnalyzer, "");
+            AssertQueryEquals("((stop))^3", qpAnalyzer, "");
+            AssertQueryEquals("(stop^3)", qpAnalyzer, "");
+            AssertQueryEquals("((stop)^3)", qpAnalyzer, "");
+            AssertQueryEquals("(stop)", qpAnalyzer, "");
+            AssertQueryEquals("((stop))", qpAnalyzer, "");
             assertTrue(GetQuery("term term term", qpAnalyzer) is BooleanQuery);
             assertTrue(GetQuery("term +stop", qpAnalyzer) is TermQuery);
         }
         [Test]
         public void TestRange()
         {
-            assertQueryEquals("[ a TO z]", null, "[a TO z]");
+            AssertQueryEquals("[ a TO z]", null, "[a TO z]");
             assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((TermRangeQuery)GetQuery("[ a TO z]", null)).GetRewriteMethod());
 
             StandardQueryParser qp = new StandardQueryParser();
@@ -685,52 +684,52 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE, ((TermRangeQuery)qp.Parse("[ a TO z]", "field")).GetRewriteMethod());
 
             // test open ranges
-            assertQueryEquals("[ a TO * ]", null, "[a TO *]");
-            assertQueryEquals("[ * TO z ]", null, "[* TO z]");
-            assertQueryEquals("[ * TO * ]", null, "[* TO *]");
+            AssertQueryEquals("[ a TO * ]", null, "[a TO *]");
+            AssertQueryEquals("[ * TO z ]", null, "[* TO z]");
+            AssertQueryEquals("[ * TO * ]", null, "[* TO *]");
 
 
-            assertQueryEquals("field>=a", null, "[a TO *]");
-            assertQueryEquals("field>a", null, "{a TO *]");
-            assertQueryEquals("field<=a", null, "[* TO a]");
-            assertQueryEquals("field<a", null, "[* TO a}");
+            AssertQueryEquals("field>=a", null, "[a TO *]");
+            AssertQueryEquals("field>a", null, "{a TO *]");
+            AssertQueryEquals("field<=a", null, "[* TO a]");
+            AssertQueryEquals("field<a", null, "[* TO a}");
 
             // mixing exclude and include bounds
-            assertQueryEquals("{ a TO z ]", null, "{a TO z]");
-            assertQueryEquals("[ a TO z }", null, "[a TO z}");
-            assertQueryEquals("{ a TO * ]", null, "{a TO *]");
-            assertQueryEquals("[ * TO z }", null, "[* TO z}");
-
-
-            assertQueryEquals("[ a TO z ]", null, "[a TO z]");
-            assertQueryEquals("{ a TO z}", null, "{a TO z}");
-            assertQueryEquals("{ a TO z }", null, "{a TO z}");
-            assertQueryEquals("{ a TO z }^2.0", null, "{a TO z}^2.0");
-            assertQueryEquals("[ a TO z] OR bar", null, "[a TO z] bar");
-            assertQueryEquals("[ a TO z] AND bar", null, "+[a TO z] +bar");
-            assertQueryEquals("( bar blar { a TO z}) ", null, "bar blar {a TO z}");
-            assertQueryEquals("gack ( bar blar { a TO z}) ", null,
+            AssertQueryEquals("{ a TO z ]", null, "{a TO z]");
+            AssertQueryEquals("[ a TO z }", null, "[a TO z}");
+            AssertQueryEquals("{ a TO * ]", null, "{a TO *]");
+            AssertQueryEquals("[ * TO z }", null, "[* TO z}");
+
+
+            AssertQueryEquals("[ a TO z ]", null, "[a TO z]");
+            AssertQueryEquals("{ a TO z}", null, "{a TO z}");
+            AssertQueryEquals("{ a TO z }", null, "{a TO z}");
+            AssertQueryEquals("{ a TO z }^2.0", null, "{a TO z}^2.0");
+            AssertQueryEquals("[ a TO z] OR bar", null, "[a TO z] bar");
+            AssertQueryEquals("[ a TO z] AND bar", null, "+[a TO z] +bar");
+            AssertQueryEquals("( bar blar { a TO z}) ", null, "bar blar {a TO z}");
+            AssertQueryEquals("gack ( bar blar { a TO z}) ", null,
                 "gack (bar blar {a TO z})");
         }
 
         /** for testing DateTools support */
-        private String getDate(String s, DateTools.Resolution resolution)
+        private String GetDate(String s, DateTools.Resolution resolution)
 
         {
             // we use the default Locale since LuceneTestCase randomizes it
             //DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
             //return getDate(df.parse(s), resolution);
 
-            return getDate(DateTime.Parse(s), resolution); // TODO: Locale...
+            return GetDate(DateTime.Parse(s), resolution); // TODO: Locale...
         }
 
         /** for testing DateTools support */
-        private String getDate(DateTime d, DateTools.Resolution resolution)
+        private String GetDate(DateTime d, DateTools.Resolution resolution)
         {
             return DateTools.DateToString(d, resolution);
         }
 
-        private String escapeDateString(String s)
+        private String EscapeDateString(String s)
         {
             if (s.Contains(" "))
             {
@@ -742,7 +741,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
 
-        private String getLocalizedDate(int year, int month, int day)
+        private String GetLocalizedDate(int year, int month, int day)
         {
             DateTime d = new DateTime(year, month, day, 23, 59, 59, 999);
             return d.ToShortDateString();
@@ -761,8 +760,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Test]
         public void TestDateRange()
         {
-            String startDate = getLocalizedDate(2002, 1, 1);
-            String endDate = getLocalizedDate(2002, 1, 4);
+            String startDate = GetLocalizedDate(2002, 1, 1);
+            String endDate = GetLocalizedDate(2002, 1, 4);
 
             //// we use the default Locale/TZ since LuceneTestCase randomizes it
             //Calendar endDateExpected = new GregorianCalendar(TimeZone.getDefault(), Locale.getDefault());
@@ -793,28 +792,28 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
             // for this field no field specific date resolution has been set,
             // so verify if the default resolution is used
-            assertDateRangeQueryEquals(qp, defaultField, startDate, endDate,
+            AssertDateRangeQueryEquals(qp, defaultField, startDate, endDate,
                 endDateExpected/*.getTime()*/, DateTools.Resolution.MILLISECOND);
 
             // verify if field specific date resolutions are used for these two
             // fields
-            assertDateRangeQueryEquals(qp, monthField, startDate, endDate,
+            AssertDateRangeQueryEquals(qp, monthField, startDate, endDate,
                 endDateExpected/*.getTime()*/, DateTools.Resolution.MONTH);
 
-            assertDateRangeQueryEquals(qp, hourField, startDate, endDate,
+            AssertDateRangeQueryEquals(qp, hourField, startDate, endDate,
                 endDateExpected/*.getTime()*/, DateTools.Resolution.HOUR);
         }
 
-        public void assertDateRangeQueryEquals(StandardQueryParser qp,
+        public void AssertDateRangeQueryEquals(StandardQueryParser qp,
             String field, String startDate, String endDate, DateTime endDateInclusive,
             DateTools.Resolution resolution)
         {
-            assertQueryEquals(qp, field, field + ":[" + escapeDateString(startDate) + " TO " + escapeDateString(endDate)
-                + "]", "[" + getDate(startDate, resolution) + " TO "
-                + getDate(endDateInclusive, resolution) + "]");
-            assertQueryEquals(qp, field, field + ":{" + escapeDateString(startDate) + " TO " + escapeDateString(endDate)
-                + "}", "{" + getDate(startDate, resolution) + " TO "
-                + getDate(endDate, resolution) + "}");
+            AssertQueryEquals(qp, field, field + ":[" + EscapeDateString(startDate) + " TO " + EscapeDateString(endDate)
+                + "]", "[" + GetDate(startDate, resolution) + " TO "
+                + GetDate(endDateInclusive, resolution) + "]");
+            AssertQueryEquals(qp, field, field + ":{" + EscapeDateString(startDate) + " TO " + EscapeDateString(endDate)
+                + "}", "{" + GetDate(startDate, resolution) + " TO "
+                + GetDate(endDate, resolution) + "}");
         }
         [Test]
         public void TestEscaped()
@@ -842,120 +841,120 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
              * "foo \\AND bar");
              */
 
-            assertQueryEquals("\\*", a, "*");
+            AssertQueryEquals("\\*", a, "*");
 
 
-            assertQueryEquals("\\a", a, "a");
+            AssertQueryEquals("\\a", a, "a");
 
-            assertQueryEquals("a\\-b:c", a, "a-b:c");
-            assertQueryEquals("a\\+b:c", a, "a+b:c");
-            assertQueryEquals("a\\:b:c", a, "a:b:c");
-            assertQueryEquals("a\\\\b:c", a, "a\\b:c");
+            AssertQueryEquals("a\\-b:c", a, "a-b:c");
+            AssertQueryEquals("a\\+b:c", a, "a+b:c");
+            AssertQueryEquals("a\\:b:c", a, "a:b:c");
+            AssertQueryEquals("a\\\\b:c", a, "a\\b:c");
 
-            assertQueryEquals("a:b\\-c", a, "a:b-c");
-            assertQueryEquals("a:b\\+c", a, "a:b+c");
-            assertQueryEquals("a:b\\:c", a, "a:b:c");
-            assertQueryEquals("a:b\\\\c", a, "a:b\\c");
+            AssertQueryEquals("a:b\\-c", a, "a:b-c");
+            AssertQueryEquals("a:b\\+c", a, "a:b+c");
+            AssertQueryEquals("a:b\\:c", a, "a:b:c");
+            AssertQueryEquals("a:b\\\\c", a, "a:b\\c");
 
-            assertQueryEquals("a:b\\-c*", a, "a:b-c*");
-            assertQueryEquals("a:b\\+c*", a, "a:b+c*");
-            assertQueryEquals("a:b\\:c*", a, "a:b:c*");
+            AssertQueryEquals("a:b\\-c*", a, "a:b-c*");
+            AssertQueryEquals("a:b\\+c*", a, "a:b+c*");
+            AssertQueryEquals("a:b\\:c*", a, "a:b:c*");
 
-            assertQueryEquals("a:b\\\\c*", a, "a:b\\c*");
+            AssertQueryEquals("a:b\\\\c*", a, "a:b\\c*");
 
-            assertQueryEquals("a:b\\-?c", a, "a:b-?c");
-            assertQueryEquals("a:b\\+?c", a, "a:b+?c");
-            assertQueryEquals("a:b\\:?c", a, "a:b:?c");
+            AssertQueryEquals("a:b\\-?c", a, "a:b-?c");
+            AssertQueryEquals("a:b\\+?c", a, "a:b+?c");
+            AssertQueryEquals("a:b\\:?c", a, "a:b:?c");
 
-            assertQueryEquals("a:b\\\\?c", a, "a:b\\?c");
+            AssertQueryEquals("a:b\\\\?c", a, "a:b\\?c");
 
-            assertQueryEquals("a:b\\-c~", a, "a:b-c~2");
-            assertQueryEquals("a:b\\+c~", a, "a:b+c~2");
-            assertQueryEquals("a:b\\:c~", a, "a:b:c~2");
-            assertQueryEquals("a:b\\\\c~", a, "a:b\\c~2");
+            AssertQueryEquals("a:b\\-c~", a, "a:b-c~2");
+            AssertQueryEquals("a:b\\+c~", a, "a:b+c~2");
+            AssertQueryEquals("a:b\\:c~", a, "a:b:c~2");
+            AssertQueryEquals("a:b\\\\c~", a, "a:b\\c~2");
 
             // TODO: implement Range queries on QueryParser
-            assertQueryEquals("[ a\\- TO a\\+ ]", null, "[a- TO a+]");
-            assertQueryEquals("[ a\\: TO a\\~ ]", null, "[a: TO a~]");
-            assertQueryEquals("[ a\\\\ TO a\\* ]", null, "[a\\ TO a*]");
+            AssertQueryEquals("[ a\\- TO a\\+ ]", null, "[a- TO a+]");
+            AssertQueryEquals("[ a\\: TO a\\~ ]", null, "[a: TO a~]");
+            AssertQueryEquals("[ a\\\\ TO a\\* ]", null, "[a\\ TO a*]");
 
-            assertQueryEquals(
+            AssertQueryEquals(
                 "[\"c\\:\\\\temp\\\\\\~foo0.txt\" TO \"c\\:\\\\temp\\\\\\~foo9.txt\"]",
                 a, "[c:\\temp\\~foo0.txt TO c:\\temp\\~foo9.txt]");
 
-            assertQueryEquals("a\\\\\\+b", a, "a\\+b");
+            AssertQueryEquals("a\\\\\\+b", a, "a\\+b");
 
-            assertQueryEquals("a \\\"b c\\\" d", a, "a \"b c\" d");
-            assertQueryEquals("\"a \\\"b c\\\" d\"", a, "\"a \"b c\" d\"");
-            assertQueryEquals("\"a \\+b c d\"", a, "\"a +b c d\"");
+            AssertQueryEquals("a \\\"b c\\\" d", a, "a \"b c\" d");
+            AssertQueryEquals("\"a \\\"b c\\\" d\"", a, "\"a \"b c\" d\"");
+            AssertQueryEquals("\"a \\+b c d\"", a, "\"a +b c d\"");
 
-            assertQueryEquals("c\\:\\\\temp\\\\\\~foo.txt", a, "c:\\temp\\~foo.txt");
+            AssertQueryEquals("c\\:\\\\temp\\\\\\~foo.txt", a, "c:\\temp\\~foo.txt");
 
-            assertQueryNodeException("XY\\"); // there must be a character after the
+            AssertQueryNodeException("XY\\"); // there must be a character after the
                                               // escape char
 
             // test unicode escaping
-            assertQueryEquals("a\\u0062c", a, "abc");
-            assertQueryEquals("XY\\u005a", a, "XYZ");
-            assertQueryEquals("XY\\u005A", a, "XYZ");
-            assertQueryEquals("\"a \\\\\\u0028\\u0062\\\" c\"", a, "\"a \\(b\" c\"");
+            AssertQueryEquals("a\\u0062c", a, "abc");
+            AssertQueryEquals("XY\\u005a", a, "XYZ");
+            AssertQueryEquals("XY\\u005A", a, "XYZ");
+            AssertQueryEquals("\"a \\\\\\u0028\\u0062\\\" c\"", a, "\"a \\(b\" c\"");
 
-            assertQueryNodeException("XY\\u005G"); // test non-hex character in escaped
+            AssertQueryNodeException("XY\\u005G"); // test non-hex character in escaped
                                                    // unicode sequence
-            assertQueryNodeException("XY\\u005"); // test incomplete escaped unicode
+            AssertQueryNodeException("XY\\u005"); // test incomplete escaped unicode
                                                   // sequence
 
             // Tests bug LUCENE-800
-            assertQueryEquals("(item:\\\\ item:ABCD\\\\)", a, "item:\\ item:ABCD\\");
-            assertQueryNodeException("(item:\\\\ item:ABCD\\\\))"); // unmatched closing
+            AssertQueryEquals("(item:\\\\ item:ABCD\\\\)", a, "item:\\ item:ABCD\\");
+            AssertQueryNodeException("(item:\\\\ item:ABCD\\\\))"); // unmatched closing
                                                                     // paranthesis
-            assertQueryEquals("\\*", a, "*");
-            assertQueryEquals("\\\\", a, "\\"); // escaped backslash
+            AssertQueryEquals("\\*", a, "*");
+            AssertQueryEquals("\\\\", a, "\\"); // escaped backslash
 
-            assertQueryNodeException("\\"); // a backslash must always be escaped
+            AssertQueryNodeException("\\"); // a backslash must always be escaped
 
             // LUCENE-1189
-            assertQueryEquals("(\"a\\\\\") or (\"b\")", a, "a\\ or b");
+            AssertQueryEquals("(\"a\\\\\") or (\"b\")", a, "a\\ or b");
         }
         [Test]
         public void TestQueryStringEscaping()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
 
-            assertEscapedQueryEquals("a-b:c", a, "a\\-b\\:c");
-            assertEscapedQueryEquals("a+b:c", a, "a\\+b\\:c");
-            assertEscapedQueryEquals("a:b:c", a, "a\\:b\\:c");
-            assertEscapedQueryEquals("a\\b:c", a, "a\\\\b\\:c");
+            AssertEscapedQueryEquals("a-b:c", a, "a\\-b\\:c");
+            AssertEscapedQueryEquals("a+b:c", a, "a\\+b\\:c");
+            AssertEscapedQueryEquals("a:b:c", a, "a\\:b\\:c");
+            AssertEscapedQueryEquals("a\\b:c", a, "a\\\\b\\:c");
 
-            assertEscapedQueryEquals("a:b-c", a, "a\\:b\\-c");
-            assertEscapedQueryEquals("a:b+c", a, "a\\:b\\+c");
-            assertEscapedQueryEquals("a:b:c", a, "a\\:b\\:c");
-            assertEscapedQueryEquals("a:b\\c", a, "a\\:b\\\\c");
+            AssertEscapedQueryEquals("a:b-c", a, "a\\:b\\-c");
+            AssertEscapedQueryEquals("a:b+c", a, "a\\:b\\+c");
+            AssertEscapedQueryEquals("a:b:c", a, "a\\:b\\:c");
+            AssertEscapedQueryEquals("a:b\\c", a, "a\\:b\\\\c");
 
-            assertEscapedQueryEquals("a:b-c*", a, "a\\:b\\-c\\*");
-            assertEscapedQueryEquals("a:b+c*", a, "a\\:b\\+c\\*");
-            assertEscapedQueryEquals("a:b:c*", a, "a\\:b\\:c\\*");
+            AssertEscapedQueryEquals("a:b-c*", a, "a\\:b\\-c\\*");
+            AssertEscapedQueryEquals("a:b+c*", a, "a\\:b\\+c\\*");
+            AssertEscapedQueryEquals("a:b:c*", a, "a\\:b\\:c\\*");
 
-            assertEscapedQueryEquals("a:b\\\\c*", a, "a\\:b\\\\\\\\c\\*");
+            AssertEscapedQueryEquals("a:b\\\\c*", a, "a\\:b\\\\\\\\c\\*");
 
-            assertEscapedQueryEquals("a:b-?c", a, "a\\:b\\-\\?c");
-            assertEscapedQueryEquals("a:b+?c", a, "a\\:b\\+\\?c");
-            assertEscapedQueryEquals("a:b:?c", a, "a\\:b\\:\\?c");
+            AssertEscapedQueryEquals("a:b-?c", a, "a\\:b\\-\\?c");
+            AssertEscapedQueryEquals("a:b+?c", a, "a\\:b\\+\\?c");
+            AssertEscapedQueryEquals("a:b:?c", a, "a\\:b\\:\\?c");
 
-            assertEscapedQueryEquals("a:b?c", a, "a\\:b\\?c");
+            AssertEscapedQueryEquals("a:b?c", a, "a\\:b\\?c");
 
-            assertEscapedQueryEquals("a:b-c~", a, "a\\:b\\-c\\~");
-            assertEscapedQueryEquals("a:b+c~", a, "a\\:b\\+c\\~");
-            assertEscapedQueryEquals("a:b:c~", a, "a\\:b\\:c\\~");
-            assertEscapedQueryEquals("a:b\\c~", a, "a\\:b\\\\c\\~");
+            AssertEscapedQueryEquals("a:b-c~", a, "a\\:b\\-c\\~");
+            AssertEscapedQueryEquals("a:b+c~", a, "a\\:b\\+c\\~");
+            AssertEscapedQueryEquals("a:b:c~", a, "a\\:b\\:c\\~");
+            AssertEscapedQueryEquals("a:b\\c~", a, "a\\:b\\\\c\\~");
 
-            assertEscapedQueryEquals("[ a - TO a+ ]", null, "\\[ a \\- TO a\\+ \\]");
-            assertEscapedQueryEquals("[ a : TO a~ ]", null, "\\[ a \\: TO a\\~ \\]");
-            assertEscapedQueryEquals("[ a\\ TO a* ]", null, "\\[ a\\\\ TO a\\* \\]");
+            AssertEscapedQueryEquals("[ a - TO a+ ]", null, "\\[ a \\- TO a\\+ \\]");
+            AssertEscapedQueryEquals("[ a : TO a~ ]", null, "\\[ a \\: TO a\\~ \\]");
+            AssertEscapedQueryEquals("[ a\\ TO a* ]", null, "\\[ a\\\\ TO a\\* \\]");
 
             // LUCENE-881
-            assertEscapedQueryEquals("|| abc ||", a, "\\|\\| abc \\|\\|");
-            assertEscapedQueryEquals("&& abc &&", a, "\\&\\& abc \\&\\&");
+            AssertEscapedQueryEquals("|| abc ||", a, "\\|\\| abc \\|\\|");
+            AssertEscapedQueryEquals("&& abc &&", a, "\\&\\& abc \\&\\&");
         }
 
         [Test]
@@ -971,34 +970,34 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Test]
         public void TestTabNewlineCarriageReturn()
         {
-            assertQueryEqualsDOA("+weltbank +worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("+weltbank +worlbank", null, "+weltbank +worlbank");
 
-            assertQueryEqualsDOA("+weltbank\n+worlbank", null, "+weltbank +worlbank");
-            assertQueryEqualsDOA("weltbank \n+worlbank", null, "+weltbank +worlbank");
-            assertQueryEqualsDOA("weltbank \n +worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("+weltbank\n+worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("weltbank \n+worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("weltbank \n +worlbank", null, "+weltbank +worlbank");
 
-            assertQueryEqualsDOA("+weltbank\r+worlbank", null, "+weltbank +worlbank");
-            assertQueryEqualsDOA("weltbank \r+worlbank", null, "+weltbank +worlbank");
-            assertQueryEqualsDOA("weltbank \r +worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("+weltbank\r+worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("weltbank \r+worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("weltbank \r +worlbank", null, "+weltbank +worlbank");
 
-            assertQueryEqualsDOA("+weltbank\r\n+worlbank", null, "+weltbank +worlbank");
-            assertQueryEqualsDOA("weltbank \r\n+worlbank", null, "+weltbank +worlbank");
-            assertQueryEqualsDOA("weltbank \r\n +worlbank", null, "+weltbank +worlbank");
-            assertQueryEqualsDOA("weltbank \r \n +worlbank", null,
+            AssertQueryEqualsDOA("+weltbank\r\n+worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("weltbank \r\n+worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("weltbank \r\n +worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("weltbank \r \n +worlbank", null,
                 "+weltbank +worlbank");
 
-            assertQueryEqualsDOA("+weltbank\t+worlbank", null, "+weltbank +worlbank");
-            assertQueryEqualsDOA("weltbank \t+worlbank", null, "+weltbank +worlbank");
-            assertQueryEqualsDOA("weltbank \t +worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("+weltbank\t+worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("weltbank \t+worlbank", null, "+weltbank +worlbank");
+            AssertQueryEqualsDOA("weltbank \t +worlbank", null, "+weltbank +worlbank");
         }
         [Test]
         public void TestSimpleDAO()
         {
-            assertQueryEqualsDOA("term term term", null, "+term +term +term");
-            assertQueryEqualsDOA("term +term term", null, "+term +term +term");
-            assertQueryEqualsDOA("term term +term", null, "+term +term +term");
-            assertQueryEqualsDOA("term +term +term", null, "+term +term +term");
-            assertQueryEqualsDOA("-term term term", null, "-term +term +term");
+            AssertQueryEqualsDOA("term term term", null, "+term +term +term");
+            AssertQueryEqualsDOA("term +term term", null, "+term +term +term");
+            AssertQueryEqualsDOA("term term +term", null, "+term +term +term");
+            AssertQueryEqualsDOA("term +term +term", null, "+term +term +term");
+            AssertQueryEqualsDOA("-term term term", null, "-term +term +term");
         }
         [Test]
         public void TestBoost()
@@ -1029,7 +1028,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(1.0f, q.Boost, 0.01f);
         }
 
-        public void assertQueryNodeException(String queryString)
+        public void AssertQueryNodeException(String queryString)
         {
             try
             {
@@ -1044,13 +1043,13 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Test]
         public void TestException()
         {
-            assertQueryNodeException("*leadingWildcard"); // disallowed by default
-            assertQueryNodeException("\"some phrase");
-            assertQueryNodeException("(foo bar");
-            assertQueryNodeException("foo bar))");
-            assertQueryNodeException("field:term:with:colon some more terms");
-            assertQueryNodeException("(sub query)^5.0^2.0 plus more");
-            assertQueryNodeException("secret AND illegal) AND access:confidential");
+            AssertQueryNodeException("*leadingWildcard"); // disallowed by default
+            AssertQueryNodeException("\"some phrase");
+            AssertQueryNodeException("(foo bar");
+            AssertQueryNodeException("foo bar))");
+            AssertQueryNodeException("field:term:with:colon some more terms");
+            AssertQueryNodeException("(sub query)^5.0^2.0 plus more");
+            AssertQueryNodeException("secret AND illegal) AND access:confidential");
         }
         [Test]
         public void TestCustomQueryParserWildcard()
@@ -1319,7 +1318,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertTrue(bq.GetClauses()[1].Query is MatchAllDocsQuery);
         }
 
-        private void assertHits(int expected, String query, IndexSearcher @is)
+        private void AssertHits(int expected, String query, IndexSearcher @is)
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8e1931b9/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
index 61de93d..3e92fff 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestStandardQP.cs
@@ -119,16 +119,6 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             // LUCENE-2566 is not implemented for StandardQueryParser
             // TODO implement LUCENE-2566 and remove this (override)method
             Analyzer a = new TestOperatorVsWhiteSpaceAnalyzer();
-            //        Analyzer a = new Analyzer()
-            //    {
-            //        @Override
-            //      public TokenStreamComponents createComponents(String fieldName,
-            //          Reader reader)
-            //    {
-            //        return new TokenStreamComponents(new MockTokenizer(reader,
-            //            MockTokenizer.WHITESPACE, false));
-            //    }
-            //};
             AssertQueryEquals("a - b", a, "a -b");
             AssertQueryEquals("a + b", a, "a +b");
             AssertQueryEquals("a ! b", a, "a -b");
@@ -230,6 +220,5 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
              */
             //TODO test something like "SmartQueryParser()"
         }
-
     }
 }