Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .github/linters/codespell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ despatch
despatches
discreet
discus
displaing
doen
dum
ect
Expand All @@ -83,13 +82,11 @@ ened
equest
euclidian
everytime
faild
failue
fallow
finis
floatation
fo
formated
formen
formes
fount
Expand All @@ -110,8 +107,6 @@ hendler
highligh
hove
hte
idenitifies
identifer
iif
imbed
implementor
Expand All @@ -123,7 +118,6 @@ ine
ines
informations
ingenuous
instaed
intance
interruted
isnt
Expand All @@ -144,15 +138,13 @@ mane
mange
manger
matchs
maxium
ment
meny
meu
meus
millenium
millepede
mimicing
mimicks
mis
mot
msbuid
Expand All @@ -173,7 +165,6 @@ notin
nowe
occurances
oder
offets
oint
oje
olt
Expand All @@ -198,10 +189,8 @@ prevend
probablistic
programer
pronounciation
propery
querys
ques
quries
racoon
raison
re-use
Expand All @@ -212,8 +201,6 @@ ream
reasearch
recipies
refering
relativly
releae
repot
reproducability
reproducable
Expand All @@ -223,7 +210,6 @@ rute
sate
sav
scrip
seach
selv
sentances
seperate
Expand Down Expand Up @@ -256,8 +242,6 @@ thats
therefor
theses
thi
thie
this'd
ths
tittle
tje
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name: 'vNext$(rev:.r)' # Format for build number (will be overridden)
# GenerateDocs: (Optional. Only builds documentation website if set to 'true'.)
# GenerateWebsite: (Optional. Only builds lucene.net website if set to 'true'.)
# IsRelease: (Optional. By default the Release job is disabled, setting this to 'true' will enable it)
# GeneratePackages: (Optional. Defaults to 'true'. Setting to 'false' will cut about 1 minute from the build time by skipping packing the NuGet files and subsequent artiact upload. If ArtifactFeedID is provided or IsRelease is 'true', this setting has no effect.)
# GeneratePackages: (Optional. Defaults to 'true'. Setting to 'false' will cut about 1 minute from the build time by skipping packing the NuGet files and subsequent artifact upload. If ArtifactFeedID is provided or IsRelease is 'true', this setting has no effect.)

# Versioning Variables

Expand Down Expand Up @@ -660,7 +660,7 @@ stages:
vmImage: 'windows-latest'

steps:
# We checkout here because we need to publish the source code along with the binaries per Apache's releae policy
# We checkout here because we need to publish the source code along with the binaries per Apache's release policy
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
fetchDepth: '1' # the depth of commits to ask Git to fetch

Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Benchmark/ByTask/PerfRunData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class PerfRunData : IDisposable
private ITaxonomyWriter taxonomyWriter;
private TaxonomyReader taxonomyReader;

// we use separate (identical) instances for each "read" task type, so each can iterate the quries separately.
// we use separate (identical) instances for each "read" task type, so each can iterate the queries separately.
private readonly IDictionary<Type, IQueryMaker> readTaskQueryMaker;
private readonly Type qmkrClass;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class DefaultHandler : IEntityResolver, IDTDHandler, IContentHandler, IEr
/// in a subclass to do special translations such as catalog lookups
/// or URI redirection.
/// </summary>
/// <param name="publicId">The public identifer, or null if none is available.</param>
/// <param name="publicId">The public identifier, or null if none is available.</param>
/// <param name="systemId">The system identifier provided in the XML document.</param>
/// <remarks>The new input source, or null to require the default behaviour.</remarks>
/// <exception cref="IOException">If there is an error setting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public CoreFieldIndex(FieldIndexData outerInstance, long indexStart, long termsS
PackedInt32s.IReaderIterator termOffsetsIter = PackedInt32s.GetReaderIterator(clone2, PackedInt32s.DEFAULT_BUFFER_SIZE);

// TODO: often we can get by w/ fewer bits per
// value, below.. .but this'd be more complex:
// value, below.. .but this would be more complex:
// we'd have to try @ fewer bits and then grow
// if we overflowed it.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ internal void Reset(Terms delegateTerms, TermsEnum reuseDelegate)

private TermsEnum @delegate =>
// pull the iterator only if we really need it -
// this can be a relativly heavy operation depending on the
// this can be a relatively heavy operation depending on the
// delegate postings format and they underlying directory
// (clone IndexInput)
delegateTermsEnum ?? (delegateTermsEnum = _delegateTerms.GetEnumerator(_reuseDelegate));
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Codecs/Memory/DirectPostingsFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ public override long GetCost()
}
}

