You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by pa...@apache.org on 2026/06/10 19:48:26 UTC
(lucenenet) branch master updated: misc: fix typos (#1329)
This is an automated email from the ASF dual-hosted git repository.
paulirwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
The following commit(s) were added to refs/heads/master by this push:
new ff956eeb1 misc: fix typos (#1329)
ff956eeb1 is described below
commit ff956eeb1881d4cdc4cd8da0db765459da77b194
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Thu Jun 11 05:48:21 2026 +1000
misc: fix typos (#1329)
---
.github/linters/codespell.txt | 9 ---------
.../Taxonomy/Directory/DirectoryTaxonomyReader.cs | 2 +-
.../Codecs/Lucene41Ords/Lucene41WithOrds.cs | 2 +-
src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs | 4 ++--
src/Lucene.Net.TestFramework/Util/TestUtil.cs | 2 +-
.../Analysis/Core/TestFactories.cs | 6 +++---
.../Egothor.Stemmer/TestStemmer.cs | 4 ++--
src/Lucene.Net.Tests/Index/TestIndexWriterConfig.cs | 2 +-
src/Lucene.Net.Tests/Index/TestTermsEnum.cs | 2 +-
src/Lucene.Net.Tests/Search/TestTermRangeQuery.cs | 2 +-
src/Lucene.Net/Index/UpgradeIndexMergePolicy.cs | 2 +-
src/Lucene.Net/Search/ControlledRealTimeReopenThread.cs | 2 +-
src/Lucene.Net/Search/FieldValueHitQueue.cs | 2 +-
src/Lucene.Net/Support/Util/IProperties.cs | 6 +++---
src/Lucene.Net/Support/Util/Properties.cs | 6 +++---
src/Lucene.Net/Support/Util/SystemProperties.cs | 6 +++---
src/Lucene.Net/Util/IOUtils.cs | 4 ++--
src/Lucene.Net/Util/ThreadInterruptedException.cs | 2 +-
websites/site/contributing/how-to-setup-java-lucene-debugging.md | 2 +-
19 files changed, 29 insertions(+), 38 deletions(-)
diff --git a/.github/linters/codespell.txt b/.github/linters/codespell.txt
index 354b9b1d3..2d0311af3 100644
--- a/.github/linters/codespell.txt
+++ b/.github/linters/codespell.txt
@@ -1,6 +1,5 @@
abl
acccount
-accessability
accidently
aci
addin
@@ -46,7 +45,6 @@ becaus
bellow
bloc
blockin
-boostrap
brunch
bu
bufferin
@@ -77,7 +75,6 @@ connexion
contians
continously
contro
-contsructor
convertable
conveyer
coo
@@ -89,7 +86,6 @@ countr
covert
cunt
curren
-customizeable
dalmation
decalaration
degrates
@@ -98,14 +94,12 @@ deines
dependant
despatch
despatches
-detecing
didnt
diposing
discreet
discus
displaing
doen
-doens't
doesnt
dum
ect
@@ -312,7 +306,6 @@ seperator
ser
serialzation
shold
-shouldnt
sideral
sie
sightly
@@ -332,7 +325,6 @@ straightaway
stye
supress
synchonise
-syncronize
te
teh
testof
@@ -361,7 +353,6 @@ ue
unser
unter
useable
-utilty
vai
valies
vart
diff --git a/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs b/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs
index 349f1a690..9bf840b56 100644
--- a/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs
@@ -368,7 +368,7 @@ public override int GetOrdinal(FacetLabel cp)
// we only store the fact that a category exists, not its inexistence.
// This is required because the caches are shared with new DTR instances
// that are allocated from doOpenIfChanged. Therefore, if we only store
- // information about found categories, we cannot accidently tell a new
+ // information about found categories, we cannot accidentally tell a new
// generation of DTR that a category does not exist.
ordinalCacheLock.EnterWriteLock();
diff --git a/src/Lucene.Net.TestFramework/Codecs/Lucene41Ords/Lucene41WithOrds.cs b/src/Lucene.Net.TestFramework/Codecs/Lucene41Ords/Lucene41WithOrds.cs
index 92d9dad63..01ae47384 100644
--- a/src/Lucene.Net.TestFramework/Codecs/Lucene41Ords/Lucene41WithOrds.cs
+++ b/src/Lucene.Net.TestFramework/Codecs/Lucene41Ords/Lucene41WithOrds.cs
@@ -61,7 +61,7 @@ public override FieldsConsumer FieldsConsumer(SegmentWriteState state)
try
{
// Must use BlockTermsWriter (not BlockTree) because
- // BlockTree doens't support ords (yet)...
+ // BlockTree doesn't support ords (yet)...
FieldsConsumer ret = new BlockTermsWriter(indexWriter, state, docs);
success = true;
return ret;
diff --git a/src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs b/src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs
index e16eeeb58..3df080e01 100644
--- a/src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs
@@ -1206,7 +1206,7 @@ public virtual void TestFsyncDoesntCreateNewFiles()
// using (IndexInput input = dir.OpenInput("bytes", NewIOContext(Random)))
// {
- // // seek to a random spot shouldnt impact slicing.
+ // // seek to a random spot shouldn't impact slicing.
// input.Seek(TestUtil.NextInt64(Random, 0, input.Length));
// for (int i = 0; i < num; i += 16)
// {
@@ -1214,7 +1214,7 @@ public virtual void TestFsyncDoesntCreateNewFiles()
// assertEquals(0, slice1.Position); // LUCENENET specific: Renamed from getFilePointer() to match FileStream
// assertEquals(num - i, slice1.Length);
- // // seek to a random spot shouldnt impact slicing.
+ // // seek to a random spot shouldn't impact slicing.
// slice1.Seek(TestUtil.NextInt64(Random, 0, slice1.Length));
// for (int j = 0; j < slice1.Length; j += 16)
// {
diff --git a/src/Lucene.Net.TestFramework/Util/TestUtil.cs b/src/Lucene.Net.TestFramework/Util/TestUtil.cs
index 23782ef12..c26723324 100644
--- a/src/Lucene.Net.TestFramework/Util/TestUtil.cs
+++ b/src/Lucene.Net.TestFramework/Util/TestUtil.cs
@@ -635,7 +635,7 @@ public static void ReduceOpenFiles(IndexWriter w)
IMergeScheduler ms = w.Config.MergeScheduler;
if (ms is IConcurrentMergeScheduler concurrentMergeScheduler)
{
- // wtf... shouldnt it be even lower since its 1 by default?!?!
+ // wtf... shouldn't it be even lower since its 1 by default?!?!
concurrentMergeScheduler.SetMaxMergesAndThreads(3, 2);
}
}
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestFactories.cs b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestFactories.cs
index fd55c0cb0..b06e72d24 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestFactories.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestFactories.cs
@@ -76,7 +76,7 @@ private void DoTestTokenizer(string tokenizer)
assertFalse(mtc is CharFilterFactory);
}
- // beast it just a little, it shouldnt throw exceptions:
+ // beast it just a little, it shouldn't throw exceptions:
// (it should have thrown them in initialize)
CheckRandomData(Random, new FactoryAnalyzer(factory, null, null), 100, 20, false, false);
}
@@ -99,7 +99,7 @@ private void DoTestTokenFilter(string tokenfilter)
assertTrue(mtc is TokenFilterFactory);
}
- // beast it just a little, it shouldnt throw exceptions:
+ // beast it just a little, it shouldn't throw exceptions:
// (it should have thrown them in initialize)
CheckRandomData(Random, new FactoryAnalyzer(assertingTokenizer, factory, null), 100, 20, false, false);
}
@@ -122,7 +122,7 @@ private void DoTestCharFilter(string charfilter)
assertTrue(mtc is CharFilterFactory);
}
- // beast it just a little, it shouldnt throw exceptions:
+ // beast it just a little, it shouldn't throw exceptions:
// (it should have thrown them in initialize)
CheckRandomData(Random, new FactoryAnalyzer(assertingTokenizer, null, factory), 100, 20, false, false);
}
diff --git a/src/Lucene.Net.Tests.Analysis.Stempel/Egothor.Stemmer/TestStemmer.cs b/src/Lucene.Net.Tests.Analysis.Stempel/Egothor.Stemmer/TestStemmer.cs
index 12212717b..30f3d798a 100644
--- a/src/Lucene.Net.Tests.Analysis.Stempel/Egothor.Stemmer/TestStemmer.cs
+++ b/src/Lucene.Net.Tests.Analysis.Stempel/Egothor.Stemmer/TestStemmer.cs
@@ -135,7 +135,7 @@ public void TestMultiTrie2()
string[] keys = { "a", "ba", "bb", "c" };
/*
* short vals won't work, see line 155 for example
- * the IOOBE is caught (wierd), but shouldnt affect patch cmds?
+ * the IOOBE is caught (wierd), but shouldn't affect patch cmds?
*/
string[] vals = { "1111", "2222", "2223", "4444" };
@@ -155,7 +155,7 @@ public void TestMultiTrie2Backwards()
string[] keys = { "a", "ba", "bb", "c" };
/*
* short vals won't work, see line 155 for example
- * the IOOBE is caught (wierd), but shouldnt affect patch cmds?
+ * the IOOBE is caught (wierd), but shouldn't affect patch cmds?
*/
string[] vals = { "1111", "2222", "2223", "4444" };
diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriterConfig.cs b/src/Lucene.Net.Tests/Index/TestIndexWriterConfig.cs
index 938df4e1c..d13e7a4b7 100644
--- a/src/Lucene.Net.Tests/Index/TestIndexWriterConfig.cs
+++ b/src/Lucene.Net.Tests/Index/TestIndexWriterConfig.cs
@@ -329,7 +329,7 @@ public virtual void TestInvalidValues()
}
// Test Similarity:
- // we shouldnt assert what the default is, just that its not null.
+ // we shouldn't assert what the default is, just that its not null.
Assert.IsTrue(IndexSearcher.DefaultSimilarity == conf.Similarity);
conf.SetSimilarity(new MySimilarity());
Assert.AreEqual(typeof(MySimilarity), conf.Similarity.GetType());
diff --git a/src/Lucene.Net.Tests/Index/TestTermsEnum.cs b/src/Lucene.Net.Tests/Index/TestTermsEnum.cs
index 1ba99c63e..dbd75ff70 100644
--- a/src/Lucene.Net.Tests/Index/TestTermsEnum.cs
+++ b/src/Lucene.Net.Tests/Index/TestTermsEnum.cs
@@ -760,7 +760,7 @@ private void TestRandomSeeks(IndexReader r, params string[] validTermStrings)
TermState termState;
if (Random.Next(6) == 4)
{
- // pick term that doens't exist:
+ // pick term that doesn't exist:
t = GetNonExistTerm(validTerms);
termState = null;
if (Verbose)
diff --git a/src/Lucene.Net.Tests/Search/TestTermRangeQuery.cs b/src/Lucene.Net.Tests/Search/TestTermRangeQuery.cs
index 0151ecf98..808a5d1f0 100644
--- a/src/Lucene.Net.Tests/Search/TestTermRangeQuery.cs
+++ b/src/Lucene.Net.Tests/Search/TestTermRangeQuery.cs
@@ -281,7 +281,7 @@ private void InitializeIndex(string[] values, Analyzer analyzer)
writer.Dispose();
}
- // shouldnt create an analyzer for every doc?
+ // shouldn't create an analyzer for every doc?
private void AddDoc(string content)
{
IndexWriter writer = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random, MockTokenizer.WHITESPACE, false)).SetOpenMode(OpenMode.APPEND));
diff --git a/src/Lucene.Net/Index/UpgradeIndexMergePolicy.cs b/src/Lucene.Net/Index/UpgradeIndexMergePolicy.cs
index 76d195332..e715a5443 100644
--- a/src/Lucene.Net/Index/UpgradeIndexMergePolicy.cs
+++ b/src/Lucene.Net/Index/UpgradeIndexMergePolicy.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.Index
/// This allows for an as-cheap-as possible upgrade of an older index by only upgrading segments that
/// are created by previous Lucene versions. ForceMerge does no longer really merge;
/// it is just used to "ForceMerge" older segment versions away.
- /// <para/>In general one would use <see cref="IndexUpgrader"/>, but for a fully customizeable upgrade,
+ /// <para/>In general one would use <see cref="IndexUpgrader"/>, but for a fully customizable upgrade,
/// you can use this like any other <see cref="MergePolicy"/> and call <see cref="IndexWriter.ForceMerge(int)"/>:
/// <code>
/// IndexWriterConfig iwc = new IndexWriterConfig(LuceneVersion.LUCENE_XX, new KeywordAnalyzer());
diff --git a/src/Lucene.Net/Search/ControlledRealTimeReopenThread.cs b/src/Lucene.Net/Search/ControlledRealTimeReopenThread.cs
index ccf82f32d..594b3879d 100644
--- a/src/Lucene.Net/Search/ControlledRealTimeReopenThread.cs
+++ b/src/Lucene.Net/Search/ControlledRealTimeReopenThread.cs
@@ -213,7 +213,7 @@ public virtual void WaitForGeneration(long targetGen)
public virtual bool WaitForGeneration(long targetGen, int maxMS)
{
// LUCENENET NOTE: Porting this method is a bit tricky because the java wait method releases the
- // syncronize lock and c# has no similar primitive. So we must handle locking a
+ // synchronize lock and c# has no similar primitive. So we must handle locking a
// bit differently here to mimic that affect.
long curGen = writer.Generation;
diff --git a/src/Lucene.Net/Search/FieldValueHitQueue.cs b/src/Lucene.Net/Search/FieldValueHitQueue.cs
index 8076ae502..aeeafd547 100644
--- a/src/Lucene.Net/Search/FieldValueHitQueue.cs
+++ b/src/Lucene.Net/Search/FieldValueHitQueue.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.Search
//Used to hold non-generic nested types
public static class FieldValueHitQueue
{
- // had to change from internal to public, due to public accessability of FieldValueHitQueue
+ // had to change from internal to public, due to public accessibility of FieldValueHitQueue
public class Entry : ScoreDoc
{
public int Slot { get; set; } // LUCENENET NOTE: For some reason, this was not made readonly in the original
diff --git a/src/Lucene.Net/Support/Util/IProperties.cs b/src/Lucene.Net/Support/Util/IProperties.cs
index 7ed0c7d1a..81ee48cde 100644
--- a/src/Lucene.Net/Support/Util/IProperties.cs
+++ b/src/Lucene.Net/Support/Util/IProperties.cs
@@ -31,7 +31,7 @@ internal interface IProperties
/// <summary>
/// Retrieves the value of a property from the current process,
- /// with a default value if it doens't exist or the caller doesn't have
+ /// with a default value if it doesn't exist or the caller doesn't have
/// permission to read the value.
/// </summary>
/// <param name="key">The name of the property.</param>
@@ -50,7 +50,7 @@ internal interface IProperties
/// <summary>
/// Retrieves the value of a property from the current process as <see cref="bool"/>,
- /// with a default value if it doens't exist, the caller doesn't have permission to read the value,
+ /// with a default value if it doesn't exist, the caller doesn't have permission to read the value,
/// or the value cannot be cast to a <see cref="bool"/>.
/// </summary>
/// <param name="key">The name of the property.</param>
@@ -69,7 +69,7 @@ internal interface IProperties
/// <summary>
/// Retrieves the value of a property from the current process as <see cref="int"/>,
- /// with a default value if it doens't exist, the caller doesn't have permission to read the value,
+ /// with a default value if it doesn't exist, the caller doesn't have permission to read the value,
/// or the value cannot be cast to a <see cref="int"/>.
/// </summary>
/// <param name="key">The name of the property.</param>
diff --git a/src/Lucene.Net/Support/Util/Properties.cs b/src/Lucene.Net/Support/Util/Properties.cs
index 1128818cb..aa947c56a 100644
--- a/src/Lucene.Net/Support/Util/Properties.cs
+++ b/src/Lucene.Net/Support/Util/Properties.cs
@@ -56,7 +56,7 @@ public string GetProperty(string key)
/// <summary>
/// Retrieves the value of an property from the current process,
- /// with a default value if it doens't exist or the caller doesn't have
+ /// with a default value if it doesn't exist or the caller doesn't have
/// permission to read the value.
/// </summary>
/// <param name="key">The name of the property.</param>
@@ -86,7 +86,7 @@ public bool GetPropertyAsBoolean(string key)
/// <summary>
/// Retrieves the value of an property from the current process as <see cref="bool"/>,
- /// with a default value if it doens't exist, the caller doesn't have permission to read the value,
+ /// with a default value if it doesn't exist, the caller doesn't have permission to read the value,
/// or the value cannot be cast to a <see cref="bool"/>.
/// </summary>
/// <param name="key">The name of the property.</param>
@@ -116,7 +116,7 @@ public int GetPropertyAsInt32(string key)
/// <summary>
/// Retrieves the value of an property from the current process as <see cref="int"/>,
- /// with a default value if it doens't exist, the caller doesn't have permission to read the value,
+ /// with a default value if it doesn't exist, the caller doesn't have permission to read the value,
/// or the value cannot be cast to a <see cref="int"/>.
/// </summary>
/// <param name="key">The name of the property.</param>
diff --git a/src/Lucene.Net/Support/Util/SystemProperties.cs b/src/Lucene.Net/Support/Util/SystemProperties.cs
index ac84a9483..d9264db1b 100644
--- a/src/Lucene.Net/Support/Util/SystemProperties.cs
+++ b/src/Lucene.Net/Support/Util/SystemProperties.cs
@@ -49,7 +49,7 @@ public static string GetProperty(string key)
/// <summary>
/// Retrieves the value of a property from the current process,
- /// with a default value if it doens't exist or the caller doesn't have
+ /// with a default value if it doesn't exist or the caller doesn't have
/// permission to read the value.
/// </summary>
/// <param name="key">The name of the property.</param>
@@ -74,7 +74,7 @@ public static bool GetPropertyAsBoolean(string key)
/// <summary>
/// Retrieves the value of a property from the current process as <see cref="bool"/>,
- /// with a default value if it doens't exist, the caller doesn't have permission to read the value,
+ /// with a default value if it doesn't exist, the caller doesn't have permission to read the value,
/// or the value cannot be cast to a <see cref="bool"/>.
/// </summary>
/// <param name="key">The name of the property.</param>
@@ -99,7 +99,7 @@ public static int GetPropertyAsInt32(string key)
/// <summary>
/// Retrieves the value of a property from the current process as <see cref="int"/>,
- /// with a default value if it doens't exist, the caller doesn't have permission to read the value,
+ /// with a default value if it doesn't exist, the caller doesn't have permission to read the value,
/// or the value cannot be cast to a <see cref="int"/>.
/// </summary>
/// <param name="key">The name of the property.</param>
diff --git a/src/Lucene.Net/Util/IOUtils.cs b/src/Lucene.Net/Util/IOUtils.cs
index 909c5abed..f70252796 100644
--- a/src/Lucene.Net/Util/IOUtils.cs
+++ b/src/Lucene.Net/Util/IOUtils.cs
@@ -628,7 +628,7 @@ public static void Copy(FileInfo source, FileInfo target)
}
/// <summary>
- /// Simple utilty method that takes a previously caught
+ /// Simple utility method that takes a previously caught
/// <see cref="Exception"/> and rethrows either
/// <see cref="IOException"/> or an unchecked exception. If the
/// argument is <c>null</c> then this method does nothing.
@@ -646,7 +646,7 @@ public static void ReThrow(Exception th)
}
/// <summary>
- /// Simple utilty method that takes a previously caught
+ /// Simple utility method that takes a previously caught
/// <see cref="Exception"/> and rethrows it as an unchecked exception.
/// If the argument is <c>null</c> then this method does nothing.
/// </summary>
diff --git a/src/Lucene.Net/Util/ThreadInterruptedException.cs b/src/Lucene.Net/Util/ThreadInterruptedException.cs
index 83e21daff..e3b249e67 100644
--- a/src/Lucene.Net/Util/ThreadInterruptedException.cs
+++ b/src/Lucene.Net/Util/ThreadInterruptedException.cs
@@ -25,7 +25,7 @@ namespace Lucene.Net.Util
*/
/// <summary>
- /// Thrown by Lucene on detecing that <see cref="System.Threading.Thread.Interrupt()"/> had been
+ /// Thrown by Lucene on detecting that <see cref="System.Threading.Thread.Interrupt()"/> had been
/// called. This exception has the specific purpose of being allowed to pass through to the
/// calling thread of <see cref="J2N.Threading.ThreadJob"/> so it reaches the appropriate handler.
/// </summary>
diff --git a/websites/site/contributing/how-to-setup-java-lucene-debugging.md b/websites/site/contributing/how-to-setup-java-lucene-debugging.md
index d0d3009c3..949f1876d 100644
--- a/websites/site/contributing/how-to-setup-java-lucene-debugging.md
+++ b/websites/site/contributing/how-to-setup-java-lucene-debugging.md
@@ -364,7 +364,7 @@ In windows, this is what the directory looks like:
## Downloading the Project's Dependencies
-### Boostrap ant
+### Bootstrap ant
First we need to get ant bootstrapped.
Here is some background on Maven and Ivy from the web:
> Apache Maven is a software project management and comprehension tool, whereas Apache Ivy is only a dependency management tool, highly integrated with Apache Antâ„¢, the popular build management tool. Source: https://ant.apache.org/ivy/m2comparison.html