lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [11/11] lucenenet git commit: Lucene.Net.Analysis.Path refactor: member accessibility and documentation comments
Date Fri, 03 Feb 2017 17:51:17 GMT
Lucene.Net.Analysis.Path refactor: member accessibility and documentation comments


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

Branch: refs/heads/api-work
Commit: 30f14be685b2a62194a891c6ff8209efe62eed10
Parents: 100a8c5
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Feb 4 00:37:31 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Feb 4 00:45:32 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Path/PathHierarchyTokenizer.cs     |  7 +++---
 .../Path/PathHierarchyTokenizerFactory.cs       | 24 ++++++++++----------
 .../Path/ReversePathHierarchyTokenizer.cs       |  7 +++---
 3 files changed, 18 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/30f14be6/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizer.cs b/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizer.cs
index b2dc6cf..abab79f 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizer.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizer.cs
@@ -26,13 +26,13 @@ namespace Lucene.Net.Analysis.Path
     /// <para>
     /// Take something like:
     /// 
-    /// <pre>
+    /// <code>
     ///  /something/something/else
     /// </code>
     /// 
     /// and make:
     /// 
-    /// <pre>
+    /// <code>
     ///  /something
     ///  /something/something
     ///  /something/something/else
@@ -41,7 +41,6 @@ namespace Lucene.Net.Analysis.Path
     /// </summary>
     public class PathHierarchyTokenizer : Tokenizer
     {
-
         public PathHierarchyTokenizer(TextReader input)
             : this(input, DEFAULT_BUFFER_SIZE, DEFAULT_DELIMITER, DEFAULT_DELIMITER, DEFAULT_SKIP)
         {
@@ -222,7 +221,7 @@ namespace Lucene.Net.Analysis.Path
             return true;
         }
 
-        public override void End()
+        public override sealed void End()
         {
             base.End();
             // set final offset

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/30f14be6/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizerFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizerFactory.cs
b/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizerFactory.cs
index c25239b..2a5251e 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizerFactory.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Path/PathHierarchyTokenizerFactory.cs
@@ -26,15 +26,15 @@ namespace Lucene.Net.Analysis.Path
     /// Factory for <see cref="PathHierarchyTokenizer"/>. 
     /// <para>
     /// This factory is typically configured for use only in the <code>index</code>

-    /// Analyzer (or only in the <code>query</code> Analyzer, but never both).
+    /// Analyzer (or only in the <c>query</c> Analyzer, but never both).
     /// </para>
     /// <para>
     /// For example, in the configuration below a query for 
-    /// <code>Books/NonFic</code> will match documents indexed with values like

-    /// <code>Books/NonFic</code>, <code>Books/NonFic/Law</code>,

-    /// <code>Books/NonFic/Science/Physics</code>, etc. But it will not match

-    /// documents indexed with values like <code>Books</code>, or 
-    /// <code>Books/Fic</code>...
+    /// <c>Books/NonFic</c> will match documents indexed with values like 
+    /// <c>Books/NonFic</c>, <c>Books/NonFic/Law</c>, 
+    /// <c>Books/NonFic/Science/Physics</c>, etc. But it will not match 
+    /// documents indexed with values like <c>Books</c>, or 
+    /// <c>Books/Fic</c>...
     /// </para>
     /// 
     /// <code>
@@ -49,11 +49,11 @@ namespace Lucene.Net.Analysis.Path
     /// </code>
     /// <para>
     /// In this example however we see the oposite configuration, so that a query 
-    /// for <code>Books/NonFic/Science/Physics</code> would match documents 
-    /// containing <code>Books/NonFic</code>, <code>Books/NonFic/Science</code>,

-    /// or <code>Books/NonFic/Science/Physics</code>, but not 
-    /// <code>Books/NonFic/Science/Physics/Theory</code> or 
-    /// <code>Books/NonFic/Law</code>.
+    /// for <c>Books/NonFic/Science/Physics</c> would match documents 
+    /// containing <c>Books/NonFic</c>, <c>Books/NonFic/Science</c>,

+    /// or <c>Books/NonFic/Science/Physics</c>, but not 
+    /// <c>Books/NonFic/Science/Physics/Theory</c> or 
+    /// <c>Books/NonFic/Law</c>.
     /// </para>
     /// <code>
     /// &lt;fieldType name="descendent_path" class="solr.TextField"&gt;
@@ -74,7 +74,7 @@ namespace Lucene.Net.Analysis.Path
         private readonly int skip;
 
         /// <summary>
-        /// Creates a new PathHierarchyTokenizerFactory </summary>
+        /// Creates a new <see cref="PathHierarchyTokenizerFactory"/> </summary>
         public PathHierarchyTokenizerFactory(IDictionary<string, string> args)
             : base(args)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/30f14be6/src/Lucene.Net.Analysis.Common/Analysis/Path/ReversePathHierarchyTokenizer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Path/ReversePathHierarchyTokenizer.cs
b/src/Lucene.Net.Analysis.Common/Analysis/Path/ReversePathHierarchyTokenizer.cs
index 8def15d..09daf2b 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Path/ReversePathHierarchyTokenizer.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Path/ReversePathHierarchyTokenizer.cs
@@ -27,13 +27,13 @@ namespace Lucene.Net.Analysis.Path
     /// <para>
     /// Take something like:
     /// 
-    /// <pre>
+    /// <code>
     /// www.site.co.uk
     /// </code>
     /// 
     /// and make:
     /// 
-    /// <pre>
+    /// <code>
     /// www.site.co.uk
     /// site.co.uk
     /// co.uk
@@ -44,7 +44,6 @@ namespace Lucene.Net.Analysis.Path
     /// </summary>
     public class ReversePathHierarchyTokenizer : Tokenizer
     {
-
         public ReversePathHierarchyTokenizer(TextReader input)
             : this(input, DEFAULT_BUFFER_SIZE, DEFAULT_DELIMITER, DEFAULT_DELIMITER, DEFAULT_SKIP)
         {
@@ -198,7 +197,7 @@ namespace Lucene.Net.Analysis.Path
             return false;
         }
 
-        public override void End()
+        public override sealed void End()
         {
             base.End();
             // set final offset


Mime
View raw message