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
2 changes: 1 addition & 1 deletion .build/psake/public/Invoke-psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function Invoke-psake {
$psake.context # holds onto the current state of all variables
$psake.run_by_psake_build_tester # indicates that build is being run by psake-BuildTester
$psake.config_default # contains default configuration
# can be overriden in psake-config.ps1 in directory with psake.psm1 or in directory with current build script
# can be overridden in psake-config.ps1 in directory with psake.psm1 or in directory with current build script
$psake.build_success # indicates that the current build was successful
$psake.build_script_file # contains a System.IO.FileInfo for the current build script
$psake.build_script_dir # contains the fully qualified path to the current build script
Expand Down
9 changes: 0 additions & 9 deletions .github/linters/codespell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ ine
ines
informations
ingenuous
intance
interruted
isnt
isse
isses
Expand Down Expand Up @@ -158,12 +156,9 @@ nin
noe
noen
noes
non-existant
nonexistant
noone
notin
nowe
occurances
oder
oint
oje
Expand All @@ -174,8 +169,6 @@ ony
ore
ot
overide
overriden
ovewrite
padd
pard
parms
Expand All @@ -186,7 +179,6 @@ posin
pre-pended
pres
prevend
probablistic
programer
pronounciation
querys
Expand All @@ -200,7 +192,6 @@ re-using
ream
reasearch
recipies
refering
repot
reproducability
reproducable
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4355,7 +4355,7 @@ Infrastructure
erases the directory contents, even when the directory
has already been accessed in this JVM.
- RangeQuery: Fix issue where an inclusive range query would
include the nearest term in the index above a non-existant
include the nearest term in the index above a non-existent
specified upper term.
- SegmentTermEnum: Fix NullPointerException in clone() method
when the Term is null.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Lucene.Net.Analysis.Pattern

/// <summary>
/// A TokenFilter which applies a <see cref="Regex"/> to each token in the stream,
/// replacing match occurances with the specified replacement string.
/// replacing match occurrences with the specified replacement string.
///
/// <para>
/// <b>Note:</b> Depending on the input and the pattern used and the input
Expand All @@ -41,7 +41,7 @@ public sealed class PatternReplaceFilter : TokenFilter
private readonly Regex pattern;

/// <summary>
/// Constructs an instance to replace either the first, or all occurances
/// Constructs an instance to replace either the first, or all occurrences
/// </summary>
/// <param name="in"> the <see cref="TokenStream"/> to process </param>
/// <param name="pattern"> the pattern (a <see cref="Regex"/> object) to apply to each <see cref="Token"/> </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class DefaultICUTokenizerConfig : ICUTokenizerConfig
/// the default breakiterators in use. these can be expensive to
/// instantiate, cheap to clone.
/// </summary>
// we keep the cjk breaking separate, thats because it cannot be customized (because dictionary
// we keep the cjk breaking separate, that's because it cannot be customized (because dictionary
// is only triggered when kind = WORD, but kind = LINE by default and we have no non-evil way to change it)
private static readonly BreakIterator cjkBreakIterator = BreakIterator.GetWordInstance(UCultureInfo.InvariantCulture);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public virtual TokenInfoDictionaryWriter BuildDictionary(IList<string> csvFiles)
/// 4-9 - pos
/// 10 - base form
/// 11 - reading
/// 12 - pronounciation
/// 12 - pronunciation
///
/// UniDic features
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ public virtual int GetParent(int ordinal)
{
EnsureOpen();
// Note: the following if() just enforces that a user can never ask
// for the parent of a nonexistant category - even if the parent array
// for the parent of a nonexistent category - even if the parent array
// was allocated bigger than it really needs to be.
if (ordinal >= nextID)
// LUCENENET specific: Changed exception type thrown to be consistent with guard clauses in .NET
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Grouping/AbstractAllGroupHeadsCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected AbstractAllGroupHeadsCollector_GroupHead(/*TGroupValue groupValue,*/ i
/// <summary>
/// LUCENENET specific class used to reference an
/// <see cref="AbstractAllGroupHeadsCollector{GH}"/> subclass
/// without refering to its generic closing type.
/// without referring to its generic closing type.
/// </summary>
public abstract class AbstractAllGroupHeadsCollector : ICollector
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Misc/Document/LazyDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public LazyDocument(IndexReader reader, int docID)
/// <para>
/// <b>NOTE:</b> This method must be called once for each value of the field
/// name specified in sequence that the values exist. This method may not be
/// used to generate multiple, lazy, IndexableField instances refering to
/// used to generate multiple, lazy, IndexableField instances referring to
/// the same underlying IndexableField instance.
/// </para>
/// <para>
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Replicator/ReplicationClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public override void Run()
}
catch (Exception e) when (e.IsInterruptedException())
{
// if we were interruted, somebody wants to terminate us, so just
// if we were interrupted, somebody wants to terminate us, so just
// throw the exception further.
Thread.CurrentThread.Interrupt();
throw new Util.ThreadInterruptedException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public override void Before()
else if ("CheapBastard".Equals(LuceneTestCase.TestCodec, StringComparison.Ordinal)
|| ("random".Equals(LuceneTestCase.TestCodec, StringComparison.Ordinal) && randomVal == 8 && !ShouldAvoidCodec("CheapBastard") && !ShouldAvoidCodec("Lucene41")))
{
// we also avoid this codec if Lucene41 is avoided, since thats the postings format it uses.
// we also avoid this codec if Lucene41 is avoided, since that's the postings format it uses.
codec = new CheapBastardCodec();
}
else if ("Asserting".Equals(LuceneTestCase.TestCodec, StringComparison.Ordinal)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Lucene.Net.Util

/// <summary>
/// Make sure <seealso cref="LuceneTestCase#setUp()"/> and <seealso cref="LuceneTestCase#tearDown()"/> were invoked even if they
/// have been overriden. We assume nobody will call these out of non-overriden
/// have been overridden. We assume nobody will call these out of non-overridden
/// methods (they have to be public by contract, unfortunately). The top-level
/// methods just set a flag that is checked upon successful execution of each test
/// case.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static TestRandomChains()
allowedTokenFilterArgs = new JCG.HashSet<Type>(IdentityEqualityComparer<Type>.Default);
allowedTokenFilterArgs.addAll(argProducers.Keys);
allowedTokenFilterArgs.Add(typeof(TokenStream));
// TODO: fix this one, thats broken:
// TODO: fix this one, that's broken:
allowedTokenFilterArgs.Add(typeof(CommonGramsFilter));

allowedCharFilterArgs = new JCG.HashSet<Type>(IdentityEqualityComparer<Type>.Default);
Expand Down Expand Up @@ -970,7 +970,7 @@ static object[] NewFilterArgs(Random random, TokenStream stream, Type[] paramTyp
}
else if (paramType == typeof(CommonGramsFilter))
{
// TODO: fix this one, thats broken: CommonGramsQueryFilter takes this one explicitly
// TODO: fix this one, that's broken: CommonGramsQueryFilter takes this one explicitly
args[i] = new CommonGramsFilter(TEST_VERSION_CURRENT, stream, NewRandomArg<CharArraySet>(random, typeof(CharArraySet)));
}
else
Expand Down Expand Up @@ -1066,7 +1066,7 @@ private T CreateComponent<T>(ConstructorInfo ctor, object[] args, StringBuilder
|| ite.InnerException.GetType().Equals(typeof(NotSupportedException))))
{

// thats ok, ignore
// that's ok, ignore
if (Verbose)
{
Console.WriteLine("Ignoring IAE/UOE from ctor:");
Expand Down
3 changes: 2 additions & 1 deletion src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyCombined.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ public virtual void TestReaderBasic()
}
}
// (also test invalid categories:)
Assert.AreEqual(TaxonomyReader.INVALID_ORDINAL, tr.GetOrdinal(new FacetLabel("non-existant")));
// LUCENENET specific: Fixed the spelling of the word non-existent (upstream was non-existant)
Assert.AreEqual(TaxonomyReader.INVALID_ORDINAL, tr.GetOrdinal(new FacetLabel("non-existent")));
Comment thread
jbampton marked this conversation as resolved.
Assert.AreEqual(TaxonomyReader.INVALID_ORDINAL, tr.GetOrdinal(new FacetLabel("Author", "Jules Verne")));

tr.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private void CheckHeaders(Directory dir)
{
if (file.Equals(IndexWriter.WRITE_LOCK_NAME, StringComparison.Ordinal))
{
continue; // write.lock has no footer, thats ok
continue; // write.lock has no footer, that's ok
}
if (file.EndsWith(IndexFileNames.COMPOUND_FILE_EXTENSION, StringComparison.Ordinal))
{
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net.Tests/Index/TestAllFilesHaveCodecHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ private void CheckHeaders(Directory dir)
{
if (file.Equals(IndexWriter.WRITE_LOCK_NAME, StringComparison.Ordinal))
{
continue; // write.lock has no header, thats ok
continue; // write.lock has no header, that's ok
}
if (file.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal))
{
continue; // segments.gen has no header, thats ok
continue; // segments.gen has no header, that's ok
}
if (file.EndsWith(IndexFileNames.COMPOUND_FILE_EXTENSION, StringComparison.Ordinal))
{
Expand Down
6 changes: 3 additions & 3 deletions src/Lucene.Net.Tests/Search/TestPrefixFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ public virtual void TestPrefixFilter_Mem()
hits = searcher.Search(query, null, 1000).ScoreDocs;
Assert.AreEqual(1, hits.Length);

// test non-existant
// test non-existent
filter = new PrefixFilter(new Term("category", "/Computers/ObsoleteOS"));
query = new ConstantScoreQuery(filter);
hits = searcher.Search(query, null, 1000).ScoreDocs;
Assert.AreEqual(0, hits.Length);

// test non-existant, before values
// test non-existent, before values
filter = new PrefixFilter(new Term("category", "/Computers/AAA"));
query = new ConstantScoreQuery(filter);
hits = searcher.Search(query, null, 1000).ScoreDocs;
Assert.AreEqual(0, hits.Length);

// test non-existant, after values
// test non-existent, after values
filter = new PrefixFilter(new Term("category", "/Computers/ZZZ"));
query = new ConstantScoreQuery(filter);
hits = searcher.Search(query, null, 1000).ScoreDocs;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Analysis/TokenStreamToAutomaton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public virtual Automaton ToAutomaton(TokenStream @in)
{
// note: this isn't necessarily true. its just that we aren't surely det.
// we could optimize this further (e.g. buffer and sort synonyms at a position)
// but thats probably overkill. this is cheap and dirty
// but that's probably overkill. this is cheap and dirty
deterministic = false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Index/FilterAtomicReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class FilterAtomicReader : AtomicReader
{
/// <summary>
/// Get the wrapped instance by <paramref name="reader"/> as long as this reader is
/// an intance of <see cref="FilterAtomicReader"/>.
/// an instance of <see cref="FilterAtomicReader"/>.
/// </summary>
public static AtomicReader Unwrap(AtomicReader reader)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Search/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ While this document won't answer your specific scoring issues, it will, hopefull
Lucene scoring supports a number of pluggable information retrieval [models](http://en.wikipedia.org/wiki/Information_retrieval#Model_types), including:

* [Vector Space Model (VSM)](http://en.wikipedia.org/wiki/Vector_Space_Model)
* [Probablistic Models](http://en.wikipedia.org/wiki/Probabilistic_relevance_model) such as [Okapi BM25](http://en.wikipedia.org/wiki/Probabilistic_relevance_model_(BM25)) and [DFR](http://en.wikipedia.org/wiki/Divergence-from-randomness_model)
* [Probabilistic Models](http://en.wikipedia.org/wiki/Probabilistic_relevance_model) such as [Okapi BM25](http://en.wikipedia.org/wiki/Probabilistic_relevance_model_(BM25)) and [DFR](http://en.wikipedia.org/wiki/Divergence-from-randomness_model)
* [Language models](http://en.wikipedia.org/wiki/Language_model)

These models can be plugged in via the [Similarity API](xref:Lucene.Net.Search.Similarities), and offer extension hooks and parameters for tuning. In general, Lucene first finds the documents that need to be scored based on boolean logic in the Query specification, and then ranks this subset of matching documents via the retrieval model. For some valuable references on VSM and IR in general refer to [Lucene Wiki IR references](http://wiki.apache.org/lucene-java/InformationRetrieval).
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Util/Fst/FST.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ internal FST<T> Pack(int minInCountDeref, int maxDerefNodes, float acceptableOve
// somehow (rarely, possibly never) we use
// more bytesPerArc in this rewrite than the
// incoming FST did... but in this case we
// will retry (below) so it's OK to ovewrite
// will retry (below) so it's OK to overwrite
// bytes:
//wasted += bytesPerArc - arcBytes;
writer.SkipBytes((int)(arcStartPos + bytesPerArc - writer.Position));
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net/Util/StringHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ public static int BytesDifference(this BytesRef left, BytesRef right) // LUCENEN
}
else
{
// a has some extra trailing tokens. if these are all zeroes, thats ok.
// a has some extra trailing tokens. if these are all zeroes, that's ok.
if (aToken != 0)
{
return 1;
}
}
}

// b has some extra trailing tokens. if these are all zeroes, thats ok.
// b has some extra trailing tokens. if these are all zeroes, that's ok.
while (bTokens.MoveNext())
{
if (Convert.ToInt32(bTokens.Current, CultureInfo.InvariantCulture) != 0)
Expand Down
Loading