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
11 changes: 0 additions & 11 deletions .github/linters/codespell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,9 @@ coo
corelate
corespondent
correcty
correponding
corrsponding
corse
couldnt
countr
couterpart
coversion
covert
cunt
curren
Expand All @@ -129,16 +125,11 @@ dependant
despatch
despatches
detecing
dicationary
didnt
differnetly
diposing
discreet
discus
displaing
docuentation
documenation
documention
doen
doens't
doesnt
Expand Down Expand Up @@ -407,8 +398,6 @@ sizin
slippy
som
somme
speacial
specifc
specifiy
splitted
statics
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ stages:
displayName: 'Generate Documentation'

- task: ArchiveFiles@2
displayName: 'Zip Documenation Files'
displayName: 'Zip Documentation Files'
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)/websites/apidocs/_site'
includeRootFolder: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace Lucene.Net.Analysis.In
/// </summary>
public class IndicNormalizer
{
// LUCENENET NOTE: This class was refactored from its Java couterpart,
// LUCENENET NOTE: This class was refactored from its Java counterpart,
// favoring the .NET Regex class to determine the "Unicode Block" rather than
// porting over that part of the Java Character class.
// References:
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Analysis.Kuromoji/Dict/BinaryDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Lucene.Net.Analysis.Ja.Dict
/// <summary>
/// Base class for a binary-encoded in-memory dictionary.
/// <para/>
/// NOTE: To use an alternate dicationary than the built-in one, put the data files in a subdirectory of
/// NOTE: To use an alternate dictionary than the built-in one, put the data files in a subdirectory of
/// your application named "kuromoji-data". This subdirectory
/// can be placed in any directory up to and including the root directory (if the OS permission allows).
/// To place the files in an alternate location, set an environment variable named "kuromoji.data.dir"
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Analysis.OpenNLP/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class CustomOpenNLPAnalyzer : OpenNLPTokenizerFactory
}
```

In the above example, `CustomOpenNLPAnalyzer` extends `OpenNLPTokenizerFactory` (assuming that's the analyzer you're using), and it wraps the OpenNLP tokenizer with UIMA annotators. You'll need to replace the placeholder methods (`CreateUIMASentenceAnnotator` and `CreateUIMATokenAnnotator`) with the actual code to create and configure your UIMA annotators. Please note that configuring NLP can be complex. See the [OpenNLP 1.9.4 Manual](https://opennlp.apache.org/docs/1.9.4/manual/opennlp.html) and [OpenNLP UIMA 1.9.4 API Documention](https://opennlp.apache.org/docs/1.9.4/apidocs/opennlp-uima/index.html) for details.
In the above example, `CustomOpenNLPAnalyzer` extends `OpenNLPTokenizerFactory` (assuming that's the analyzer you're using), and it wraps the OpenNLP tokenizer with UIMA annotators. You'll need to replace the placeholder methods (`CreateUIMASentenceAnnotator` and `CreateUIMATokenAnnotator`) with the actual code to create and configure your UIMA annotators. Please note that configuring NLP can be complex. See the [OpenNLP 1.9.4 Manual](https://opennlp.apache.org/docs/1.9.4/manual/opennlp.html) and [OpenNLP UIMA 1.9.4 API Documentation](https://opennlp.apache.org/docs/1.9.4/apidocs/opennlp-uima/index.html) for details.

> [!NOTE]
> IKVM (and `<MavenReference>`) does not support Java SE higher than version 8. So it will not be possible to add a `<MavenReference>` to OpenNLP 2.x until support is added for it in IKVM.
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Analysis.Phonetic/Language/StringEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public interface IStringEncoder
/// </summary>
/// <param name="source">the <see cref="string"/> to encode</param>
/// <returns>the encoded <see cref="string"/></returns>
// LUCENENET specific - EncoderException not ported, as it was only thrown on a coversion from object to string type
// LUCENENET specific - EncoderException not ported, as it was only thrown on a conversion from object to string type
// <exception cref="EncoderException">thrown if there is an error condition during the encoding process.</exception>
string Encode(string source);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Analysis.SmartCn/AnalyzerProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Lucene.Net.Analysis.Cn.Smart
/// <para/>
/// <see cref="SmartChineseAnalyzer"/> has a built-in dictionary and stopword list out-of-box.
/// <para/>
/// NOTE: To use an alternate dicationary than the built-in one, put the "bigramdict.dct" and
/// NOTE: To use an alternate dictionary than the built-in one, put the "bigramdict.dct" and
/// "coredict.dct" files in a subdirectory of your application named "smartcn-data". This subdirectory
/// can be placed in any directory up to and including the root directory (if the OS permission allows).
/// To place the files in an alternate location, set an environment variable named "smartcn.data.dir"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ protected virtual void Extract(Query query, IDictionary<string, WeightedSpanTerm
Query rewritten = origQuery.Rewrite(reader);
if (rewritten != origQuery)
{
// only rewrite once and then flatten again - the rewritten query could have a speacial treatment
// only rewrite once and then flatten again - the rewritten query could have a special treatment
// if this method is overwritten in a subclass or above in the next recursion
Extract(rewritten, terms);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Highlighter/VectorHighlight/FieldQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ internal void Flatten(Query sourceQuery, IndexReader reader, ICollection<Query>
Query rewritten = query.Rewrite(reader);
if (rewritten != query)
{
// only rewrite once and then flatten again - the rewritten query could have a speacial treatment
// only rewrite once and then flatten again - the rewritten query could have a special treatment
// if this method is overwritten in a subclass.
Flatten(rewritten, reader, flatQueries);

Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1308,9 +1308,9 @@ public static ISet<object> AsSet(params object[] args)
/// Convenience method for logging an enumerator.
/// </summary>
/// <param name="label"> String logged before/after the items in the enumerator. </param>
/// <param name="iter"> Each element is ToString()ed and logged on it's own line. If iter is null this is logged differnetly then an empty enumerator. </param>
/// <param name="iter"> Each element is ToString()ed and logged on it's own line. If iter is null this is logged differently then an empty enumerator. </param>
/// <param name="stream"> Stream to log messages to. </param>
public static void DumpEnumerator(string label, IEnumerator iter, TextWriter stream) // LUCENENET specifc - renamed from DumpIterator
public static void DumpEnumerator(string label, IEnumerator iter, TextWriter stream) // LUCENENET specific - renamed from DumpIterator
{
stream.WriteLine("*** BEGIN " + label + " ***");
if (null == iter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public virtual void TestRandomMaps2()
}
}

// Finish mappping offsets
// Finish mapping offsets
while (actualInputOffsets.Count < actualBuilder.Length)
{
actualInputOffsets.Add(mapFilter.CorrectOffset(actualInputOffsets.Count));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Lucene.Net.Analysis.Hunspell
/// wget --mirror -np http://archive.services.openoffice.org/pub/mirror/OpenOffice.org/contrib/dictionaries/
/// Note some of the files differ only in case. This may be a problem on your operating system!
///
/// LUCENENET NOTE: The above URL is no longer valid. These dictionaries can be retreived via FTP at one of these URLs
/// LUCENENET NOTE: The above URL is no longer valid. These dictionaries can be retrieved via FTP at one of these URLs
/// ftp://ftp.us.horde.org/pub/software/openoffice/contrib/dictionaries/
/// ftp://mirror.nl.leaseweb.net/openoffice/contrib/dictionaries/
/// ftp://mirror.aptus.co.tz/openoffice/contrib/dictionaries/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public Stream OpenResource(string resource)
{
if (!"something.txt".Equals(resource, StringComparison.Ordinal))
{
throw RuntimeException.Create("should not get a differnt resource");
throw RuntimeException.Create("should not get a different resource");
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public virtual void TestBoth()
untoks.Add(WikipediaTokenizer.CATEGORY);
untoks.Add(WikipediaTokenizer.ITALICS);
string test = "[[Category:a b c d]] [[Category:e f g]] [[link here]] [[link there]] ''italics here'' something ''more italics'' [[Category:h i j]]";
//should output all the indivual tokens plus the untokenized tokens as well. Untokenized tokens
//should output all the individual tokens plus the untokenized tokens as well. Untokenized tokens
WikipediaTokenizer tf = new WikipediaTokenizer(new StringReader(test), WikipediaTokenizer.BOTH, untoks);
AssertTokenStreamContents(tf, new string[] { "a b c d", "a", "b", "c", "d", "e f g", "e", "f", "g", "link", "here", "link", "there", "italics here", "italics", "here", "something", "more italics", "more", "italics", "h i j", "h", "i", "j" }, new int[] { 11, 11, 13, 15, 17, 32, 32, 34, 36, 42, 47, 56, 61, 71, 71, 79, 86, 98, 98, 103, 124, 124, 128, 132 }, new int[] { 18, 12, 14, 16, 18, 37, 33, 35, 37, 46, 51, 60, 66, 83, 78, 83, 95, 110, 102, 110, 133, 125, 129, 133 }, new int[] { 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1 });

Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.Analysis.Common/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected override void TestFrameworkSetUp()
// or Hunspell that require it.
//
// Note this is in the test project, which never uses netstandard2.0. If we were using
// netstandard2.0, we would need an extra check to deteremine if we are on .NET Framework,
// netstandard2.0, we would need an extra check to determine if we are on .NET Framework,
// which doesn't support encoding providers. See EncodingProviderInitializer in the
// Lucene.Net.Analysis.Kuromoji project.
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.Queries/BooleanFilterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public override void SetUp()
directory = NewDirectory();
RandomIndexWriter writer = new RandomIndexWriter(Random, directory, new MockAnalyzer(Random, MockTokenizer.WHITESPACE, false));

//Add series of docs with filterable fields : acces rights, prices, dates and "in-stock" flags
//Add series of docs with filterable fields : access rights, prices, dates and "in-stock" flags
AddDoc(writer, @"admin guest", @"010", @"20040101", @"Y");
AddDoc(writer, @"guest", @"020", @"20040101", @"Y");
AddDoc(writer, @"guest", @"020", @"20050101", @"Y");
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net.Tests.Queries/CommonTermsQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public void TestIllegalOccur()
try
{
new CommonTermsQuery(Occur.MUST_NOT, RandomOccur(random), Random.NextSingle());
Assert.Fail(@"MUST_NOT is not supproted");
Assert.Fail(@"MUST_NOT is not supported");
}
catch (Exception ex) when (ex.IsIllegalArgumentException())
{
Expand All @@ -342,7 +342,7 @@ public void TestIllegalOccur()
try
{
new CommonTermsQuery(RandomOccur(random), Occur.MUST_NOT, Random.NextSingle());
Assert.Fail(@"MUST_NOT is not supproted");
Assert.Fail(@"MUST_NOT is not supported");
}
catch (Exception ex) when (ex.IsIllegalArgumentException())
{
Expand Down
2 changes: 1 addition & 1 deletion websites/site/release-notes/version-4.8.0-beta00014.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ IterationCount=15 LaunchCount=2 WarmupCount=10
* [#444](https://github.com/apache/lucenenet/pull/444), [#272](https://github.com/apache/lucenenet/pull/272) - **PERFORMANCE:** `Lucene.Net.Search.FieldCacheImpl`: Reverted locking back to the state of Lucene 4.8.0.
* [#445](https://github.com/apache/lucenenet/pull/445) - Removed `FEATURE_THREAD_INTERRUPT` since all supported targets now support thread interrupts. Note also that Lucene *depends* on thread interrupts to function properly, so disabling this feature would be invalid.
* [#448](https://github.com/apache/lucenenet/pull/448) - **DOCS:** Added migration guide for users migrating from Lucene.NET 3.0.3 to Lucene.NET 4.8.0.
* [#396](https://github.com/apache/lucenenet/pull/396) - **DOCS:** Create branching scheme to track changes in docuentation between different Lucene versions and removed the `JavaDocToMarkdownConverter` tool from the normal build workflow of the API docs. This frees us up to update the "namespace" documentation with .NET-specific information and code examples.
* [#396](https://github.com/apache/lucenenet/pull/396) - **DOCS:** Create branching scheme to track changes in documentation between different Lucene versions and removed the `JavaDocToMarkdownConverter` tool from the normal build workflow of the API docs. This frees us up to update the "namespace" documentation with .NET-specific information and code examples.
* Upgraded J2N NuGet package dependency to 2.0.0-beta-0012
* Upgraded ICU4N NuGet package dependency to 60.1.0-alpha.254
* Upgraded Morfologik.Stemming package dependency to 2.1.7-beta-0002
Expand Down
Loading