Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Shad,
I have completed a couple of the tasks that you set:
Replace all private/internal nested IComparer implementations (usually including the word "Anonymous" in the name) with the Comparer.Create() method (see: https://stackoverflow.com/a/28533921). This will eliminate a lot of unnecessary classes and make the code correspond to Java better, which uses anonymous classes to achieve similar code inlining. If you are unsure if one needs to be converted to inline code rather than a concrete class, check the Java implementation to see if it is inline (https://github.com/apache/lucene-solr/tree/releases/lucene-solr/4.8.0/lucen
e).
Change overloads of OpenStringBuilder.Append(charsequence, start, end) to OpenStringBuilder.Append(charsequence, startIndex, charCount) to match the conventions in .NET
(https://github.com/apache/lucenenet/blob/1274197c39b4b229af7c6734d35840ff21
d47e97/src/Lucene.Net.Analysis.Common/Analysis/Util/OpenStringBuilder.cs#L98
). In Java, the convention is to use start index and end index to select text in a string, but in .NET, the corresponding convention is to use start index and length (count).
On building in Azure I noticed that the set BuildNumber step in the Build.ps1 file was failing. This is due to some changes to the Azure pipeline. These variables are now readonly. I commented this line to successfully run the build/test process but you may want to look at it in more detail.
Thanks
Michael