// Docs + freqs + positions/offets:
// Docs + freqs + positions/offsets:
private sealed class LowFreqDocsEnum : DocsEnum
{
private int[] postings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ public override IList<LookupResult> DoLookup(string key,
// into the FST output, so we more efficiently hone
// in on the exact surface-form match. Still, I
// suspect very little time is spent in this linear
// seach: it's bounded by how many prefix start
// search: it's bounded by how many prefix start
// nodes we have and the
// maxSurfaceFormsPerAnalyzedForm:
foreach (var completion in completions)
Expand Down
8 changes: 4 additions & 4 deletions src/Lucene.Net.TestFramework/Search/CheckHits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static void CheckHitCollector(Random random, Query query, string defaultF
/// </summary>
/// <param name="query"> the query to test </param>
/// <param name="searcher"> the searcher to test the query against </param>
/// <param name="defaultFieldName"> used for displaing the query in assertion messages </param>
/// <param name="defaultFieldName"> used for displaying the query in assertion messages </param>
/// <param name="results"> a list of documentIds that must match the query </param>
/// <seealso cref="CheckHitCollector(Random, Query, string, IndexSearcher, int[])"/>
public static void DoCheckHits(Random random, Query query, string defaultFieldName, IndexSearcher searcher, int[] results)
Expand Down Expand Up @@ -260,7 +260,7 @@ public static string TopDocsString(TopDocs docs, int start, int end) // LUCENENE
/// <seealso cref="CheckExplanations(Query, String, IndexSearcher, bool)"/>
/// <param name="query"> The query to test. </param>
/// <param name="searcher"> The searcher to test the query against. </param>
/// <param name="defaultFieldName"> Used for displaing the query in assertion messages. </param>
/// <param name="defaultFieldName"> Used for displaying the query in assertion messages. </param>
public static void CheckExplanations(Query query, string defaultFieldName, IndexSearcher searcher)
{
CheckExplanations(query, defaultFieldName, searcher, false);
Expand All @@ -274,7 +274,7 @@ public static void CheckExplanations(Query query, string defaultFieldName, Index
/// <seealso cref="ExplanationAsserter"/>
/// <param name="query"> The query to test. </param>
/// <param name="searcher"> The searcher to test the query against. </param>
/// <param name="defaultFieldName"> Used for displaing the query in assertion messages. </param>
/// <param name="defaultFieldName"> Used for displaying the query in assertion messages. </param>
/// <param name="deep"> Indicates whether a deep comparison of sub-Explanation details should be executed. </param>
public static void CheckExplanations(Query query, string defaultFieldName, IndexSearcher searcher, bool deep)
{
Expand Down Expand Up @@ -435,7 +435,7 @@ public virtual void SetNextReader(AtomicReaderContext context)
}

/// <summary>
/// An <see cref="IndexSearcher"/> that implicitly checks hte explanation of every match
/// An <see cref="IndexSearcher"/> that implicitly checks the explanation of every match
/// whenever it executes a search.
/// </summary>
/// <seealso cref="ExplanationAsserter"/>
Expand Down
6 changes: 3 additions & 3 deletions src/Lucene.Net.TestFramework/Util/TestUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public static void RandomFixedLengthUnicodeString(Random random, char[] chars, i
}

/// <summary>
/// Returns a <see cref="string"/> thats "regexish" (contains lots of operators typically found in regular expressions)
/// Returns a <see cref="string"/> that's "regexish" (contains lots of operators typically found in regular expressions)
/// If you call this enough times, you might get a valid regex!
/// </summary>
/// <param name="random">This <see cref="Random"/>.</param>
Expand All @@ -381,7 +381,7 @@ public static string RandomRegexishString(Random random) // LUCENENET: Renamed f
}

/// <summary>
/// Returns a <see cref="string"/> thats "regexish" (contains lots of operators typically found in regular expressions)
/// Returns a <see cref="string"/> that's "regexish" (contains lots of operators typically found in regular expressions)
/// If you call this enough times, you might get a valid regex!
///
/// <para/>Note: to avoid practically endless backtracking patterns we replace asterisk and plus
Expand Down Expand Up @@ -1040,7 +1040,7 @@ public static string RandomSubString(Random random, int wordLength, bool simple)
'\u001E',
'\u001F',
'\u0020',
// '\u0085', faild sanity check?
// '\u0085', failed sanity check?
'\u1680',
'\u180E',
'\u2000',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public void TestWildcard()

/*
* Tests to see that wild card terms are (or are not) properly lower-cased
* with propery parser configuration
* with property parser configuration
*/
// First prefix queries:
// by default, convert to lowercase:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public void TestWildcard()

/*
* Tests to see that wild card terms are (or are not) properly lower-cased
* with propery parser configuration
* with property parser configuration
*/
// First prefix queries:
// by default, convert to lowercase:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public virtual void TestWildcard()
assertTrue(GetQuery("term*germ") is WildcardQuery);

/* Tests to see that wild card terms are (or are not) properly
* lower-cased with propery parser configuration
* lower-cased with property parser configuration
*/
// First prefix queries:
// by default, convert to lowercase:
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/Index/TestBackwardsCompatibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public void testCreateMoreTermsIndex() throws Exception {
internal static IDictionary<string, Directory> oldIndexDirs;

/// <summary>
/// Randomizes the use of some of hte constructor variations
/// Randomizes the use of some of the constructor variations
/// </summary>
private static IndexUpgrader NewIndexUpgrader(Directory dir)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/Search/TestMultiTermConstantScore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public virtual void TestBooleanOrderUnAffected()
int numHits = expected.Length;

// now do a boolean where which also contains a
// ConstantScoreRangeQuery and make sure hte order is the same
// ConstantScoreRangeQuery and make sure the order is the same

BooleanQuery q = new BooleanQuery();
q.Add(rq, Occur.MUST); // T, F);
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net/Index/IndexFormatTooNewException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class IndexFormatTooNewException : CorruptIndexException
/// <param name="resourceDesc"> describes the file that was too old </param>
/// <param name="version"> the version of the file that was too old </param>
/// <param name="minVersion"> the minimum version accepted </param>
/// <param name="maxVersion"> the maxium version accepted </param>
/// <param name="maxVersion"> the maximum version accepted </param>
public IndexFormatTooNewException(string resourceDesc, int version, int minVersion, int maxVersion)
: base("Format version is not supported (resource: " + resourceDesc + "): " + version + " (needs to be between " + minVersion + " and " + maxVersion + ")")
{
Expand All @@ -61,7 +61,7 @@ public IndexFormatTooNewException(string resourceDesc, int version, int minVersi
/// <param name="input"> the open file that's too old </param>
/// <param name="version"> the version of the file that was too old </param>
/// <param name="minVersion"> the minimum version accepted </param>
/// <param name="maxVersion"> the maxium version accepted </param>
/// <param name="maxVersion"> the maximum version accepted </param>
public IndexFormatTooNewException(DataInput input, int version, int minVersion, int maxVersion)
: this(input.ToString(), version, minVersion, maxVersion)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net/Index/IndexFormatTooOldException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public IndexFormatTooOldException(DataInput input, string version)
/// <param name="resourceDesc"> describes the file that was too old </param>
/// <param name="version"> the version of the file that was too old </param>
/// <param name="minVersion"> the minimum version accepted </param>
/// <param name="maxVersion"> the maxium version accepted </param>
/// <param name="maxVersion"> the maximum version accepted </param>
public IndexFormatTooOldException(string resourceDesc, int version, int minVersion, int maxVersion)
: base("Format version is not supported (resource: " + resourceDesc + "): " + version + " (needs to be between " + minVersion + " and " + maxVersion + "). this version of Lucene only supports indexes created with release 3.0 and later.")
{
Expand All @@ -86,7 +86,7 @@ public IndexFormatTooOldException(string resourceDesc, int version, int minVersi
/// <param name="input"> the open file that's too old </param>
/// <param name="version"> the version of the file that was too old </param>
/// <param name="minVersion"> the minimum version accepted </param>
/// <param name="maxVersion"> the maxium version accepted </param>
/// <param name="maxVersion"> the maximum version accepted </param>
public IndexFormatTooOldException(DataInput input, int version, int minVersion, int maxVersion)
: this(input.ToString(), version, minVersion, maxVersion)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Index/SegmentMerger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ private void SetMatchingSegmentReaders()
AtomicReader reader = mergeState.Readers[i];
// TODO: we may be able to broaden this to
// non-SegmentReaders, since FieldInfos is now
// required? But... this'd also require exposing
// required? But... this would also require exposing
// bulk-copy (TVs and stored fields) API in foreign
// readers..
if (reader is SegmentReader segmentReader)
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Search/Similarities/BM25Similarity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected internal virtual float DecodeNormValue(byte b)
/// True if overlap tokens (tokens with a position of increment of zero) are
/// discounted from the document's length.
/// </summary>
private bool discountOverlaps = true; // LUCENENET specific: made private, since value can be set/get through propery
private bool discountOverlaps = true; // LUCENENET specific: made private, since value can be set/get through property

/// <summary>
/// Gets or Sets whether overlap tokens (Tokens with 0 position increment) are
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Search/TermCollectingRewrite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace Lucene.Net.Search
using Terms = Lucene.Net.Index.Terms;
using TermsEnum = Lucene.Net.Index.TermsEnum;

public abstract class TermCollectingRewrite<Q> : MultiTermQuery.RewriteMethod where Q : Query // LUCENENET NOTE: Class was made public instaed of internal because it has public derived types
public abstract class TermCollectingRewrite<Q> : MultiTermQuery.RewriteMethod where Q : Query // LUCENENET NOTE: Class was made public instead of internal because it has public derived types
{
/// <summary>
/// Return a suitable top-level <see cref="Query"/> for holding all expanded terms. </summary>
Expand Down
Loading
Loading