[-t] [number_terms] [field]\n\t -t: order by totalTermFreq\n\n");
diff --git a/src/Lucene.Net.Misc/Misc/IndexMergeTool.cs b/src/Lucene.Net.Misc/Misc/IndexMergeTool.cs
index defd30841e..9801c21663 100644
--- a/src/Lucene.Net.Misc/Misc/IndexMergeTool.cs
+++ b/src/Lucene.Net.Misc/Misc/IndexMergeTool.cs
@@ -26,9 +26,26 @@ namespace Lucene.Net.Misc
///
/// Merges indices specified on the command line into the index
/// specified as the first command line argument.
+ ///
+ /// LUCENENET specific: This class is not for direct use. In the Java implementation
+ /// it's Main method was intended to be called from the command line. However in .NET a
+ /// method within a DLL can't be directly called from the command line so we
+ /// provide a lucene-cli
+ /// with a command that maps to that method: index merge.
+ ///
///
public static class IndexMergeTool // LUCENENET specific: CA1052 Static holder types should be Static or NotInheritable
{
+
+ ///
+ /// LUCENENET specific: This method is not for direct use. In the Java implementation
+ /// it was intended to be called from the command line. However in .NET a
+ /// method within a DLL can't be directly called from the command line so we
+ /// provide a lucene-cli
+ /// with a command that maps to this method: index merge.
+ ///
+ ///
+ ///
public static void Main(string[] args)
{
if (args.Length < 3)
@@ -68,4 +85,4 @@ public static void Main(string[] args)
Console.WriteLine("Done.");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Lucene.Net/Index/CheckIndex.cs b/src/Lucene.Net/Index/CheckIndex.cs
index 68c15734a7..a6000b104c 100644
--- a/src/Lucene.Net/Index/CheckIndex.cs
+++ b/src/Lucene.Net/Index/CheckIndex.cs
@@ -2363,6 +2363,17 @@ public virtual void FixIndex(Status result)
/////
///// this tool exits with exit code 1 if the index cannot be opened or has any
///// corruption, else 0.
+
+
+ ///
+ /// LUCENENET specific: This method is not for direct use. In the Java implementation
+ /// it was intended to be called from the command line. However in .NET a
+ /// method within a DLL can't be directly called from the command line so we
+ /// provide a lucene-cli
+ /// with a command that maps to this method: index check.
+ ///
+ ///
+ ///
[STAThread]
public static void Main(string[] args)
{
@@ -2524,4 +2535,4 @@ public static void Main(string[] args)
Environment.Exit(exitCode);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Lucene.Net/Index/IndexUpgrader.cs b/src/Lucene.Net/Index/IndexUpgrader.cs
index 841c312d23..7f1477546c 100644
--- a/src/Lucene.Net/Index/IndexUpgrader.cs
+++ b/src/Lucene.Net/Index/IndexUpgrader.cs
@@ -1,4 +1,4 @@
-using Lucene.Net.Util;
+using Lucene.Net.Util;
using System;
using System.Collections.Generic;
using System.IO;
@@ -29,12 +29,21 @@ namespace Lucene.Net.Index
using FSDirectory = Lucene.Net.Store.FSDirectory;
using InfoStream = Lucene.Net.Util.InfoStream;
+ // LUCENENET: Not used
+ /////
+ ///// java -cp lucene-core.jar Lucene.Net.Index.IndexUpgrader [-delete-prior-commits] [-verbose] indexDir
+ /////
+
///
/// This is an easy-to-use tool that upgrades all segments of an index from previous Lucene versions
- /// to the current segment file format. It can be used from command line:
- ///
- /// java -cp lucene-core.jar Lucene.Net.Index.IndexUpgrader [-delete-prior-commits] [-verbose] indexDir
- ///
+ /// to the current segment file format. It can be used from command line.
+ ///
+ /// LUCENENET specific: In the Java implementation this class' Main
+ /// method was intended to be called from the command line. However in .NET a
+ /// method within a DLL can't be directly called from the command line so we
+ /// provide a lucene-cli
+ /// with a command that maps to that method: index upgrade.
+ ///
/// Alternatively this class can be instantiated and invoked. It uses
/// and triggers the upgrade via an request to .
///
@@ -73,7 +82,16 @@ private static void PrintUsage()
///
/// Main method to run from the
/// command-line.
+ ///
+ /// LUCENENET specific: This method is not for direct use. In the Java implementation
+ /// it was intended to be called from the command line. However in .NET a
+ /// method within a DLL can't be directly called from the command line so we
+ /// provide a lucene-cli
+ /// with a command that maps to this method: index upgrade.
+ ///
///
+ ///
+ ///
public static void Main(string[] args)
{
ParseArgs(args).Upgrade();
@@ -218,4 +236,4 @@ public void Upgrade()
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Lucene.Net/Store/LockStressTest.cs b/src/Lucene.Net/Store/LockStressTest.cs
index b5dc516c4f..8a9a9c5521 100644
--- a/src/Lucene.Net/Store/LockStressTest.cs
+++ b/src/Lucene.Net/Store/LockStressTest.cs
@@ -26,15 +26,34 @@ namespace Lucene.Net.Store
* limitations under the License.
*/
+ // LUCENENET: Not used
+ /////Run without any args to see usage.
+
///
/// Simple standalone tool that forever acquires & releases a
- /// lock using a specific . Run without any args
- /// to see usage.
+ /// lock using a specific .
+ ///
+ /// LUCENENET specific: This class is not for direct use. In the Java implementation
+ /// it's Main method was intended to be called from the command line. However in .NET a
+ /// method within a DLL can't be directly called from the command line so we
+ /// provide a lucene-cli
+ /// with a command that maps to that method: lock stress-test.
+ ///
///
///
///
public static class LockStressTest // LUCENENET specific: CA1052 Static holder types should be Static or NotInheritable
{
+
+ ///
+ /// LUCENENET specific: This method is not for direct use. In the Java implementation
+ /// it was intended to be called from the command line. However in .NET a
+ /// method within a DLL can't be directly called from the command line so we
+ /// provide a lucene-cli
+ /// with a command that maps to this method: lock stress-test.
+ ///
+ ///
+ ///
[STAThread]
[SuppressMessage("CodeQuality", "IDE0079:Remove unnecessary suppression", Justification = "This is a SonarCloud issue")]
[SuppressMessage("Security Hotspot", "S2245:Using pseudorandom number generators (PRNGs) is security-sensitive", Justification = "The Random class is only used to generate a timeout value")]
@@ -172,4 +191,4 @@ public static void Main(string[] args)
Console.WriteLine("Finished " + count + " tries.");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Lucene.Net/Store/LockVerifyServer.cs b/src/Lucene.Net/Store/LockVerifyServer.cs
index 203afa121d..2aa64bb235 100644
--- a/src/Lucene.Net/Store/LockVerifyServer.cs
+++ b/src/Lucene.Net/Store/LockVerifyServer.cs
@@ -30,16 +30,35 @@ namespace Lucene.Net.Store
using IOUtils = Lucene.Net.Util.IOUtils;
+ // LUCENENET: Not used
+ ///// Run without any args to see usage.
+
///
/// Simple standalone server that must be running when you
/// use . This server simply
/// verifies at most one process holds the lock at a time.
- /// Run without any args to see usage.
+ ///
+ /// LUCENENET specific: This class is not for direct use. In the Java implementation
+ /// it's Main method was intended to be called from the command line. However in .NET a
+ /// method within a DLL can't be directly called from the command line so we
+ /// provide a lucene-cli
+ /// with a command that maps to that method: lock verify-server.
+ ///
///
///
///
public static class LockVerifyServer // LUCENENET specific: CA1052 Static holder types should be Static or NotInheritable
{
+
+ ///
+ /// LUCENENET specific: This method is not for direct use. In the Java implementation
+ /// it was intended to be called from the command line. However in .NET a
+ /// method within a DLL can't be directly called from the command line so we
+ /// provide a lucene-cli
+ /// with a command that maps to this method: lock verify-server.
+ ///
+ ///
+ ///
[STAThread]
public static void Main(string[] args)
{
@@ -194,4 +213,4 @@ public override void Run()
}
}
}
-}
\ No newline at end of file
+}