lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [15/58] lucenenet git commit: QueryParser.Flexible Refactor: Set member accessibility to the same as Lucene
Date Tue, 06 Dec 2016 15:11:50 GMT
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 <shad@shadstorhaug.com>
Authored: Tue Nov 29 17:17:14 2016 +0700
Committer: Shad Storhaug <shad@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!");


Mime
View raw message