Apache Lucene open-source search software
build: replace nocommit/TOOD checks with typos-cli (#16255)
Robert Muir54283150a816
diff --git a/.github/workflows/run-checks-gradle-upgrade.yml b/.github/workflows/run-checks-gradle-upgrade.ymlindex f53d43cd373..5d1c7b486e8 100644--- a/.github/workflows/run-checks-gradle-upgrade.yml+++ b/.github/workflows/run-checks-gradle-upgrade.yml@@ -26,7 +26,7 @@ env:jobs:gradleScriptBootstrapCheck:- name: "Check gradle boostrap script sanity on old JVMs."+ name: "Check gradle bootstrap script sanity on old JVMs."timeout-minutes: 30runs-on: ubuntu-lateststeps:diff --git a/.pre-commit-config.yml b/.pre-commit-config.ymlindex 6aea1f74c7a..c8871cde664 100644--- a/.pre-commit-config.yml+++ b/.pre-commit-config.yml@@ -127,6 +127,18 @@ repos:glob:- .github/**/*.yml+ - id: typos+ name: Check for typos+ priority: 0+ language: system+ entry: uv+ args: [ 'run', 'typos', '--force-exclude' ]+ env:+ UV_PROJECT: dev-tools+ UV_FROZEN: "1"+ types: [ 'text' ]+ require_serial: true+- id: rumdlname: Fix Markdownlanguage: systemdiff --git a/.typos.toml b/.typos.tomlnew file mode 100644index 00000000000..bef5816adb2--- /dev/null+++ b/.typos.toml@@ -0,0 +1,77 @@+[default]+check-file = false+# words with length <= 4 chars can be noisy+extend-ignore-words-re = [ "^[a-zA-Z]{1,4}$" ]+# disable some ranges to reduce hassles+extend-ignore-re = [+ # Ignore lines that end with `// spellchecker:disable-line`+ "(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",+ # Ignore the line after `// spellchecker:ignore-next-line`:+ "(#|//)\\s*spellchecker:ignore-next-line\\n.*",+ # Ignore blocks between `// spellchecker:off` and `// spellchecker:on`+ "(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",++ # Ignore quoted text / string literals, a must for this repository+ "[\"][^\\n\"]*[\"]",+ "['][^\\n']*[']",+ "(?s)[\"][\"][\"]\\n.*?[\"][\"][\"]",++ # Ignore lines containing Copyright, often names+ ".*Copyright.*"+]++[default.extend-identifiers]+# not allowed!+nocommit = ""+# not allowed!+TOOD = "TODO"+# customize the correction+seeked = "seek()ed"++[files]+# enable checking of e.g. .github+ignore-hidden = false+extend-exclude = [+ # branch names etc+ ".git/**",+ # test data+ "**/src/test/**/*.{html,xml}",+ # stemmers+ "**/*Stemmer.java",+ # spell/suggest+ "**/hunspell/*.java"+]++[type.asciidoc]+check-file = true++[type.changelog]+check-file = true+extend-glob = [ "CHANGES.txt" ]+# ignore (user)names within parens in CHANGES.txt+extend-ignore-re = [ "[(][^()*]*[)]" ]++[type.groovy]+check-file = true++[type.help]+check-file = true+extend-glob = [ "help/*.txt"]++[type.html]+check-file = true++[type.java]+check-file = true++[type.md]+check-file = true++[type.py]+check-file = true++[type.xml]+check-file = true++[type.yaml]+check-file = truediff --git a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/RenderJavadocPlugin.java b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/RenderJavadocPlugin.javaindex 61ddde49b9e..e34543db1e5 100644--- a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/RenderJavadocPlugin.java+++ b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/RenderJavadocPlugin.java@@ -688,7 +688,7 @@ public class RenderJavadocPlugin extends LuceneGradlePlugin {* <ul>* <li>find all (enabled) tasks from the subgraph of tasks this task depends on (with same* name)- * <li>sort these tasks, ordering the 'core' first, then lexigraphically by path+ * <li>sort these tasks, ordering the 'core' first, then lexicographically by path* <li>for each task, get the output dir to create relative or absolute link.* </ul>*/diff --git a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/licenses/CheckLicensesPlugin.java b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/licenses/CheckLicensesPlugin.javaindex 11d14497ac5..2b69d926517 100644--- a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/licenses/CheckLicensesPlugin.java+++ b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/licenses/CheckLicensesPlugin.java@@ -97,6 +97,7 @@ public class CheckLicensesPlugin extends LuceneGradlePlugin {".lift.toml",".pre-commit-config.yml",".rumdl.toml",+ ".typos.toml",".vscode/**","LICENSE.txt","NOTICE.txt",diff --git a/dev-tools/pyproject.toml b/dev-tools/pyproject.tomlindex 167a48809bc..943c140dbd5 100644--- a/dev-tools/pyproject.toml+++ b/dev-tools/pyproject.toml@@ -21,6 +21,8 @@ dev = ["ruff==0.15.15",# validates various"ast-grep-cli==0.42.3",+ # checks spelling+ "typos==1.47.2",][tool.uv]diff --git a/dev-tools/scripts/releaseWizard.py b/dev-tools/scripts/releaseWizard.pyindex 37de9a936aa..77c68e59d6e 100755--- a/dev-tools/scripts/releaseWizard.py+++ b/dev-tools/scripts/releaseWizard.py@@ -287,7 +287,7 @@ class ReleaseState:try:self.script_branch_type = scriptutil.find_branch_type()except Exception:- print("WARNING: This script shold (ideally) run from the release branch, not a feature branch (%s)" % self.script_branch)+ print("WARNING: This script should (ideally) run from the release branch, not a feature branch (%s)" % self.script_branch)self.script_branch_type = "feature"self.set_release_version(release_version)diff --git a/dev-tools/scripts/releaseWizard.yaml b/dev-tools/scripts/releaseWizard.yamlindex bdde7ab5b03..4e6279903b3 100644--- a/dev-tools/scripts/releaseWizard.yaml+++ b/dev-tools/scripts/releaseWizard.yaml@@ -888,7 +888,7 @@ groups:{% if minus > 0 %}However, there were negative votes. A release cannot be vetoed, and as long as- there are more positive than negative votes you can techically release+ there are more positive than negative votes you can technically releasethe software. However, please review the negative votes and considera re-spin.diff --git a/dev-tools/uv.lock b/dev-tools/uv.lockindex 04ac83503b6..25659484ee5 100644--- a/dev-tools/uv.lock+++ b/dev-tools/uv.lock@@ -36,6 +36,7 @@ dev = [{ name = "ruff" },{ name = "rumdl" },{ name = "shellcheck-py" },+ { name = "typos" },{ name = "zizmor" },]@@ -49,6 +50,7 @@ dev = [{ name = "ruff", specifier = "==0.15.15" },{ name = "rumdl", specifier = "==0.2.5" },{ name = "shellcheck-py", specifier = "==0.11.0.1" },+ { name = "typos", specifier = "==1.47.2" },{ name = "zizmor", specifier = "==1.25.2" },]@@ -128,6 +130,23 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/15/5b/bb14c0a7474463b1aa3c09e866cb172dffc66ed2993b7ea8f1db581e86ee/shellcheck_py-0.11.0.1-py2.py3-none-win_amd64.whl", hash = "sha256:784156289ecb17e91c692cd783ab5152333309588cabb10032a047331c63e759", size = 8027541, upload-time = "2025-08-09T17:53:40.889Z" },]+[[package]]+name = "typos"+version = "1.47.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/77/9b/ae967bee92f0db3916350bd433f700cc0cd2942d51a22f3bfafbc97392f6/typos-1.47.2.tar.gz", hash = "sha256:d303e8c495ea870f750d8b37f2d3c3fe2441b00cf18ca5d7e0b52eca1938c7b7", size = 1829889, upload-time = "2026-06-04T01:03:07.169Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d7/9f/0612f6272666784ee60bee890afd517641044e5f1cda76ce22252e61b4e1/typos-1.47.2-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:87df3040f9d34afd9b19a9437045fbb8838a0435eb00f047e4bac48d92f2fc44", size = 3468120, upload-time = "2026-06-04T01:02:51.404Z" },+ { url = "https://files.pythonhosted.org/packages/4c/cc/9ecd96a40cf5e8aca68cc07c0b7e4a8d8d3376b19c5774a95aeded8a935f/typos-1.47.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:287e2718a058c561baf5f55ec6b466d9270546bcb1951a2c120e594c574b9597", size = 3379520, upload-time = "2026-06-04T01:02:53.117Z" },+ { url = "https://files.pythonhosted.org/packages/d9/6e/77d23f926d6f774d6939e24f9545db702e2ee359b21e38006337539d0903/typos-1.47.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e4ef6632b280ce237caaec38d80dd3c2d956e28aa6925f80d4e915335b94a36", size = 8242414, upload-time = "2026-06-04T01:02:55.443Z" },+ { url = "https://files.pythonhosted.org/packages/a2/fd/e292e2bde1144a135949cf6d5615e571eab7f0ff2ba6cca55c074b302dd1/typos-1.47.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cd7b310019943e26552809bd17f9f202b45eb0c9694f437f1708ab0868248ced", size = 7327674, upload-time = "2026-06-04T01:02:57.243Z" },+ { url = "https://files.pythonhosted.org/packages/a7/58/b7a3f4df5ff9ddde7c9e42d29b4c0569662af5dbad3573eedc167cd8d1e1/typos-1.47.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f525edf9b67d3ede552bb70bd4171f23e5e8edec3187189dfe8d1676df630b44", size = 7747368, upload-time = "2026-06-04T01:02:59.031Z" },+ { url = "https://files.pythonhosted.org/packages/78/18/758682974e36f5b77eb592807fd748ce1c4010509b4255f867433aa3e44f/typos-1.47.2-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:6c36a97ab3dd8c8924cd9b907a32e9aac504fc779d0c3b05e19204ca93385c37", size = 7097338, upload-time = "2026-06-04T01:03:00.932Z" },+ { url = "https://files.pythonhosted.org/packages/9d/b3/e6bccecd186d8f8c2d592baa7e1b17ef4f02a1e0a5ce4d7f53e9693fd3d9/typos-1.47.2-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:4eb36a44daed1d719ce417d2a6dd7a323d814ccdc647d9bb20d17ac2bed9e38c", size = 8136631, upload-time = "2026-06-04T01:03:02.744Z" },+ { url = "https://files.pythonhosted.org/packages/50/90/cceb1be7159dd020c0c9a93371b6444b8bdad7bce55bc7fa119e49d2c264/typos-1.47.2-py3-none-win32.whl", hash = "sha256:d0c01034bc029d8883406f3e2bed46dfa9b090ce6ad4a99e580070ae51307cfa", size = 3139942, upload-time = "2026-06-04T01:03:04.163Z" },+ { url = "https://files.pythonhosted.org/packages/82/0c/7c44ffabf6020d2fc456912bdcfb0d68102e05775fbc5cf82b88979be2ea/typos-1.47.2-py3-none-win_amd64.whl", hash = "sha256:749bbba363067bfc0e54ccc6e7580750e17f5ef093c91fedf6c2eb27d32efee6", size = 3311629, upload-time = "2026-06-04T01:03:05.718Z" },+]+[[package]]name = "zizmor"version = "1.25.2"diff --git a/gradle/validation/ast-grep/rules/java-patterns.yml b/gradle/validation/ast-grep/rules/java-patterns.ymlindex 4f40f722012..fece5d34be2 100644--- a/gradle/validation/ast-grep/rules/java-patterns.yml+++ b/gradle/validation/ast-grep/rules/java-patterns.yml@@ -63,36 +63,6 @@ severity: errormessage: javadoc `@author` tags should not be used---# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/java_rule.json-id: nocommit-comment-language: java-rule:- regex: "nocommit:"- any:- - kind: line_comment- - kind: block_comment-severity: error-message: all `nocommit:` comments must be resolved-----# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/java_rule.json-id: tood-comment-language: java-rule:- regex: "TOOD:"- any:- - kind: line_comment- - kind: block_comment- pattern: $TEXT-transform:- NEWTEXT:- replace:- replace: "TOOD:"- by: "TODO:"- source: $TEXT-fix: $NEWTEXT-severity: error-message: please write as `TODO:` instead-----# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/java_rule.jsonid: missing-spi-block-taglanguage: javaignores:diff --git a/gradle/validation/ast-grep/tests/java-patterns.yml b/gradle/validation/ast-grep/tests/java-patterns.ymlindex a16b4e6becc..76afee6099e 100644--- a/gradle/validation/ast-grep/tests/java-patterns.yml+++ b/gradle/validation/ast-grep/tests/java-patterns.yml@@ -54,25 +54,6 @@ valid:- |/* notjavadoc @author */----id: nocommit-comment-invalid:- - |- // nocommit: fix this- - |- /* nocommit: fix this */-valid:- - boolean nocommit = false;-----id: tood-comment-invalid:- - |- // TOOD: fix this- - |- /* TOOD: fix this */-valid:- - |- var foo = "TOOD: whatever";----id: missing-spi-block-taginvalid:- |diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex 44749e3636a..991bca34148 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -452,7 +452,7 @@ Optimizationstree with a compact prefix-coded byte buffer. (Alan Woodward, Guo Feng)* GITHUB#15732: Prevent writing vectors twice during merging HNSW graphs by allowing doing deferred work after calling- merge for vectors is finshed. (Ignacio Vera)+ merge for vectors is finished. (Ignacio Vera)* GITHUB#16001: IndexSearcher.count() was calling query.rewrite twice, a regression since v9.10 (David Smiley)@@ -1296,7 +1296,7 @@ Optimizations* GITHUB#14169: Optimize ContextQuery with big number of contexts. (Mayya Sharipova)* GITHUB#14181: Add updateable random scorer interface for knn vector index building. This allows- for fewer objects to be created during indexing and simplifies internally used iterfaces.+ for fewer objects to be created during indexing and simplifies internally used interfaces.(Ben Trent)* GITHUB#14160: Adds new filtered HNSW search heuristic based on ACORN-1 algorithm. This improves runtime of filtered HNSW@@ -2549,7 +2549,7 @@ Improvementssuffixes during FST construction using the suffixRAMLimitMB method. Larger valuesresult in a more minimal FST (more common suffixes are shard). PassDouble.POSITIVE_INFINITY to use as much RAM as is needed to create a purely- minimal FST. Inspired by this Rust FST implemention:+ minimal FST. Inspired by this Rust FST implementation:https://blog.burntsushi.net/transducers (Mike McCandless)* GITHUB#12738: NodeHash now stores the FST nodes data instead of just node addresses (Anh Dung Bui)@@ -2702,7 +2702,7 @@ New Features* GITHUB#12380: Introduced LeafCollector#finish, a hook that runs aftercollection has finished running on a leaf. (Adrien Grand)-* LUCENE-8183, GITHUB#9231: Added the abbility to get noSubMatches and noOverlappingMatches in+* LUCENE-8183, GITHUB#9231: Added the ability to get noSubMatches and noOverlappingMatches inHyphenationCompoundWordFilter (Martin Demberger, original from Rupert Westenthaler)* GITHUB#12434: Add `KnnCollector` to `LeafReader` and `KnnVectorReader` so that custom collection of vector@@ -2978,7 +2978,7 @@ Optimizations* GITHUB#12128, GITHUB#12133: Speed up docvalues set query by making use of sortedness. (Robert Muir, Uwe Schindler)-* GITHUB#12050: Reuse HNSW graph for intialization during merge (Jack Mazanec)+* GITHUB#12050: Reuse HNSW graph for initialization during merge (Jack Mazanec)* GITHUB#12155: Speed up DocValuesRewriteMethod by making use of sortedness. (Greg Miller)@@ -3079,7 +3079,7 @@ API Changes* GITHUB#11962: VectorValues#cost() now delegates to VectorValues#size().(Adrien Grand)-* GITHUB#11984: Improved TimeLimitBulkScorer to check the timeout at exponantial rate.+* GITHUB#11984: Improved TimeLimitBulkScorer to check the timeout at exponential rate.(Costin Leau)* GITHUB#12004: Add new KnnByteVectorQuery for querying vector fields that are encoded as BYTE. Removes the ability to@@ -3487,7 +3487,7 @@ Bug Fixes* LUCENE-10611: Fix failure when KnnVectorQuery has very selective filter (Kaival Parikh)-* LUCENE-10607: Fix potential integer overflow in maxArcs computions (Tang Donghai)+* LUCENE-10607: Fix potential integer overflow in maxArcs computations (Tang Donghai)* GITHUB#986: Fix FieldExistsQuery rewrite when all docs have vectors. (Julie Tibshirani)@@ -3651,7 +3651,7 @@ Bug Fixes* LUCENE-10558: Restore behaviour of deprecated Kuromoji and Nori dictionary constructors forcustom dictionary support. Please also use new URL-based constructors for classpath/module- system ressources. (Uwe Schindler, Tomoko Uchida, Mike Sokolov)+ system resources. (Uwe Schindler, Tomoko Uchida, Mike Sokolov)* LUCENE-10564: Make sure SparseFixedBitSet#or updates ramBytesUsed. (Julie Tibshirani)@@ -3744,8 +3744,8 @@ New Featuresif MMapDirectory cannot unmap mapped ByteBuffers or RamUsageEstimator's object sizecalculations may be off. This was added especially for users running Lucene with theJava Module System where some optional features are not available by default or supported.- For all apps using Lucene it is strongly recommended, to explicitely require non-standard- JDK modules: jdk.unsupported (unmapping) and jdk.management (OOP size for RAM usage calculatons).+ For all apps using Lucene it is strongly recommended, to explicitly require non-standard+ JDK modules: jdk.unsupported (unmapping) and jdk.management (OOP size for RAM usage calculations).It is also recommended to install JUL logging adapters to feed the log events into your app'slogging system. (Uwe Schindler, Dawid Weiss, Tomoko Uchida, Robert Muir)@@ -4355,7 +4355,7 @@ Changes in Backwards Compatibility Policy* LUCENE-9669: DirectoryReader#open now accepts an argument to open indices created with versionsolder than N-1. Lucene now can open indices created with a major version of N-2 in read-only mode.Opening an index created with a major version of N-2 with an IndexWriter is not supported.- Further does lucene only support file-format compatibilty which enables reading of old indices while+ Further does lucene only support file-format compatibility which enables reading of old indices whilesemantic changes like analysis or certain encoding on top of the file format are only supported ona best effort basis. (Simon Willnauer)@@ -4946,7 +4946,7 @@ Optimizations* LUCENE-9395: ConstantValuesSource now shares a single DoubleValuesinstance across all segments (Tony Xu)-* LUCENE-9447, LUCENE-9486: Stored fields now get higer compression ratios on+* LUCENE-9447, LUCENE-9486: Stored fields now get higher compression ratios onhighly compressible data. (Adrien Grand)* LUCENE-9373: FunctionMatchQuery now accepts a "matchCost" optimization hint.@@ -5087,7 +5087,7 @@ Improvements* LUCENE-9324: Add an ID to SegmentCommitInfo in order to compare commits for equality and makesnapshots incremental on generational files. (Simon Willnauer, Mike Mccandless, Adrien Grand)-* LUCENE-9342: TotalHits' relation will be EQUAL_TO when the number of hits is lower than TopDocsColector's numHits+* LUCENE-9342: TotalHits' relation will be EQUAL_TO when the number of hits is lower than TopDocsCollector's numHits(Tomás Fernández Löbbe)* LUCENE-9353: Metadata of the terms dictionary moved to its own file, with the@@ -5417,7 +5417,7 @@ Improvements* LUCENE-9018: ConcatenateGraphFilter now has a configurable separator. (Stanislav Mikulchik, David Smiley)-* LUCENE-9036: ExitableDirectoryReader may interupt scaning over DocValues (Mikhail Khludnev)+* LUCENE-9036: ExitableDirectoryReader may interrupt scanning over DocValues (Mikhail Khludnev)* LUCENE-9062: QueryVisitor now has a consumeTermsMatching() method, allowing queriesthat match a class of terms to pass a ByteRunAutomaton matching those that class@@ -5636,7 +5636,7 @@ Other* LUCENE-8998: Fix OverviewImplTest.testIsOptimized reproducible failure. (Tomoko Uchida)-* LUCENE-8999: LuceneTestCase.expectThrows now propogates assert/assumption failures up to the test+* LUCENE-8999: LuceneTestCase.expectThrows now propagates assert/assumption failures up to the testw/o wrapping in a new assertion failure unless the caller has explicitly expected them (hossman)* LUCENE-8062: GlobalOrdinalsWithScoreQuery is no longer eligible for query caching. (Jim Ferenczi)@@ -5645,7 +5645,7 @@ OtherAPI Changes-* LUCENE-8865: IndexSearcher now uses Executor instead of ExecutorSerivce.+* LUCENE-8865: IndexSearcher now uses Executor instead of ExecutorService.This change is fully backwards compatible since ExecutorService directlyimplements Executor. (Simon Willnauer)@@ -6198,7 +6198,7 @@ Optimizations* LUCENE-8204: Boolean queries with a mix of required and optional clauses arenow faster if the total hit count is not required. (Jim Ferenczi, Adrien Grand)-* LUCENE-8448: Boolean queries now propagates the mininum score to their sub-scorers.+* LUCENE-8448: Boolean queries now propagates the minimum score to their sub-scorers.(Jim Ferenczi, Adrien Grand)* LUCENE-8511: MultiFields.getIndexedFields is now optimized; does not call getMergedFieldInfos@@ -6207,7 +6207,7 @@ Optimizations* LUCENE-8507: TopFieldCollector can now update the minimum competitive score if the primary sortis by relevancy and the total hit count is not required. (Jim Ferenczi)-* LUCENE-8464: ConstantScoreScorer now implements setMinCompetitveScore in order+* LUCENE-8464: ConstantScoreScorer now implements setMinCompetitiveScore in orderto early terminate the iterator if the minimum score is greater than the constantscore. (Christophe Bismuth via Jim Ferenczi)@@ -6338,7 +6338,7 @@ Optimizationscan safe up to 80% of the heap used compared to the previous implementation and uses non-objectbased datastructures. (Simon Willnauer, Mike McCandless, Shai Erera, Adrien Grand)-* LUCENE-8598: Moved to the default accepted overhead ratio for packet ints in DocValuesFieldUpdats+* LUCENE-8598: Moved to the default accepted overhead ratio for packet ints in DocValuesFieldUpdatesyields an up-to 4x performance improvement when applying doc values updates. (Simon Willnauer, Adrien Grand)* LUCENE-8599: Use sparse bitset to store docs in SingleValueDocValuesFieldUpdates.@@ -6413,7 +6413,7 @@ Bug fixes* LUCENE-8595: Fix interleaved DV update and reset. Interleaved update and reset valueto the same doc in the same updates package looses an update if the reset comes before- the update as well as loosing the reset if the update comes frist. (Simon Willnauer, Adrien Grand)+ the update as well as loosing the reset if the update comes first. (Simon Willnauer, Adrien Grand)* LUCENE-8592: Fix index sorting corruption due to numeric overflow. The merge of sorted segmentscan produce an invalid sort if the sort field is an Integer/Long that uses reverse order and contains@@ -6745,7 +6745,7 @@ New Features* LUCENE-8246: Allow to customize the number of deletes a merge claims. Thishelps merge policies in the soft-delete case to correctly implement retention- policies without triggering uncessary merges. (Simon Willnauer, Mike McCandless)+ policies without triggering unnecessary merges. (Simon Willnauer, Mike McCandless)* LUCENE-8231: A new analysis module (nori) similar to Kuromojibut to handle Korean using mecab-ko-dic and morphological analysis.@@ -6944,7 +6944,7 @@ Improvements* LUCENE-8081: Allow IndexWriter to opt out of flushing on indexing threadsIndex/Update Threads try to help out flushing pending document buffers todisk. This change adds an expert setting to opt ouf of this behavior unless- flusing is falling behind. (Simon Willnauer)+ flushing is falling behind. (Simon Willnauer)* LUCENE-8086: spatial-extras Geo3dFactory: Use GeoExactCircle withconfigurable precision for non-spherical planet models.@@ -7098,7 +7098,7 @@ New Features* LUCENE-8068: Allow IndexWriter to write a single DWPT to disk Adds aflushNextBuffer method to IndexWriter that allows the caller tosynchronously move the next pending or the biggest non-pending index buffer to- disk. This enables flushing selected buffer to disk without highjacking an+ disk. This enables flushing selected buffer to disk without hijacking anindexing thread. This is for instance useful if more than one IW (shards) mustbe maintained in a single JVM / system. (Simon Willnauer)@@ -7432,7 +7432,7 @@ API ChangesShapeValuesPredicate classes (Alan Woodward, David Smiley)* LUCENE-7892: Doc-values query factory methods have been renamed so that their- name contains "slow" in order to cleary indicate that they would usually be a+ name contains "slow" in order to clearly indicate that they would usually be abad choice. (Adrien Grand)* LUCENE-7899: FieldValueQuery is renamed to DocValuesFieldExistsQuery@@ -7690,7 +7690,7 @@ Bug Fixes* LUCENE-7749: Made LRUQueryCache delegate the scoreSupplier method.(Martin Amirault via Adrien Grand)-* LUCENE-7769: The UnifiedHighligter wasn't highlighting portions of the query+* LUCENE-7769: The UnifiedHighlighter wasn't highlighting portions of the querywrapped in BoostQuery or SpanBoostQuery. (David Smiley, Dmitry Malinin)Other@@ -8356,8 +8356,8 @@ Bug FixesImprovements* LUCENE-7323: Compound file writing now verifies the incoming- sub-files' checkums and segment IDs, to catch hardware issues or- filesytem bugs earlier (Robert Muir, Mike McCandless)+ sub-files' checksums and segment IDs, to catch hardware issues or+ filesystem bugs earlier (Robert Muir, Mike McCandless)* LUCENE-6766: Index time sorting has graduated from the misc moduleto core, is much simpler to use, via@@ -8413,7 +8413,7 @@ Improvements* LUCENE-7409: Changed MMapDirectory's unmapping to work safer, but still withno guarantees. This uses a store-store barrier and yields the current threadbefore unmapping to allow in-flight requests to finish. The new code no longer- uses WeakIdentityMap as it delegates all ByteBuffer reads throgh a new+ uses WeakIdentityMap as it delegates all ByteBuffer reads through a newByteBufferGuard wrapper that is shared between all ByteBufferIndexInput clones.(Robert Muir, Uwe Schindler)@@ -9169,7 +9169,7 @@ Other(Christine Poerschke, Coverity Scan (via Rishabh Patel))* LUCENE-6961: Improve Exception handling in AnalysisFactories /- AnalysisSPILoader: Don't wrap exceptions occuring in factory's+ AnalysisSPILoader: Don't wrap exceptions occurring in factory'sctor inside InvocationTargetException. (Uwe Schindler)* LUCENE-6965: Expression's JavascriptCompiler now throw ParseException@@ -9454,7 +9454,7 @@ Other* LUCENE-6862: Upgrade of RandomizedRunner to version 2.2.0. (Dawid Weiss)* LUCENE-6857: Validate StandardQueryParser with NOT operator- with-in parantheses. (Jigar Shah via Dawid Weiss)+ with-in parentheses. (Jigar Shah via Dawid Weiss)* LUCENE-6827: Use explicit capacity ArrayList instead of a LinkedListin MultiFieldQueryNodeProcessor. (Dawid Weiss).@@ -9921,7 +9921,7 @@ Changes in Runtime Behaviorthat restrict write access. (Trejkaz, hossman, Uwe Schindler)* LUCENE-6651: The default implementation of AttributeImpl#reflectWith(AttributeReflector)- now uses AccessControler#doPrivileged() to do the reflection. Please consider+ now uses AccessController#doPrivileged() to do the reflection. Please considerimplementing this method in all your custom attributes, because the method will bemade abstract in Lucene 6. (Uwe Schindler)@@ -10144,7 +10144,7 @@ Optimizations* LUCENE-6421: Defer reading of positions in MultiPhraseQuery untilthey are needed. (Robert Muir)-* LUCENE-6392: Highligher- reduce memory of tokens in+* LUCENE-6392: Highlighter- reduce memory of tokens inTokenStreamFromTermVector, and add maxStartOffset limit. (David Smiley)* LUCENE-6456: Queries that generate doc id sets that are too large for the@@ -11251,7 +11251,7 @@ API ChangesCheckIndex now prints the Lucene version used to write each segment.(Ryan Ernst, Uwe Schindler, Robert Muir, Mike McCandless)-* LUCENE-5836: BytesRef has been splitted into BytesRef, whose intended usage is+* LUCENE-5836: BytesRef has been split into BytesRef, whose intended usage isto be just a reference to a section of a larger byte[] and BytesRefBuilderwhich is a StringBuilder-like class for BytesRef instances. (Adrien Grand)@@ -11937,7 +11937,7 @@ Bug fixes* LUCENE-5624: Ensure NativeFSLockFactory does not leak file handles if it is unableto obtain the lock. (Uwe Schindler, Robert Muir)-* LUCENE-5626: Fix bug in SimpleFSLockFactory's obtain() that sometimes throwed+* LUCENE-5626: Fix bug in SimpleFSLockFactory's obtain() that sometimes threwIOException (ERROR_ACCESS_DENIED) on Windows if the lock file was createdconcurrently. This error is now handled the same way like in NativeFSLockFactoryby returning false. (Uwe Schindler, Robert Muir, Dawid Weiss)@@ -12240,7 +12240,7 @@ Bug fixesto byte, before calling Similarity.decodeNormValue. (Peng Cheng viaMike McCandless)-* LUCENE-5436: ReferenceManager#accquire can result in infinite loop if+* LUCENE-5436: ReferenceManager#acquire can result in infinite loop ifmanaged resource is abused outside of the ReferenceManager. Decrementingthe reference without a corresponding incRef() call can cause an infiniteloop. ReferenceManager now throws IllegalStateException if currently managed@@ -12382,7 +12382,7 @@ New Features* LUCENE-5235: Tokenizers now throw an IllegalStateException if theconsumer does not call reset() before consuming the stream. Previous- versions throwed NullPointerException or ArrayIndexOutOfBoundsException+ versions threw NullPointerException or ArrayIndexOutOfBoundsExceptionon best effort which was not user-friendly.(Uwe Schindler, Robert Muir)@@ -13429,7 +13429,7 @@ OptimizationsArrayUtil and CollectionUtil override it so that their mergeSort and timSortmethods are faster but only require up to 1% of extra memory. (Adrien Grand)-* LUCENE-4571: Speed up BooleanQuerys with minNrShouldMatch to use+* LUCENE-4571: Speed up BooleanQuery with minNrShouldMatch to useskipping. (Stefan Pohl via Robert Muir)* LUCENE-4863: StemmerOverrideFilter now uses a FST to represent its overrides@@ -13438,7 +13438,7 @@ Optimizations* LUCENE-4889: UnicodeUtil.codePointCount implementation replaced with anon-array-lookup version. (Dawid Weiss)-* LUCENE-4923: Speed up BooleanQuerys processing of in-order disjunctions.+* LUCENE-4923: Speed up BooleanQuery processing of in-order disjunctions.(Robert Muir)* LUCENE-4926: Speed up DisjunctionMatchQuery. (Robert Muir)@@ -16309,7 +16309,7 @@ Builddirectory. The 'clean' target now removes them.(Steve Rowe, Robert Muir)-* LUCENE-3930: Changed build system to use Apache Ivy for retrival of 3rd+* LUCENE-3930: Changed build system to use Apache Ivy for retrieval of 3rdparty JAR files. Please review BUILD.txt for instructions.(Robert Muir, Chris Male, Uwe Schindler, Steven Rowe, Hossman)@@ -16362,7 +16362,7 @@ Bug fixesMcCandless)* LUCENE-3442: TermQuery.TermWeight.scorer() returns null for non-atomic- IndexReaders (optimization bug, introcuced by LUCENE-2829), preventing+ IndexReaders (optimization bug, introduced by LUCENE-2829), preventingQueryWrapperFilter and similar classes to get a top-level DocIdSet.(Dan C., Uwe Schindler)@@ -16417,7 +16417,7 @@ API Changesdeprecated. IndexCommit.isOptimized was replaced withgetSegmentCount. (Robert Muir, Mike McCandless)-* LUCENE-3205: Deprecated MultiTermQuery.getTotalNumerOfTerms() [and+* LUCENE-3205: Deprecated MultiTermQuery.getTotalNumberOfTerms() [andrelated methods], as the numbers returned are not usefulfor multi-segment indexes. They were only needed for tests ofNumericRangeQuery. (Mike McCandless, Uwe Schindler)@@ -16665,7 +16665,7 @@ Bug fixes* LUCENE-3208: IndexSearcher had its own private similarity fieldand corresponding get/setter overriding Searcher's implementation. If you- setted a different Similarity instance on IndexSearcher, methods implemented+ set a different Similarity instance on IndexSearcher, methods implementedin the superclass Searcher were not using it, leading to strange bugs.(Uwe Schindler, Robert Muir)@@ -16728,7 +16728,7 @@ Buildplace this jar in the Ant classpath. NOTE: when Ant looks for themaven-ant-tasks jar, it looks first in its pre-existing classpath, soany copies it finds will be used instead of the copy included in the- Lucene/Solr source tree. For this reason, it is recommeded to remove+ Lucene/Solr source tree. For this reason, it is recommended to removeany copies of the maven-ant-tasks jar in the Ant classpath, e.g. under~/.ant/lib/ or under the Ant installation's lib/ directory. (Steve Rowe)@@ -16750,7 +16750,7 @@ Changes in backwards compatibility policyto no longer extend Vector<SegmentInfo> (to update code that is usingVector-API, use the new asList() and asSet() methods returning unmodifiablecollections; modifying SegmentInfos is now only possible through- the explicitely declared methods). IndexWriter.segString() now takes+ the explicitly declared methods). IndexWriter.segString() now takesIterable<SegmentInfo> instead of List<SegmentInfo>. A simple recompileshould fix this. MergePolicy and SegmentInfos are internal/experimentalAPIs not covered by the strict backwards compatibility policy.@@ -16860,7 +16860,7 @@ BuildTest Cases* LUCENE-3002: added 'tests.iter.min' to control 'tests.iter' by allowing to- stop iterating if at least 'tests.iter.min' ran and a failure occured.+ stop iterating if at least 'tests.iter.min' ran and a failure occurred.(Shai Erera, Chris Hostetter)======================= Lucene 3.1.0 =======================@@ -17434,7 +17434,7 @@ Optimizations* LUCENE-2164: ConcurrentMergeScheduler has more control over mergethreads. First, it gives smaller merges higher thread priority than- larges ones. Second, a new set/getMaxMergeCount setting will pause+ largest ones. Second, a new set/getMaxMergeCount setting will pausethe larger merges to allow smaller ones to finish. The defaults forthese settings are now dynamic, depending the number CPU cores asreported by Runtime.getRuntime().availableProcessors() (Mike@@ -17590,7 +17590,7 @@ Documentationmethods. (Santiago M. Mola via Mike McCandless)* LUCENE-2625: Add a note to IndexReader.termDocs() with additional verbiage- that the TermEnum must be seeked since it is unpositioned.+ that the TermEnum must be seek()ed since it is unpositioned.(Adriano Crestani via Robert Muir)* LUCENE-2894: Use google-code-prettify for syntax highlighting in javadoc.@@ -17765,7 +17765,7 @@ Changes in runtime behavior* LUCENE-2060 (2.9.3 only): Changed ConcurrentMergeScheduler's default formaxNumThreads from 3 to 1, because in practice we get the most gains- from running a single merge in the backround. More than one+ from running a single merge in the background. More than oneconcurrent merge causes alot of thrashing (though it's possible onSSD storage that there would be net gains). (Jason Rutherglen, MikeMcCandless)@@ -18648,7 +18648,7 @@ API ChangesMcCandless)* LUCENE-1688: Deprecate static final String stop word array in and- StopAnalzyer and replace it with an immutable implementation of+ StopAnalyzer and replace it with an immutable implementation ofCharArraySet. (Simon Willnauer via Mark Miller)* LUCENE-1742: SegmentInfos, SegmentInfo and SegmentReader have been@@ -18772,7 +18772,7 @@ Bug fixes* LUCENE-1681: Fix infinite loop caused by a call to DocValues methodsgetMinValue, getMaxValue, getAverageValue. (Simon Willnauer via Mark Miller)- * LUCENE-1599: Add clone support for SpanQuerys. SpanRegexQuery counts+ * LUCENE-1599: Add clone support for SpanQuery. SpanRegexQuery countson this functionality and does not work correctly without it.(Billow Gao, Mark Miller)@@ -18940,7 +18940,7 @@ New featuresnew expert getReader() method. This method returns a reader thatsearches the full index, including any uncommitted changes in thecurrent IndexWriter session. This should result in a faster- turnaround than the normal approach of commiting the changes and+ turnaround than the normal approach of committing the changes andthen reopening a reader. (Jason Rutherglen via Mike McCandless)* LUCENE-1603: Added new MultiTermQueryWrapperFilter, to wrap any@@ -19112,7 +19112,7 @@ OptimizationsDocumentation- * LUCENE-1908: Scoring documentation imrovements in Similarity javadocs.+ * LUCENE-1908: Scoring documentation improvements in Similarity javadocs.(Mark Miller, Shai Erera, Ted Dunning, Jiri Kuhn, Marvin Humphrey, Doron Cohen)* LUCENE-1872: NumericField javadoc improvements@@ -19895,7 +19895,7 @@ Bug fixesnow works seamlessly. If docs not yet retrieved are deleted(e.g. from another thread), and then, relying on the initialHits.length(), an application attempts to retrieve more hits- than actually exist , a ConcurrentMidificationException+ than actually exist , a ConcurrentModificationExceptionis thrown. (Doron Cohen)27. LUCENE-1068: Changed StandardTokenizer to fix an issue with it marking@@ -20567,7 +20567,7 @@ API ChangesLucene to work correctly over NFS (second step isLUCENE-710). (Mike McCandless)-11. LUCENE-722: DEFAULT_MIN_DOC_FREQ was misspelled DEFALT_MIN_DOC_FREQ+11. LUCENE-722: DEFAULT_MIN_DOC_FREQ was misspelled DEFAULT_MIN_DOC_FREQin Similarity's MoreLikeThis class. The misspelling has beenreplaced by the correct spelling.(Andi Vajda via Daniel Naber)@@ -21080,7 +21080,7 @@ New featuresin a readable format adequate for indexing. Unlike the existingDateField class DateTools can cope with dates before 1970 and itforces you to specify the desired date resolution (e.g. month, day,- second, ...) which can make RangeQuerys on those fields more efficient.+ second, ...) which can make RangeQuery on those fields more efficient.(Daniel Naber)5. QueryParser now correctly works with Analyzers that can return more@@ -21233,7 +21233,7 @@ API Changes4. Add a serializable Parameter Class to standardize parameter enumclasses in BooleanClause and Field. (Christoph)- 5. Added rewrite methods to all SpanQuery subclasses that nest other SpanQuerys.+ 5. Added rewrite methods to all SpanQuery subclasses that nest other SpanQuery.This allows custom SpanQuery subclasses that rewrite (for term expansion, forexample) to nest within the built-in SpanQuery classes successfully.@@ -21255,7 +21255,7 @@ Bug fixes5. Small bug in skipTo of ConjunctionScorer that caused NullPointerExceptionif skipTo() was called without prior call to next() fixed. (Christoph)- 6. Disable Similiarty.coord() in the scoring of most automatically+ 6. Disable Similarity.coord() in the scoring of most automaticallygenerated boolean queries. The coord() score factor isappropriate when clauses are independently specified by a user,but is usually not appropriate when clauses are generated@@ -21430,7 +21430,7 @@ InfrastructureThe QueryParser syntax for this is term~x, where x is a floatingpoint number >= 0 and < 1 (a bigger number means that a highersimilarity is required). Furthermore, a prefix can be specified- for FuzzyQuerys so that only those terms are considered similar that+ for FuzzyQuery so that only those terms are considered similar thatstart with this prefix. This can speed up FuzzyQuery greatly.(Daniel Naber, Christoph Goller)@@ -21543,7 +21543,7 @@ Infrastructure3. Restructured the Scorer API and all Scorer implementations to takeadvantage of an optimized TermDocs.skipTo() implementation. In- particular, PhraseQuerys and conjunctive BooleanQuerys are+ particular, PhraseQuery and conjunctive BooleanQuery arefaster when one clause has substantially fewer matches than theothers. (A conjunctive BooleanQuery is a BooleanQuery where allclauses are required.) (cutting)@@ -21995,7 +21995,7 @@ Infrastructureerases the directory contents, even when the directoryhas 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-existentspecified upper term.- SegmentTermEnum: Fix NullPointerException in clone() methodwhen the Term is null.diff --git a/lucene/MIGRATE.md b/lucene/MIGRATE.mdindex 41fd8a4e18f..75a260d3aa8 100644--- a/lucene/MIGRATE.md+++ b/lucene/MIGRATE.md@@ -1037,7 +1037,7 @@ classes were `@Deprecated` starting with 9.0. Users are encouraged to rely on thtaxonomy facet encodings where possible. If custom formats are needed, users will needto manage the indexed data on their own and create new `Facet` implementations to use it.-### `Weight#scorerSupplier` is declared abstract, and `Weight#scorer` methd is marked final+### `Weight#scorerSupplier` is declared abstract, and `Weight#scorer` method is marked finalThe `Weight#scorerSupplier` method is now declared abstract, compelling child classes to implement the ScorerSupplierinterface. Additionally, `Weight#scorer` is now declared final, with its implementation being delegated todiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.javaindex 94b684cd3d5..59d1bba792e 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java@@ -573,7 +573,7 @@ class BrazilianStemmer {private boolean step2() {if (RV == null) return false;- // suffix lenght = 7+ // suffix length = 7if (RV.length() >= 7) {if (suffix(RV, "issemos")) {CT = removeSuffix(CT, "issemos");diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsQueryFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsQueryFilter.javaindex 7a5ba1322ec..d793a0b6573 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsQueryFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsQueryFilter.java@@ -57,7 +57,7 @@ public final class CommonGramsQueryFilter extends TokenFilter {private boolean exhausted;/**- * Constructs a new CommonGramsQueryFilter based on the provided CommomGramsFilter+ * Constructs a new CommonGramsQueryFilter based on the provided CommonGramsFilter** @param input CommonGramsFilter the QueryFilter will use*/diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/DictionaryCompoundWordTokenFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/DictionaryCompoundWordTokenFilter.javaindex c6acbb147f3..b60a8bb6712 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/DictionaryCompoundWordTokenFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/DictionaryCompoundWordTokenFilter.java@@ -51,7 +51,7 @@ public class DictionaryCompoundWordTokenFilter extends CompoundWordTokenFilterBa* @param minWordSize only words longer than this get processed* @param minSubwordSize only subwords longer than this get to the output stream* @param maxSubwordSize only subwords shorter than this get to the output stream- * @param onlyLongestMatchIgnoreSubwords Subwords are igored, e.g. if a word contains 'schwein',+ * @param onlyLongestMatchIgnoreSubwords Subwords are ignored, e.g. if a word contains 'schwein',* only the longer word 'schwein' will be extracted, the subword 'wein' will be ignored.* Supersede parameter onlyLongestMatch*/diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/PatternParser.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/PatternParser.javaindex d10428116f0..d0e57ffd485 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/PatternParser.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/PatternParser.java@@ -126,8 +126,8 @@ public class PatternParser extends DefaultHandler {}if (space) {// chars.delete(0,i);- for (int countr = i; countr < chars.length(); countr++) {- chars.setCharAt(countr - i, chars.charAt(countr));+ for (int counter = i; counter < chars.length(); counter++) {+ chars.setCharAt(counter - i, chars.charAt(counter));}chars.setLength(chars.length() - i);if (token.length() > 0) {@@ -145,8 +145,8 @@ public class PatternParser extends DefaultHandler {}token.append(chars, 0, i);// chars.delete(0,i);- for (int countr = i; countr < chars.length(); countr++) {- chars.setCharAt(countr - i, chars.charAt(countr));+ for (int counter = i; counter < chars.length(); counter++) {+ chars.setCharAt(counter - i, chars.charAt(counter));}chars.setLength(chars.length() - i);if (space) {diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/TernaryTree.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/TernaryTree.javaindex ee75d983a4d..29df5b1bc8d 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/TernaryTree.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/hyphenation/TernaryTree.java@@ -172,7 +172,7 @@ public class TernaryTree implements Cloneable {eq[p] = pp;lo[pp]++;if (kv.get(lo[pp]) == 0) {- // key completly decompressed leaving garbage in key array+ // key completely decompressed leaving garbage in key arraylo[pp] = 0;sc[pp] = 0;hi[pp] = 0;diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishMinimalStemmer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishMinimalStemmer.javaindex 42c03a59f7b..1163d946f1c 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishMinimalStemmer.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishMinimalStemmer.java@@ -20,7 +20,7 @@ package org.apache.lucene.analysis.es;/*** Minimal plural stemmer for Spanish.*- * <p>This stemmer implements the "plurals" stemmer for spanish lanugage.+ * <p>This stemmer implements the "plurals" stemmer for spanish language.** @deprecated Use {@link SpanishPluralStemmer} instead.*/diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishPluralStemmer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishPluralStemmer.javaindex b18c208506a..d7815e0f7ec 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishPluralStemmer.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishPluralStemmer.java@@ -162,8 +162,8 @@ class SpanishPluralStemmer {"bojes","contrarreloj","carcajes");- final CharArraySet sepecialSet = new CharArraySet(specialCasesList, true);- specialCases = CharArraySet.unmodifiableSet(sepecialSet);+ final CharArraySet specialSet = new CharArraySet(specialCasesList, true);+ specialCases = CharArraySet.unmodifiableSet(specialSet);}int stem(char s[], int len) {diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.javaindex ac0854a0706..afba2673502 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java@@ -1609,8 +1609,7 @@ public class Dictionary {}Path tmpPath = Paths.get(tmpDir);if (!Files.isWritable(tmpPath)) {- throw new IOException(- "Temporary path not present or writeable?: " + tmpPath.toAbsolutePath());+ throw new IOException("Temporary path not present or writable?: " + tmpPath.toAbsolutePath());}return tmpPath;}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Suggester.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Suggester.javaindex c3b8078b1f5..1edf2888c7c 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Suggester.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Suggester.java@@ -127,8 +127,8 @@ public class Suggester {/*** @param word the misspelled word to calculate suggestions for- * @param timeLimitMs the duration limit in milliseconds after which the computation is interruped- * by an exception+ * @param timeLimitMs the duration limit in milliseconds after which the computation is+ * interrupted by an exception* @param checkCanceled an object that's periodically called, allowing to interrupt or suggestion* generation by throwing an exception* @throws SuggestionTimeoutException if the computation takes too long. Use {@linkdiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.javaindex 83724af63d5..b92433a6e10 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.java@@ -102,7 +102,7 @@ public final class StemmerOverrideFilter extends TokenFilter {* Creates a new {@link StemmerOverrideMap}** @param fst the fst to lookup the overrides- * @param ignoreCase if the keys case should be ingored+ * @param ignoreCase if the keys case should be ignored*/public StemmerOverrideMap(FST<BytesRef> fst, boolean ignoreCase) {this.fst = fst;diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TypeAsSynonymFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TypeAsSynonymFilter.javaindex 598e7c68813..c6a0749a72e 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TypeAsSynonymFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TypeAsSynonymFilter.java@@ -29,7 +29,7 @@ import org.apache.lucene.util.AttributeSource;/*** Adds the {@link TypeAttribute#type()} as a synonym, i.e. another token at the same position,- * optionally with a specified prefix prepended, optionally transfering flags, and optionally+ * optionally with a specified prefix prepended, optionally transferring flags, and optionally* ignoring some types. See {@link TypeAsSynonymFilterFactory} for full details.*/public final class TypeAsSynonymFilter extends TokenFilter {diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/path/PathHierarchyTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/path/PathHierarchyTokenizerFactory.javaindex f02e648713d..f669d24f108 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/path/PathHierarchyTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/path/PathHierarchyTokenizerFactory.java@@ -43,7 +43,7 @@ import org.apache.lucene.util.AttributeFactory;* </fieldType>* </code></pre>*- * <p>In this example however we see the oposite configuration, so that a query for <code>+ * <p>In this example however we see the opposite configuration, so that a query for <code>* Books/NonFic/Science/Physics</code> would match documents containing <code>Books/NonFic</code>,* <code>Books/NonFic/Science</code>, or <code>Books/NonFic/Science/Physics</code>, but not <code>* Books/NonFic/Science/Physics/Theory</code> or <code>Books/NonFic/Law</code>.diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguNormalizer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguNormalizer.javaindex 0bbab021c11..12728d44f44 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguNormalizer.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguNormalizer.java@@ -86,7 +86,7 @@ class TeluguNormalizer {case '\u0C4B': // ోs[i] = '\u0C4A'; // ొbreak;- // decomposed dipthong (ె + ౖ) -> precomposed diphthong vowel sign (ై)+ // decomposed diphthong (ె + ౖ) -> precomposed diphthong vowel sign (ై)case '\u0C46':if (i + 1 < len && s[i + 1] == '\u0C56') {s[i] = '\u0C48';diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/RollingCharBuffer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/RollingCharBuffer.javaindex ca398987662..5865507cbab 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/RollingCharBuffer.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/RollingCharBuffer.java@@ -54,7 +54,7 @@ public final class RollingCharBuffer {}/* Absolute position read. NOTE: pos must not jump- * ahead by more than 1! Ie, it's OK to read arbitarily+ * ahead by more than 1! Ie, it's OK to read arbitrarily* far back (just not prior to the last {@link* #freeBefore}), but NOT ok to read arbitrarily far* ahead. Returns -1 if you hit EOF. */diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/compound/hyphenation/hyphenation.dtd b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/compound/hyphenation/hyphenation.dtdindex 56eb8777156..8eb520ec518 100644--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/compound/hyphenation/hyphenation.dtd+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/compound/hyphenation/hyphenation.dtd@@ -25,7 +25,7 @@<!ATTLIST hyphen-char value CDATA #REQUIRED><!--- Default minimun length in characters of hyphenated word fragments+ Default minimum length in characters of hyphenated word fragmentsbefore and after the line break. For some languages this is notonly for aesthetic purposes, wrong hyphens may be generated if thisis not accounted for.diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/br/TestBrazilianAnalyzer.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/br/TestBrazilianAnalyzer.javaindex 7bf8da847c3..2922251c697 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/br/TestBrazilianAnalyzer.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/br/TestBrazilianAnalyzer.java@@ -38,7 +38,7 @@ public class TestBrazilianAnalyzer extends BaseTokenStreamTestCase {check("boa", "boa");check("boainain", "boainain");check("boas", "boas");- check("bôas", "boas"); // removes diacritic: different from snowball portugese+ check("bôas", "boas"); // removes diacritic: different from snowball portuguesecheck("boassu", "boassu");check("boataria", "boat");check("boate", "boat");@@ -48,7 +48,7 @@ public class TestBrazilianAnalyzer extends BaseTokenStreamTestCase {check("boba", "bob");check("bobagem", "bobag");check("bobagens", "bobagens");- check("bobalhões", "bobalho"); // removes diacritic: different from snowball portugese+ check("bobalhões", "bobalho"); // removes diacritic: different from snowball portuguesecheck("bobear", "bob");check("bobeira", "bobeir");check("bobinho", "bobinh");@@ -86,8 +86,8 @@ public class TestBrazilianAnalyzer extends BaseTokenStreamTestCase {check("quilombo", "quilomb");check("quilométricas", "quilometr"); // removes diacritic: different from snowball portuguesecheck("quilométricos", "quilometr"); // removes diacritic: different from snowball portuguese- check("quilômetro", "quilometr"); // removes diacritic: different from snowball portoguese- check("quilômetros", "quilometr"); // removes diacritic: different from snowball portoguese+ check("quilômetro", "quilometr"); // removes diacritic: different from snowball portuguese+ check("quilômetros", "quilometr"); // removes diacritic: different from snowball portuguesecheck("quilos", "quil");check("quimica", "quimic");check("quilos", "quil");@@ -97,10 +97,10 @@ public class TestBrazilianAnalyzer extends BaseTokenStreamTestCase {check("quimicos", "quimic");check("quimioterapia", "quimioterap");check(- "quimioterápicos", "quimioterap"); // removes diacritic: different from snowball portoguese+ "quimioterápicos", "quimioterap"); // removes diacritic: different from snowball portuguesecheck("quimono", "quimon");check("quincas", "quinc");- check("quinhão", "quinha"); // removes diacritic: different from snowball portoguese+ check("quinhão", "quinha"); // removes diacritic: different from snowball portuguesecheck("quinhentos", "quinhent");check("quinn", "quinn");check("quino", "quin");@@ -108,7 +108,7 @@ public class TestBrazilianAnalyzer extends BaseTokenStreamTestCase {check("quintal", "quintal");check("quintana", "quintan");check("quintanilha", "quintanilh");- check("quintão", "quinta"); // removes diacritic: different from snowball portoguese+ check("quintão", "quinta"); // removes diacritic: different from snowball portuguesecheck("quintessência", "quintessente"); // versus snowball portuguese 'quintessent'check("quintino", "quintin");check("quinto", "quint");@@ -134,7 +134,7 @@ public class TestBrazilianAnalyzer extends BaseTokenStreamTestCase {checkReuse(a, "boa", "boa");checkReuse(a, "boainain", "boainain");checkReuse(a, "boas", "boas");- checkReuse(a, "bôas", "boas"); // removes diacritic: different from snowball portugese+ checkReuse(a, "bôas", "boas"); // removes diacritic: different from snowball portuguesea.close();}diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/charfilter/TestMappingCharFilter.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/charfilter/TestMappingCharFilter.javaindex 07b8f6a560a..1722268c575 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/charfilter/TestMappingCharFilter.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/charfilter/TestMappingCharFilter.java@@ -465,7 +465,7 @@ public class TestMappingCharFilter extends BaseTokenStreamTestCase {}}- // Finish mappping offsets+ // Finish mapping offsetswhile (actualInputOffsets.size() < actualBuilder.length()) {actualInputOffsets.add(mapFilter.correctOffset(actualInputOffsets.size()));}diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/classic/TestClassicAnalyzer.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/classic/TestClassicAnalyzer.javaindex c84918bc00d..03e920e0e14 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/classic/TestClassicAnalyzer.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/classic/TestClassicAnalyzer.java@@ -101,7 +101,7 @@ public class TestClassicAnalyzer extends BaseTokenStreamTestCase {public void testApostrophes() throws Exception {// internal apostrophes: O'Reilly, you're, O'Reilly's- // possessives are actually removed by StardardFilter, not the tokenizer+ // possessives are actually removed by StandardFilter, not the tokenizerassertAnalyzesTo(a, "O'Reilly", new String[] {"o'reilly"});assertAnalyzesTo(a, "you're", new String[] {"you're"});assertAnalyzesTo(a, "she's", new String[] {"she"});diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/compound/hyphenation.dtd b/lucene/analysis/common/src/test/org/apache/lucene/analysis/compound/hyphenation.dtdindex 083a8d32ccb..f210b1b9ce4 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/compound/hyphenation.dtd+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/compound/hyphenation.dtd@@ -26,7 +26,7 @@<!ATTLIST hyphen-char value CDATA #REQUIRED><!--- Default minimun length in characters of hyphenated word fragments+ Default minimum length in characters of hyphenated word fragmentsbefore and after the line break. For some languages this is notonly for aesthetic purposes, wrong hyphens may be generated if thisis not accounted for.diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestDecimalDigitFilter.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestDecimalDigitFilter.javaindex c91da6314bd..a51b83e1101 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestDecimalDigitFilter.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestDecimalDigitFilter.java@@ -168,18 +168,18 @@ public class TestDecimalDigitFilter extends BaseTokenStreamTestCase {checkRandomData(random(), tokenized, 200 * RANDOM_MULTIPLIER);}- /** returns a psuedo-random codepoint which is a Decimal Digit */+ /** returns a pseudo-random codepoint which is a Decimal Digit */public static int getRandomDecimalDigit(Random r) {- final int aprox = TestUtil.nextInt(r, 0, DECIMAL_DIGIT_CODEPOINTS.length() - 1);+ final int approx = TestUtil.nextInt(r, 0, DECIMAL_DIGIT_CODEPOINTS.length() - 1);- if (DECIMAL_DIGIT_CODEPOINTS.get(aprox)) { // lucky guess- assert Character.isDigit(aprox);- return aprox;+ if (DECIMAL_DIGIT_CODEPOINTS.get(approx)) { // lucky guess+ assert Character.isDigit(approx);+ return approx;}// seek up and down for closest set bit- final int lower = DECIMAL_DIGIT_CODEPOINTS.prevSetBit(aprox);- final int higher = DECIMAL_DIGIT_CODEPOINTS.nextSetBit(aprox);+ final int lower = DECIMAL_DIGIT_CODEPOINTS.prevSetBit(approx);+ final int higher = DECIMAL_DIGIT_CODEPOINTS.nextSetBit(approx);// sanity check edge casesif (lower < 0) {@@ -194,7 +194,7 @@ public class TestDecimalDigitFilter extends BaseTokenStreamTestCase {}// which is closer?- final int cmp = Integer.compare(aprox - lower, higher - aprox);+ final int cmp = Integer.compare(approx - lower, higher - approx);if (0 == cmp) {// dead even, flip a coindiff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestKeywordAnalyzer.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestKeywordAnalyzer.javaindex f2800154f30..ce986fed26b 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestKeywordAnalyzer.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestKeywordAnalyzer.java@@ -81,7 +81,7 @@ public class TestKeywordAnalyzer extends BaseTokenStreamTestCase {}*/- public void testMutipleDocument() throws Exception {+ public void testMultipleDocument() throws Exception {Directory dir = new ByteBuffersDirectory();Analyzer analyzer = new KeywordAnalyzer();IndexWriter writer = new IndexWriter(dir, new IndexWriterConfig(analyzer));diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestTypeTokenFilter.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestTypeTokenFilter.javaindex 0de7e525bd3..da8e44f562c 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestTypeTokenFilter.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestTypeTokenFilter.java@@ -40,7 +40,7 @@ public class TestTypeTokenFilter extends BaseTokenStreamTestCase {}/** Test Position increments applied by TypeTokenFilter with and without enabling this option. */- public void testStopPositons() throws IOException {+ public void testStopPositions() throws IOException {StringBuilder sb = new StringBuilder();for (int i = 10; i < 20; i++) {if (i % 3 != 0) {@@ -59,10 +59,10 @@ public class TestTypeTokenFilter extends BaseTokenStreamTestCase {final StandardTokenizer input = new StandardTokenizer();input.setReader(reader);TypeTokenFilter typeTokenFilter = new TypeTokenFilter(input, stopSet);- testPositons(typeTokenFilter);+ testPositions(typeTokenFilter);}- private void testPositons(TypeTokenFilter stpf) throws IOException {+ private void testPositions(TypeTokenFilter stpf) throws IOException {TypeAttribute typeAtt = stpf.getAttribute(TypeAttribute.class);CharTermAttribute termAttribute = stpf.getAttribute(CharTermAttribute.class);PositionIncrementAttribute posIncrAtt = stpf.getAttribute(PositionIncrementAttribute.class);diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/custom/TestCustomAnalyzer.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/custom/TestCustomAnalyzer.javaindex 72aa96ed2a9..eb1d6451243 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/custom/TestCustomAnalyzer.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/custom/TestCustomAnalyzer.java@@ -552,7 +552,7 @@ public class TestCustomAnalyzer extends BaseTokenStreamTestCase {assertEquals(new BytesRef("a b e"), analyzer.normalize("dummy", "À B é"));}- public void testNormalizationWithMultiplCharFilters() throws IOException {+ public void testNormalizationWithMultipleCharFilters() throws IOException {CustomAnalyzer analyzer =CustomAnalyzer.builder()// none of these components are multi-term aware so they should not be applieddiff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchMinimalStemFilter.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchMinimalStemFilter.javaindex fc48a8c36e2..b380b10fdaf 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchMinimalStemFilter.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchMinimalStemFilter.java@@ -65,7 +65,7 @@ public class TestFrenchMinimalStemFilter extends BaseTokenStreamTestCase {checkOneTerm(analyzer, "baron", "baron");}- public void testIntergerWithLastCharactersEqual() throws IOException {+ public void testIntegerWithLastCharactersEqual() throws IOException {// Trailing repeated char elision :checkOneTerm(analyzer, "1234555", "1234555");// Repeated char within numbers with more than 6 characters :diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/TestAllDictionaries.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/TestAllDictionaries.javaindex 0dda7a2d92e..222d7da1074 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/TestAllDictionaries.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/TestAllDictionaries.java@@ -90,7 +90,7 @@ public class TestAllDictionaries extends LuceneTestCase {}}- /** Hack bais to expose current position. */+ /** Hack ByteArrayInputStream to expose current position. */private static class ExposePosition extends ByteArrayInputStream {public ExposePosition(byte[] buf) {super(buf);diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/TestLimitTokenPositionFilter.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/TestLimitTokenPositionFilter.javaindex 1b26f2f40ba..623bc2b7149 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/TestLimitTokenPositionFilter.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/TestLimitTokenPositionFilter.java@@ -77,7 +77,7 @@ public class TestLimitTokenPositionFilter extends BaseTokenStreamTestCase {}}- public void testMaxPosition3WithSynomyms() throws IOException {+ public void testMaxPosition3WithSynonyms() throws IOException {for (final boolean consumeAll : new boolean[] {true, false}) {MockTokenizer tokenizer = whitespaceMockTokenizer("one two three four five");// if we are consuming all tokens, we can use the checks, otherwise we can'tdiff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/synonym/word2vec/TestWord2VecSynonymFilter.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/synonym/word2vec/TestWord2VecSynonymFilter.javaindex 3999931dd75..8c8b5c3e1c4 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/synonym/word2vec/TestWord2VecSynonymFilter.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/synonym/word2vec/TestWord2VecSynonymFilter.java@@ -50,7 +50,7 @@ public class TestWord2VecSynonymFilter extends BaseTokenStreamTestCase {new int[] {3, 5, 5, 5, 5, 5, 10}, // end offsetnew String[] {"word", "word", "SYNONYM", "SYNONYM", "SYNONYM", "SYNONYM", "word"}, // typesnew int[] {1, 1, 0, 0, 0, 0, 1}, // posIncrements- new int[] {1, 1, 1, 1, 1, 1, 1}); // posLenghts+ new int[] {1, 1, 1, 1, 1, 1, 1}); // posLengthsa.close();}@@ -76,7 +76,7 @@ public class TestWord2VecSynonymFilter extends BaseTokenStreamTestCase {new int[] {3, 5, 5, 5, 10}, // end offsetnew String[] {"word", "word", "SYNONYM", "SYNONYM", "word"}, // typesnew int[] {1, 1, 0, 0, 1}, // posIncrements- new int[] {1, 1, 1, 1, 1}); // posLenghts+ new int[] {1, 1, 1, 1, 1}); // posLengthsa.close();}diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/wikipedia/TestWikipediaTokenizer.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/wikipedia/TestWikipediaTokenizer.javaindex 17db9a70a0f..753b01eea43 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/wikipedia/TestWikipediaTokenizer.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/wikipedia/TestWikipediaTokenizer.java@@ -377,7 +377,7 @@ public class TestWikipediaTokenizer extends BaseTokenStreamTestCase {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+ // should output all the individual tokens plus the untokenized tokens as well. Untokenized// tokensWikipediaTokenizer tf =new WikipediaTokenizer(newAttributeFactory(), WikipediaTokenizer.BOTH, untoks);diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/TokenInfoDictionaryEntryWriter.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/TokenInfoDictionaryEntryWriter.javaindex 4bdfe5095a6..41d7314c03f 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/TokenInfoDictionaryEntryWriter.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/TokenInfoDictionaryEntryWriter.java@@ -45,7 +45,7 @@ class TokenInfoDictionaryEntryWriter extends DictionaryEntryWriter {* 4-9 - pos* 10 - base form* 11 - reading- * 12 - pronounciation+ * 12 - pronunciation* </pre>*/@Overridediff --git a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/POS.java b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/POS.javaindex c083833facf..1fb2f6b09ca 100644--- a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/POS.java+++ b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/POS.java@@ -118,7 +118,7 @@ public class POS {SF(160, "Terminal punctuation"),/** Chinese character */- SH(161, "Chinese Characeter"),+ SH(161, "Chinese Character"),/** Foreign language */SL(162, "Foreign language"),diff --git a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/dict/KoMorphData.java b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/dict/KoMorphData.javaindex 2b2c53a4d6d..78747343b73 100644--- a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/dict/KoMorphData.java+++ b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/dict/KoMorphData.java@@ -31,7 +31,7 @@ public interface KoMorphData extends MorphData {POS.Type getPOSType(int morphId);/**- * Get the left {@link org.apache.lucene.analysis.ko.POS.Tag} of specfied word.+ * Get the left {@link org.apache.lucene.analysis.ko.POS.Tag} of specified word.** <p>For {@link org.apache.lucene.analysis.ko.POS.Type#MORPHEME} and {@link* org.apache.lucene.analysis.ko.POS.Type#COMPOUND} the left and right POS are the same.@@ -39,7 +39,7 @@ public interface KoMorphData extends MorphData {POS.Tag getLeftPOS(int morphId);/**- * Get the right {@link org.apache.lucene.analysis.ko.POS.Tag} of specfied word.+ * Get the right {@link org.apache.lucene.analysis.ko.POS.Tag} of specified word.** <p>For {@link org.apache.lucene.analysis.ko.POS.Type#MORPHEME} and {@link* org.apache.lucene.analysis.ko.POS.Type#COMPOUND} the left and right POS are the same.diff --git a/lucene/analysis/nori/src/test/org/apache/lucene/analysis/ko/TestKoreanTokenizer.java b/lucene/analysis/nori/src/test/org/apache/lucene/analysis/ko/TestKoreanTokenizer.javaindex 6ce60a53e3f..e8961cb6b8b 100644--- a/lucene/analysis/nori/src/test/org/apache/lucene/analysis/ko/TestKoreanTokenizer.java+++ b/lucene/analysis/nori/src/test/org/apache/lucene/analysis/ko/TestKoreanTokenizer.java@@ -159,7 +159,7 @@ public class TestKoreanTokenizer extends BaseTokenStreamTestCase {new POS.Tag[] {POS.Tag.NNG, POS.Tag.NNG, POS.Tag.JKG, POS.Tag.NNB});}- public void testPartOfSpeechs() throws IOException {+ public void testPartOfSpeech() throws IOException {assertAnalyzesTo(analyzer,"화학 이외의 것",@@ -175,7 +175,7 @@ public class TestKoreanTokenizer extends BaseTokenStreamTestCase {new POS.Tag[] {POS.Tag.NNG, POS.Tag.NNG, POS.Tag.JKG, POS.Tag.NNB});}- public void testPartOfSpeechsWithPunc() throws IOException {+ public void testPartOfSpeechWithPunc() throws IOException {assertAnalyzesTo(analyzerWithPunctuation,"화학 이외의 것!",@@ -221,7 +221,7 @@ public class TestKoreanTokenizer extends BaseTokenStreamTestCase {new int[] {1, 1, 1, 1});}- public void testPartOfSpeechsWithCompound() throws IOException {+ public void testPartOfSpeechWithCompound() throws IOException {assertAnalyzesTo(analyzer,"가락지나물은 한국, 중국, 일본",@@ -297,7 +297,7 @@ public class TestKoreanTokenizer extends BaseTokenStreamTestCase {});}- public void testPartOfSpeechsWithInflects() throws IOException {+ public void testPartOfSpeechWithInflects() throws IOException {assertAnalyzesTo(analyzer, "감싸여", new String[] {"감싸여"}, new int[] {0}, new int[] {3}, new int[] {1});diff --git a/lucene/analysis/phonetic/src/test/org/apache/lucene/analysis/phonetic/TestDoubleMetaphoneFilter.java b/lucene/analysis/phonetic/src/test/org/apache/lucene/analysis/phonetic/TestDoubleMetaphoneFilter.javaindex fde7769eec6..bc58048391f 100644--- a/lucene/analysis/phonetic/src/test/org/apache/lucene/analysis/phonetic/TestDoubleMetaphoneFilter.java+++ b/lucene/analysis/phonetic/src/test/org/apache/lucene/analysis/phonetic/TestDoubleMetaphoneFilter.java@@ -51,13 +51,13 @@ public class TestDoubleMetaphoneFilter extends BaseTokenStreamTestCase {assertTokenStreamContents(filter, new String[] {"ANTRNXNL"});}- public void testNonConvertableStringsWithInject() throws Exception {+ public void testNonConvertibleStringsWithInject() throws Exception {TokenStream stream = whitespaceMockTokenizer("12345 #$%@#^%&");TokenStream filter = new DoubleMetaphoneFilter(stream, 8, true);assertTokenStreamContents(filter, new String[] {"12345", "#$%@#^%&"});}- public void testNonConvertableStringsWithoutInject() throws Exception {+ public void testNonConvertibleStringsWithoutInject() throws Exception {TokenStream stream = whitespaceMockTokenizer("12345 #$%@#^%&");TokenStream filter = new DoubleMetaphoneFilter(stream, 8, false);assertTokenStreamContents(filter, new String[] {"12345", "#$%@#^%&"});diff --git a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/Utility.java b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/Utility.javaindex 61fa4aedb4e..de144f6a8bc 100644--- a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/Utility.java+++ b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/Utility.java@@ -44,7 +44,7 @@ public class Utility {public static final String SPACES = " \t\r\n";/** Maximum bigram frequency (used in the smoothing function). */- public static final int MAX_FREQUENCE = 2079997 + 80000;+ public static final int MAX_FREQUENCY = 2079997 + 80000;/*** compare two arrays starting at the specified offsets.diff --git a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BiSegGraph.java b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BiSegGraph.javaindex e9afa19b95c..db4352480c0 100644--- a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BiSegGraph.java+++ b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BiSegGraph.java@@ -51,7 +51,7 @@ class BiSegGraph {double smooth = 0.1;int wordPairFreq = 0;int maxStart = segGraph.getMaxStart();- double oneWordFreq, weight, tinyDouble = 1.0 / Utility.MAX_FREQUENCE;+ double oneWordFreq, weight, tinyDouble = 1.0 / Utility.MAX_FREQUENCY;int next;char[] idBuffer;@@ -102,7 +102,7 @@ class BiSegGraph {// -log{a*P(Ci-1)+(1-a)P(Ci|Ci-1)} Note 0<a<1weight =-Math.log(- smooth * (1.0 + oneWordFreq) / (Utility.MAX_FREQUENCE + 0.0)+ smooth * (1.0 + oneWordFreq) / (Utility.MAX_FREQUENCY + 0.0)+ (1.0 - smooth)* ((1.0 - tinyDouble) * wordPairFreq / (1.0 + oneWordFreq)+ tinyDouble));diff --git a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.javaindex fa8ce3b6505..e129b3a87b7 100644--- a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java+++ b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java@@ -170,7 +170,7 @@ class BigramDictionary extends AbstractDictionary {}char[] carray = tmpword.toCharArray();long hashId = hash1(carray);- int index = getAvaliableIndex(hashId, carray);+ int index = getAvailableIndex(hashId, carray);if (index != -1) {if (bigramHashTable[index] == 0) {bigramHashTable[index] = hashId;@@ -186,7 +186,7 @@ class BigramDictionary extends AbstractDictionary {// log.info("load dictionary done! " + dctFilePath + " total:" + total);}- private int getAvaliableIndex(long hashId, char[] carray) {+ private int getAvailableIndex(long hashId, char[] carray) {int hash1 = (int) (hashId % PRIME_BIGRAM_LENGTH);int hash2 = hash2(carray) % PRIME_BIGRAM_LENGTH;if (hash1 < 0) hash1 = PRIME_BIGRAM_LENGTH + hash1;diff --git a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/HHMMSegmenter.java b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/HHMMSegmenter.javaindex 13cfb947b0e..affa85e5a59 100644--- a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/HHMMSegmenter.java+++ b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/HHMMSegmenter.java@@ -147,7 +147,7 @@ public class HHMMSegmenter {j = i + 1;// No need to search the weight for the punctuation. Picking the highest frequency will// work.- frequency = Utility.MAX_FREQUENCE;+ frequency = Utility.MAX_FREQUENCY;charArray = new char[] {sentence.charAt(i)};token = new SegToken(charArray, i, j, WordType.DELIMITER, frequency);segGraph.addToken(token);diff --git a/lucene/analysis/stempel/src/test/org/egothor/stemmer/TestCompile.java b/lucene/analysis/stempel/src/test/org/egothor/stemmer/TestCompile.javaindex 7d890bee206..c796bcc6547 100644--- a/lucene/analysis/stempel/src/test/org/egothor/stemmer/TestCompile.java+++ b/lucene/analysis/stempel/src/test/org/egothor/stemmer/TestCompile.java@@ -124,7 +124,7 @@ public class TestCompile extends LuceneTestCase {return trie;}- private static void assertTrie(Trie trie, Path file, boolean usefull, boolean storeorig)+ private static void assertTrie(Trie trie, Path file, boolean useFull, boolean storeOrig)throws Exception {LineNumberReader in =new LineNumberReader(Files.newBufferedReader(file, StandardCharsets.UTF_8));@@ -134,8 +134,8 @@ public class TestCompile extends LuceneTestCase {line = line.toLowerCase(Locale.ROOT);StringTokenizer st = new StringTokenizer(line);String stem = st.nextToken();- if (storeorig) {- CharSequence cmd = (usefull) ? trie.getFully(stem) : trie.getLastOnPath(stem);+ if (storeOrig) {+ CharSequence cmd = (useFull) ? trie.getFully(stem) : trie.getLastOnPath(stem);StringBuilder stm = new StringBuilder(stem);Diff.apply(stm, cmd);assertEquals(stem.toLowerCase(Locale.ROOT), stm.toString().toLowerCase(Locale.ROOT));@@ -145,7 +145,7 @@ public class TestCompile extends LuceneTestCase {if (token.equals(stem)) {continue;}- CharSequence cmd = (usefull) ? trie.getFully(token) : trie.getLastOnPath(token);+ CharSequence cmd = (useFull) ? trie.getFully(token) : trie.getLastOnPath(token);StringBuilder stm = new StringBuilder(token);Diff.apply(stm, cmd);assertEquals(stem.toLowerCase(Locale.ROOT), stm.toString().toLowerCase(Locale.ROOT));diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene80/Lucene80DocValuesProducer.java b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene80/Lucene80DocValuesProducer.javaindex 211267d4c03..03f2f10d359 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene80/Lucene80DocValuesProducer.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene80/Lucene80DocValuesProducer.java@@ -222,7 +222,7 @@ final class Lucene80DocValuesProducer extends DocValuesProducer {// Old count of uncompressed addresseslong numAddresses = entry.numDocsWithField + 1L;- // New count of compressed addresses - the number of compresseed blocks+ // New count of compressed addresses - the number of compressed blocksif (entry.compressed) {entry.numCompressedChunks = meta.readVInt();entry.docsPerChunkShift = meta.readVInt();diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/Lucene90HnswGraphBuilder.java b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/Lucene90HnswGraphBuilder.javaindex d83082f884c..0ebc6c6efbb 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/Lucene90HnswGraphBuilder.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/Lucene90HnswGraphBuilder.java@@ -102,7 +102,7 @@ public final class Lucene90HnswGraphBuilder {* enables efficient retrieval without extra data copying, while avoiding collision of the* returned values.*- * @param vectors the vectors for which to build a nearest neighbors graph. Must be an independet+ * @param vectors the vectors for which to build a nearest neighbors graph. Must be an independent* accessor for the vectors*/public Lucene90OnHeapHnswGraph build(FloatVectorValues vectors) throws IOException {diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/Lucene90SkipReader.java b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/Lucene90SkipReader.javaindex cd2febadf8f..1554a66872e 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/Lucene90SkipReader.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/Lucene90SkipReader.java@@ -32,7 +32,7 @@ import org.apache.lucene.store.IndexInput;* <pre>* 0 1 2 3 4 5* d d d d d d (posting list)- * ^ ^ (skip point in MultiLeveSkipWriter)+ * ^ ^ (skip point in MultiLevelSkipWriter)* ^ (skip point in Lucene90SkipWriter)* </pre>*diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene99/Lucene99SkipReader.java b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene99/Lucene99SkipReader.javaindex 567fe655374..f9361d67153 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene99/Lucene99SkipReader.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene99/Lucene99SkipReader.java@@ -32,7 +32,7 @@ import org.apache.lucene.store.IndexInput;* <pre>* 0 1 2 3 4 5* d d d d d d (posting list)- * ^ ^ (skip point in MultiLeveSkipWriter)+ * ^ ^ (skip point in MultiLevelSkipWriter)* ^ (skip point in Lucene99SkipWriter)* </pre>*diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene99/OffHeapQuantizedFloatVectorValues.java b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene99/OffHeapQuantizedFloatVectorValues.javaindex 8e6484cae70..bb2381b3628 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene99/OffHeapQuantizedFloatVectorValues.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene99/OffHeapQuantizedFloatVectorValues.java@@ -44,7 +44,7 @@ import org.apache.lucene.util.quantization.ScalarQuantizer;** <p>Usage: This class is used for read-only indexes where full-precision float vectors have been* dropped from the index to save storage space. Full-precision vectors can be removed from an index- * using a method as implemnted in {@code+ * using a method as implemented in {@code* TestLucene99ScalarQuantizedVectorsFormat.simulateEmptyRawVectors()}.** @lucene.internaldiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene94/Lucene94HnswVectorsWriter.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene94/Lucene94HnswVectorsWriter.javaindex b3192338bc0..8c1ce18e05f 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene94/Lucene94HnswVectorsWriter.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene94/Lucene94HnswVectorsWriter.java@@ -297,7 +297,7 @@ public final class Lucene94HnswVectorsWriter extends KnnVectorsWriter {while (nodesOnLevel0.hasNext()) {int node = nodesOnLevel0.nextInt();NeighborArray neighbors = graph.getNeighbors(0, newToOldMap[node]);- reconstructAndWriteNeigbours(neighbors, oldToNewMap, maxConnOnLevel, maxOrd);+ reconstructAndWriteNeighbours(neighbors, oldToNewMap, maxConnOnLevel, maxOrd);}maxConnOnLevel = M;@@ -311,7 +311,7 @@ public final class Lucene94HnswVectorsWriter extends KnnVectorsWriter {nodesByLevel.add(newNodes);for (int node : newNodes) {NeighborArray neighbors = graph.getNeighbors(level, newToOldMap[node]);- reconstructAndWriteNeigbours(neighbors, oldToNewMap, maxConnOnLevel, maxOrd);+ reconstructAndWriteNeighbours(neighbors, oldToNewMap, maxConnOnLevel, maxOrd);}}return new HnswGraph() {@@ -361,7 +361,7 @@ public final class Lucene94HnswVectorsWriter extends KnnVectorsWriter {};}- private void reconstructAndWriteNeigbours(+ private void reconstructAndWriteNeighbours(NeighborArray neighbors, int[] oldToNewMap, int maxConnOnLevel, int maxOrd)throws IOException {int size = neighbors.size();diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene95/Lucene95HnswVectorsWriter.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene95/Lucene95HnswVectorsWriter.javaindex bce1ae8986a..c5f1cabe688 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene95/Lucene95HnswVectorsWriter.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene95/Lucene95HnswVectorsWriter.java@@ -318,7 +318,7 @@ public final class Lucene95HnswVectorsWriter extends KnnVectorsWriter {int node = nodesOnLevel0.nextInt();NeighborArray neighbors = graph.getNeighbors(0, newToOldMap[node]);long offset = vectorIndex.getFilePointer();- reconstructAndWriteNeigbours(neighbors, oldToNewMap, maxConnOnLevel, maxOrd);+ reconstructAndWriteNeighbours(neighbors, oldToNewMap, maxConnOnLevel, maxOrd);levelNodeOffsets[0][node] = Math.toIntExact(vectorIndex.getFilePointer() - offset);}@@ -336,7 +336,7 @@ public final class Lucene95HnswVectorsWriter extends KnnVectorsWriter {for (int node : newNodes) {NeighborArray neighbors = graph.getNeighbors(level, newToOldMap[node]);long offset = vectorIndex.getFilePointer();- reconstructAndWriteNeigbours(neighbors, oldToNewMap, maxConnOnLevel, maxOrd);+ reconstructAndWriteNeighbours(neighbors, oldToNewMap, maxConnOnLevel, maxOrd);levelNodeOffsets[level][nodeOffsetIndex++] =Math.toIntExact(vectorIndex.getFilePointer() - offset);}@@ -388,7 +388,7 @@ public final class Lucene95HnswVectorsWriter extends KnnVectorsWriter {};}- private void reconstructAndWriteNeigbours(+ private void reconstructAndWriteNeighbours(NeighborArray neighbors, int[] oldToNewMap, int maxConnOnLevel, int maxOrd)throws IOException {int size = neighbors.size();diff --git a/lucene/benchmark/conf/readContentSource.alg b/lucene/benchmark/conf/readContentSource.algindex 565354d62da..3a2cce627b0 100644--- a/lucene/benchmark/conf/readContentSource.alg+++ b/lucene/benchmark/conf/readContentSource.alg@@ -17,7 +17,7 @@# -------------------------------------------------------------------------------------#-# This alg reads the information from a ContentSoruce. It is useful for+# This alg reads the information from a ContentSource. It is useful for# measuring the performance of a particular ContentSource implementation, or# gather baselines for operations like indexing (if reading from the content# source takes 'X' time, we cannot index faster).diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.javaindex eeba794aa57..fd4088caa5a 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/PerfRunData.java@@ -98,7 +98,8 @@ public class PerfRunData implements Closeable {private TaxonomyWriter taxonomyWriter;private TaxonomyReader taxonomyReader;- // we use separate (identical) instances for each "read" task type, so each can iterate the quries+ // we use separate (identical) instances for each "read" task type, so each can iterate the+ // queries// separately.private HashMap<Class<? extends ReadTask>, QueryMaker> readTaskQueryMaker;private Class<? extends QueryMaker> qmkrClass;diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ReutersContentSource.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ReutersContentSource.javaindex fa21216ec05..f1693689b02 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ReutersContentSource.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ReutersContentSource.java@@ -123,7 +123,7 @@ public class ReutersContentSource extends ContentSource {int stride = threadIndex + docCountArr[threadIndex] * docCountArr.length;int inFileSize = inputFiles.size();- // Modulo Operator covers all three possible senarios i.e. 1. If inputFiles.size() < Num Of+ // Modulo Operator covers all three possible scenarios i.e. 1. If inputFiles.size() < Num Of// Threads 2.inputFiles.size() == Num Of Threads 3.inputFiles.size() > Num Of Threadsint fileIndex = stride % inFileSize;int iteration = stride / inFileSize;diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecLATimesParser.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecLATimesParser.javaindex 186465a6a0d..a9924091d86 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecLATimesParser.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecLATimesParser.java@@ -24,7 +24,7 @@ public class TrecLATimesParser extends TrecDocParser {private static final String DATE = "<DATE>";private static final String DATE_END = "</DATE>";- private static final String DATE_NOISE = "day,"; // anything aftre the ','+ private static final String DATE_NOISE = "day,"; // anything after the ','private static final String SUBJECT = "<SUBJECT>";private static final String SUBJECT_END = "</SUBJECT>";diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/package-info.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/package-info.javaindex 511f161a55e..91088f43b27 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/package-info.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/package-info.java@@ -117,7 +117,7 @@* should be added to it one by one but not faster than 20 docs a minute, and, in parallel with* this, some N queries should be searched against that index, again, no more than 2 queries a* second. You can have the searches all share an index reader, or have them each open its own- * reader and close it afterwords.+ * reader and close it afterwards.** <p>If the commands available for use in the algorithm do not meet your needs, you can add* commands by adding a new task under org.apache.lucene.benchmark.byTask.tasks - you should extenddiff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.javaindex 48bb60508ea..e602f6b9d8c 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java@@ -47,7 +47,7 @@ public abstract class PerfTask implements Cloneable {private PerfRunData runData;- // propeties that all tasks have+ // properties that all tasks haveprivate String name;private int depth = 0;protected int logStep;@@ -203,8 +203,8 @@ public abstract class PerfTask implements Cloneable {@Overridepublic String toString() {- String padd = getPadding();- StringBuilder sb = new StringBuilder(padd);+ String padding = getPadding();+ StringBuilder sb = new StringBuilder(padding);if (disableCounting) {sb.append('-');}diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.javaindex 93b677dcac1..bc6bfa4a159 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReportTask.java@@ -112,7 +112,7 @@ public abstract class ReportTask extends PerfTask {StringBuilder sb = new StringBuilder();sb.append(Format.format(task.getName(), longestOp));String round = (stat.getRound() >= 0 ? "" + stat.getRound() : "-");- sb.append(Format.formatPaddLeft(round, ROUND));+ sb.append(Format.formatPadLeft(round, ROUND));sb.append(getRunData().getConfig().getColsValuesForValsByRound(stat.getRound()));sb.append(Format.format(stat.getNumRuns(), RUNCNT));sb.append(Format.format(stat.getCount() / stat.getNumRuns(), RECCNT));@@ -126,10 +126,10 @@ public abstract class ReportTask extends PerfTask {protected Report genPartialReport(int reported, LinkedHashMap<String, TaskStats> partOfTasks, int totalSize) {- String longetOp = longestOp(partOfTasks.values());+ String longest = longestOp(partOfTasks.values());boolean first = true;StringBuilder sb = new StringBuilder();- sb.append(tableTitle(longetOp));+ sb.append(tableTitle(longest));sb.append(newline);int lineNum = 0;for (final TaskStats stat : partOfTasks.values()) {@@ -137,7 +137,7 @@ public abstract class ReportTask extends PerfTask {sb.append(newline);}first = false;- String line = taskReportLine(longetOp, stat);+ String line = taskReportLine(longest, stat);lineNum++;if (partOfTasks.size() > 2 && lineNum % 2 == 0) {line = line.replace(" ", " - ");diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.javaindex d11eff827a4..059561d5587 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java@@ -43,7 +43,7 @@ public class TaskSequence extends PerfTask {private boolean resetExhausted = false;private PerfTask[] tasksArray;private boolean anyExhaustibleTasks;- private final boolean collapsable; // to not collapse external sequence named in alg.+ private final boolean collapsible; // to not collapse external sequence named in alg.private boolean fixedTime; // true if we run for fixed timeprivate double runTimeSec; // how long to run for@@ -51,7 +51,7 @@ public class TaskSequence extends PerfTask {public TaskSequence(PerfRunData runData, String name, TaskSequence parent, boolean parallel) {super(runData);- collapsable = (name == null);+ collapsible = (name == null);name = (name != null ? name : (parallel ? "Par" : "Seq"));setName(name);setSequenceName();@@ -260,7 +260,7 @@ public class TaskSequence extends PerfTask {if (stopNow) {break;}- nextStartTime += delayStep; // this aims at avarage rate.+ nextStartTime += delayStep; // this aims at average rate.try {final int inc = task.runAndMaybeStats(letChildReport);count += inc;@@ -434,7 +434,7 @@ public class TaskSequence extends PerfTask {*/@Overridepublic String toString() {- String padd = getPadding();+ String padded = getPadding();StringBuilder sb = new StringBuilder(super.toString());sb.append(parallel ? " [" : " {");sb.append(NEW_LINE);@@ -442,7 +442,7 @@ public class TaskSequence extends PerfTask {sb.append(task.toString());sb.append(NEW_LINE);}- sb.append(padd);+ sb.append(padded);sb.append(!letChildReport ? ">" : (parallel ? "]" : "}"));if (fixedTime) {sb.append(' ')@@ -536,7 +536,7 @@ public class TaskSequence extends PerfTask {}/** Return true if can be collapsed in case it is outermost sequence */- public boolean isCollapsable() {- return collapsable;+ public boolean isCollapsible() {+ return collapsible;}}diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Algorithm.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Algorithm.javaindex cb49079fd73..2086a135696 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Algorithm.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Algorithm.java@@ -279,7 +279,7 @@ public class Algorithm implements AutoCloseable {}// remove redundant top level enclosing sequences- while (sequence.isCollapsable() && sequence.getRepetitions() == 1 && sequence.getRate() == 0) {+ while (sequence.isCollapsible() && sequence.getRepetitions() == 1 && sequence.getRate() == 0) {ArrayList<PerfTask> t = sequence.getTasks();if (t != null && t.size() == 1) {PerfTask p = t.get(0);diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.javaindex f1f93902cd1..4361ec1be5f 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java@@ -414,7 +414,7 @@ public class Config {String template = " " + colName;if (roundNum < 0) {// just append blanks- sb.append(Format.formatPaddLeft("-", template));+ sb.append(Format.formatPadLeft("-", template));} else {String valByRoundName = entry.getKey();@@ -432,7 +432,7 @@ public class Config {} else {boolean[] ab = (boolean[]) a;int n = roundNum % ab.length;- sb.append(Format.formatPaddLeft("" + ab[n], template));+ sb.append(Format.formatPadLeft("" + ab[n], template));}}}diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Format.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Format.javaindex 1854c1f60a3..590110292a5 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Format.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Format.java@@ -27,7 +27,7 @@ public class Format {NumberFormat.getInstance(Locale.ROOT),NumberFormat.getInstance(Locale.ROOT),};- private static final String padd = " ";+ private static final String padding = " ";static {numFormat[0].setMaximumFractionDigits(0);@@ -39,7 +39,7 @@ public class Format {}/**- * Padd a number from left.+ * Pad a number from left.** @param numFracDigits number of digits in fraction part - must be 0 or 1 or 2.* @param f number to be formatted.@@ -47,12 +47,12 @@ public class Format {* @return formatted string.*/public static String format(int numFracDigits, float f, String col) {- String res = padd + numFormat[numFracDigits].format(f);+ String res = padding + numFormat[numFracDigits].format(f);return res.substring(res.length() - col.length());}public static String format(int numFracDigits, double f, String col) {- String res = padd + numFormat[numFracDigits].format(f);+ String res = padding + numFormat[numFracDigits].format(f);return res.substring(res.length() - col.length());}@@ -64,13 +64,13 @@ public class Format {* @param col column name (used for deciding on length).* @return formatted string.*/- public static String formatPaddRight(int numFracDigits, float f, String col) {- String res = numFormat[numFracDigits].format(f) + padd;+ public static String formatPadRight(int numFracDigits, float f, String col) {+ String res = numFormat[numFracDigits].format(f) + padding;return res.substring(0, col.length());}- public static String formatPaddRight(int numFracDigits, double f, String col) {- String res = numFormat[numFracDigits].format(f) + padd;+ public static String formatPadRight(int numFracDigits, double f, String col) {+ String res = numFormat[numFracDigits].format(f) + padding;return res.substring(0, col.length());}@@ -82,7 +82,7 @@ public class Format {* @return formatted string.*/public static String format(int n, String col) {- String res = padd + n;+ String res = padding + n;return res.substring(res.length() - col.length());}@@ -94,7 +94,7 @@ public class Format {* @return formatted string.*/public static String format(String s, String col) {- String s1 = (s + padd);+ String s1 = (s + padding);return s1.substring(0, Math.min(col.length(), s1.length()));}@@ -105,8 +105,8 @@ public class Format {* @param col column name (used for deciding on length).* @return formatted string.*/- public static String formatPaddLeft(String s, String col) {- String res = padd + s;+ public static String formatPadLeft(String s, String col) {+ String res = padding + s;return res.substring(res.length() - col.length());}}diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityStats.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityStats.javaindex 770b6553903..9eeb647d4a6 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityStats.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityStats.java@@ -30,7 +30,7 @@ public class QualityStats {private double maxGoodPoints;private double recall;private final double[] pAt;- private double pReleventSum = 0;+ private double pRelevantSum = 0;private double numPoints = 0;private double numGoodPoints = 0;private double mrr = 0;@@ -92,7 +92,7 @@ public class QualityStats {numPoints = n;double p = numGoodPoints / numPoints;if (isRelevant) {- pReleventSum += p;+ pRelevantSum += p;}if (n < pAt.length) {pAt[n] = p;@@ -120,7 +120,7 @@ public class QualityStats {/** Return the average precision at recall points. */public double getAvp() {- return maxGoodPoints == 0 ? 0 : pReleventSum / maxGoodPoints;+ return maxGoodPoints == 0 ? 0 : pRelevantSum / maxGoodPoints;}/** Return the recall: |{relevant hits found}| / |{relevant hits existing}|. */@@ -134,8 +134,8 @@ public class QualityStats {* @param logger Logger.* @param prefix prefix before each log line.*/- public void log(String title, int paddLines, PrintWriter logger, String prefix) {- for (int i = 0; i < paddLines; i++) {+ public void log(String title, int paddingLines, PrintWriter logger, String prefix) {+ for (int i = 0; i < paddingLines; i++) {logger.println();}if (title != null && title.trim().length() > 0) {@@ -165,22 +165,22 @@ public class QualityStats {+ format("Precision At " + i + ": ", M)+ fracFormat(nf.format(getPrecisionAt(i))));}- for (int i = 0; i < paddLines; i++) {+ for (int i = 0; i < paddingLines; i++) {logger.println();}}- private static final String padd = " ";+ private static final String padding = " ";private String format(String s, int minLen) {s = (s == null ? "" : s);int n = Math.max(minLen, s.length());- return (s + padd).substring(0, n);+ return (s + padding).substring(0, n);}private String fracFormat(String frac) {int k = frac.indexOf('.');- String s1 = padd + frac.substring(0, k);+ String s1 = padding + frac.substring(0, k);int n = Math.max(k, 6);s1 = s1.substring(s1.length() - n);return s1 + frac.substring(k);@@ -195,7 +195,7 @@ public class QualityStats {public static QualityStats average(QualityStats[] stats) {QualityStats avg = new QualityStats(0, 0);if (stats.length == 0) {- // weired, no stats to average!+ // weird, no stats to average!return avg;}int m = 0; // queries with positive judgements@@ -207,7 +207,7 @@ public class QualityStats {m++;avg.numGoodPoints += stat.numGoodPoints;avg.numPoints += stat.numPoints;- avg.pReleventSum += stat.getAvp();+ avg.pRelevantSum += stat.getAvp();avg.recall += stat.recall;avg.mrr += stat.getMRR();avg.maxGoodPoints += stat.maxGoodPoints;@@ -228,8 +228,8 @@ public class QualityStats {for (int j = 1; j < avg.pAt.length; j++) {avg.pAt[j] /= m;}- avg.pReleventSum /= m; // this is actually avgp now- avg.pReleventSum *= avg.maxGoodPoints; // so that getAvgP() would be correct+ avg.pRelevantSum /= m; // this is actually avgp now+ avg.pRelevantSum *= avg.maxGoodPoints; // so that getAvgP() would be correctreturn avg;}diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/trec/QueryDriver.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/trec/QueryDriver.javaindex 69a9a23de63..3d9dc5c9587 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/trec/QueryDriver.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/trec/QueryDriver.java@@ -97,7 +97,7 @@ public class QueryDriver {qrun.setMaxResults(maxResults);QualityStats[] stats = qrun.execute(judge, submitLog, logger);- // print an avarage sum of the results+ // print an average sum of the resultsQualityStats avg = QualityStats.average(stats);avg.log("SUMMARY", 2, logger, " ");}diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/SubmissionReport.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/SubmissionReport.javaindex 668ad4ab47c..918d7078a5f 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/SubmissionReport.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/SubmissionReport.java@@ -91,11 +91,11 @@ public class SubmissionReport {}}- private static final String padd = " ";+ private static final String padding = " ";private String format(String s, int minLen) {s = (s == null ? "" : s);int n = Math.max(minLen, s.length());- return (s + padd).substring(0, n);+ return (s + padding).substring(0, n);}}diff --git a/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java b/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.javaindex 7a19f1559b1..b9e97663447 100644--- a/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java+++ b/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java@@ -683,7 +683,7 @@ public class TestPerfTasksLogic extends BenchmarkTestCase {TaxonomyReader taxoReader = runData.getTaxonomyReader();assertNotNull("taxo reader was not opened", taxoReader);assertTrue(- "nothing was added to the taxnomy (expecting root and at least one addtional category)",+ "nothing was added to the taxonomy (expecting root and at least one additional category)",taxoReader.getSize() > 1);taxoReader.close();}diff --git a/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksParse.java b/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksParse.javaindex 010f70f638c..c4eb6abb166 100644--- a/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksParse.java+++ b/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksParse.java@@ -68,7 +68,7 @@ public class TestPerfTasksParse extends LuceneTestCase {}if (task instanceof TaskSequence) {assertEquals(- "repetions should be 1000 for " + parsedTasks,+ "repetitions should be 1000 for " + parsedTasks,1000,((TaskSequence) task).getRepetitions());assertTrue(@@ -93,7 +93,7 @@ public class TestPerfTasksParse extends LuceneTestCase {}if (task instanceof TaskSequence) {assertEquals(- "repetions should be 1000 for " + parsedTasks,+ "repetitions should be 1000 for " + parsedTasks,1000,((TaskSequence) task).getRepetitions());assertFalse(diff --git a/lucene/classification/src/java/org/apache/lucene/classification/BM25NBClassifier.java b/lucene/classification/src/java/org/apache/lucene/classification/BM25NBClassifier.javaindex 520e6664f80..717a0560d4e 100644--- a/lucene/classification/src/java/org/apache/lucene/classification/BM25NBClassifier.java+++ b/lucene/classification/src/java/org/apache/lucene/classification/BM25NBClassifier.java@@ -72,7 +72,7 @@ public class BM25NBClassifier implements Classifier<BytesRef> {* @param query a {@link Query} to eventually filter the docs used for training the classifier, or* {@code null} if all the indexed docs should be used* @param classFieldName the name of the field used as the output for the classifier NOTE: must- * not be heavely analyzed as the returned class will be a token indexed for this field+ * not be heavily analyzed as the returned class will be a token indexed for this field* @param textFieldNames the name of the fields used as the inputs for the classifier, NO boosting* supported per field*/diff --git a/lucene/classification/src/java/org/apache/lucene/classification/CachingNaiveBayesClassifier.java b/lucene/classification/src/java/org/apache/lucene/classification/CachingNaiveBayesClassifier.javaindex f251b4d61b0..5c707b757e8 100644--- a/lucene/classification/src/java/org/apache/lucene/classification/CachingNaiveBayesClassifier.java+++ b/lucene/classification/src/java/org/apache/lucene/classification/CachingNaiveBayesClassifier.java@@ -103,7 +103,7 @@ public class CachingNaiveBayesClassifier extends SimpleNaiveBayesClassifier {// for each wordfor (String word : tokenizedText) {// search with text:word for all class:c- Map<BytesRef, Integer> hitsInClasses = getWordFreqForClassess(word);+ Map<BytesRef, Integer> hitsInClasses = getWordFreqForClasses(word);// for each classfor (BytesRef cclass : cclasses) {Integer hitsI = hitsInClasses.get(cclass);@@ -147,7 +147,7 @@ public class CachingNaiveBayesClassifier extends SimpleNaiveBayesClassifier {return ret;}- private Map<BytesRef, Integer> getWordFreqForClassess(String word) throws IOException {+ private Map<BytesRef, Integer> getWordFreqForClasses(String word) throws IOException {Map<BytesRef, Integer> insertPoint;insertPoint = termCClassHitCache.get(word);@@ -199,7 +199,7 @@ public class CachingNaiveBayesClassifier extends SimpleNaiveBayesClassifier {* eat lot of memory. There is an option to lower the memory consume, if a word have really low* occurrence in the index you could filter it out. The other parameter is switching between the* term searching, if it true, just the terms in the skeleton will be searched, but if it false- * the terms whoes not in the cache will be searched out too (but not cached).+ * the terms whose not in the cache will be searched out too (but not cached).** @param minTermOccurrenceInCache Lower cache size with higher value.* @param justCachedTerms The switch for fully exclude low occurrence docs.diff --git a/lucene/classification/src/java/org/apache/lucene/classification/document/SimpleNaiveBayesDocumentClassifier.java b/lucene/classification/src/java/org/apache/lucene/classification/document/SimpleNaiveBayesDocumentClassifier.javaindex ae33a133196..d619ea8a0d9 100644--- a/lucene/classification/src/java/org/apache/lucene/classification/document/SimpleNaiveBayesDocumentClassifier.java+++ b/lucene/classification/src/java/org/apache/lucene/classification/document/SimpleNaiveBayesDocumentClassifier.java@@ -59,7 +59,7 @@ public class SimpleNaiveBayesDocumentClassifier extends SimpleNaiveBayesClassifi* @param query a {@link org.apache.lucene.search.Query} to eventually filter the docs used for* training the classifier, or {@code null} if all the indexed docs should be used* @param classFieldName the name of the field used as the output for the classifier NOTE: must- * not be heavely analyzed as the returned class will be a token indexed for this field+ * not be heavily analyzed as the returned class will be a token indexed for this field* @param textFieldNames the name of the fields used as the inputs for the classifier, they can* contain boosting indication e.g. title^10*/diff --git a/lucene/classification/src/java/org/apache/lucene/classification/utils/ConfusionMatrixGenerator.java b/lucene/classification/src/java/org/apache/lucene/classification/utils/ConfusionMatrixGenerator.javaindex c2f3151385a..fbf02915b4e 100644--- a/lucene/classification/src/java/org/apache/lucene/classification/utils/ConfusionMatrixGenerator.java+++ b/lucene/classification/src/java/org/apache/lucene/classification/utils/ConfusionMatrixGenerator.java@@ -58,7 +58,7 @@ public class ConfusionMatrixGenerator {* Classifier}* @return a {@link* org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix}- * @throws IOException if problems occurr while reading the index or using the classifier+ * @throws IOException if problems occur while reading the index or using the classifier*/public static <T> ConfusionMatrix getConfusionMatrix(IndexReader reader,diff --git a/lucene/classification/src/test/org/apache/lucene/classification/document/DocumentClassificationTestBase.java b/lucene/classification/src/test/org/apache/lucene/classification/document/DocumentClassificationTestBase.javaindex 5e944af3454..13e17569d40 100644--- a/lucene/classification/src/test/org/apache/lucene/classification/document/DocumentClassificationTestBase.java+++ b/lucene/classification/src/test/org/apache/lucene/classification/document/DocumentClassificationTestBase.java@@ -254,7 +254,7 @@ public abstract class DocumentClassificationTestBase<T> extends ClassificationTereturn doc;}- protected Document getBatmanAmbiguosDocument() {+ protected Document getBatmanAmbiguousDocument() {Document doc = new Document();String title ="Batman: Arkham Knight new adventures for the super hero across Gotham, the Dark Knight has returned! Batman will win !";diff --git a/lucene/classification/src/test/org/apache/lucene/classification/document/TestKNearestNeighborDocumentClassifier.java b/lucene/classification/src/test/org/apache/lucene/classification/document/TestKNearestNeighborDocumentClassifier.javaindex 75b9b7c1e99..887092ef605 100644--- a/lucene/classification/src/test/org/apache/lucene/classification/document/TestKNearestNeighborDocumentClassifier.java+++ b/lucene/classification/src/test/org/apache/lucene/classification/document/TestKNearestNeighborDocumentClassifier.java@@ -43,7 +43,7 @@ public class TestKNearestNeighborDocumentClassifiernew String[] {textFieldName, titleFieldName, authorFieldName});checkCorrectDocumentClassification(classifier, videoGameDocument, VIDEOGAME_RESULT);checkCorrectDocumentClassification(classifier, batmanDocument, BATMAN_RESULT);- // considering only the text we have wrong classification because the text was ambiguos on+ // considering only the text we have wrong classification because the text was ambiguous on// purposecheckCorrectDocumentClassification(new KNearestNeighborDocumentClassifier(@@ -97,7 +97,7 @@ public class TestKNearestNeighborDocumentClassifierassertEquals(1.0, score1, 0);double score2 = checkCorrectDocumentClassification(classifier, batmanDocument, BATMAN_RESULT);assertEquals(1.0, score2, 0);- // considering only the text we have wrong classification because the text was ambiguos on+ // considering only the text we have wrong classification because the text was ambiguous on// purposedouble score3 =checkCorrectDocumentClassification(@@ -147,7 +147,7 @@ public class TestKNearestNeighborDocumentClassifiercategoryFieldName,field2analyzer,new String[] {textFieldName, titleFieldName + "^100", authorFieldName}),- getBatmanAmbiguosDocument(),+ getBatmanAmbiguousDocument(),BATMAN_RESULT);// considering without boost wrong classification will appearcheckCorrectDocumentClassification(@@ -161,7 +161,7 @@ public class TestKNearestNeighborDocumentClassifiercategoryFieldName,field2analyzer,new String[] {textFieldName, titleFieldName, authorFieldName}),- getBatmanAmbiguosDocument(),+ getBatmanAmbiguousDocument(),VIDEOGAME_RESULT);} finally {IOUtils.close(indexReader);diff --git a/lucene/classification/src/test/org/apache/lucene/classification/document/TestSimpleNaiveBayesDocumentClassifier.java b/lucene/classification/src/test/org/apache/lucene/classification/document/TestSimpleNaiveBayesDocumentClassifier.javaindex 883d743ae34..961c8720d22 100644--- a/lucene/classification/src/test/org/apache/lucene/classification/document/TestSimpleNaiveBayesDocumentClassifier.java+++ b/lucene/classification/src/test/org/apache/lucene/classification/document/TestSimpleNaiveBayesDocumentClassifier.java@@ -120,7 +120,7 @@ public class TestSimpleNaiveBayesDocumentClassifiercategoryFieldName,field2analyzer,new String[] {textFieldName, titleFieldName + "^100", authorFieldName}),- getBatmanAmbiguosDocument(),+ getBatmanAmbiguousDocument(),BATMAN_RESULT);// considering without boost wrong classification will appearcheckCorrectDocumentClassification(@@ -130,7 +130,7 @@ public class TestSimpleNaiveBayesDocumentClassifiercategoryFieldName,field2analyzer,new String[] {textFieldName, titleFieldName, authorFieldName}),- getBatmanAmbiguosDocument(),+ getBatmanAmbiguousDocument(),VIDEOGAME_ANALYZED_RESULT);} finally {IOUtils.close(indexReader);diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/OrdsIntersectTermsEnumFrame.java b/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/OrdsIntersectTermsEnumFrame.javaindex c5a1bfa58f5..5cea5c77cd3 100644--- a/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/OrdsIntersectTermsEnumFrame.java+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/OrdsIntersectTermsEnumFrame.java@@ -103,7 +103,8 @@ final class OrdsIntersectTermsEnumFrame {void loadNextFloorBlock() throws IOException {assert numFollowFloorBlocks > 0;- // if (DEBUG) System.out.println(" loadNextFoorBlock trans=" + transitions[transitionIndex]);+ // if (DEBUG) System.out.println(" loadNextFloorBlock trans=" ++ // transitions[transitionIndex]);do {fp = fpOrig + (floorDataReader.readVLong() >>> 1);diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/package-info.java b/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/package-info.javaindex a5a8edd531a..dd4e33a942a 100644--- a/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/package-info.java+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/package-info.java@@ -17,6 +17,6 @@/*** Same postings format as Lucene50, except the terms dictionary also supports ords, i.e. returning- * which ord the enum is seeked to, and seeking by ord.+ * which ord the enum is seek()ed to, and seeking by ord.*/package org.apache.lucene.codecs.blocktreeords;diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/BloomFilteringPostingsFormat.java b/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/BloomFilteringPostingsFormat.javaindex 7064e66868d..1243c20b42f 100644--- a/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/BloomFilteringPostingsFormat.java+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/BloomFilteringPostingsFormat.java@@ -298,7 +298,7 @@ public final class BloomFilteringPostingsFormat extends PostingsFormat {private TermsEnum delegate() throws IOException {if (delegateTermsEnum == null) {/* 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 = delegateTerms.iterator();diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/memory/FSTTermOutputs.java b/lucene/codecs/src/java/org/apache/lucene/codecs/memory/FSTTermOutputs.javaindex a9ffa9f4426..6af0ab3c58f 100644--- a/lucene/codecs/src/java/org/apache/lucene/codecs/memory/FSTTermOutputs.java+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/memory/FSTTermOutputs.java@@ -73,7 +73,7 @@ class FSTTermOutputs extends Outputs<FSTTermOutputs.TermData> {// NOTE: actually, FST nodes are seldom// identical when outputs on their arcs- // aren't NO_OUTPUTs.+ // aren't NO_OUTPUT.@Overridepublic int hashCode() {int hash = 0;diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/uniformsplit/sharedterms/STBlockLine.java b/lucene/codecs/src/java/org/apache/lucene/codecs/uniformsplit/sharedterms/STBlockLine.javaindex fad572177a0..d95211654be 100644--- a/lucene/codecs/src/java/org/apache/lucene/codecs/uniformsplit/sharedterms/STBlockLine.java+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/uniformsplit/sharedterms/STBlockLine.java@@ -154,8 +154,8 @@ public class STBlockLine extends BlockLine {int readFieldId = termStatesInput.readVInt();if (!isFieldInList && readFieldId > fieldId) {// As the list of fieldIds is sorted we can return early if we find fieldId greater than- // the seeked one.- // But if we found the seeked one, we have to read all the list to get to the term state+ // the seek()ed one.+ // But if we found the seek()ed one, we have to read all the list to get to the term state// part afterward (there is no jump offset).return null;}diff --git a/lucene/codecs/src/test/org/apache/lucene/codecs/uniformsplit/TestBlockWriter.java b/lucene/codecs/src/test/org/apache/lucene/codecs/uniformsplit/TestBlockWriter.javaindex 8710b846f93..20270becf1b 100644--- a/lucene/codecs/src/test/org/apache/lucene/codecs/uniformsplit/TestBlockWriter.java+++ b/lucene/codecs/src/test/org/apache/lucene/codecs/uniformsplit/TestBlockWriter.java@@ -88,7 +88,7 @@ public class TestBlockWriter extends LuceneTestCase {// at least one block was flushedassertTrue(blockOutput.getFilePointer() > 0);- // last term is always the last term to be writen+ // last term is always the last term to be writtenassertEquals(new BytesRef(terms[terms.length - 1]), blockWriter.lastTerm);// remains 'large' to be flusheddiff --git a/lucene/core/src/java/org/apache/lucene/document/BaseShapeDocValuesQuery.java b/lucene/core/src/java/org/apache/lucene/document/BaseShapeDocValuesQuery.javaindex 9de956bb039..528201e47c3 100644--- a/lucene/core/src/java/org/apache/lucene/document/BaseShapeDocValuesQuery.java+++ b/lucene/core/src/java/org/apache/lucene/document/BaseShapeDocValuesQuery.java@@ -106,7 +106,7 @@ abstract class BaseShapeDocValuesQuery extends SpatialQuery {return result;}- /** compute the cost of the query; overrideable */+ /** compute the cost of the query; overridable */protected float matchCost() {// multiply comparisons (estimated 60) by number of terms (averaged at 100)// todo: revisitdiff --git a/lucene/core/src/java/org/apache/lucene/document/SortedNumericDocValuesSetQuery.java b/lucene/core/src/java/org/apache/lucene/document/SortedNumericDocValuesSetQuery.javaindex 569aaab2155..53966bb02c3 100644--- a/lucene/core/src/java/org/apache/lucene/document/SortedNumericDocValuesSetQuery.java+++ b/lucene/core/src/java/org/apache/lucene/document/SortedNumericDocValuesSetQuery.java@@ -122,7 +122,7 @@ final class SortedNumericDocValuesSetQuery extends Query implements Accountable@Overridepublic float matchCost() {- return 5; // 2 comparisions, possible lookup in the set+ return 5; // 2 comparisons, possible lookup in the set}};} else {diff --git a/lucene/core/src/java/org/apache/lucene/geo/GeoUtils.java b/lucene/core/src/java/org/apache/lucene/geo/GeoUtils.javaindex 16c2ecd80f4..a4c9f3ccfb5 100644--- a/lucene/core/src/java/org/apache/lucene/geo/GeoUtils.java+++ b/lucene/core/src/java/org/apache/lucene/geo/GeoUtils.java@@ -269,11 +269,11 @@ public final class GeoUtils {}/**- * used to define the orientation of 3 points -1 = Clockwise 0 = Colinear 1 = Counter-clockwise+ * used to define the orientation of 3 points -1 = Clockwise 0 = Collinear 1 = Counter-clockwise*/public enum WindingOrder {CW(-1),- COLINEAR(0),+ COLLINEAR(0),CCW(1);private final int sign;@@ -287,7 +287,7 @@ public final class GeoUtils {public static WindingOrder fromSign(final int sign) {if (sign == CW.sign) return CW;- if (sign == COLINEAR.sign) return COLINEAR;+ if (sign == COLLINEAR.sign) return COLLINEAR;if (sign == CCW.sign) return CCW;throw new IllegalArgumentException("Invalid WindingOrder sign: " + sign);}diff --git a/lucene/core/src/java/org/apache/lucene/geo/Polygon.java b/lucene/core/src/java/org/apache/lucene/geo/Polygon.javaindex 3abe29dca0f..d7a033c95df 100644--- a/lucene/core/src/java/org/apache/lucene/geo/Polygon.java+++ b/lucene/core/src/java/org/apache/lucene/geo/Polygon.java@@ -168,7 +168,7 @@ public final class Polygon extends LatLonGeometry {return holes[i];}- /** Returns the winding order (CW, COLINEAR, CCW) for the polygon shell */+ /** Returns the winding order (CW, COLLINEAR, CCW) for the polygon shell */public WindingOrder getWindingOrder() {return this.windingOrder;}diff --git a/lucene/core/src/java/org/apache/lucene/geo/Tessellator.java b/lucene/core/src/java/org/apache/lucene/geo/Tessellator.javaindex f6b8011f96d..b447d708caf 100644--- a/lucene/core/src/java/org/apache/lucene/geo/Tessellator.java+++ b/lucene/core/src/java/org/apache/lucene/geo/Tessellator.java@@ -904,7 +904,7 @@ public final class Tessellator {/*** Attempt to split a polygon and independently triangulate each side. Return true if the polygon- * was splitted *+ * was split **/private static boolean splitEarcut(final Object polygon,@@ -1152,7 +1152,7 @@ public final class Tessellator {return isPointInLine(a, b, point.getX(), point.getY());}- /** returns true if the lon, lat point is colinear w/ the provided a and b point */+ /** returns true if the lon, lat point is collinear w/ the provided a and b point */private static boolean isPointInLine(final Node a, final Node b, final double lon, final double lat) {final double dxc = lon - a.getX();diff --git a/lucene/core/src/java/org/apache/lucene/geo/XYPolygon.java b/lucene/core/src/java/org/apache/lucene/geo/XYPolygon.javaindex e1511932d4f..0ace8474f01 100644--- a/lucene/core/src/java/org/apache/lucene/geo/XYPolygon.java+++ b/lucene/core/src/java/org/apache/lucene/geo/XYPolygon.java@@ -147,7 +147,7 @@ public final class XYPolygon extends XYGeometry {return holes[i];}- /** Returns the winding order (CW, COLINEAR, CCW) for the polygon shell */+ /** Returns the winding order (CW, COLLINEAR, CCW) for the polygon shell */public GeoUtils.WindingOrder getWindingOrder() {return this.windingOrder;}diff --git a/lucene/core/src/java/org/apache/lucene/index/ByteVectorValues.java b/lucene/core/src/java/org/apache/lucene/index/ByteVectorValues.javaindex e531d444f42..87121e174b5 100644--- a/lucene/core/src/java/org/apache/lucene/index/ByteVectorValues.java+++ b/lucene/core/src/java/org/apache/lucene/index/ByteVectorValues.java@@ -102,7 +102,7 @@ public abstract class ByteVectorValues extends KnnVectorValues {** @param vectors the list of byte arrays* @param dim the dimension of the vectors- * @return a {@link ByteVectorValues} instancec+ * @return a {@link ByteVectorValues} instance*/public static ByteVectorValues fromBytes(List<byte[]> vectors, int dim) {return new ByteVectorValues() {diff --git a/lucene/core/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java b/lucene/core/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.javaindex 94b4508b984..6977771c37f 100644--- a/lucene/core/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java+++ b/lucene/core/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java@@ -692,7 +692,7 @@ public class ConcurrentMergeScheduler extends MergeScheduler {removeMergeThread();updateMergeThreads();// In case we had stalled indexing, we can now wake up- // and possibly unstall:+ // and possibly un-stall:notifyAll();}}diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.javaindex a1e1b7eaad9..821a8a1099b 100644--- a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java+++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java@@ -462,7 +462,7 @@ public final class IndexWriterConfig extends LiveIndexWriterConfig {** <p>Note: Set to 0 to disable merging on full flush.*- * <p>Note: If {@link SerialMergeScheduler} is used and a non-zero timout is configured,+ * <p>Note: If {@link SerialMergeScheduler} is used and a non-zero timeout is configured,* full-flush merges will always wait for the merge to finish without honoring the configured* timeout.*/diff --git a/lucene/core/src/java/org/apache/lucene/index/PendingDeletes.java b/lucene/core/src/java/org/apache/lucene/index/PendingDeletes.javaindex 1844afc760e..2549677c661 100644--- a/lucene/core/src/java/org/apache/lucene/index/PendingDeletes.java+++ b/lucene/core/src/java/org/apache/lucene/index/PendingDeletes.java@@ -32,9 +32,9 @@ class PendingDeletes {protected final SegmentCommitInfo info;// Read-only live docs, null until live docs are initialized or if all docs are aliveprivate Bits liveDocs;- // Writeable live docs, null if this instance is not ready to accept writes, in which+ // Writable live docs, null if this instance is not ready to accept writes, in which// case getMutableBits needs to be called- private FixedBitSet writeableLiveDocs;+ private FixedBitSet writableLiveDocs;protected int pendingDeleteCount;boolean liveDocsInitialized;@@ -64,20 +64,20 @@ class PendingDeletes {// if we pull mutable bits but we haven't been initialized something is completely off.// this means we receive deletes without having the bitset that is on-disk ready to be clonedassert liveDocsInitialized : "can't delete if liveDocs are not initialized";- if (writeableLiveDocs == null) {+ if (writableLiveDocs == null) {// Copy on write: this means we've cloned a// SegmentReader sharing the current liveDocs// instance; must now make a private clone so we can// change it:if (liveDocs != null) {- writeableLiveDocs = FixedBitSet.copyOf(liveDocs);+ writableLiveDocs = FixedBitSet.copyOf(liveDocs);} else {- writeableLiveDocs = new FixedBitSet(info.info.maxDoc());- writeableLiveDocs.set(0, info.info.maxDoc());+ writableLiveDocs = new FixedBitSet(info.info.maxDoc());+ writableLiveDocs.set(0, info.info.maxDoc());}- liveDocs = writeableLiveDocs.asReadOnlyBits();+ liveDocs = writableLiveDocs.asReadOnlyBits();}- return writeableLiveDocs;+ return writableLiveDocs;}/**@@ -107,7 +107,7 @@ class PendingDeletes {/** Returns a snapshot of the current live docs. */Bits getLiveDocs() {// Prevent modifications to the returned live docs- writeableLiveDocs = null;+ writableLiveDocs = null;return liveDocs;}@@ -126,7 +126,7 @@ class PendingDeletes {*/void onNewReader(CodecReader reader, SegmentCommitInfo info) throws IOException {if (liveDocsInitialized == false) {- assert writeableLiveDocs == null;+ assert writableLiveDocs == null;if (reader.hasDeletions()) {// we only initialize this once either in the ctor or here// if we use the live docs from a reader it has to be in a situation where we don't@@ -163,7 +163,7 @@ class PendingDeletes {StringBuilder sb = new StringBuilder();sb.append("PendingDeletes(seg=").append(info);sb.append(" numPendingDeletes=").append(pendingDeleteCount);- sb.append(" writeable=").append(writeableLiveDocs != null);+ sb.append(" writable=").append(writableLiveDocs != null);return sb.toString();}diff --git a/lucene/core/src/java/org/apache/lucene/index/SortedNumericDocValuesWriter.java b/lucene/core/src/java/org/apache/lucene/index/SortedNumericDocValuesWriter.javaindex d42ee5385c3..83cb49d8e24 100644--- a/lucene/core/src/java/org/apache/lucene/index/SortedNumericDocValuesWriter.java+++ b/lucene/core/src/java/org/apache/lucene/index/SortedNumericDocValuesWriter.java@@ -171,21 +171,21 @@ class SortedNumericDocValuesWriter extends DocValuesWriter<SortedNumericDocValuefloat acceptableOverheadRatio)throws IOException {offsets = new long[maxDoc];- PackedLongValues.Builder valuesBuiler =+ PackedLongValues.Builder valuesBuilder =PackedLongValues.packedBuilder(acceptableOverheadRatio);int docID;long offsetIndex = 1; // 0 means the doc has no valueswhile ((docID = oldValues.nextDoc()) != NO_MORE_DOCS) {int newDocID = sortMap.oldToNew(docID);int numValues = oldValues.docValueCount();- valuesBuiler.add(numValues);+ valuesBuilder.add(numValues);offsets[newDocID] = offsetIndex++;for (int i = 0; i < numValues; i++) {- valuesBuiler.add(oldValues.nextValue());+ valuesBuilder.add(oldValues.nextValue());offsetIndex++;}}- values = valuesBuiler.build();+ values = valuesBuilder.build();}}diff --git a/lucene/core/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java b/lucene/core/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.javaindex 836b62be8a0..ce9bd111274 100644--- a/lucene/core/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java+++ b/lucene/core/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java@@ -30,7 +30,7 @@ import org.apache.lucene.util.Version;* 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.*- * <p>In general one would use {@link IndexUpgrader}, but for a fully customizeable upgrade, you can+ * <p>In general one would use {@link IndexUpgrader}, but for a fully customizable upgrade, you can* use this like any other {@code MergePolicy} and call {@link IndexWriter#forceMerge(int)}:** <pre><code class="language-java">diff --git a/lucene/core/src/java/org/apache/lucene/search/BlendedTermQuery.java b/lucene/core/src/java/org/apache/lucene/search/BlendedTermQuery.javaindex e4076ff4112..c41b7b9a348 100644--- a/lucene/core/src/java/org/apache/lucene/search/BlendedTermQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/BlendedTermQuery.java@@ -64,8 +64,8 @@ public final class BlendedTermQuery extends Query {** @see RewriteMethod*/- public Builder setRewriteMethod(RewriteMethod rewiteMethod) {- this.rewriteMethod = rewiteMethod;+ public Builder setRewriteMethod(RewriteMethod rewriteMethod) {+ this.rewriteMethod = rewriteMethod;return this;}diff --git a/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java b/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.javaindex c9678fa1f0f..4deda035338 100644--- a/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java@@ -35,7 +35,7 @@ import org.apache.lucene.search.similarities.Similarity;/*** A Query that matches documents matching boolean combinations of other queries, e.g. {@link- * TermQuery}s, {@link PhraseQuery}s or other BooleanQuerys.+ * TermQuery}s, {@link PhraseQuery}s or other BooleanQuery instances.*/public class BooleanQuery extends Query implements Iterable<BooleanClause> {@@ -78,7 +78,7 @@ public class BooleanQuery extends Query implements Iterable<BooleanClause> {// circuit in case a single query holds more than numClauses//// NOTE: this is not just an early check for optimization -- it's- // neccessary to prevent run-away 'rewriting' of bad queries from+ // necessary to prevent run-away 'rewriting' of bad queries from// creating BQ objects that might eat up all the Heap.if (clauses.size() >= IndexSearcher.maxClauseCount) {throw new IndexSearcher.TooManyClauses();diff --git a/lucene/core/src/java/org/apache/lucene/search/DisjunctionMaxQuery.java b/lucene/core/src/java/org/apache/lucene/search/DisjunctionMaxQuery.javaindex 7932e7b4f7b..c26903fb33c 100644--- a/lucene/core/src/java/org/apache/lucene/search/DisjunctionMaxQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/DisjunctionMaxQuery.java@@ -61,7 +61,7 @@ public final class DisjunctionMaxQuery extends Query implements Iterable<Query>* (i.e., one that is not in any higher scored field.*/public DisjunctionMaxQuery(Collection<? extends Query> disjuncts, float tieBreakerMultiplier) {- Objects.requireNonNull(disjuncts, "Collection of Querys must not be null");+ Objects.requireNonNull(disjuncts, "Collection of Query objects must not be null");if (tieBreakerMultiplier < 0 || tieBreakerMultiplier > 1) {throw new IllegalArgumentException("tieBreakerMultiplier must be in [0, 1]");}diff --git a/lucene/core/src/java/org/apache/lucene/search/FilterLeafCollector.java b/lucene/core/src/java/org/apache/lucene/search/FilterLeafCollector.javaindex d9bc671fd42..0fd2f389a95 100644--- a/lucene/core/src/java/org/apache/lucene/search/FilterLeafCollector.java+++ b/lucene/core/src/java/org/apache/lucene/search/FilterLeafCollector.java@@ -51,7 +51,7 @@ public abstract class FilterLeafCollector implements LeafCollector {public String toString() {String name = getClass().getSimpleName();if (name.length() == 0) {- // an anonoymous subclass will have empty name?+ // an anonymous subclass will have empty name?name = "FilterLeafCollector";}return name + "(" + in + ")";diff --git a/lucene/core/src/java/org/apache/lucene/search/IndriDisjunctionScorer.java b/lucene/core/src/java/org/apache/lucene/search/IndriDisjunctionScorer.javaindex 36e613e47ff..19aea4d69c2 100644--- a/lucene/core/src/java/org/apache/lucene/search/IndriDisjunctionScorer.java+++ b/lucene/core/src/java/org/apache/lucene/search/IndriDisjunctionScorer.java@@ -21,7 +21,7 @@ import java.util.ArrayList;import java.util.List;/**- * The Indri implemenation of a disjunction scorer which stores the subscorers for the child+ * The Indri implementation of a disjunction scorer which stores the subscorers for the child* queries. The score and smoothingScore methods use the list of all subscorers and not just the* matches so that a smoothingScore can be calculated if there is not an exact match.*/diff --git a/lucene/core/src/java/org/apache/lucene/search/Query.java b/lucene/core/src/java/org/apache/lucene/search/Query.javaindex e480b0ad939..2420831df20 100644--- a/lucene/core/src/java/org/apache/lucene/search/Query.java+++ b/lucene/core/src/java/org/apache/lucene/search/Query.java@@ -71,7 +71,7 @@ public abstract class Query {/*** Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be- * rewritten into a BooleanQuery that consists of TermQuerys.+ * rewritten into a BooleanQuery that consists of TermQuery instances.** <p>Callers are expected to call <code>rewrite</code> multiple times if necessary, until the* rewritten query is the same as the original query.diff --git a/lucene/core/src/java/org/apache/lucene/search/SearcherLifetimeManager.java b/lucene/core/src/java/org/apache/lucene/search/SearcherLifetimeManager.javaindex b0bd73acfaa..d7a7589e5b0 100644--- a/lucene/core/src/java/org/apache/lucene/search/SearcherLifetimeManager.java+++ b/lucene/core/src/java/org/apache/lucene/search/SearcherLifetimeManager.java@@ -39,7 +39,7 @@ import org.apache.lucene.util.IOUtils;* example, by using {@link SearcherManager}), and then record this searcher:** <pre><code class="language-java">- * // Record the current searcher, and save the returend+ * // Record the current searcher, and save the returned* // token into user's search results (eg as a hidden* // HTML form field):* long token = mgr.record(searcher);diff --git a/lucene/core/src/java/org/apache/lucene/search/SegmentCacheable.java b/lucene/core/src/java/org/apache/lucene/search/SegmentCacheable.javaindex 8a9aecb7d3e..47ead925500 100644--- a/lucene/core/src/java/org/apache/lucene/search/SegmentCacheable.java+++ b/lucene/core/src/java/org/apache/lucene/search/SegmentCacheable.java@@ -29,7 +29,7 @@ import org.apache.lucene.index.LeafReaderContext;** <p>Objects that depend on doc values should return {@link* DocValues#isCacheable(LeafReaderContext, String...)}, which will check to see if the doc values- * fields have been updated. Updated doc values fields are not suitable for cacheing.+ * fields have been updated. Updated doc values fields are not suitable for caching.** <p>Objects that are not segment-immutable, such as those that rely on global statistics or* scores, should return {@code false}diff --git a/lucene/core/src/java/org/apache/lucene/search/SloppyPhraseMatcher.java b/lucene/core/src/java/org/apache/lucene/search/SloppyPhraseMatcher.javaindex f4e568c8b8e..5ce9c261e7e 100644--- a/lucene/core/src/java/org/apache/lucene/search/SloppyPhraseMatcher.java+++ b/lucene/core/src/java/org/apache/lucene/search/SloppyPhraseMatcher.java@@ -336,7 +336,7 @@ public final class SloppyPhraseMatcher extends PhraseMatcher {// empty (partially) the queue until seeing all pps advanced for resolving collisionsint n = 0;// TODO would be good if we can avoid calling cardinality() in each iteration!- int numBits = bits.length(); // larges bit we set+ int numBits = bits.length(); // largest bit we setwhile (bits.cardinality() > 0) {PhrasePositions pp2 = pq.pop();rptStack[n++] = pp2;diff --git a/lucene/core/src/java/org/apache/lucene/search/TermInSetQuery.java b/lucene/core/src/java/org/apache/lucene/search/TermInSetQuery.javaindex a209a5012d4..3eab343eb3d 100644--- a/lucene/core/src/java/org/apache/lucene/search/TermInSetQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/TermInSetQuery.java@@ -194,7 +194,7 @@ public class TermInSetQuery extends MultiTermQuery implements Accountable {Automaton a = Automata.makeBinaryStringUnion(termData.iterator());return new ByteRunAutomaton(a, true);} catch (IOException e) {- // Shouldn't happen since termData.iterator() provides an interator implementation that+ // Shouldn't happen since termData.iterator() provides an iterator implementation that// never throws:throw new UncheckedIOException(e);}diff --git a/lucene/core/src/java/org/apache/lucene/store/ByteBuffersDataOutput.java b/lucene/core/src/java/org/apache/lucene/store/ByteBuffersDataOutput.javaindex ab30d615310..5e93a398661 100644--- a/lucene/core/src/java/org/apache/lucene/store/ByteBuffersDataOutput.java+++ b/lucene/core/src/java/org/apache/lucene/store/ByteBuffersDataOutput.java@@ -247,18 +247,18 @@ public final class ByteBuffersDataOutput extends DataOutput implements Accountab}/**- * Returns a list of writeable blocks over the (source) content buffers.+ * Returns a list of writable blocks over the (source) content buffers.** <p>This method returns the raw content of source buffers that may change over the lifetime of* this object (blocks can be recycled or discarded, for example). Most applications should favor* calling {@link #toBufferList()} which returns a read-only <i>view</i> over the content of the* source buffers.*- * <p>The difference between {@link #toBufferList()} and {@link #toWriteableBufferList()} is that+ * <p>The difference between {@link #toBufferList()} and {@link #toWritableBufferList()} is that* read-only view of source buffers will always return {@code false} from {@link* ByteBuffer#hasArray()} (which sometimes may be required to avoid double copying).*/- public ArrayList<ByteBuffer> toWriteableBufferList() {+ public ArrayList<ByteBuffer> toWritableBufferList() {ArrayList<ByteBuffer> result = new ArrayList<>(Math.max(blocks.size(), 1));if (blocks.isEmpty()) {result.add(EMPTY);diff --git a/lucene/core/src/java/org/apache/lucene/store/MemorySegmentIndexInput.java b/lucene/core/src/java/org/apache/lucene/store/MemorySegmentIndexInput.javaindex 6ce3a99a12d..32f8a5e4efa 100644--- a/lucene/core/src/java/org/apache/lucene/store/MemorySegmentIndexInput.java+++ b/lucene/core/src/java/org/apache/lucene/store/MemorySegmentIndexInput.java@@ -583,7 +583,7 @@ abstract class MemorySegmentIndexInput extends IndexInput implements MemorySegme/*** Creates a slice of this index input, with the given description, offset, and length. The slice- * is seeked to the beginning.+ * is seek()ed to the beginning.*/@Overridepublic final MemorySegmentIndexInput slice(String sliceDescription, long offset, long length) {diff --git a/lucene/core/src/java/org/apache/lucene/util/BytesRefComparator.java b/lucene/core/src/java/org/apache/lucene/util/BytesRefComparator.javaindex 1de78b249e2..457c181c094 100644--- a/lucene/core/src/java/org/apache/lucene/util/BytesRefComparator.java+++ b/lucene/core/src/java/org/apache/lucene/util/BytesRefComparator.java@@ -26,7 +26,7 @@ import java.util.Comparator;*/public abstract class BytesRefComparator implements Comparator<BytesRef> {- /** Comparing ByteRefs in natual order. */+ /** Comparing ByteRefs in natural order. */public static final BytesRefComparator NATURAL =new BytesRefComparator(Integer.MAX_VALUE) {@Overridediff --git a/lucene/core/src/java/org/apache/lucene/util/FileDeleter.java b/lucene/core/src/java/org/apache/lucene/util/FileDeleter.javaindex 749cb56f973..719fba1adcd 100644--- a/lucene/core/src/java/org/apache/lucene/util/FileDeleter.java+++ b/lucene/core/src/java/org/apache/lucene/util/FileDeleter.java@@ -220,7 +220,7 @@ public final class FileDeleter {}// Only delete other files if we were able to remove the segments_N files; this way we never- // leave a corrupt commit in the index even in the presense of virus checkers:+ // leave a corrupt commit in the index even in the presence of virus checkers:for (String fileName : toDelete) {assert exists(fileName) == false;if (fileName.startsWith(IndexFileNames.SEGMENTS) == false) {diff --git a/lucene/core/src/java/org/apache/lucene/util/StringHelper.java b/lucene/core/src/java/org/apache/lucene/util/StringHelper.javaindex 715f3e13054..5b1c54f42fb 100644--- a/lucene/core/src/java/org/apache/lucene/util/StringHelper.java+++ b/lucene/core/src/java/org/apache/lucene/util/StringHelper.java@@ -434,7 +434,7 @@ public abstract class StringHelper {BigInteger unsignedX0 = BigInteger.valueOf(x0).and(mask64);BigInteger unsignedX1 = BigInteger.valueOf(x1).and(mask64);- // Concatentate bits of x0 and x1, as unsigned 128 bit integer:+ // Concatenate bits of x0 and x1, as unsigned 128 bit integer:nextId = new AtomicReference<>(unsignedX0.shiftLeft(64).or(unsignedX1));}diff --git a/lucene/core/src/java/org/apache/lucene/util/automaton/FiniteStringsIterator.java b/lucene/core/src/java/org/apache/lucene/util/automaton/FiniteStringsIterator.javaindex e141b4b95cf..a40c47e0ec6 100644--- a/lucene/core/src/java/org/apache/lucene/util/automaton/FiniteStringsIterator.java+++ b/lucene/core/src/java/org/apache/lucene/util/automaton/FiniteStringsIterator.java@@ -196,7 +196,7 @@ public class FiniteStringsIterator {*/public int nextLabel(Automaton a) {if (label > t.max) {- // We've exhaused the current transition's labels;+ // We've exhausted the current transition's labels;// move to next transitions:transition++;if (transition >= a.getNumTransitions(state)) {diff --git a/lucene/core/src/java/org/apache/lucene/util/automaton/Operations.java b/lucene/core/src/java/org/apache/lucene/util/automaton/Operations.javaindex 925201b2c5d..45543fd1de2 100644--- a/lucene/core/src/java/org/apache/lucene/util/automaton/Operations.java+++ b/lucene/core/src/java/org/apache/lucene/util/automaton/Operations.java@@ -696,7 +696,7 @@ public final class Operations {while (worklist.size() > 0) {// TODO (LUCENE-9983): these int sets really do not need to be sorted, and we are paying- // a high (unecessary) price for that! really we just need a low-overhead Map<int,int>+ // a high (unnecessary) price for that! really we just need a low-overhead Map<int,int>// that implements equals/hash based only on the keys (ignores the values). fixing this// might be a bigspeedup for determinizing complex automataFrozenIntSet s = worklist.removeFirst();diff --git a/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java b/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.javaindex efa77c9e966..c34feb74dbe 100644--- a/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java+++ b/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java@@ -1899,7 +1899,7 @@ public class BKDWriter implements Closeable {}/**- * The point writer contains the data that is going to be splitted using radix selection. /* This+ * The point writer contains the data that is going to be split using radix selection. /* This* method is used when we are merging previously written segments, in the numDims > 1 case.*/private void build(diff --git a/lucene/core/src/java/org/apache/lucene/util/compress/LZ4.java b/lucene/core/src/java/org/apache/lucene/util/compress/LZ4.javaindex 25a6f025dc5..df9c5e6fc25 100644--- a/lucene/core/src/java/org/apache/lucene/util/compress/LZ4.java+++ b/lucene/core/src/java/org/apache/lucene/util/compress/LZ4.java@@ -109,7 +109,7 @@ public final class LZ4 {break;}- // matchs+ // matchesfinal int matchDec = compressed.readShort() & 0xFFFF;if (matchDec == 0) {throw new IOException("offset 0 is invalid");@@ -296,7 +296,7 @@ public final class LZ4 {}/**- * Simple lossy {@link HashTable} that only stores the last ocurrence for each hash on {@code+ * Simple lossy {@link HashTable} that only stores the last occurrence for each hash on {@code* 2^14} bytes of memory.*/public static final class FastCompressionHashTable extends HashTable {diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/FST.java b/lucene/core/src/java/org/apache/lucene/util/fst/FST.javaindex eb780acc245..30fd39805da 100644--- a/lucene/core/src/java/org/apache/lucene/util/fst/FST.java+++ b/lucene/core/src/java/org/apache/lucene/util/fst/FST.java@@ -413,7 +413,7 @@ public final class FST<T> implements Accountable {private static final int DEFAULT_MAX_BLOCK_BITS = Constants.JRE_IS_64BIT ? 30 : 28;/**- * Load a previously saved FST with a DataInput for metdata using an {@link OnHeapFSTStore} with+ * Load a previously saved FST with a DataInput for metadata using an {@link OnHeapFSTStore} with* maxBlockBits set to {@link #DEFAULT_MAX_BLOCK_BITS}*/public FST(FSTMetadata<T> metadata, DataInput in) throws IOException {diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/ReadWriteDataOutput.java b/lucene/core/src/java/org/apache/lucene/util/fst/ReadWriteDataOutput.javaindex a43c2f4f04d..7318c32eafe 100644--- a/lucene/core/src/java/org/apache/lucene/util/fst/ReadWriteDataOutput.java+++ b/lucene/core/src/java/org/apache/lucene/util/fst/ReadWriteDataOutput.java@@ -67,8 +67,8 @@ final class ReadWriteDataOutput extends DataOutput implements FSTReader {public void freeze() {frozen = true;// this operation is costly, so we want to compute it once and cache- this.byteBuffers = dataOutput.toWriteableBufferList();- // ensure the ByteBuffer internal array is accessible. The call to toWriteableBufferList() above+ this.byteBuffers = dataOutput.toWritableBufferList();+ // ensure the ByteBuffer internal array is accessible. The call to toWritableBufferList() above// would ensure that it is accessible.assert byteBuffers.stream().allMatch(ByteBuffer::hasArray);}diff --git a/lucene/core/src/test/org/apache/lucene/analysis/tokenattributes/TestCharTermAttributeImpl.java b/lucene/core/src/test/org/apache/lucene/analysis/tokenattributes/TestCharTermAttributeImpl.javaindex bb260d6d8b0..8bcdf17498c 100644--- a/lucene/core/src/test/org/apache/lucene/analysis/tokenattributes/TestCharTermAttributeImpl.java+++ b/lucene/core/src/test/org/apache/lucene/analysis/tokenattributes/TestCharTermAttributeImpl.java@@ -189,7 +189,7 @@ public class TestCharTermAttributeImpl extends LuceneTestCase {assertEquals("123456789012341234567890123456", t.toString());t.append((CharSequence) new StringBuffer(t));assertEquals("123456789012341234567890123456123456789012341234567890123456", t.toString());- // very wierd, to test if a subSlice is wrapped correct :)+ // very weird, to test if a subSlice is wrapped correct :)CharBuffer buf = CharBuffer.wrap("0123456789".toCharArray(), 3, 5);assertEquals("34567", buf.toString());t.setEmpty().append((CharSequence) buf, 1, 2);@@ -233,13 +233,13 @@ public class TestCharTermAttributeImpl extends LuceneTestCase {assertEquals((CharSequence) "567890123456", t.toString());t.append(new StringBuffer(t));assertEquals((CharSequence) "567890123456567890123456", t.toString());- // very wierd, to test if a subSlice is wrapped correct :)+ // very weird, to test if a subSlice is wrapped correct :)CharBuffer buf = CharBuffer.wrap("012345678901234567890123456789".toCharArray(), 3, 15);assertEquals("345678901234567", buf.toString());t.setEmpty().append(buf, 1, 14);assertEquals("4567890123456", t.toString());- // finally use a completely custom CharSequence that is not catched by instanceof checks+ // finally use a completely custom CharSequence that is not caught by instanceof checksfinal String longTestString = "012345678901234567890123456789";t.append(new CharSequence() {diff --git a/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat2.java b/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat2.javaindex 977a388f9b5..ddbd0c532e7 100644--- a/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat2.java+++ b/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat2.java@@ -124,7 +124,7 @@ public class TestPerFieldPostingsFormat2 extends LuceneTestCase {}/*- * Test that heterogeneous index segments are merged sucessfully+ * Test that heterogeneous index segments are merged successfully*/// TODO: not sure this test is that great, we should probably peek inside PerFieldPostingsFormat// or something?!diff --git a/lucene/core/src/test/org/apache/lucene/geo/TestPolygon2D.java b/lucene/core/src/test/org/apache/lucene/geo/TestPolygon2D.javaindex 1660cd69dcd..6453ff5f9cf 100644--- a/lucene/core/src/test/org/apache/lucene/geo/TestPolygon2D.java+++ b/lucene/core/src/test/org/apache/lucene/geo/TestPolygon2D.java@@ -417,7 +417,7 @@ public class TestPolygon2D extends LuceneTestCase {for (int j = 1; j < numVertices; ++j) {double[] a = new double[] {0d, 0d}; // center of polydouble[] b = new double[] {polygon.getPolyLat(j - 1), polygon.getPolyLon(j - 1)};- // occassionally test pancake triangles+ // occasionally test pancake trianglesdouble[] c =random().nextBoolean()? new double[] {polygon.getPolyLat(j), polygon.getPolyLon(j)}diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReader.java b/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReader.javaindex 6b346780403..7a7683f6130 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReader.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReader.java@@ -695,7 +695,7 @@ public class TestDirectoryReader extends LuceneTestCase {tp1.docID(),tp2.docID());assertEquals(- "Different term frequence in postinglist of term " + enum1.term() + ".",+ "Different term frequencies in postinglist of term " + enum1.term() + ".",tp1.freq(),tp2.freq());for (int i = 0; i < tp1.freq(); i++) {diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReaderReopen.java b/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReaderReopen.javaindex ebd099d0b94..bb5fb14bec5 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReaderReopen.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReaderReopen.java@@ -138,9 +138,9 @@ public class TestDirectoryReaderReopen extends LuceneTestCase {int n = j + k * M;final DocumentStoredFieldVisitor visitor = new DocumentStoredFieldVisitor();reader.storedFields().document(n, visitor);- Document prevItereationDoc = visitor.getDocument();- assertNotNull(prevItereationDoc);- String id = prevItereationDoc.get("id");+ Document prevIterationDoc = visitor.getDocument();+ assertNotNull(prevIterationDoc);+ String id = prevIterationDoc.get("id");assertEquals(k + "_" + j, id);}}@@ -1234,9 +1234,9 @@ public class TestDirectoryReaderReopen extends LuceneTestCase {if (i > 0) {int k = i - 1;int n = j + k * M;- Document prevItereationDoc = reader.storedFields().document(n);- assertNotNull(prevItereationDoc);- String id = prevItereationDoc.get("id");+ Document prevIterationDoc = reader.storedFields().document(n);+ assertNotNull(prevIterationDoc);+ String id = prevIterationDoc.get("id");assertEquals(k + "_" + j, id);}diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDocsAndPositions.java b/lucene/core/src/test/org/apache/lucene/index/TestDocsAndPositions.javaindex d12d8f07cfe..33af0028ec7 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestDocsAndPositions.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestDocsAndPositions.java@@ -173,7 +173,7 @@ public class TestDocsAndPositions extends LuceneTestCase {Integer[] pos = positionsInDoc[leafReaderContext.docBase + docID];assertEquals(pos.length, docsAndPosEnum.freq());// number of positions read should be random - don't read all of them- // allways+ // alwaysfinal int howMany =random().nextInt(20) == 0 ? pos.length - random().nextInt(pos.length) : pos.length;for (int j = 0; j < howMany; j++) {@@ -342,7 +342,7 @@ public class TestDocsAndPositions extends LuceneTestCase {assertEquals(howMany / 2, docsAndPosEnum.freq());for (int j = 0; j < howMany; j += 2) {assertEquals(- "position missmatch index: "+ "position mismatch index: "+ j+ " with freq: "+ docsAndPosEnum.freq()diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDuelingCodecs.java b/lucene/core/src/test/org/apache/lucene/index/TestDuelingCodecs.javaindex d256afe238f..dcb258582c6 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestDuelingCodecs.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestDuelingCodecs.java@@ -96,7 +96,7 @@ public class TestDuelingCodecs extends LuceneTestCase {super.tearDown();}- /** populates a writer with random stuff. this must be fully reproducable with the seed! */+ /** populates a writer with random stuff. this must be fully reproducible with the seed! */public static void createRandomIndex(int numdocs, RandomIndexWriter writer, long seed)throws IOException {Random random = new Random(seed);diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.javaindex 54c0f07e991..b6dcf1f40a4 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.java@@ -300,7 +300,7 @@ public class TestIndexWriterCommit extends LuceneTestCase {dir, newIndexWriterConfig(new MockAnalyzer(random())).setOpenMode(OpenMode.APPEND));writer.forceMerge(1);- // Open a reader before closing (commiting) the writer:+ // Open a reader before closing (committing) the writer:DirectoryReader reader = DirectoryReader.open(dir);// Reader should see index as multi-seg at thisdiff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterConfig.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterConfig.javaindex 2648d6e7229..6117fcb28ed 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterConfig.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterConfig.java@@ -153,7 +153,7 @@ public class TestIndexWriterConfig extends LuceneTestCase {for (Method m : IndexWriterConfig.class.getDeclaredMethods()) {if (m.getName().startsWith("get") && !Modifier.isStatic(m.getModifiers())) {assertEquals(- "method " + m.getName() + " not overrided by IndexWriterConfig",+ "method " + m.getName() + " not overridden by IndexWriterConfig",IndexWriterConfig.class,m.getDeclaringClass());assertTrue(diff --git a/lucene/core/src/test/org/apache/lucene/index/TestReaderClosed.java b/lucene/core/src/test/org/apache/lucene/index/TestReaderClosed.javaindex a1a23b6698e..0cbaca2faae 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestReaderClosed.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestReaderClosed.java@@ -48,7 +48,7 @@ public class TestReaderClosed extends LuceneTestCase {Field field = newStringField("field", "", Field.Store.NO);doc.add(field);- // we generate aweful prefixes: good for testing.+ // we generate awful prefixes: good for testing.// but for preflex codec, the test can be very slow, so use less iterations.int num = atLeast(10);for (int i = 0; i < num; i++) {diff --git a/lucene/core/src/test/org/apache/lucene/index/TestSnapshotDeletionPolicy.java b/lucene/core/src/test/org/apache/lucene/index/TestSnapshotDeletionPolicy.javaindex b98a86ff275..0d535ff5757 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestSnapshotDeletionPolicy.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestSnapshotDeletionPolicy.java@@ -374,7 +374,7 @@ public class TestSnapshotDeletionPolicy extends LuceneTestCase {writer.deleteUnusedFiles();writer.close();assertFalse(- "segments file should not be found in dirctory: " + segFileName,+ "segments file should not be found in directory: " + segFileName,slowFileExists(dir, segFileName));dir.close();}diff --git a/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java b/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.javaindex 1a0c9269256..e3a685b06a8 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java@@ -276,7 +276,7 @@ public class TestSoftDeletesRetentionMergePolicy extends LuceneTestCase {IOUtils.close(reader, writer, dir);}- /** tests soft deletes that carry over deleted documents on merge for history rentention. */+ /** tests soft deletes that carry over deleted documents on merge for history retention. */public void testSoftDeleteWithRetention() throws IOException, InterruptedException {AtomicInteger seqIds = new AtomicInteger(0);Directory dir = newDirectory();diff --git a/lucene/core/src/test/org/apache/lucene/index/TestTermsEnum.java b/lucene/core/src/test/org/apache/lucene/index/TestTermsEnum.javaindex 5229116b6f4..5a0f024bf4c 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestTermsEnum.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestTermsEnum.java@@ -651,7 +651,7 @@ public class TestTermsEnum extends LuceneTestCase {int loc;final TermState termState;if (random().nextInt(6) == 4) {- // pick term that doens't exist:+ // pick term that doesn't exist:t = getNonExistTerm(validTerms);termState = null;if (VERBOSE) {@@ -865,7 +865,7 @@ public class TestTermsEnum extends LuceneTestCase {doc = new Document();// add empty string to both documents, so that singletonDocID == -1.// For a FST-based term dict, we'll expect to see the first arc is- // flaged with HAS_FINAL_OUTPUT+ // flagged with HAS_FINAL_OUTPUTdoc.add(newStringField("field", "abc", Field.Store.NO));doc.add(newStringField("field", "", Field.Store.NO));w.addDocument(doc);diff --git a/lucene/core/src/test/org/apache/lucene/index/TestTermsEnum2.java b/lucene/core/src/test/org/apache/lucene/index/TestTermsEnum2.javaindex 105579b25d6..9e7f8ecb4b7 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestTermsEnum2.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestTermsEnum2.java@@ -147,7 +147,7 @@ public class TestTermsEnum2 extends LuceneTestCase {}/** mixes up seek and next for all terms */- public void testSeekingAndNexting() throws Exception {+ public void testSeekAndNext() throws Exception {for (int i = 0; i < numIterations; i++) {TermsEnum te = MultiTerms.getTerms(reader, "field").iterator();diff --git a/lucene/core/src/test/org/apache/lucene/internal/vectorization/TestVectorScorer.java b/lucene/core/src/test/org/apache/lucene/internal/vectorization/TestVectorScorer.javaindex 86d10cb5af5..89347d8b0c2 100644--- a/lucene/core/src/test/org/apache/lucene/internal/vectorization/TestVectorScorer.java+++ b/lucene/core/src/test/org/apache/lucene/internal/vectorization/TestVectorScorer.java@@ -216,8 +216,8 @@ public class TestVectorScorer extends LuceneTestCase {}}- try (var outter = dir.openInput(fileName, IOContext.DEFAULT);- var in = outter.slice("slice", initialOffset, outter.length() - initialOffset)) {+ try (var outer = dir.openInput(fileName, IOContext.DEFAULT);+ var in = outer.slice("slice", initialOffset, outer.length() - initialOffset)) {for (int times = 0; times < TIMES; times++) {for (var sim : List.of(COSINE, EUCLIDEAN, DOT_PRODUCT, MAXIMUM_INNER_PRODUCT)) {var vectorValues = vectorValues(dims, size, in, sim);diff --git a/lucene/core/src/test/org/apache/lucene/search/ReadAheadMatchAllDocsQuery.java b/lucene/core/src/test/org/apache/lucene/search/ReadAheadMatchAllDocsQuery.javaindex 867d33115f7..4e62b5ae70f 100644--- a/lucene/core/src/test/org/apache/lucene/search/ReadAheadMatchAllDocsQuery.java+++ b/lucene/core/src/test/org/apache/lucene/search/ReadAheadMatchAllDocsQuery.java@@ -64,7 +64,7 @@ public final class ReadAheadMatchAllDocsQuery extends Query {@Overridepublic ScorerSupplier scorerSupplier(LeafReaderContext context) throws IOException {// Don't use ConstantScoreScoreSupplier, which only uses DenseConjunctionBulkScorer on- // larg-ish segments.+ // large-ish segments.return new ScorerSupplier() {@Overridediff --git a/lucene/core/src/test/org/apache/lucene/search/TestBooleanQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestBooleanQuery.javaindex 37993a32e5f..6fa627a7372 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestBooleanQuery.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestBooleanQuery.java@@ -928,7 +928,7 @@ public class TestBooleanQuery extends LuceneTestCase {.add(new TermQuery(new Term("string", "abc")), Occur.MUST_NOT).build();weight = searcher.createWeight(query, ScoreMode.COMPLETE, 1f);- // count of the first MUST_NOT clause is unknown, though the second MUST_NOT clause matche one+ // count of the first MUST_NOT clause is unknown, though the second MUST_NOT clause matches one// doc, we can't figure out the number of// docsassertEquals(-1, weight.count(reader.leaves().get(0)));@@ -949,7 +949,7 @@ public class TestBooleanQuery extends LuceneTestCase {.add(new TermQuery(new Term("string", "abc")), Occur.SHOULD).build();weight = searcher.createWeight(query, ScoreMode.COMPLETE, 1f);- // count of the first SHOULD clause is unknown, though the second SHOULD clause matche one doc,+ // count of the first SHOULD clause is unknown, though the second SHOULD clause matches one doc,// we can't figure out the number of// docsassertEquals(-1, weight.count(reader.leaves().get(0)));diff --git a/lucene/core/src/test/org/apache/lucene/search/TestComplexExplanations.java b/lucene/core/src/test/org/apache/lucene/search/TestComplexExplanations.javaindex ee2d07e6087..fcf6ea9474d 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestComplexExplanations.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestComplexExplanations.java@@ -147,7 +147,7 @@ public class TestComplexExplanations extends BaseExplanationTestCase {}public void testExplainFailingOptionalClauses() throws Exception {- // minShouldMatch not satisfied, show failing SHOULDs.+ // minShouldMatch not satisfied, show failing SHOULD.BooleanQuery msm =new BooleanQuery.Builder().add(new TermQuery(new Term(FIELD, "w1")), Occur.SHOULD)@@ -162,7 +162,7 @@ public class TestComplexExplanations extends BaseExplanationTestCase {assertTrue(msmExpl.contains("no match on optional clause (field:zz)"));assertFalse(msmExpl.contains("no match on optional clause (field:w1)"));- // nothing matches in disjunction, show failing SHOULDs.+ // nothing matches in disjunction, show failing SHOULD.BooleanQuery disj =new BooleanQuery.Builder().add(new TermQuery(new Term(FIELD, "xx")), Occur.SHOULD)@@ -172,7 +172,7 @@ public class TestComplexExplanations extends BaseExplanationTestCase {assertTrue(disjExpl.contains("no match on optional clause (field:xx)"));assertTrue(disjExpl.contains("no match on optional clause (field:zz)"));- // MUST clause fails, failing SHOULDs are not shown.+ // MUST clause fails, failing SHOULD are not shown.BooleanQuery mustFail =new BooleanQuery.Builder().add(new TermQuery(new Term(FIELD, "missing")), Occur.MUST)diff --git a/lucene/core/src/test/org/apache/lucene/search/TestControlledRealTimeReopenThread.java b/lucene/core/src/test/org/apache/lucene/search/TestControlledRealTimeReopenThread.javaindex 454f752beae..ca6c5161ef1 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestControlledRealTimeReopenThread.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestControlledRealTimeReopenThread.java@@ -176,7 +176,7 @@ public class TestControlledRealTimeReopenThread extends ThreadedIndexingAndSearc@Overrideprotected void updateDocument(Term id, Iterable<? extends IndexableField> doc) throws Exception {final long gen = genWriter.updateDocument(id, doc);- // Randomly verify the udpate "took":+ // Randomly verify the update "took":if (random().nextInt(20) == 2) {if (VERBOSE) {System.out.println(diff --git a/lucene/core/src/test/org/apache/lucene/search/TestCustomSearcherSort.java b/lucene/core/src/test/org/apache/lucene/search/TestCustomSearcherSort.javaindex e9dc8555694..f69bbf66de7 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestCustomSearcherSort.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestCustomSearcherSort.java@@ -112,7 +112,7 @@ public class TestCustomSearcherSort extends LuceneTestCase {resultMap.put(Integer.valueOf(hitsByRank[hitid].doc), // Key: Lucene// Document ID- Integer.valueOf(hitid)); // Value: Hits-Objekt Index+ Integer.valueOf(hitid)); // Value: Hits-Object Index}// now make a query using the sort criteria@@ -167,7 +167,7 @@ public class TestCustomSearcherSort extends LuceneTestCase {}}- // Simply write to console - choosen to be independant of log4j etc+ // Simply write to console - chosen to be independent of log4j etcprivate void log(String message) {if (VERBOSE) System.out.println(message);}diff --git a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.javaindex cc14ff9fffc..6700e6e1829 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java@@ -2125,7 +2125,7 @@ public class TestLRUQueryCache extends LuceneTestCase {// due to thread contentionIndexSearcher searcher = new AssertingIndexSearcher(random(), reader);searcher.setQueryCachingPolicy(ALWAYS_CACHE);- // 160 so that each parition(total 16 by default) can hold 10 keys at max.+ // 160 so that each partition(total 16 by default) can hold 10 keys at max.LRUQueryCache cache =new LRUQueryCache(160, 10000, _ -> true, Float.POSITIVE_INFINITY, 1, null);searcher.setQueryCache(cache);diff --git a/lucene/core/src/test/org/apache/lucene/search/TestPhraseQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestPhraseQuery.javaindex 654b93991db..cf57b0053bd 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestPhraseQuery.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestPhraseQuery.java@@ -475,7 +475,7 @@ public class TestPhraseQuery extends LuceneTestCase {// commented out for sloppy-phrase efficiency (issue 736) - see SloppyPhraseScorer.phraseFreq().// assertTrue("ordered scores higher in palindrome",score1+SCORE_COMP_THRESH<score2);- // search reveresed in palyndrome, find it twice+ // search reversed in palyndrome, find it twicequery =new PhraseQuery(2,@@ -544,7 +544,7 @@ public class TestPhraseQuery extends LuceneTestCase {// commented out for sloppy-phrase efficiency (issue 736) - see SloppyPhraseScorer.phraseFreq().// assertTrue("ordered scores higher in palindrome",score1+SCORE_COMP_THRESH<score2);- // search reveresed in palyndrome, find it twice+ // search reversed in palyndrome, find it twice// must be at least four for both ordered and reversed to matchquery = new PhraseQuery(4, "palindrome", "three", "two", "one");hits = searcher.search(query, 1000).scoreDocs;diff --git a/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java b/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.javaindex c6343ae5533..9ec5641158a 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java@@ -110,7 +110,7 @@ public class TestPositionIncrement extends LuceneTestCase {hits = searcher.search(q, 1000).scoreDocs;assertEquals(0, hits.length);- // same as previous, just specify positions explicitely.+ // same as previous, just specify positions explicitly.builder = new PhraseQuery.Builder();builder.add(new Term("field", "1"), 0);builder.add(new Term("field", "2"), 1);@@ -151,7 +151,7 @@ public class TestPositionIncrement extends LuceneTestCase {hits = searcher.search(q, 1000).scoreDocs;assertEquals(0, hits.length);- // multi-phrase query should succed for non existing searched term+ // multi-phrase query should succeed for non existing searched term// because there exist another searched terms in the same searched position.MultiPhraseQuery.Builder mqb = new MultiPhraseQuery.Builder();mqb.add(new Term[] {new Term("field", "3"), new Term("field", "9")}, 0);diff --git a/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java b/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.javaindex fae64bc5f96..1f93d49b224 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java@@ -470,7 +470,7 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase {t.join();// if maybeRefreshBlocking didn't release the lock, this will fail.- assertTrue("failde to obtain the refreshLock!", sm.maybeRefresh());+ assertTrue("failed to obtain the refreshLock!", sm.maybeRefresh());sm.close();dir.close();diff --git a/lucene/core/src/test/org/apache/lucene/search/TestSimpleExplanationsWithFillerDocs.java b/lucene/core/src/test/org/apache/lucene/search/TestSimpleExplanationsWithFillerDocs.javaindex a97c29cce0c..2c969ce460a 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestSimpleExplanationsWithFillerDocs.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestSimpleExplanationsWithFillerDocs.java@@ -94,9 +94,9 @@ public class TestSimpleExplanationsWithFillerDocs extends TestSimpleExplanations}/**- * Adjusts <code>expDocNrs</code> based on the filler docs injected in the index, and if- * neccessary wraps the <code>q</code> in a BooleanQuery that will filter out all filler docs- * using the {@link #EXTRA} field.+ * Adjusts <code>expDocNrs</code> based on the filler docs injected in the index, and if necessary+ * wraps the <code>q</code> in a BooleanQuery that will filter out all filler docs using the+ * {@link #EXTRA} field.** @see #replaceIndex*/diff --git a/lucene/core/src/test/org/apache/lucene/search/TestSortOptimization.java b/lucene/core/src/test/org/apache/lucene/search/TestSortOptimization.javaindex 0c65fb2f7db..2442d7dbf21 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestSortOptimization.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestSortOptimization.java@@ -733,7 +733,7 @@ public class TestSortOptimization extends LuceneTestCase {* Test that sorting on _doc works correctly. This test goes through* DefaultBulkSorter::scoreRange, where scorerIterator is BitSetIterator. As a conjunction of this* BitSetIterator with DocComparator's iterator, we get BitSetConjunctionDISI.- * BitSetConjuctionDISI advances based on the DocComparator's iterator, and doesn't consider that+ * BitSetConjunctionDISI advances based on the DocComparator's iterator, and doesn't consider that* its BitSetIterator may have advanced passed a certain doc.*/public void testDocSort() throws IOException {diff --git a/lucene/core/src/test/org/apache/lucene/search/TestTopDocsCollector.java b/lucene/core/src/test/org/apache/lucene/search/TestTopDocsCollector.javaindex bdb1de6abbe..8200176e84b 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestTopDocsCollector.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestTopDocsCollector.java@@ -42,12 +42,12 @@ import org.apache.lucene.util.BytesRef;public class TestTopDocsCollector extends LuceneTestCase {- private static final class MyTopDocsCollectorMananger+ private static final class MyTopDocsCollectorManagerimplements CollectorManager<MyTopDocsCollector, MyTopDocsCollector> {private final int numHits;- MyTopDocsCollectorMananger(int numHits) {+ MyTopDocsCollectorManager(int numHits) {this.numHits = numHits;}@@ -153,7 +153,7 @@ public class TestTopDocsCollector extends LuceneTestCase {private TopDocsCollector<ScoreDoc> doSearch(int numResults) throws IOException {Query q = MatchAllDocsQuery.INSTANCE;IndexSearcher searcher = newSearcher(reader);- return searcher.search(q, new MyTopDocsCollectorMananger(numResults));+ return searcher.search(q, new MyTopDocsCollectorManager(numResults));}private TopDocs doSearchWithThreshold(diff --git a/lucene/core/src/test/org/apache/lucene/search/TestWildcardQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestWildcardQuery.javaindex a3d46cb4b0c..c076367ce5b 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestWildcardQuery.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestWildcardQuery.java@@ -211,7 +211,7 @@ public class TestWildcardQuery extends LuceneTestCase {IndexReader reader = DirectoryReader.open(indexStore);IndexSearcher searcher = newSearcher(reader);- // without escape: matches foo??bar, fooCDbar, foo*bar, and fooSOMETHINGbar+ // without escape: matches foo??bar, fooCDbar, foo*bar, and 'fooSOMETHINGbar'WildcardQuery unescaped = new WildcardQuery(new Term("field", "foo*bar"));assertMatches(searcher, unescaped, 4);@@ -368,7 +368,7 @@ public class TestWildcardQuery extends LuceneTestCase {assertEquals(0, hits.length);}- // thest the prefi queries find only one doc+ // test the prefi queries find only one docfor (int i = 0; i < matchOneDocPrefix.length; i++) {for (int j = 0; j < matchOneDocPrefix[i].length; j++) {Query q = matchOneDocPrefix[i][j];diff --git a/lucene/core/src/test/org/apache/lucene/store/TestByteBuffersDataOutput.java b/lucene/core/src/test/org/apache/lucene/store/TestByteBuffersDataOutput.javaindex cffaa8d1076..00f0503e066 100644--- a/lucene/core/src/test/org/apache/lucene/store/TestByteBuffersDataOutput.java+++ b/lucene/core/src/test/org/apache/lucene/store/TestByteBuffersDataOutput.java@@ -240,15 +240,15 @@ public final class TestByteBuffersDataOutput extends BaseDataOutputTestCase<Byte}}- public void testToWriteableBufferListReturnsOriginalBuffers() throws Exception {+ public void testToWritableBufferListReturnsOriginalBuffers() throws Exception {ByteBuffersDataOutput dst = new ByteBuffersDataOutput();- for (ByteBuffer bb : dst.toWriteableBufferList()) {+ for (ByteBuffer bb : dst.toWritableBufferList()) {assertTrue(!bb.isReadOnly());assertTrue(bb.hasArray()); // even the empty buffer should have a backing array.}dst.writeBytes(new byte[100]);- for (ByteBuffer bb : dst.toWriteableBufferList()) {+ for (ByteBuffer bb : dst.toWritableBufferList()) {assertTrue(!bb.isReadOnly());assertTrue(bb.hasArray()); // heap-based by default, so array should be there.}diff --git a/lucene/core/src/test/org/apache/lucene/store/TestIndexOutputAlignment.java b/lucene/core/src/test/org/apache/lucene/store/TestIndexOutputAlignment.javaindex 0570a17e119..2786987b673 100644--- a/lucene/core/src/test/org/apache/lucene/store/TestIndexOutputAlignment.java+++ b/lucene/core/src/test/org/apache/lucene/store/TestIndexOutputAlignment.java@@ -50,18 +50,18 @@ public class TestIndexOutputAlignment extends LuceneTestCase {}public void testInvalidAlignments() {- assertInvalidAligment(0);- assertInvalidAligment(-1);- assertInvalidAligment(-2);- assertInvalidAligment(6);- assertInvalidAligment(43);- assertInvalidAligment(Integer.MIN_VALUE);+ assertInvalidAlignment(0);+ assertInvalidAlignment(-1);+ assertInvalidAlignment(-2);+ assertInvalidAlignment(6);+ assertInvalidAlignment(43);+ assertInvalidAlignment(Integer.MIN_VALUE);assertThrows(IllegalArgumentException.class, () -> IndexOutput.alignOffset(-1L, 1));assertThrows(ArithmeticException.class, () -> IndexOutput.alignOffset(Long.MAX_VALUE, 2));}- private static void assertInvalidAligment(int size) {+ private static void assertInvalidAlignment(int size) {assertThrows(IllegalArgumentException.class, () -> IndexOutput.alignOffset(1L, size));}diff --git a/lucene/core/src/test/org/apache/lucene/util/TestOfflineSorter.java b/lucene/core/src/test/org/apache/lucene/util/TestOfflineSorter.javaindex 6b8c4413f11..cac2f8a9ed8 100644--- a/lucene/core/src/test/org/apache/lucene/util/TestOfflineSorter.java+++ b/lucene/core/src/test/org/apache/lucene/util/TestOfflineSorter.java@@ -601,7 +601,7 @@ public class TestOfflineSorter extends LuceneTestCase {// OfflineSorter should not call my BytesSequencesReader.next() again after it already returned// null:- public void testOverNexting() throws Exception {+ public void testOverNext() throws Exception {Directory dir = newDirectory();IndexOutput out = dir.createTempOutput("unsorted", "tmp", IOContext.DEFAULT);try (ByteSequencesWriter w = new OfflineSorter.ByteSequencesWriter(out)) {diff --git a/lucene/core/src/test/org/apache/lucene/util/automaton/TestOperations.java b/lucene/core/src/test/org/apache/lucene/util/automaton/TestOperations.javaindex dc6fbed5e87..0545b7a3100 100644--- a/lucene/core/src/test/org/apache/lucene/util/automaton/TestOperations.java+++ b/lucene/core/src/test/org/apache/lucene/util/automaton/TestOperations.java@@ -466,7 +466,7 @@ public class TestOperations extends LuceneTestCase {int iters = atLeast(100);for (int iter = 0; iter < iters; iter++) {- // sameLangage requires a deterministic automaton+ // sameLanguage requires a deterministic automatonAutomaton expected =Operations.determinize(AutomatonTestUtil.randomAutomaton(random()), Integer.MAX_VALUE);Automaton actual = Operations.mergeAcceptStatesWithNoTransition(expected);diff --git a/lucene/core/src/test/org/apache/lucene/util/automaton/TestRegExp.java b/lucene/core/src/test/org/apache/lucene/util/automaton/TestRegExp.javaindex f906a08ee31..52d443d971a 100644--- a/lucene/core/src/test/org/apache/lucene/util/automaton/TestRegExp.java+++ b/lucene/core/src/test/org/apache/lucene/util/automaton/TestRegExp.java@@ -206,7 +206,7 @@ public class TestRegExp extends LuceneTestCase {"(" + replacementPart + "|d" + randomDocValue(replacementPart.length(), false) + ")");break;case 1:- // OR with non-existant value+ // OR with non-existent valueresult.append("(" + replacementPart + "|doesnotexist)");break;case 2:diff --git a/lucene/core/src/test/org/apache/lucene/util/automaton/TestRegExpParsing.java b/lucene/core/src/test/org/apache/lucene/util/automaton/TestRegExpParsing.javaindex 2686f301374..7b78289a1c0 100644--- a/lucene/core/src/test/org/apache/lucene/util/automaton/TestRegExpParsing.java+++ b/lucene/core/src/test/org/apache/lucene/util/automaton/TestRegExpParsing.java@@ -395,7 +395,7 @@ public class TestRegExpParsing extends LuceneTestCase {});}- public void testExcapedNotCharClass() {+ public void testEscapedNotCharClass() {RegExp re = new RegExp("[\\?]");assertEquals("\\?", re.toString());assertEquals("REGEXP_CHAR char=?\n", re.toStringTree());@@ -407,7 +407,7 @@ public class TestRegExpParsing extends LuceneTestCase {assertSameLanguage(expected, actual);}- public void testExcapedSlashNotCharClass() {+ public void testEscapedSlashNotCharClass() {RegExp re = new RegExp("[\\\\]");assertEquals("\\\\", re.toString());assertEquals("REGEXP_CHAR char=\\\n", re.toStringTree());diff --git a/lucene/core/src/test/org/apache/lucene/util/compress/LZ4TestCase.java b/lucene/core/src/test/org/apache/lucene/util/compress/LZ4TestCase.javaindex a4b9fbb5524..5cd1b39d80f 100644--- a/lucene/core/src/test/org/apache/lucene/util/compress/LZ4TestCase.java+++ b/lucene/core/src/test/org/apache/lucene/util/compress/LZ4TestCase.java@@ -208,19 +208,19 @@ public abstract class LZ4TestCase extends LuceneTestCase {}public void testEmpty() throws IOException {- // literals and matchs lengths <= 15+ // literals and matches lengths <= 15final byte[] data = "".getBytes(StandardCharsets.UTF_8);doTest(data, newHashTable());}- public void testShortLiteralsAndMatchs() throws IOException {- // literals and matchs lengths <= 15+ public void testShortLiteralsAndMatches() throws IOException {+ // literals and matches lengths <= 15final byte[] data = "1234562345673456745678910123".getBytes(StandardCharsets.UTF_8);doTest(data, newHashTable());doTestWithDictionary(data, newHashTable());}- public void testLongMatchs() throws IOException {+ public void testLongMatches() throws IOException {// match length >= 20final byte[] data = new byte[RandomNumbers.randomIntBetween(random(), 300, 1024)];for (int i = 0; i < data.length; ++i) {diff --git a/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java b/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.javaindex 2fd073e93e0..05c9b429905 100644--- a/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java+++ b/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java@@ -1227,14 +1227,14 @@ public class TestFSTs extends LuceneTestCase {FST<Long> loadedFST = new FST<>(FST.readMetadata(in, outputs), in);// now save the FST again, this time to different DataOutput for meta- ByteArrayOutputStream metdataOS = new ByteArrayOutputStream();- OutputStreamDataOutput metaOut = new OutputStreamDataOutput(metdataOS);+ ByteArrayOutputStream metadataOS = new ByteArrayOutputStream();+ OutputStreamDataOutput metaOut = new OutputStreamDataOutput(metadataOS);ByteArrayOutputStream dataOS = new ByteArrayOutputStream();OutputStreamDataOutput dataOut = new OutputStreamDataOutput(dataOS);loadedFST.save(metaOut, dataOut);// finally load it again- ByteArrayDataInput metaIn = new ByteArrayDataInput(metdataOS.toByteArray());+ ByteArrayDataInput metaIn = new ByteArrayDataInput(metadataOS.toByteArray());ByteArrayDataInput dataIn = new ByteArrayDataInput(dataOS.toByteArray());loadedFST = new FST<>(FST.readMetadata(metaIn, outputs), dataIn);@@ -1466,7 +1466,7 @@ public class TestFSTs extends LuceneTestCase {final Random random = random();int numWords = atLeast(1000);- final TreeMap<String, Long> slowCompletor = new TreeMap<>();+ final TreeMap<String, Long> slowCompleter = new TreeMap<>();final TreeSet<String> allPrefixes = new TreeSet<>();final PositiveIntOutputs outputs = PositiveIntOutputs.getSingleton();@@ -1478,16 +1478,16 @@ public class TestFSTs extends LuceneTestCase {String s;do {s = TestUtil.randomSimpleString(random);- } while (slowCompletor.containsKey(s));+ } while (slowCompleter.containsKey(s));for (int j = 1; j < s.length(); j++) {allPrefixes.add(s.substring(0, j));}int weight = TestUtil.nextInt(random, 1, 100); // weights 1..100- slowCompletor.put(s, (long) weight);+ slowCompleter.put(s, (long) weight);}- for (Map.Entry<String, Long> e : slowCompletor.entrySet()) {+ for (Map.Entry<String, Long> e : slowCompleter.entrySet()) {// System.out.println("add: " + e);fstCompiler.add(Util.toIntsRef(newBytesRef(e.getKey()), scratch), e.getValue());}@@ -1520,11 +1520,11 @@ public class TestFSTs extends LuceneTestCase {Util.shortestPaths(fst, arc, fst.outputs.getNoOutput(), minLongComparator, topN, true);assertTrue(r.isComplete);- // 2. go thru whole treemap (slowCompletor) and check it's actually the best suggestion+ // 2. go thru whole treemap (slowCompleter) and check it's actually the best suggestionfinal List<Result<Long>> matches = new ArrayList<>();- // TODO: could be faster... but it's slowCompletor for a reason- for (Map.Entry<String, Long> e : slowCompletor.entrySet()) {+ // TODO: could be faster... but it's slowCompleter for a reason+ for (Map.Entry<String, Long> e : slowCompleter.entrySet()) {if (e.getKey().startsWith(prefix)) {// System.out.println(" consider " + e.getKey());matches.add(@@ -1580,7 +1580,7 @@ public class TestFSTs extends LuceneTestCase {public void testShortestPathsWFSTRandom() throws Exception {int numWords = atLeast(1000);- final TreeMap<String, TwoLongs> slowCompletor = new TreeMap<>();+ final TreeMap<String, TwoLongs> slowCompleter = new TreeMap<>();final TreeSet<String> allPrefixes = new TreeSet<>();PairOutputs<Long, Long> outputs =@@ -1597,17 +1597,17 @@ public class TestFSTs extends LuceneTestCase {String s;do {s = TestUtil.randomSimpleString(random);- } while (slowCompletor.containsKey(s));+ } while (slowCompleter.containsKey(s));for (int j = 1; j < s.length(); j++) {allPrefixes.add(s.substring(0, j));}int weight = TestUtil.nextInt(random, 1, 100); // weights 1..100int output = TestUtil.nextInt(random, 0, 500); // outputs 0..500- slowCompletor.put(s, new TwoLongs(weight, output));+ slowCompleter.put(s, new TwoLongs(weight, output));}- for (Map.Entry<String, TwoLongs> e : slowCompletor.entrySet()) {+ for (Map.Entry<String, TwoLongs> e : slowCompleter.entrySet()) {// System.out.println("add: " + e);long weight = e.getValue().a;long output = e.getValue().b;@@ -1644,11 +1644,11 @@ public class TestFSTs extends LuceneTestCase {Util.shortestPaths(fst, arc, fst.outputs.getNoOutput(), minPairWeightComparator, topN, true);assertTrue(r.isComplete);- // 2. go thru whole treemap (slowCompletor) and check it's actually the best suggestion+ // 2. go thru whole treemap (slowCompleter) and check it's actually the best suggestionfinal List<Result<Pair<Long, Long>>> matches = new ArrayList<>();- // TODO: could be faster... but it's slowCompletor for a reason- for (Map.Entry<String, TwoLongs> e : slowCompletor.entrySet()) {+ // TODO: could be faster... but it's slowCompleter for a reason+ for (Map.Entry<String, TwoLongs> e : slowCompleter.entrySet()) {if (e.getKey().startsWith(prefix)) {// System.out.println(" consider " + e.getKey());matches.add(diff --git a/lucene/core/src/test/org/apache/lucene/util/hnsw/MockByteVectorValues.java b/lucene/core/src/test/org/apache/lucene/util/hnsw/MockByteVectorValues.javaindex 4ab86c70781..409c326dbe0 100644--- a/lucene/core/src/test/org/apache/lucene/util/hnsw/MockByteVectorValues.java+++ b/lucene/core/src/test/org/apache/lucene/util/hnsw/MockByteVectorValues.java@@ -80,7 +80,7 @@ class MockByteVectorValues extends ByteVectorValues {if (LuceneTestCase.random().nextBoolean()) {return values[ord];} else {- // Sometimes use the same scratch array repeatedly, mimicing what the codec will do.+ // Sometimes use the same scratch array repeatedly, mimicking what the codec will do.// This should help us catch cases of aliasing where the same ByteVectorValues source is used// twice in a// single computation.diff --git a/lucene/core/src/test/org/apache/lucene/util/hnsw/MockVectorValues.java b/lucene/core/src/test/org/apache/lucene/util/hnsw/MockVectorValues.javaindex 5411f2418de..c524e753a72 100644--- a/lucene/core/src/test/org/apache/lucene/util/hnsw/MockVectorValues.java+++ b/lucene/core/src/test/org/apache/lucene/util/hnsw/MockVectorValues.java@@ -75,7 +75,7 @@ class MockVectorValues extends FloatVectorValues {if (LuceneTestCase.random().nextBoolean()) {return values[ord];} else {- // Sometimes use the same scratch array repeatedly, mimicing what the codec will do.+ // Sometimes use the same scratch array repeatedly, mimicking what the codec will do.// This should help us catch cases of aliasing where the same vector values source is used// twice in a single computation.System.arraycopy(values[ord], 0, scratch, 0, dimension);diff --git a/lucene/core/src/test/org/apache/lucene/util/mutable/TestMutableValues.java b/lucene/core/src/test/org/apache/lucene/util/mutable/TestMutableValues.javaindex 1c02b12a63d..e2759ccca0e 100644--- a/lucene/core/src/test/org/apache/lucene/util/mutable/TestMutableValues.java+++ b/lucene/core/src/test/org/apache/lucene/util/mutable/TestMutableValues.java@@ -19,7 +19,7 @@ package org.apache.lucene.util.mutable;import org.apache.lucene.tests.util.LuceneTestCase;import org.apache.lucene.util.BytesRef;-/** Simple test of the basic contract of the various {@link MutableValue} implementaitons. */+/** Simple test of the basic contract of the various {@link MutableValue} implementations. */public class TestMutableValues extends LuceneTestCase {public void testStr() {diff --git a/lucene/demo/src/java/overview.html b/lucene/demo/src/java/overview.htmlindex 40dd1eaf01f..418ae91aab7 100644--- a/lucene/demo/src/java/overview.html+++ b/lucene/demo/src/java/overview.html@@ -81,8 +81,8 @@ which will contain an index of all of the Lucene source code.java org.apache.lucene.demo.SearchFiles</pre>You'll be prompted for a query. Type in a gibberish or made up word (for example:-"superca<!-- need to break up word in a way that is not visibile so it doesn't cause this ile to match a search on this word -->lifragilisticexpialidocious").-You'll see that there are no maching results in the lucene source code.+"superca<!-- need to break up word in a way that is not visible so it doesn't cause this ile to match a search on this word -->lifragilisticexpialidocious").+You'll see that there are no matching results in the lucene source code.Now try entering the word "string". That should return a whole bunchof documents. The results will page at every tenth result and ask you whetheryou want more results.</div>diff --git a/lucene/expressions/src/test/org/apache/lucene/expressions/TestExpressionValidation.java b/lucene/expressions/src/test/org/apache/lucene/expressions/TestExpressionValidation.javaindex 255e32a60a3..9148fd29960 100644--- a/lucene/expressions/src/test/org/apache/lucene/expressions/TestExpressionValidation.java+++ b/lucene/expressions/src/test/org/apache/lucene/expressions/TestExpressionValidation.java@@ -31,11 +31,11 @@ public class TestExpressionValidation extends LuceneTestCaseJupiter {bindings.add("valid1", DoubleValuesSource.fromIntField("valid1"));bindings.add("valid2", DoubleValuesSource.fromIntField("valid2"));bindings.add("_score", DoubleValuesSource.SCORES);- bindings.add("valide0", JavascriptCompiler.compile("valid0 - valid1 + valid2 + _score"));+ bindings.add("valid_e0", JavascriptCompiler.compile("valid0 - valid1 + valid2 + _score"));bindings.validate();- bindings.add("valide1", JavascriptCompiler.compile("valide0 + valid0"));+ bindings.add("valid_e1", JavascriptCompiler.compile("valid_e0 + valid0"));bindings.validate();- bindings.add("valide2", JavascriptCompiler.compile("valide0 * valide1"));+ bindings.add("valid_e2", JavascriptCompiler.compile("valid_e0 * valid_e1"));bindings.validate();}diff --git a/lucene/expressions/src/test/org/apache/lucene/expressions/js/TestCustomFunctions.java b/lucene/expressions/src/test/org/apache/lucene/expressions/js/TestCustomFunctions.javaindex 58fe14013e1..3998f8c3fb8 100644--- a/lucene/expressions/src/test/org/apache/lucene/expressions/js/TestCustomFunctions.java+++ b/lucene/expressions/src/test/org/apache/lucene/expressions/js/TestCustomFunctions.java@@ -29,7 +29,7 @@ import org.apache.lucene.expressions.Expression;import org.apache.lucene.tests.util.LuceneTestCase;import org.junit.jupiter.api.Test;-/** Tests customing the function map */+/** Tests customizing the function map */public class TestCustomFunctions extends CompilerTestCase {private static final double DELTA = 0.0000001;private static final Lookup LOOKUP = MethodHandles.lookup();diff --git a/lucene/facet/docs/FacetSets.adoc b/lucene/facet/docs/FacetSets.adocindex a491e7dcc4c..69c52bf3dd7 100644--- a/lucene/facet/docs/FacetSets.adoc+++ b/lucene/facet/docs/FacetSets.adoc@@ -50,14 +50,14 @@ as filter parts that fit only a certain manufacturer or year. Few example docume{"type": "Wiper Blades V1","models": [- { "manufaturer": "Ford", "year": 2010 },+ { "manufacturer": "Ford", "year": 2010 },{ "manufacturer": "Chevy", "year": 2011 }]}{"type": "Wiper Blades V2","models": [- { "manufaturer": "Ford", "year": 2011 },+ { "manufacturer": "Ford", "year": 2011 },{ "manufacturer": "Chevy", "year": 2010 }]}diff --git a/lucene/facet/src/java/org/apache/lucene/facet/DrillSideways.java b/lucene/facet/src/java/org/apache/lucene/facet/DrillSideways.javaindex f54ba020ab0..2ec150e074a 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/DrillSideways.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/DrillSideways.java@@ -194,7 +194,7 @@ public class DrillSideways {if (sort != null) {int limit = searcher.getIndexReader().maxDoc();if (limit == 0) {- limit = 1; // the collector does not alow numHits = 0+ limit = 1; // the collector does not allow numHits = 0}final int fTopN = Math.min(topN, limit);final TopFieldCollectorManager collectorManager =@@ -226,7 +226,7 @@ public class DrillSideways {throws IOException {int limit = searcher.getIndexReader().maxDoc();if (limit == 0) {- limit = 1; // the collector does not alow numHits = 0+ limit = 1; // the collector does not allow numHits = 0}final int fTopN = Math.min(topN, limit);final TopScoreDocCollectorManager collectorManager =diff --git a/lucene/facet/src/java/org/apache/lucene/facet/StringValueFacetCounts.java b/lucene/facet/src/java/org/apache/lucene/facet/StringValueFacetCounts.javaindex e1dd8c42c5b..1f3dfb0985e 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/StringValueFacetCounts.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/StringValueFacetCounts.java@@ -381,7 +381,7 @@ public class StringValueFacetCounts extends Facets {if (initialized == false) {assert denseCounts == null && sparseCounts == null;// If the counters weren't initialized, we can assume the cardinality is low enough that- // dense counting will be preferrable:+ // dense counting will be preferable:denseCounts = new int[cardinality];initialized = true;}diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/PrintTaxonomyStats.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/PrintTaxonomyStats.javaindex 5390ba4d74e..f9aa62a0ed2 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/PrintTaxonomyStats.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/PrintTaxonomyStats.java@@ -67,9 +67,9 @@ public class PrintTaxonomyStats {ChildrenIterator it = r.getChildren(TaxonomyReader.ROOT_ORDINAL);int child;while ((child = it.next()) != TaxonomyReader.INVALID_ORDINAL) {- ChildrenIterator chilrenIt = r.getChildren(child);+ ChildrenIterator childrenIt = r.getChildren(child);int numImmediateChildren = 0;- while (chilrenIt.next() != TaxonomyReader.INVALID_ORDINAL) {+ while (childrenIt.next() != TaxonomyReader.INVALID_ORDINAL) {numImmediateChildren++;}FacetLabel cp = r.getPath(child);diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyCombined.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyCombined.javaindex dad2c7ff205..ec5dd880986 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyCombined.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyCombined.java@@ -378,7 +378,7 @@ public class TestTaxonomyCombined extends FacetTestCase {}}// (also test invalid categories:)- assertEquals(TaxonomyReader.INVALID_ORDINAL, tr.getOrdinal(new FacetLabel("non-existant")));+ assertEquals(TaxonomyReader.INVALID_ORDINAL, tr.getOrdinal(new FacetLabel("non-existent")));assertEquals(TaxonomyReader.INVALID_ORDINAL, tr.getOrdinal(new FacetLabel("Author", "Jules Verne")));@@ -825,7 +825,7 @@ public class TestTaxonomyCombined extends FacetTestCase {stop.set(true);thread.join();assertNull(- "Unexpcted exception at retry "+ "Unexpected exception at retry "+ retry+ " retrieval "+ retrieval[0]diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetAssociations.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetAssociations.javaindex 9a78c2f1d46..14b01aa429d 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetAssociations.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetAssociations.java@@ -386,7 +386,7 @@ public class TestTaxonomyFacetAssociations extends FacetTestCase {* Make sure we can test both int and float assocs in one index, as long as we send each to a* different field.*/- public void testIntAndFloatAssocation() throws Exception {+ public void testIntAndFloatAssociation() throws Exception {IndexSearcher searcher = newSearcher(reader);FacetsCollector fc =searcher.search(new TermQuery(new Term("match", "yes")), new FacetsCollectorManager());diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.javaindex 453d4830bad..1de1698f255 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java@@ -327,7 +327,7 @@ public class TestDirectoryTaxonomyReader extends FacetTestCase {// merge all the segments so that NRT reader thinks there's a changeiw.forceMerge(1);- // now calling openIfChanged should trip on the wrong assert in ParetArray's ctor+ // now calling openIfChanged should trip on the wrong assert in ParentArray's ctorTaxonomyReader newtr = TaxonomyReader.openIfChanged(reader);assertNotNull(newtr);reader.close();diff --git a/lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java b/lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.javaindex b233f9c9ac4..2f200a09298 100644--- a/lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java+++ b/lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java@@ -584,7 +584,7 @@ public class TestGrouping extends LuceneTestCase {groupValue,mvalGd.groupSortValues()));}- // NOTE: currenlty using diamond operator on MergedIterator (without explicit Term class)+ // NOTE: currently using diamond operator on MergedIterator (without explicit Term class)// causes// errors on Eclipse Compiler (ecj) used for javadoc lintreturn new TopGroups<>(diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/matchhighlight/PassageSelector.java b/lucene/highlighter/src/java/org/apache/lucene/search/matchhighlight/PassageSelector.javaindex d70a6c8fc11..5f58504b853 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/matchhighlight/PassageSelector.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/matchhighlight/PassageSelector.java@@ -201,7 +201,7 @@ public class PassageSelector {for (int j = i + 1; j < passages.length; j++) {Passage b = passages[j];if (b != null) {- if (adjecentOrOverlapping(a, b)) {+ if (adjacentOrOverlapping(a, b)) {passages[j] = null;}}@@ -303,7 +303,7 @@ public class PassageSelector {return defaultPassages.toArray(Passage[]::new);}- private static boolean adjecentOrOverlapping(Passage a, Passage b) {+ private static boolean adjacentOrOverlapping(Passage a, Passage b) {if (a.from >= b.from) {return a.from <= b.to - 1;} else {diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java b/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.javaindex da1bb544add..3836e07fc93 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java@@ -373,9 +373,9 @@ public class UnifiedHighlighter {}/**- * Set up a function that given a field retuns a set of masked fields whose matches are combined- * to highlight the given field. Masked fields should not include the original field. This is- * useful when you want to highlight a field based on matches from several fields.+ * Set up a function that given a field returns a set of masked fields whose matches are+ * combined to highlight the given field. Masked fields should not include the original field.+ * This is useful when you want to highlight a field based on matches from several fields.** <p>Note: All masked fields must share the same source as the field being highlighted,* otherwise their offsets will not correspond to the highlighted field.@@ -1329,7 +1329,7 @@ public class UnifiedHighlighter {* When highlighting phrases accurately, we may need to handle custom queries that aren't* supported in the {@link org.apache.lucene.search.highlight.WeightedSpanTermExtractor} as called* by the {@code PhraseHelper}. Should custom query types be needed, this method should be- * overriden to return a collection of queries if appropriate, or null if nothing to do. If the+ * overridden to return a collection of queries if appropriate, or null if nothing to do. If the* query is not custom, simply returning null will allow the default rules to apply.** @param query Query to be highlighteddiff --git a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/BaseFragListBuilder.java b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/BaseFragListBuilder.javaindex c43d497c41a..5b9c95623cd 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/BaseFragListBuilder.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/BaseFragListBuilder.java@@ -115,7 +115,7 @@ public abstract class BaseFragListBuilder implements FragListBuilder {* @param info the phrase info to accept* @param matchLength the match length of the current phrase* @param fragCharSize the configured fragment character size- * @return <code>true</code> if this phrase info should be accepted as a highligh phrase+ * @return <code>true</code> if this phrase info should be accepted as a highlight phrase*/protected boolean acceptPhrase(WeightedPhraseInfo info, int matchLength, int fragCharSize) {return info.getTermsOffsets().size() <= 1 || matchLength <= fragCharSize;diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldPhraseList.java b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldPhraseList.javaindex a3fca3a5781..4e2f32c546f 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldPhraseList.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldPhraseList.java@@ -173,7 +173,7 @@ public class FieldPhraseList {if (existWpi.isOffsetOverlap(wpi)) {// WeightedPhraseInfo.addIfNoOverlap() dumps the second part of, for example, hyphenated// words (social-economics).- // The result is that all informations in TermInfo are lost and not available for further+ // The result is that all information in TermInfo are lost and not available for further// operations.existWpi.getTermsInfos().addAll(wpi.getTermsInfos());existWpi.boost += wpi.getBoost(); // Accumulate boostdiff --git a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldQuery.java b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldQuery.javaindex 4f83a8523d2..08dca83dbeb 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldQuery.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldQuery.java@@ -152,7 +152,7 @@ public class FieldQuery {rewritten = sourceQuery.rewrite(searcher);}if (rewritten != sourceQuery) {- // only rewrite once and then flatten again - the rewritten query could have a speacial+ // 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, searcher, flatQueries, boost);diff --git a/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/TestUnifiedHighlighter.java b/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/TestUnifiedHighlighter.javaindex 4df18ec183b..ab8c57cfb6b 100644--- a/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/TestUnifiedHighlighter.java+++ b/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/TestUnifiedHighlighter.java@@ -819,7 +819,7 @@ public class TestUnifiedHighlighter extends UnifiedHighlighterTestBase {ir.close();}- /** Make sure highlighter we can customize how emtpy highlight is returned. */+ /** Make sure highlighter we can customize how empty highlight is returned. */public void testCustomEmptyHighlights() throws Exception {indexAnalyzer.setPositionIncrementGap(10);RandomIndexWriter iw = newIndexOrderPreservingWriter();@@ -1357,7 +1357,7 @@ public class TestUnifiedHighlighter extends UnifiedHighlighterTestBase {"field_characters",new MockAnalyzer(random(), new CharacterRunAutomaton(new RegExp(".").toAutomaton()), true));fieldAnalyzers.put( // Every three letters is a token- "field_tripples",+ "field_triples",new MockAnalyzer(random(), new CharacterRunAutomaton(new RegExp("...").toAutomaton()), true));Analyzer analyzer =@@ -1377,7 +1377,7 @@ public class TestUnifiedHighlighter extends UnifiedHighlighterTestBase {doc.add(new Field("field", "dance with star", fieldType));doc.add(new Field("field_english", "dance with star", fieldTypeMatched));doc.add(new Field("field_characters", "dance with star", fieldTypeMatched));- doc.add(new Field("field_tripples", "dance with star", fieldTypeMatched));+ doc.add(new Field("field_triples", "dance with star", fieldTypeMatched));writer.addDocument(doc);}@@ -1403,23 +1403,23 @@ public class TestUnifiedHighlighter extends UnifiedHighlighterTestBase {"<b>danc</b>e with star","<b>d</b><b>a</b><b>n</b><b>c</b>e with star");- // field is highlighted based on the matches from the "field_tripples"+ // field is highlighted based on the matches from the "field_triples"maskedFieldsTestCase(analyzer,searcher,"field",- Set.of("field_tripples"),+ Set.of("field_triples"),"danc","<b>dan</b>ce with star","<b>dan</b>ce with star");// field is highlighted based on the matches from the "field_characters" and- // "field_tripples"+ // "field_triples"maskedFieldsTestCase(analyzer,searcher,"field",- Set.of("field_tripples", "field_characters"),+ Set.of("field_triples", "field_characters"),"danc","<b>danc</b>e with star","<b>dan</b><b>c</b>e with star");diff --git a/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/TestUnifiedHighlighterTermIntervals.java b/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/TestUnifiedHighlighterTermIntervals.javaindex 1cd57f39418..c0dc0d1c929 100644--- a/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/TestUnifiedHighlighterTermIntervals.java+++ b/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/TestUnifiedHighlighterTermIntervals.java@@ -649,7 +649,7 @@ public class TestUnifiedHighlighterTermIntervals extends UnifiedHighlighterTestBir.close();}- /** Make sure highlighter we can customize how emtpy highlight is returned. */+ /** Make sure highlighter we can customize how empty highlight is returned. */public void testCustomEmptyHighlights() throws Exception {indexAnalyzer.setPositionIncrementGap(10);RandomIndexWriter iw = newIndexOrderPreservingWriter();diff --git a/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/visibility/TestUnifiedHighlighterExtensibility.java b/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/visibility/TestUnifiedHighlighterExtensibility.javaindex d40fb687813..080967628d7 100644--- a/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/visibility/TestUnifiedHighlighterExtensibility.java+++ b/lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/visibility/TestUnifiedHighlighterExtensibility.java@@ -239,7 +239,7 @@ public class TestUnifiedHighlighterExtensibility extends LuceneTestCase {assertEquals(formattedResponse, formatter.format(new Passage[0], ""));}- public void testFieldHiglighterExtensibility() {+ public void testFieldHighlighterExtensibility() {final String fieldName = "fieldName";FieldHighlighter fieldHighlighter =new FieldHighlighter(fieldName, null, null, null, 1, 1, null, null) {diff --git a/lucene/highlighter/src/test/org/apache/lucene/search/vectorhighlight/TestFastVectorHighlighter.java b/lucene/highlighter/src/test/org/apache/lucene/search/vectorhighlight/TestFastVectorHighlighter.javaindex b643558b5b4..ddec1043011 100644--- a/lucene/highlighter/src/test/org/apache/lucene/search/vectorhighlight/TestFastVectorHighlighter.java+++ b/lucene/highlighter/src/test/org/apache/lucene/search/vectorhighlight/TestFastVectorHighlighter.java@@ -505,7 +505,7 @@ public class TestFastVectorHighlighter extends LuceneTestCase {// Phrases and tokens inside one another are joinedmatchedFieldsTestCase(- "cats wow", "<b>cats w</b>ow", clause("field", "cats"), clause("field_tripples", "s w"));+ "cats wow", "<b>cats w</b>ow", clause("field", "cats"), clause("field_triples", "s w"));// Everything works pretty well even if you don't require a field matchmatchedFieldsTestCase(@@ -768,7 +768,7 @@ public class TestFastVectorHighlighter extends LuceneTestCase {public void testPhrasesSpanningFieldValues() throws IOException {Directory dir = newDirectory();- // positionIncrementGap is 0 so the pharse is found across multiple field+ // positionIncrementGap is 0 so the phrase is found across multiple field// values.IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(new MockAnalyzer(random())));FieldType type = new FieldType(TextField.TYPE_STORED);@@ -867,7 +867,7 @@ public class TestFastVectorHighlighter extends LuceneTestCase {new Field("field_super_exact", fieldValue, matched)); // Whitespace tokenized without toLowerdoc.add(new Field("field_characters", fieldValue, matched)); // Each letter is a token- doc.add(new Field("field_tripples", fieldValue, matched)); // Every three letters is a token+ doc.add(new Field("field_triples", fieldValue, matched)); // Every three letters is a tokendoc.add(new Field("field_sliced",@@ -894,7 +894,7 @@ public class TestFastVectorHighlighter extends LuceneTestCase {"field_characters",new MockAnalyzer(random(), new CharacterRunAutomaton(new RegExp(".").toAutomaton()), true));fieldAnalyzers.put(- "field_tripples",+ "field_triples",new MockAnalyzer(random(), new CharacterRunAutomaton(new RegExp("...").toAutomaton()), true));fieldAnalyzers.put("field_sliced", fieldAnalyzers.get("field"));@@ -933,7 +933,7 @@ public class TestFastVectorHighlighter extends LuceneTestCase {matchedFields.add("field_exact");matchedFields.add("field_super_exact");matchedFields.add("field_characters");- matchedFields.add("field_tripples");+ matchedFields.add("field_triples");matchedFields.add("field_sliced");matchedFields.add("field_der_red");bestFragments =diff --git a/lucene/join/src/java/org/apache/lucene/search/join/JoinUtil.java b/lucene/join/src/java/org/apache/lucene/search/join/JoinUtil.javaindex 32f4f58e6c0..e30aab554d0 100644--- a/lucene/join/src/java/org/apache/lucene/search/join/JoinUtil.java+++ b/lucene/join/src/java/org/apache/lucene/search/join/JoinUtil.java@@ -489,10 +489,10 @@ public final class JoinUtil {* index, no ordinal map needs to be provided.* @param min Optionally the minimum number of "from" documents that are required to match for a* "to" document to be a match. The min is inclusive. Setting min to 0 and max to <code>- * Interger.MAX_VALUE</code> disables the min and max "from" documents filtering+ * Integer.MAX_VALUE</code> disables the min and max "from" documents filtering* @param max Optionally the maximum number of "from" documents that are allowed to match for a* "to" document to be a match. The max is inclusive. Setting min to 0 and max to <code>- * Interger.MAX_VALUE</code> disables the min and max "from" documents filtering+ * Integer.MAX_VALUE</code> disables the min and max "from" documents filtering* @return a {@link Query} instance that can be used to join documents based on the join field* @throws IOException If I/O related errors occur*/diff --git a/lucene/join/src/java/org/apache/lucene/search/join/ParentChildrenBlockJoinQuery.java b/lucene/join/src/java/org/apache/lucene/search/join/ParentChildrenBlockJoinQuery.javaindex 03b6480622b..10c694798a8 100644--- a/lucene/join/src/java/org/apache/lucene/search/join/ParentChildrenBlockJoinQuery.java+++ b/lucene/join/src/java/org/apache/lucene/search/join/ParentChildrenBlockJoinQuery.java@@ -113,7 +113,7 @@ public class ParentChildrenBlockJoinQuery extends Query {@Overridepublic ScorerSupplier scorerSupplier(LeafReaderContext context) throws IOException {- // Childs docs only reside in a single segment, so no need to evaluate all segments+ // Child docs only reside in a single segment, so no need to evaluate all segmentsif (context.ord != readerIndex) {return null;}diff --git a/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.java b/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.javaindex 10530f2ad94..9be9883047a 100644--- a/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.java+++ b/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.java@@ -115,10 +115,10 @@ public class TestBlockJoin extends LuceneTestCase {return job;}- private Document makeVector(String vectorField, String childsParent, float[] value) {+ private Document makeVector(String vectorField, String parentOfChild, float[] value) {Document vectorDoc = new Document();vectorDoc.add(new KnnFloatVectorField(vectorField, value));- vectorDoc.add(newStringField("my_parent_id", childsParent, Store.YES));+ vectorDoc.add(newStringField("my_parent_id", parentOfChild, Store.YES));return vectorDoc;}diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/DocumentsPanelProvider.java b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/DocumentsPanelProvider.javaindex ae993b92455..8d8a7ba8993 100644--- a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/DocumentsPanelProvider.java+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/DocumentsPanelProvider.java@@ -734,7 +734,7 @@ public final class DocumentsPanelProvider implements DocumentsTabOperator {documentTable.getSelectedRow(), DocumentsTableModel.Column.VALUE.getIndex());if (Objects.isNull(value)) {messageBroker.showStatusMessage(- MessageUtils.getLocalizedMessage("documents.stored.message.not_availabe", field, docid));+ MessageUtils.getLocalizedMessage("documents.stored.message.not_available", field, docid));return;}new DialogOpener<>(valueDialogFactory)@@ -765,7 +765,7 @@ public final class DocumentsPanelProvider implements DocumentsTabOperator {documentTable.getSelectedRow(), DocumentsTableModel.Column.VALUE.getIndex());if (Objects.isNull(value)) {messageBroker.showStatusMessage(- MessageUtils.getLocalizedMessage("documents.stored.message.not_availabe", field, docid));+ MessageUtils.getLocalizedMessage("documents.stored.message.not_available", field, docid));return;}Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/documents/DocValuesDialogFactory.java b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/documents/DocValuesDialogFactory.javaindex 998c0266121..03e55e77645 100644--- a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/documents/DocValuesDialogFactory.java+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/documents/DocValuesDialogFactory.java@@ -233,7 +233,7 @@ public final class DocValuesDialogFactory implements DialogOpener.DialogFactoryprivate void copyValues() {List<String> values = valueList.getSelectedValuesList();if (values.isEmpty()) {- values = getAllVlues();+ values = getAllValues();}Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();@@ -241,7 +241,7 @@ public final class DocValuesDialogFactory implements DialogOpener.DialogFactoryclipboard.setContents(selection, null);}- private List<String> getAllVlues() {+ private List<String> getAllValues() {List<String> values = new ArrayList<>();for (int i = 0; i < valueList.getModel().getSize(); i++) {values.add(valueList.getModel().getElementAt(i));diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/fragments/search/FieldValuesPaneProvider.java b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/fragments/search/FieldValuesPaneProvider.javaindex 24371d13745..8f6c8413d8b 100644--- a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/fragments/search/FieldValuesPaneProvider.java+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/fragments/search/FieldValuesPaneProvider.java@@ -45,7 +45,7 @@ public final class FieldValuesPaneProvider implements FieldValuesTabOperator {private final JTable fieldsTable = new JTable();- private ListenerFunctions listners = new ListenerFunctions();+ private ListenerFunctions listeners = new ListenerFunctions();public FieldValuesPaneProvider() {ComponentOperatorRegistry.getInstance().register(FieldValuesTabOperator.class, this);@@ -75,7 +75,7 @@ public final class FieldValuesPaneProvider implements FieldValuesTabOperator {header.add(new JLabel(MessageUtils.getLocalizedMessage("search_values.label.description")));loadAllCB.setText(MessageUtils.getLocalizedMessage("search_values.checkbox.load_all"));loadAllCB.setSelected(true);- loadAllCB.addActionListener(listners::loadAllFields);+ loadAllCB.addActionListener(listeners::loadAllFields);loadAllCB.setOpaque(false);header.add(loadAllCB);panel.add(header, BorderLayout.PAGE_START);@@ -104,7 +104,7 @@ public final class FieldValuesPaneProvider implements FieldValuesTabOperator {.getColumnModel().getColumn(FieldsTableModel.Column.LOAD.getIndex()).setMaxWidth(FieldsTableModel.Column.LOAD.getColumnWidth());- fieldsTable.getModel().addTableModelListener(listners::tableDataChenged);+ fieldsTable.getModel().addTableModelListener(listeners::tableDataChanged);}@Override@@ -133,7 +133,7 @@ public final class FieldValuesPaneProvider implements FieldValuesTabOperator {}}- void tableDataChenged(TableModelEvent e) {+ void tableDataChanged(TableModelEvent e) {int row = e.getFirstRow();int col = e.getColumn();if (col == FieldsTableModel.Column.LOAD.getIndex()) {diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/fragments/search/MLTPaneProvider.java b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/fragments/search/MLTPaneProvider.javaindex f124d6d907c..1d9c3e888db 100644--- a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/fragments/search/MLTPaneProvider.java+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/fragments/search/MLTPaneProvider.java@@ -121,7 +121,7 @@ public final class MLTPaneProvider implements MLTTabOperator {JPanel minTermFreq = new JPanel(new FlowLayout(FlowLayout.LEADING));minTermFreq.setOpaque(false);- minTermFreq.add(new JLabel(MessageUtils.getLocalizedMessage("serach_mlt.label.min_term_freq")));+ minTermFreq.add(new JLabel(MessageUtils.getLocalizedMessage("search_mlt.label.min_term_freq")));minTermFreqFTF.setColumns(5);minTermFreqFTF.setValue(config.getMinTermFreq());minTermFreq.add(minTermFreqFTF);@@ -197,7 +197,7 @@ public final class MLTPaneProvider implements MLTTabOperator {.getColumnModel().getColumn(MLTFieldsTableModel.Column.SELECT.getIndex()).setMaxWidth(MLTFieldsTableModel.Column.SELECT.getColumnWidth());- fieldsTable.getModel().addTableModelListener(listeners::tableDataChenged);+ fieldsTable.getModel().addTableModelListener(listeners::tableDataChanged);}@Override@@ -232,7 +232,7 @@ public final class MLTPaneProvider implements MLTTabOperator {}}- void tableDataChenged(TableModelEvent e) {+ void tableDataChanged(TableModelEvent e) {int row = e.getFirstRow();int col = e.getColumn();if (col == MLTFieldsTableModel.Column.SELECT.getIndex()) {diff --git a/lucene/luke/src/java/org/apache/lucene/luke/models/commits/Commits.java b/lucene/luke/src/java/org/apache/lucene/luke/models/commits/Commits.javaindex e558cc5c74b..e977ebe72da 100644--- a/lucene/luke/src/java/org/apache/lucene/luke/models/commits/Commits.java+++ b/lucene/luke/src/java/org/apache/lucene/luke/models/commits/Commits.java@@ -67,7 +67,7 @@ public interface Commits {Map<String, String> getSegmentAttributes(long commitGen, String name);/**- * Returns diagnotics for the specified segment.+ * Returns diagnostics for the specified segment.** @param commitGen - generation* @param name - segment namediff --git a/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/messages/messages.properties b/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/messages/messages.propertiesindex 5accaf8d711..5baa8c8caa4 100644--- a/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/messages/messages.properties+++ b/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/messages/messages.properties@@ -78,7 +78,7 @@ openindex.message.index_path_does_not_exist=Cannot open index path {0}. No suchopenindex.message.index_opened=Index successfully opened.openindex.message.index_opened_ro=Index successfully opened. (read-only)openindex.message.index_opened_multi=Index successfully opened. (multi-reader)-openindex.message.dirctory_opened=Directory opened. There is no IndexReader - most functionalities are disabled.+openindex.message.directory_opened=Directory opened. There is no IndexReader - most functionalities are disabled.# Create indexcreateindex.dialog.title=Choose new index directory pathcreateindex.label.location=Location:@@ -155,7 +155,7 @@ documents.docvalues.label.doc_values=Doc values for field:documents.docvalues.label.type=Doc values type:documents.docvalues.message.not_available=Doc values for {0} field in doc #{1} not available.documents.stored.label.stored_value=Stored value for field:-documents.stored.message.not_availabe=Stored value for {0} field in doc #{1} not available.+documents.stored.message.not_available=Stored value for {0} field in doc #{1} not available.documents.field.message.not_selected=Field not selected.documents.termdocs.message.not_available=Next doc is not available.add_document.label.analyzer=Analyzer:@@ -265,7 +265,7 @@ search_values.checkbox.load_all=Load all available field valuessearch_mlt.label.description=Check field names to be used when generating MLTQuery.search_mlt.label.max_doc_freq=Maximum document frequency:search_mlt.label.min_doc_freq=Minimum document frequency:-serach_mlt.label.min_term_freq=Minimum term frequency:+search_mlt.label.min_term_freq=Minimum term frequency:search_mlt.label.analyzer=Analyzer:search_mlt.hyperlink.change=> Changesearch_mlt.checkbox.select_all=Select all fields.diff --git a/lucene/misc/src/java/org/apache/lucene/misc/document/LazyDocument.java b/lucene/misc/src/java/org/apache/lucene/misc/document/LazyDocument.javaindex f09989c0294..2e351e4db91 100644--- a/lucene/misc/src/java/org/apache/lucene/misc/document/LazyDocument.java+++ b/lucene/misc/src/java/org/apache/lucene/misc/document/LazyDocument.java@@ -103,7 +103,7 @@ public class LazyDocument {return doc;}- // :TODO: synchronize to prevent redundent copying? (sync per field name?)+ // :TODO: synchronize to prevent redundant copying? (sync per field name?)private void fetchRealValues(String name, int fieldNum) {Document d = getDocument();diff --git a/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.java b/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.javaindex 773391ccd7d..20fc930c02f 100644--- a/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.java+++ b/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.java@@ -96,7 +96,7 @@ public final class BPIndexReorderer extends AbstractBPReorderer {/** Block size for terms in the forward index */private static final int TERM_IDS_BLOCK_SIZE = 17;- /** Minimum problem size that will result in tasks being splitted. */+ /** Minimum problem size that will result in tasks being split. */private static final int FORK_THRESHOLD = 8192;/** Minimum required document frequency for terms to be considered: 4,096. */diff --git a/lucene/misc/src/java/org/apache/lucene/misc/index/BpVectorReorderer.java b/lucene/misc/src/java/org/apache/lucene/misc/index/BpVectorReorderer.javaindex 246109ede04..f2b987b3a51 100644--- a/lucene/misc/src/java/org/apache/lucene/misc/index/BpVectorReorderer.java+++ b/lucene/misc/src/java/org/apache/lucene/misc/index/BpVectorReorderer.java@@ -69,7 +69,7 @@ public class BpVectorReorderer extends AbstractBPReorderer {** <p>to maximize dot-product over unit vectors, note that: sum(dot(c0, v)) = dot(c0, sum(v))* which is maximized, again, when c0 = sum(v) / n. For max inner product score, vectors may not- * be unit vectors. In this case there is no maximum, but since all colinear vectors of whatever+ * be unit vectors. In this case there is no maximum, but since all collinear vectors of whatever* scale will generate the same partition for these angular scores, we are free to choose any* scale and ignore the normalization factor.*/diff --git a/lucene/misc/src/java/org/apache/lucene/misc/index/MultiPassIndexSplitter.java b/lucene/misc/src/java/org/apache/lucene/misc/index/MultiPassIndexSplitter.javaindex 16c43253024..3736032307f 100644--- a/lucene/misc/src/java/org/apache/lucene/misc/index/MultiPassIndexSplitter.java+++ b/lucene/misc/src/java/org/apache/lucene/misc/index/MultiPassIndexSplitter.java@@ -122,7 +122,7 @@ public class MultiPassIndexSplitter {System.err.println("Usage: MultiPassIndexSplitter -out <outputDir> -num <numParts> [-seq] <inputIndex1> [<inputIndex2 ...]");System.err.println("\tinputIndex\tpath to input index, multiple values are ok");- System.err.println("\t-out ouputDir\tpath to output directory to contain partial indexes");+ System.err.println("\t-out outputDir\tpath to output directory to contain partial indexes");System.err.println("\t-num numParts\tnumber of parts to produce");System.err.println("\t-seq\tsequential docid-range split (default is round-robin)");System.exit(-1);diff --git a/lucene/misc/src/java/org/apache/lucene/misc/index/PKIndexSplitter.java b/lucene/misc/src/java/org/apache/lucene/misc/index/PKIndexSplitter.javaindex 8caa9d6b5e9..7e31c794b37 100644--- a/lucene/misc/src/java/org/apache/lucene/misc/index/PKIndexSplitter.java+++ b/lucene/misc/src/java/org/apache/lucene/misc/index/PKIndexSplitter.java@@ -141,9 +141,9 @@ public class PKIndexSplitter {final int maxDoc = in.maxDoc();final FixedBitSet bits = new FixedBitSet(maxDoc);// ignore livedocs here, as we filter them later:- final Scorer preverveScorer = preserveWeight.scorer(context);- if (preverveScorer != null) {- bits.or(preverveScorer.iterator());+ final Scorer preserveScorer = preserveWeight.scorer(context);+ if (preserveScorer != null) {+ bits.or(preserveScorer.iterator());}if (negateFilter) {bits.flip(0, maxDoc);diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/MonitorConfiguration.java b/lucene/monitor/src/java/org/apache/lucene/monitor/MonitorConfiguration.javaindex 4a6f19da785..03aa1736c8b 100644--- a/lucene/monitor/src/java/org/apache/lucene/monitor/MonitorConfiguration.java+++ b/lucene/monitor/src/java/org/apache/lucene/monitor/MonitorConfiguration.java@@ -65,7 +65,7 @@ public class MonitorConfiguration {* @param directoryProvider lambda to provide the index Directory implementation* @param serializer the serializer used to store the queries* @param readOnly set the monitor as read-only- * @return MonitorCOnfiguration+ * @return MonitorConfiguration*/public MonitorConfiguration setDirectoryProvider(IOSupplier<Directory> directoryProvider,diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/QueryDecomposer.java b/lucene/monitor/src/java/org/apache/lucene/monitor/QueryDecomposer.javaindex 588bd07e1cc..cc824c58225 100644--- a/lucene/monitor/src/java/org/apache/lucene/monitor/QueryDecomposer.java+++ b/lucene/monitor/src/java/org/apache/lucene/monitor/QueryDecomposer.java@@ -28,7 +28,7 @@ import org.apache.lucene.search.DisjunctionMaxQuery;import org.apache.lucene.search.Query;/**- * Split a disjunction query into its consituent parts, so that they can be indexed and run+ * Split a disjunction query into its constituent parts, so that they can be indexed and run* separately in the Monitor.*/public class QueryDecomposer {diff --git a/lucene/monitor/src/test/org/apache/lucene/monitor/TestHighlightingMatcher.java b/lucene/monitor/src/test/org/apache/lucene/monitor/TestHighlightingMatcher.javaindex 1782e1c1665..abd66d54695 100644--- a/lucene/monitor/src/test/org/apache/lucene/monitor/TestHighlightingMatcher.java+++ b/lucene/monitor/src/test/org/apache/lucene/monitor/TestHighlightingMatcher.java@@ -329,7 +329,7 @@ public class TestHighlightingMatcher extends MonitorTestBase {assertNotEquals(m1, m4);}- public void testMutliValuedFieldWithNonDefaultGaps() throws IOException {+ public void testMultiValuedFieldWithNonDefaultGaps() throws IOException {Analyzer analyzer =new Analyzer() {diff --git a/lucene/monitor/src/test/org/apache/lucene/monitor/TestMonitor.java b/lucene/monitor/src/test/org/apache/lucene/monitor/TestMonitor.javaindex f4d990a5cb1..2ee83308ff6 100644--- a/lucene/monitor/src/test/org/apache/lucene/monitor/TestMonitor.java+++ b/lucene/monitor/src/test/org/apache/lucene/monitor/TestMonitor.java@@ -210,7 +210,7 @@ public class TestMonitor extends MonitorTestBase {}}- public void testMutliValuedFieldWithNonDefaultGaps() throws IOException {+ public void testMultiValuedFieldWithNonDefaultGaps() throws IOException {Analyzer analyzer =new Analyzer() {diff --git a/lucene/queries/src/java/org/apache/lucene/queries/CommonTermsQuery.java b/lucene/queries/src/java/org/apache/lucene/queries/CommonTermsQuery.javaindex 2a8e7788c0a..1bb9d206907 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/CommonTermsQuery.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/CommonTermsQuery.java@@ -245,7 +245,7 @@ public class CommonTermsQuery extends Query {* Specifies a minimum number of the low frequent optional BooleanClauses which must be satisfied* in order to produce a match on the low frequency terms query part. This method accepts a float* value in the range [0..1) as a fraction of the actual query terms in the low frequent clause or- * a number <code>>=1</code> as an absolut number of clauses that need to match.+ * a number <code>>=1</code> as an absolute number of clauses that need to match.** <p>By default no optional clauses are necessary for a match (unless there are no required* clauses). If this method is used, then the specified number of clauses is required.@@ -267,7 +267,7 @@ public class CommonTermsQuery extends Query {* Specifies a minimum number of the high frequent optional BooleanClauses which must be satisfied* in order to produce a match on the low frequency terms query part. This method accepts a float* value in the range [0..1) as a fraction of the actual query terms in the low frequent clause or- * a number <code>>=1</code> as an absolut number of clauses that need to match.+ * a number <code>>=1</code> as an absolute number of clauses that need to match.** <p>By default no optional clauses are necessary for a match (unless there are no required* clauses). If this method is used, then the specified number of clauses is required.diff --git a/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/DualFloatFunction.java b/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/DualFloatFunction.javaindex 9b56fec2c53..f4bfb2182ca 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/DualFloatFunction.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/DualFloatFunction.java@@ -26,7 +26,7 @@ import org.apache.lucene.search.IndexSearcher;/*** Abstract {@link ValueSource} implementation which wraps two ValueSources and applies an- * extendible float function to their values.+ * extendable float function to their values.*/public abstract class DualFloatFunction extends ValueSource {protected final ValueSource a;diff --git a/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/MultiBoolFunction.java b/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/MultiBoolFunction.javaindex da03958e4cc..ff87ef26d4e 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/MultiBoolFunction.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/MultiBoolFunction.java@@ -27,7 +27,7 @@ import org.apache.lucene.search.IndexSearcher;/*** Abstract {@link ValueSource} implementation which wraps multiple ValueSources and applies an- * extendible boolean function to their values.+ * extendable boolean function to their values.*/public abstract class MultiBoolFunction extends BoolFunction {protected final List<ValueSource> sources;diff --git a/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/MultiFloatFunction.java b/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/MultiFloatFunction.javaindex a47d7fce0fb..3b16abcc2c3 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/MultiFloatFunction.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/MultiFloatFunction.java@@ -27,7 +27,7 @@ import org.apache.lucene.search.IndexSearcher;/*** Abstract {@link ValueSource} implementation which wraps multiple ValueSources and applies an- * extendible float function to their values.+ * extendable float function to their values.*/public abstract class MultiFloatFunction extends ValueSource {protected final ValueSource[] sources;diff --git a/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/SimpleBoolFunction.java b/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/SimpleBoolFunction.javaindex f6792e01e0c..82989ee7f01 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/SimpleBoolFunction.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/SimpleBoolFunction.java@@ -25,7 +25,7 @@ import org.apache.lucene.queries.function.docvalues.BoolDocValues;import org.apache.lucene.search.IndexSearcher;/**- * {@link BoolFunction} implementation which applies an extendible boolean function to the values of+ * {@link BoolFunction} implementation which applies an extendable boolean function to the values of* a single wrapped {@link ValueSource}.** <p>Functions this can be used for include whether a field has a value or not, or inverting thediff --git a/lucene/queries/src/test/org/apache/lucene/queries/TestCommonTermsQuery.java b/lucene/queries/src/test/org/apache/lucene/queries/TestCommonTermsQuery.javaindex f897895ffe0..ac54ae08f54 100644--- a/lucene/queries/src/test/org/apache/lucene/queries/TestCommonTermsQuery.java+++ b/lucene/queries/src/test/org/apache/lucene/queries/TestCommonTermsQuery.java@@ -518,7 +518,7 @@ public class TestCommonTermsQuery extends LuceneTestCase {}}- /** populates a writer with random stuff. this must be fully reproducable with the seed! */+ /** populates a writer with random stuff. this must be fully reproducible with the seed! */public static void createRandomIndex(int numdocs, RandomIndexWriter writer, long seed)throws IOException {Random random = new Random(seed);diff --git a/lucene/queries/src/test/org/apache/lucene/queries/function/TestFieldScoreQuery.java b/lucene/queries/src/test/org/apache/lucene/queries/function/TestFieldScoreQuery.javaindex 0e168138ce1..65b13a291b8 100644--- a/lucene/queries/src/test/org/apache/lucene/queries/function/TestFieldScoreQuery.java+++ b/lucene/queries/src/test/org/apache/lucene/queries/function/TestFieldScoreQuery.java@@ -121,7 +121,7 @@ public class TestFieldScoreQuery extends FunctionTestSetup {String id = s.getIndexReader().storedFields().document(aSd.doc).get(ID_FIELD);float expectedScore = expectedFieldScore(id); // "ID7" --> 7.0assertEquals(- "score of " + id + " shuould be " + expectedScore + " != " + score,+ "score of " + id + " should be " + expectedScore + " != " + score,expectedScore,score,TEST_SCORE_TOLERANCE_DELTA);diff --git a/lucene/queries/src/test/org/apache/lucene/queries/function/TestValueSources.java b/lucene/queries/src/test/org/apache/lucene/queries/function/TestValueSources.javaindex 96457277f97..6fba80b4838 100644--- a/lucene/queries/src/test/org/apache/lucene/queries/function/TestValueSources.java+++ b/lucene/queries/src/test/org/apache/lucene/queries/function/TestValueSources.java@@ -488,7 +488,7 @@ public class TestValueSources extends LuceneTestCase {assertNoneExist(vs);}- public void testQueryWrapedFuncWrapedQuery() throws Exception {+ public void testQueryWrappedFuncWrappedQuery() throws Exception {ValueSource vs = new QueryValueSource(new FunctionQuery(new ConstValueSource(2f)), 0f);assertHits(new FunctionQuery(vs), new float[] {2f, 2f});assertAllExist(vs);@@ -512,7 +512,7 @@ public class TestValueSources extends LuceneTestCase {assertHits(new FunctionQuery(vs), new float[] {42F, 1.4054651F});// valuesource should exist only for things matching the term query- // sanity check via quick & dirty wrapper arround tf+ // sanity check via quick & dirty wrapper around tfValueSource expected =new MultiFloatFunction(new ValueSource[] {@@ -689,7 +689,7 @@ public class TestValueSources extends LuceneTestCase {assertAllExist(vs);}- public void testMultiFunctionHelperEquivilence() throws IOException {+ public void testMultiFunctionHelperEquivalence() throws IOException {// the 2 arg versions of these methods should return the exact same results as// the multi arg versions with a 2 element array@@ -714,7 +714,7 @@ public class TestValueSources extends LuceneTestCase {assertFalse(MultiFunction.anyExists(1, NONE, NONE));assertFalse(MultiFunction.anyExists(1, new FunctionValues[] {NONE, NONE}));- // iterate all permutations and verify equivilence+ // iterate all permutations and verify equivalencefor (FunctionValues firstArg : new FunctionValues[] {ALL, NONE}) {for (FunctionValues secondArg : new FunctionValues[] {ALL, NONE}) {assertEquals(@@ -726,8 +726,8 @@ public class TestValueSources extends LuceneTestCase {MultiFunction.anyExists(1, firstArg, secondArg),MultiFunction.anyExists(1, new FunctionValues[] {firstArg, secondArg}));- // future proof against posibility of someone "optimizing" the array method- // if .length==2 ... redundent third arg should give same results as well...+ // future proof against possibility of someone "optimizing" the array method+ // if .length==2 ... redundant third arg should give same results as well...assertEquals("allExists(" + firstArg + "," + secondArg + "," + secondArg + ")",MultiFunction.allExists(1, firstArg, secondArg),diff --git a/lucene/queries/src/test/org/apache/lucene/queries/spans/TestSpanWithinQuery.java b/lucene/queries/src/test/org/apache/lucene/queries/spans/TestSpanWithinQuery.javaindex 933afcd34e5..c020561c486 100644--- a/lucene/queries/src/test/org/apache/lucene/queries/spans/TestSpanWithinQuery.java+++ b/lucene/queries/src/test/org/apache/lucene/queries/spans/TestSpanWithinQuery.java@@ -85,7 +85,7 @@ public class TestSpanWithinQuery extends LuceneTestCase {public void testHashcodeEquals() {SpanQuery q1 = spanQuery("field", "one", "two");- SpanQuery q2 = spanQuery("field", "one", "thre");+ SpanQuery q2 = spanQuery("field", "one", "three");SpanQuery q3 = spanQuery("field", "one", "two");SpanQuery q4 = spanQuery("field", "one", "four");diff --git a/lucene/queryparser/build.gradle b/lucene/queryparser/build.gradleindex d3fed13119a..ba1e1242980 100644--- a/lucene/queryparser/build.gradle+++ b/lucene/queryparser/build.gradle@@ -36,7 +36,7 @@ def commonCleanups = { FileTree generatedFiles ->generatedFiles.matching({include "CharStream.java"}).each {file ->buildGlobals.modifyFile(file, {text ->return text.replace(- "implemetation",+ "implemetation", // spellchecker:disable-line"implementation");})}diff --git a/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html b/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.htmlindex 55c8f77db10..c5f4ed3ca11 100644--- a/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html+++ b/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html@@ -25,7 +25,7 @@ Influence score of a query's matches in a subtle way which can't be achieved usi<BooleanQuery></td><td class='rightElementTitle'>Child of <a href='#BoostQuery'>BoostQuery</a>, <a href='#Clause'>Clause</a>, <a href='#CachedFilter'>CachedFilter</a>, <a href='#Query'>Query</a></td></tr></table>-<p>BooleanQuerys implement Boolean logic which controls how multiple Clauses should be interpreted.+<p>BooleanQuery implements Boolean logic which controls how multiple Clauses should be interpreted.Some clauses may represent optional Query criteria while others represent mandatory criteria.</p><p><span class='inTextTitle'>Example:</span> <em>Find articles about banks, preferably talking about mergers but nothing to do with "sumitomo"</em></p><pre><BooleanQuery fieldName="contents">@@ -713,7 +713,7 @@ Attribute of <a href='#SpanNear'>SpanNear</a><SpanFirst></td><td class='rightElementTitle'>Child of <a href='#BoostQuery'>BoostQuery</a>, <a href='#Clause'>Clause</a>, <a href='#Include'>Include</a>, <a href='#CachedFilter'>CachedFilter</a>, <a href='#SpanOr'>SpanOr</a>, <a href='#SpanNear'>SpanNear</a>, <a href='#Exclude'>Exclude</a>, <a href='#Query'>Query</a></td></tr></table>-<p>Looks for a SpanQuery match occuring near the beginning of a document</p><p><span class='inTextTitle'>Example:</span> <em>Find letters where the first 50 words talk about a resignation:</em>+<p>Looks for a SpanQuery match occurring near the beginning of a document</p><p><span class='inTextTitle'>Example:</span> <em>Find letters where the first 50 words talk about a resignation:</em></p><pre><SpanFirst end="50"><SpanOrTerms fieldName="text">resigning resign leave</SpanOrTerms>@@ -906,7 +906,7 @@ Attribute of <a href='#FuzzyLikeThisQuery'>FuzzyLikeThisQuery</a>@ignoreTF</td><td class='rightAttributeTitle'>Attribute of <a href='#FuzzyLikeThisQuery'>FuzzyLikeThisQuery</a></td></tr></table>-<p>Ignore "Term Frequency" - a boost factor which rewards multiple occurences of the same term in a document</p><p><span class='inTextTitle'>Possible values</span>: true, false - <span class='inTextTitle'>Default value</span>: false</p><a name='Field'></a>+<p>Ignore "Term Frequency" - a boost factor which rewards multiple occurrences of the same term in a document</p><p><span class='inTextTitle'>Possible values</span>: true, false - <span class='inTextTitle'>Default value</span>: false</p><a name='Field'></a><br /><table class='elementTitle' summary="Field"><tr><td class='leftElementTitle'><Field></td><td class='rightElementTitle'>Child of <a href='#FuzzyLikeThisQuery'>FuzzyLikeThisQuery</a>@@ -1131,7 +1131,7 @@ Attribute of <a href='#DuplicateFilter'>DuplicateFilter</a>@keepMode</td><td class='rightAttributeTitle'>Attribute of <a href='#DuplicateFilter'>DuplicateFilter</a></td></tr></table>-<p>Determines if the first or last document occurence is the one to return when presented with duplicated field values</p><p><span class='inTextTitle'>Possible values</span>: first, last - <span class='inTextTitle'>Default value</span>: first</p><a name='DuplicateFilter_processingMode'></a>+<p>Determines if the first or last document occurrence is the one to return when presented with duplicated field values</p><p><span class='inTextTitle'>Possible values</span>: first, last - <span class='inTextTitle'>Default value</span>: first</p><a name='DuplicateFilter_processingMode'></a><br /><table class='attributeTitle' summary="processingMode"><tr><td class='leftAttributeTitle'>@processingMode</td><td class='rightAttributeTitle'>Attribute of <a href='#DuplicateFilter'>DuplicateFilter</a>diff --git a/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.org.html b/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.org.htmlindex 307747d00e5..e67a5445c25 100644--- a/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.org.html+++ b/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.org.html@@ -63,7 +63,7 @@<span class="dtd_tag_symbols"><!</span><span class="dtd_tag_name">ATTLIST</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">FuzzyLikeThisQuery</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">boost</span><span class="dtd_plain"> </span><span class="dtd_keyword">CDATA</span><span class="dtd_plain"> </span><span class="dtd_attribute_value">"1.0"</span><span class="dtd_tag_symbols">></span><span class="dtd_comment"><!-- Limits the total number of terms selected from the provided text plus the selected "fuzzy" variants --></span><span class="dtd_tag_symbols"><!</span><span class="dtd_tag_name">ATTLIST</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">FuzzyLikeThisQuery</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">maxNumTerms</span><span class="dtd_plain"> </span><span class="dtd_keyword">CDATA</span><span class="dtd_plain"> </span><span class="dtd_attribute_value">"50"</span><span class="dtd_tag_symbols">></span>-<span class="dtd_comment"><!-- Ignore "Term Frequency" - a boost factor which rewards multiple occurences of the same term in a document --></span>+<span class="dtd_comment"><!-- Ignore "Term Frequency" - a boost factor which rewards multiple occurrences of the same term in a document --></span><span class="dtd_tag_symbols"><!</span><span class="dtd_tag_name">ATTLIST</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">FuzzyLikeThisQuery</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">ignoreTF</span><span class="dtd_plain"> (</span><span class="dtd_attribute_name">true</span><span class="dtd_plain">|</span><span class="dtd_attribute_name">false</span><span class="dtd_plain">) </span><span class="dtd_attribute_value">"false"</span><span class="dtd_tag_symbols">></span><span class="dtd_comment"><!-- A field used in a FuzzyLikeThisQuery --></span><span class="dtd_tag_symbols"><!</span><span class="dtd_tag_name">ELEMENT</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">Field</span><span class="dtd_plain"> (</span><span class="dtd_keyword">#PCDATA</span><span class="dtd_plain">)</span><span class="dtd_tag_symbols">></span>@@ -177,7 +177,7 @@<span class="dtd_tag_symbols"><!</span><span class="dtd_tag_name">ELEMENT</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">DuplicateFilter</span><span class="dtd_plain"> </span><span class="dtd_keyword">EMPTY</span><span class="dtd_tag_symbols">></span><span class="dtd_comment"><!-- fieldName must be defined here or is taken from the most immediate parent XML element that defines a "fieldName" attribute --></span><span class="dtd_plain"> </span><span class="dtd_tag_symbols"><!</span><span class="dtd_tag_name">ATTLIST</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">DuplicateFilter</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">fieldName</span><span class="dtd_plain"> </span><span class="dtd_keyword">CDATA</span><span class="dtd_plain"> </span><span class="dtd_keyword">#IMPLIED</span><span class="dtd_tag_symbols">></span>-<span class="dtd_comment"><!-- Determines if the first or last document occurence is the one to return when presented with duplicated field values --></span><span class="dtd_plain"> </span>+<span class="dtd_comment"><!-- Determines if the first or last document occurrence is the one to return when presented with duplicated field values --></span><span class="dtd_plain"> </span><span class="dtd_tag_symbols"><!</span><span class="dtd_tag_name">ATTLIST</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">DuplicateFilter</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">keepMode</span><span class="dtd_plain"> (</span><span class="dtd_attribute_name">first</span><span class="dtd_plain"> | </span><span class="dtd_attribute_name">last</span><span class="dtd_plain">) </span><span class="dtd_attribute_value">"first"</span><span class="dtd_tag_symbols">></span><span class="dtd_comment"><!-- Controls the choice of process used to produce the filter - "full" mode identifies only non-duplicate documents with the chosen field </span><span class="dtd_comment"> while "fast" mode may perform faster but will also mark documents <em>without</em> the field as valid. The former approach starts by </span>diff --git a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.htmlindex 49500707508..36fe0e7e732 100644--- a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html+++ b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html@@ -17,7 +17,7 @@ This DTD describes the XML syntax used to perform advanced searches using the co</ul></li><li>To provide a shorthand way of expressing query logic which echos the logical tree structure of query objects more closely than reading procedural Java query construction code</li>-<li>To bridge the growing gap between Lucene query/filtering functionality and the set of functionality accessible throught the standard Lucene QueryParser syntax</li>+<li>To bridge the growing gap between Lucene query/filtering functionality and the set of functionality accessible through the standard Lucene QueryParser syntax</li><li>To provide a simply extensible syntax that does not require complex parser skills such as knowledge of JavaCC syntax</li></ol></p><p><h3>Syntax overview</h3>Search syntax consists of two types of elements:@@ -43,7 +43,7 @@ positions in relation to each other and the documents containing them.</p><p>Cor<BooleanQuery></td><td class='rightElementTitle'>Child of <a href='#Clause'>Clause</a>, <a href='#Query'>Query</a>, <a href='#CachedFilter'>CachedFilter</a></td></tr></table>-<p>BooleanQuerys implement Boolean logic which controls how multiple Clauses should be interpreted.+<p>BooleanQuery implements Boolean logic which controls how multiple Clauses should be interpreted.Some clauses may represent optional Query criteria while others represent mandatory criteria.</p><p><span class='inTextTitle'>Example:</span> <em>Find articles about banks, preferably talking about mergers but nothing to do with "sumitomo"</em></p><pre><BooleanQuery fieldName="contents">@@ -713,7 +713,7 @@ Attribute of <a href='#SpanNear'>SpanNear</a><SpanFirst></td><td class='rightElementTitle'>Child of <a href='#Include'>Include</a>, <a href='#Clause'>Clause</a>, <a href='#Query'>Query</a>, <a href='#SpanNear'>SpanNear</a>, <a href='#SpanOr'>SpanOr</a>, <a href='#Exclude'>Exclude</a>, <a href='#CachedFilter'>CachedFilter</a></td></tr></table>-<p>Looks for a SpanQuery match occuring near the beginning of a document</p><p><span class='inTextTitle'>Example:</span> <em>Find letters where the first 50 words talk about a resignation:</em>+<p>Looks for a SpanQuery match occurring near the beginning of a document</p><p><span class='inTextTitle'>Example:</span> <em>Find letters where the first 50 words talk about a resignation:</em></p><pre><SpanFirst end="50"><SpanOrTerms fieldName="text">resigning resign leave</SpanOrTerms>diff --git a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.htmlindex fe029a6f5c8..5d95e7f17e5 100644--- a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html+++ b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.org.html@@ -17,7 +17,7 @@<span class="dtd_comment"> </ul></span><span class="dtd_comment"> </li></span><span class="dtd_comment"> <li>To provide a shorthand way of expressing query logic which echos the logical tree structure of query objects more closely than reading procedural Java query construction code</li></span>-<span class="dtd_comment"> <li>To bridge the growing gap between Lucene query/filtering functionality and the set of functionality accessible throught the standard Lucene QueryParser syntax</li></span>+<span class="dtd_comment"> <li>To bridge the growing gap between Lucene query/filtering functionality and the set of functionality accessible through the standard Lucene QueryParser syntax</li></span><span class="dtd_comment"> <li>To provide a simply extensible syntax that does not require complex parser skills such as knowledge of JavaCC syntax</li></span><span class="dtd_comment"> </ol></span><span class="dtd_comment"> </span>@@ -75,7 +75,7 @@<span class="dtd_tag_symbols"><!</span><span class="dtd_tag_name">ENTITY</span><span class="dtd_plain"> % </span><span class="dtd_attribute_name">filters</span><span class="dtd_plain"> </span><span class="dtd_attribute_value">"%coreFilters;%extendedFilters1;"</span><span class="dtd_plain"> </span><span class="dtd_tag_symbols">></span><span class="dtd_comment"><!--</span>-<span class="dtd_comment"> BooleanQuerys implement Boolean logic which controls how multiple Clauses should be interpreted.</span>+<span class="dtd_comment"> BooleanQuery implements Boolean logic which controls how multiple Clauses should be interpreted.</span><span class="dtd_comment"> Some clauses may represent optional Query criteria while others represent mandatory criteria. </span><span class="dtd_comment"> </span><span class="dtd_dtddoc_tag">@example</span><span class="dtd_comment"> </span><span class="dtd_comment"> <em>Find articles about banks, preferably talking about mergers but nothing to do with "sumitomo"</em></span>@@ -424,7 +424,7 @@<span class="dtd_comment"><!-- Controls if matching terms have to appear in the order listed or can be reversed --></span><span class="dtd_tag_symbols"><!</span><span class="dtd_tag_name">ATTLIST</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">SpanNear</span><span class="dtd_plain"> </span><span class="dtd_attribute_name">inOrder</span><span class="dtd_plain"> (</span><span class="dtd_attribute_name">true</span><span class="dtd_plain"> | </span><span class="dtd_attribute_name">false</span><span class="dtd_plain">) </span><span class="dtd_attribute_value">"true"</span><span class="dtd_tag_symbols">></span>-<span class="dtd_comment"><!-- Looks for a SpanQuery match occuring near the beginning of a document</span>+<span class="dtd_comment"><!-- Looks for a SpanQuery match occurring near the beginning of a document</span><span class="dtd_comment"> </span><span class="dtd_comment"> </span><span class="dtd_dtddoc_tag">@example</span><span class="dtd_comment"> </span><span class="dtd_comment"> <em>Find letters where the first 50 words talk about a resignation:</em></span>diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.javaindex b8008e12c78..84b034c6398 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.java@@ -111,7 +111,7 @@ public class ComplexPhraseQueryParser extends QueryParser {}}- // First pass - parse the top-level query recording any PhraseQuerys+ // First pass - parse the top-level query recording any PhraseQuery// which will need to be resolvedcomplexPhrases = new ArrayList<>();Query q = super.parse(query);diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/package-info.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/package-info.javaindex b9e185e2882..306aa9e5cdf 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/package-info.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/package-info.java@@ -70,7 +70,7 @@* <li>OpaqueQueryNode - Used as for part of the query that can be parsed by other parsers.* schema/value* <li>PrefixWildcardQueryNode - non-phrase wildcard query- * <li>QuotedFieldQUeryNode - regular phrase node+ * <li>QuotedFieldQueryNode - regular phrase node* <li>WildcardQueryNode - non-phrase wildcard query* </ul>*diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/PrecedenceQueryParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/PrecedenceQueryParser.javaindex 6ce5282e8b9..ba16f31119b 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/PrecedenceQueryParser.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/PrecedenceQueryParser.java@@ -44,8 +44,8 @@ public class PrecedenceQueryParser extends StandardQueryParser {/*** @see StandardQueryParser#StandardQueryParser(Analyzer)*/- public PrecedenceQueryParser(Analyzer analyer) {- super(analyer);+ public PrecedenceQueryParser(Analyzer analyzer) {+ super(analyzer);setQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(getQueryConfigHandler()));}diff --git a/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneContribQuery.dtd b/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneContribQuery.dtdindex 3f2edb3cb4c..82ede2eecc3 100644--- a/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneContribQuery.dtd+++ b/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneContribQuery.dtd@@ -74,7 +74,7 @@ Improves on FuzzyQuery by rewarding all fuzzy variants of a term with the same I<!ATTLIST FuzzyLikeThisQuery boost CDATA "1.0"><!-- Limits the total number of terms selected from the provided text plus the selected "fuzzy" variants --><!ATTLIST FuzzyLikeThisQuery maxNumTerms CDATA "50">-<!-- Ignore "Term Frequency" - a boost factor which rewards multiple occurences of the same term in a document -->+<!-- Ignore "Term Frequency" - a boost factor which rewards multiple occurrences of the same term in a document --><!ATTLIST FuzzyLikeThisQuery ignoreTF (true|false) "false"><!-- A field used in a FuzzyLikeThisQuery --><!ELEMENT Field (#PCDATA)>@@ -186,7 +186,7 @@ Improves on FuzzyQuery by rewarding all fuzzy variants of a term with the same I<!ELEMENT DuplicateFilter EMPTY><!-- fieldName must be defined here or is taken from the most immediate parent XML element that defines a "fieldName" attribute --><!ATTLIST DuplicateFilter fieldName CDATA #IMPLIED>-<!-- Determines if the first or last document occurence is the one to return when presented with duplicated field values -->+<!-- Determines if the first or last document occurrence is the one to return when presented with duplicated field values --><!ATTLIST DuplicateFilter keepMode (first | last) "first"><!-- Controls the choice of process used to produce the filter - "full" mode identifies only non-duplicate documents with the chosen fieldwhile "fast" mode may perform faster but will also mark documents <em>without</em> the field as valid. The former approach starts bydiff --git a/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd b/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtdindex 691f5ec5706..4a5edd8f850 100644--- a/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd+++ b/lucene/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtd@@ -28,7 +28,7 @@</ul></li><li>To provide a shorthand way of expressing query logic which echos the logical tree structure of query objects more closely than reading procedural Java query construction code</li>- <li>To bridge the growing gap between Lucene query/filtering functionality and the set of functionality accessible throught the standard Lucene QueryParser syntax</li>+ <li>To bridge the growing gap between Lucene query/filtering functionality and the set of functionality accessible through the standard Lucene QueryParser syntax</li><li>To provide a simply extensible syntax that does not require complex parser skills such as knowledge of JavaCC syntax</li></ol>@@ -86,7 +86,7 @@<!ENTITY % filters "%coreFilters;%extendedFilters1;" ><!--- BooleanQuerys implement Boolean logic which controls how multiple Clauses should be interpreted.+ BooleanQuery implements Boolean logic which controls how multiple Clauses should be interpreted.Some clauses may represent optional Query criteria while others represent mandatory criteria.@example<em>Find articles about banks, preferably talking about mergers but nothing to do with "sumitomo"</em>@@ -434,7 +434,7 @@ Passes content directly through to the standard LuceneQuery parser see "Lucene Q<!-- Controls if matching terms have to appear in the order listed or can be reversed --><!ATTLIST SpanNear inOrder (true | false) "true">-<!-- Looks for a SpanQuery match occuring near the beginning of a document+<!-- Looks for a SpanQuery match occurring near the beginning of a document@example<em>Find letters where the first 50 words talk about a resignation:</em>%diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/classic/TestMultiAnalyzer.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/classic/TestMultiAnalyzer.javaindex 3b7f44f4cbe..2d5a3dd74bf 100644--- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/classic/TestMultiAnalyzer.java+++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/classic/TestMultiAnalyzer.java@@ -104,13 +104,13 @@ public class TestMultiAnalyzer extends BaseTokenStreamTestCase {DumbQueryParser qp = new DumbQueryParser("", new MultiAnalyzer());qp.setPhraseSlop(99); // modified default slop- // direct call to (super's) getFieldQuery to demonstrate differnce+ // direct call to (super's) getFieldQuery to demonstrate difference// between phrase and multiphrase with modified default slopassertEquals("\"foo bar\"~99", qp.getSuperFieldQuery("", "foo bar", true).toString());assertEquals("\"(multi multi2) bar\"~99", qp.getSuperFieldQuery("", "multi bar", true).toString());- // ask sublcass to parse phrase with modified default slop+ // ask subclass to parse phrase with modified default slopassertEquals("\"(multi multi2) foo\"~99 bar", qp.parse("\"multi foo\" bar").toString());}diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/classic/TestMultiPhraseQueryParsing.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/classic/TestMultiPhraseQueryParsing.javaindex 2109d686763..b40f0db710b 100644--- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/classic/TestMultiPhraseQueryParsing.java+++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/classic/TestMultiPhraseQueryParsing.java@@ -90,7 +90,7 @@ public class TestMultiPhraseQueryParsing extends LuceneTestCase {};QueryParser qp = new QueryParser("field", new CannedAnalyzer(INCR_0_QUERY_TOKENS_AND));- Query q = qp.parse("\"this text is acually ignored\"");+ Query q = qp.parse("\"this text is actually ignored\"");assertTrue("wrong query type!", q instanceof MultiPhraseQuery);MultiPhraseQuery.Builder multiPhraseQueryBuilder = new MultiPhraseQuery.Builder();diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/ext/TestExtendableQueryParser.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/ext/TestExtendableQueryParser.javaindex e80d4616ef8..9adc00a5048 100644--- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/ext/TestExtendableQueryParser.java+++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/ext/TestExtendableQueryParser.java@@ -61,7 +61,7 @@ public class TestExtendableQueryParser extends TestQueryParser {});}- public void testExtFieldUnqoted() throws Exception {+ public void testExtFieldUnquoted() throws Exception {for (int i = 0; i < DELIMITERS.length; i++) {Extensions ext = newExtensions(DELIMITERS[i]);ext.add("testExt", new ExtensionStub());diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/precedence/TestPrecedenceQueryParser.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/precedence/TestPrecedenceQueryParser.javaindex a23745fbdd6..a8c76ea6805 100644--- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/precedence/TestPrecedenceQueryParser.java+++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/precedence/TestPrecedenceQueryParser.java@@ -277,7 +277,7 @@ public class TestPrecedenceQueryParser extends LuceneTestCase {}public void testNumber() throws Exception {- // The numbers go away because SimpleAnalzyer ignores them+ // The numbers go away because SimpleAnalyzer ignores themassertMatchNoDocsQuery("3", null);assertQueryEquals("term 1.0 1 2", null, "term");assertQueryEquals("term term1 term2", null, "term term term");@@ -317,7 +317,7 @@ public class TestPrecedenceQueryParser extends LuceneTestCase {/** Tests to see that wild card terms are (or are not) properly lower-cased- * with propery parser configuration+ * with parser configuration*/// First prefix queries:// by default, convert to lowercase:diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiAnalyzerQPHelper.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiAnalyzerQPHelper.javaindex 11c39cda951..a9650cf4456 100644--- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiAnalyzerQPHelper.java+++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiAnalyzerQPHelper.java@@ -107,7 +107,7 @@ public class TestMultiAnalyzerQPHelper extends LuceneTestCase {// DumbQueryParser qp = new DumbQueryParser("", new MultiAnalyzer());// qp.setPhraseSlop(99); // modified default slop//- // // direct call to (super's) getFieldQuery to demonstrate differnce+ // // direct call to (super's) getFieldQuery to demonstrate difference// // between phrase and multiphrase with modified default slop// assertEquals("\"foo bar\"~99",// qp.getSuperFieldQuery("","foo bar").toString());@@ -115,7 +115,7 @@ public class TestMultiAnalyzerQPHelper extends LuceneTestCase {// qp.getSuperFieldQuery("","multi bar").toString());////- // // ask sublcass to parse phrase with modified default slop+ // // ask subclass to parse phrase with modified default slop// assertEquals("\"(multi multi2) foo\"~99 bar",// qp.parse("\"multi foo\" bar").toString());//diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.javaindex 8bdf2f4df2f..4f8bffa1557 100644--- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java+++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java@@ -564,7 +564,7 @@ public class TestQPHelper extends LuceneTestCase {/** Tests to see that wild card terms are (or are not) properly lower-cased- * with propery parser configuration+ * with parser configuration*/// First prefix queries:// by default, convert to lowercase:@@ -876,7 +876,7 @@ public class TestQPHelper extends LuceneTestCase {// Tests bug LUCENE-800assertQueryEquals("(item:\\\\ item:ABCD\\\\)", a, "item:\\ item:ABCD\\");assertQueryNodeException("(item:\\\\ item:ABCD\\\\))"); // unmatched closing- // paranthesis+ // parenthesisassertQueryEquals("\\*", a, "*");assertQueryEquals("\\\\", a, "\\"); // escaped backslash@@ -1236,7 +1236,7 @@ public class TestQPHelper extends LuceneTestCase {qp.setEnablePositionIncrements(true);- String qtxt = "\"the words in poisitions pos02578 are stopped in this phrasequery\"";+ String qtxt = "\"the words in positions pos02578 are stopped in this phrasequery\"";// 0 2 5 7 8int[] expectedPositions = {1, 3, 4, 6, 9};PhraseQuery pq = (PhraseQuery) qp.parse(qtxt, "a");diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/util/QueryParserTestBase.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/util/QueryParserTestBase.javaindex b178cecf5f9..f51ad1e76c2 100644--- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/util/QueryParserTestBase.java+++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/util/QueryParserTestBase.java@@ -428,7 +428,7 @@ public abstract class QueryParserTestBase extends LuceneTestCase {}public void testNumber() throws Exception {- // The numbers go away because SimpleAnalzyer ignores them+ // The numbers go away because SimpleAnalyzer ignores themassertMatchNoDocsQuery("3", null);assertQueryEquals("term 1.0 1 2", null, "term");assertQueryEquals("term term1 term2", null, "term term term");@@ -466,7 +466,7 @@ public abstract class QueryParserTestBase extends LuceneTestCase {assertTrue(getQuery("term*germ") instanceof WildcardQuery);/* Tests to see that wild card terms are (or are not) properly- * lower-cased with propery parser configuration+ * lower-cased with parser configuration*/// First prefix queries:// by default, convert to lowercase:@@ -830,7 +830,7 @@ public abstract class QueryParserTestBase extends LuceneTestCase {// Tests bug LUCENE-800assertQueryEquals("(item:\\\\ item:ABCD\\\\)", a, "item:\\ item:ABCD\\");- assertParseException("(item:\\\\ item:ABCD\\\\))"); // unmatched closing paranthesis+ assertParseException("(item:\\\\ item:ABCD\\\\))"); // unmatched closing parenthesisassertQueryEquals("\\*", a, "*");assertQueryEquals("\\\\", a, "\\"); // escaped backslash@@ -1143,7 +1143,7 @@ public abstract class QueryParserTestBase extends LuceneTestCase {new MockAnalyzer(random(), MockTokenizer.SIMPLE, true, MockTokenFilter.ENGLISH_STOPSET));qp.setEnablePositionIncrements(true);- String qtxt = "\"the words in poisitions pos02578 are stopped in this phrasequery\"";+ String qtxt = "\"the words in positions pos02578 are stopped in this phrasequery\"";// 0 2 5 7 8int[] expectedPositions = {1, 3, 4, 6, 9};PhraseQuery pq = (PhraseQuery) getQuery(qtxt, qp);diff --git a/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/CopyJob.java b/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/CopyJob.javaindex a1cf25ca8b9..8c75f23232e 100644--- a/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/CopyJob.java+++ b/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/CopyJob.java@@ -157,7 +157,7 @@ public abstract class CopyJob implements Comparable<CopyJob> {} else if (prevJob.current != null && prevJob.current.name.equals(fileName)) {// This fileName is common to both jobs, and it's the file that the previous job was in the// process of copying. In this case- // we continue copying it from the prevoius job. This is important for cases where we are+ // we continue copying it from the previous job. This is important for cases where we are// copying over a large file// because otherwise we could keep failing the NRT copy and restarting this file from the// beginning and never catch up:diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/codecs/idversion/IDVersionPostingsWriter.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/codecs/idversion/IDVersionPostingsWriter.javaindex 1be42194dab..0bdc0e6b36f 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/codecs/idversion/IDVersionPostingsWriter.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/codecs/idversion/IDVersionPostingsWriter.java@@ -115,7 +115,7 @@ final class IDVersionPostingsWriter extends PushPostingsWriterBase {}lastPosition = position;if (payload == null) {- throw new IllegalArgumentException("token doens't have a payload");+ throw new IllegalArgumentException("token doesn't have a payload");}if (payload.length != 8) {throw new IllegalArgumentException("payload.length != 8 (got " + payload.length + ")");diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/FacetFieldCollector.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/FacetFieldCollector.javaindex 90158bd0650..706ed72381f 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/FacetFieldCollector.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/FacetFieldCollector.java@@ -53,7 +53,7 @@ public final class FacetFieldCollector implements Collector {// it, we can add boolean needScores method to FacetRecorder interface, return// ScoreMode.COMPLETE here when the method returns true. FacetRecorders#needScores should be// implemented on case by case basis, e.g. LongAggregationsFacetRecorder can take it as a- // constuctor argument, and when it's true call LongValues#getValues with the scores.+ // constructor argument, and when it's true call LongValues#getValues with the scores.return ScoreMode.COMPLETE_NO_SCORES;}}diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/plain/histograms/HistogramCollector.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/plain/histograms/HistogramCollector.javaindex 0abcd32e031..40b12c5ea46 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/plain/histograms/HistogramCollector.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/plain/histograms/HistogramCollector.java@@ -130,7 +130,7 @@ final class HistogramCollector implements Collector {}/**- * Naive implementation of a histogram {@link LeafCollector}, which iterates all maches and looks+ * Naive implementation of a histogram {@link LeafCollector}, which iterates all matches and looks* up the value to determine the corresponding bucket.*/private static class HistogramNaiveLeafCollector implements LeafCollector {@@ -172,7 +172,7 @@ final class HistogramCollector implements Collector {}/**- * Naive implementation of a histogram {@link LeafCollector}, which iterates all maches and looks+ * Naive implementation of a histogram {@link LeafCollector}, which iterates all matches and looks* up the value to determine the corresponding bucket.*/private static class HistogramNaiveSingleValuedLeafCollector implements LeafCollector {diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/recorders/CountFacetRecorder.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/recorders/CountFacetRecorder.javaindex 0fab6dfb663..ca69a8b3138 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/recorders/CountFacetRecorder.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/recorders/CountFacetRecorder.java@@ -36,7 +36,7 @@ import org.apache.lucene.sandbox.facet.iterators.OrdinalIterator;* <p>TODO: add an option to keep counts in an array, to improve performance for facets with small* number of ordinals e.g. range facets. Options: - {@link LeafFacetCutter} can inform {@link* LeafFacetRecorder} about expected number of facet ordinals ({@link- * org.apache.lucene.sandbox.facet.FacetFieldCollector} can orchestrate that). If expeted facet ord+ * org.apache.lucene.sandbox.facet.FacetFieldCollector} can orchestrate that). If expected facet ord* number is below some threshold - use array instead of a map? - first 100/1k counts in array, the* rest - in a map; the limit can also be provided in a constructor? It is similar to what* LongValuesFacetCounts does today.diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/recorders/FacetRecorder.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/recorders/FacetRecorder.javaindex f86fe7bf8de..02cdf6831d2 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/recorders/FacetRecorder.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/recorders/FacetRecorder.java@@ -27,7 +27,7 @@ import org.apache.lucene.sandbox.facet.iterators.OrdinalIterator;** <p>TODO: In the next iteration we can add an extra layer between FacetRecorder and* LeafFacetRecorder, e.g. SliceFacetRecorder. The new layer will be created per {@link- * org.apache.lucene.search.Collector}, which means that collecting of multiple leafs (segments)+ * org.apache.lucene.search.Collector}, which means that collecting of multiple leaves (segments)* within a slice is sequential and can be done to a single non-sync map to improve performance and* reduce memory consumption. We already tried that, but didn't see any performance improvement.* Given that it also makes lazy leaf recorder init in {@linkdiff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/utils/PostCollectionFaceting.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/utils/PostCollectionFaceting.javaindex e11e267148c..a78be3ec876 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/utils/PostCollectionFaceting.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/utils/PostCollectionFaceting.java@@ -60,7 +60,7 @@ public final class PostCollectionFaceting<C extends Collector, T, K extends Collprivate final Map<String, FacetsCollector> drillSidewaysFacetsCollectors;private final TaskExecutor taskExecutor;private final Map<String, Integer> dimToIndexMap;- private final int numOfIndexLeafs;+ private final int numOfIndexLeaves;/*** Creates a new PostCollectionFaceting instance.@@ -91,7 +91,7 @@ public final class PostCollectionFaceting<C extends Collector, T, K extends Coll} else {this.taskExecutor = new TaskExecutor(executor);}- this.numOfIndexLeafs = calculateNumOfIndexLeafs();+ this.numOfIndexLeaves = calculateNumOfIndexLeaves();this.dimToIndexMap = new HashMap<>();int ind = 0;if (drillSidewaysCollectorManagers == null) {@@ -124,7 +124,7 @@ public final class PostCollectionFaceting<C extends Collector, T, K extends Collthis(drillDownCollectorManager, null, drillDownFacetsCollector, null, executor);}- private int calculateNumOfIndexLeafs() {+ private int calculateNumOfIndexLeaves() {int maxOrd = -1;for (FacetsCollector.MatchingDocs matchingDocs : drillDownFacetsCollector.getMatchingDocs()) {maxOrd = Math.max(maxOrd, matchingDocs.context().ord);@@ -160,7 +160,7 @@ public final class PostCollectionFaceting<C extends Collector, T, K extends Collprivate FacetsCollector.MatchingDocs[][] getPerLeafMatchingDocs() {// Max dimFacetsCollector.MatchingDocs[][] perLeafMatchingDocs =- new FacetsCollector.MatchingDocs[numOfIndexLeafs]+ new FacetsCollector.MatchingDocs[numOfIndexLeaves][drillSidewaysCollectorManagers.size() + 1];for (FacetsCollector.MatchingDocs drillDownMatchingDocs :drillDownFacetsCollector.getMatchingDocs()) {diff --git a/lucene/sandbox/src/test/org/apache/lucene/sandbox/facet/SandboxFacetTestCase.java b/lucene/sandbox/src/test/org/apache/lucene/sandbox/facet/SandboxFacetTestCase.javaindex b06fa2fc3dd..62d0ac335de 100644--- a/lucene/sandbox/src/test/org/apache/lucene/sandbox/facet/SandboxFacetTestCase.java+++ b/lucene/sandbox/src/test/org/apache/lucene/sandbox/facet/SandboxFacetTestCase.java@@ -125,7 +125,7 @@ public abstract class SandboxFacetTestCase extends LuceneTestCase {TaxonomyOrdLabelBiMap ordLabels = new TaxonomyOrdLabelBiMap(taxoReader);FacetLabel parentLabel = new FacetLabel(dimension, path);int parentOrdinal = ordLabels.getOrd(parentLabel);- OrdinalIterator childrenIternator =+ OrdinalIterator childrenIterator =new TaxonomyChildrenOrdinalIterator(countFacetRecorder.recordedOrds(),taxoReader.getParallelTaxonomyArrays().parents(),@@ -133,7 +133,7 @@ public abstract class SandboxFacetTestCase extends LuceneTestCase {// Get array of final ordinals - we need to use all of them to get labels first, and then to get// counts,// but OrdinalIterator only allows reading ordinals once.- int[] resultOrdinals = childrenIternator.toArray();+ int[] resultOrdinals = childrenIterator.toArray();FacetLabel[] labels = ordLabels.getLabels(resultOrdinals);List<LabelAndValue> labelsAndValues = new ArrayList<>(labels.length);diff --git a/lucene/sandbox/src/test/org/apache/lucene/sandbox/facet/TestFacetRecorders.java b/lucene/sandbox/src/test/org/apache/lucene/sandbox/facet/TestFacetRecorders.javaindex e1829ff7e84..2cd894616d7 100644--- a/lucene/sandbox/src/test/org/apache/lucene/sandbox/facet/TestFacetRecorders.java+++ b/lucene/sandbox/src/test/org/apache/lucene/sandbox/facet/TestFacetRecorders.java@@ -417,7 +417,7 @@ public class TestFacetRecorders extends SandboxFacetTestCase {TaxonomyOrdLabelBiMap ordLabels = new TaxonomyOrdLabelBiMap(taxoReader);FacetLabel parentLabel = new FacetLabel(dimension, path);- OrdinalIterator childrenIternator =+ OrdinalIterator childrenIterator =new TaxonomyChildrenOrdinalIterator(countFacetRecorder.recordedOrds(),taxoReader.getParallelTaxonomyArrays().parents(),@@ -428,13 +428,13 @@ public class TestFacetRecorders extends SandboxFacetTestCase {ComparableUtils.byAggregatedValue(countFacetRecorder, longAggregationsFacetRecorder, sortByLongAggregationId);OrdinalIterator topByCountOrds =- new TopnOrdinalIterator<>(childrenIternator, comparableSupplier, topN);+ new TopnOrdinalIterator<>(childrenIterator, comparableSupplier, topN);resultOrdinals = topByCountOrds.toArray();} else {ComparableSupplier<ComparableUtils.ByCountComparable> countComparable =ComparableUtils.byCount(countFacetRecorder);OrdinalIterator topByCountOrds =- new TopnOrdinalIterator<>(childrenIternator, countComparable, topN);+ new TopnOrdinalIterator<>(childrenIterator, countComparable, topN);resultOrdinals = topByCountOrds.toArray();}diff --git a/lucene/spatial-extras/src/java/org/apache/lucene/spatial/prefix/PrefixTreeStrategy.java b/lucene/spatial-extras/src/java/org/apache/lucene/spatial/prefix/PrefixTreeStrategy.javaindex bbf565c9f2e..6418e94e2f2 100644--- a/lucene/spatial-extras/src/java/org/apache/lucene/spatial/prefix/PrefixTreeStrategy.java+++ b/lucene/spatial-extras/src/java/org/apache/lucene/spatial/prefix/PrefixTreeStrategy.java@@ -117,7 +117,7 @@ public abstract class PrefixTreeStrategy extends SpatialStrategy {}/**- * True if only indexed points shall be supported. There are no "leafs" in such a case, except+ * True if only indexed points shall be supported. There are no "leaves" in such a case, except* those at maximum precision.*/public void setPointsOnly(boolean pointsOnly) {diff --git a/lucene/spatial-extras/src/java/org/apache/lucene/spatial/prefix/tree/DateRangePrefixTree.java b/lucene/spatial-extras/src/java/org/apache/lucene/spatial/prefix/tree/DateRangePrefixTree.javaindex 0df30fb33fc..f081241f565 100644--- a/lucene/spatial-extras/src/java/org/apache/lucene/spatial/prefix/tree/DateRangePrefixTree.java+++ b/lucene/spatial-extras/src/java/org/apache/lucene/spatial/prefix/tree/DateRangePrefixTree.java@@ -393,7 +393,7 @@ public class DateRangePrefixTree extends NumberRangePrefixTree {if (calPrecField == -1) return "*";try {StringBuilder builder = new StringBuilder("yyyy-MM-dd'T'HH:mm:ss.SSS".length()); // typical- int year = cal.get(Calendar.YEAR); // within the era (thus always positve). >= 1.+ int year = cal.get(Calendar.YEAR); // within the era (thus always positive). >= 1.if (cal.get(Calendar.ERA) == 0) { // BCyear -= 1; // 1BC should be "0000", so shift by oneif (year > 0) {@@ -493,34 +493,34 @@ public class DateRangePrefixTree extends NumberRangePrefixTree {offset += 3;if (lastOffset < offset) return cal;// day:- checkDelimeter(str, offset - 1, '-');+ checkDelimiter(str, offset - 1, '-');parsedVal = parseAndCheck(str, offset, 1, 31);cal.set(Calendar.DAY_OF_MONTH, parsedVal);offset += 3;if (lastOffset < offset) return cal;- checkDelimeter(str, offset - 1, 'T');+ checkDelimiter(str, offset - 1, 'T');// hour:parsedVal = parseAndCheck(str, offset, 0, 24);cal.set(Calendar.HOUR_OF_DAY, parsedVal);offset += 3;if (lastOffset < offset) return cal;- checkDelimeter(str, offset - 1, ':');+ checkDelimiter(str, offset - 1, ':');// minute:parsedVal = parseAndCheck(str, offset, 0, 59);cal.set(Calendar.MINUTE, parsedVal);offset += 3;if (lastOffset < offset) return cal;- checkDelimeter(str, offset - 1, ':');+ checkDelimiter(str, offset - 1, ':');// second:parsedVal = parseAndCheck(str, offset, 0, 59);cal.set(Calendar.SECOND, parsedVal);offset += 3;if (lastOffset < offset) return cal;- checkDelimeter(str, offset - 1, '.');+ checkDelimiter(str, offset - 1, '.');// ms:int maxOffset = lastOffset - offset; // assume remaining is all digits to compute milliseconds@@ -538,10 +538,10 @@ public class DateRangePrefixTree extends NumberRangePrefixTree {}}- private void checkDelimeter(String str, int offset, char delim) {+ private void checkDelimiter(String str, int offset, char delim) {if (str.charAt(offset) != delim) {throw new IllegalArgumentException(- "Invalid delimeter: '" + str.charAt(offset) + "', expecting '" + delim + "'");+ "Invalid delimiter: '" + str.charAt(offset) + "', expecting '" + delim + "'");}}diff --git a/lucene/spatial-extras/src/test/org/apache/lucene/spatial/bbox/TestBBoxStrategy.java b/lucene/spatial-extras/src/test/org/apache/lucene/spatial/bbox/TestBBoxStrategy.javaindex 75f8326acda..5fa474a31f0 100644--- a/lucene/spatial-extras/src/test/org/apache/lucene/spatial/bbox/TestBBoxStrategy.java+++ b/lucene/spatial-extras/src/test/org/apache/lucene/spatial/bbox/TestBBoxStrategy.java@@ -182,7 +182,7 @@ public class TestBBoxStrategy extends RandomSpatialOpStrategyTestCase {// OLD STATIC TESTS (worthless?)@Ignore("Overlaps not supported")- public void testBasicOperaions() throws IOException {+ public void testBasicOperations() throws IOException {setupGeo();getAddAndVerifyIndexedDocuments(DATA_SIMPLE_BBOX);diff --git a/lucene/spatial-extras/src/test/org/apache/lucene/spatial/prefix/tree/TestDateRangePrefixTree.java b/lucene/spatial-extras/src/test/org/apache/lucene/spatial/prefix/tree/TestDateRangePrefixTree.javaindex 13ad5973ae1..9a48d3743ec 100644--- a/lucene/spatial-extras/src/test/org/apache/lucene/spatial/prefix/tree/TestDateRangePrefixTree.java+++ b/lucene/spatial-extras/src/test/org/apache/lucene/spatial/prefix/tree/TestDateRangePrefixTree.java@@ -304,8 +304,8 @@ public class TestDateRangePrefixTree extends LuceneTestCase {}).getCause().getMessage();- assertTrue(causeMessage + " has actual delimeter", causeMessage.contains("Z"));- assertTrue(causeMessage + " has expected delimeter", causeMessage.contains(":"));+ assertTrue(causeMessage + " has actual delimiter", causeMessage.contains("Z"));+ assertTrue(causeMessage + " has expected delimiter", causeMessage.contains(":"));assertFalse(causeMessage + " has no input", causeMessage.contains("2000-11-10"));}expectThrows(diff --git a/lucene/spatial-extras/src/test/org/apache/lucene/spatial/serialized/TestSerializedStrategy.java b/lucene/spatial-extras/src/test/org/apache/lucene/spatial/serialized/TestSerializedStrategy.javaindex 439eef751b5..aa9cd0754c5 100644--- a/lucene/spatial-extras/src/test/org/apache/lucene/spatial/serialized/TestSerializedStrategy.java+++ b/lucene/spatial-extras/src/test/org/apache/lucene/spatial/serialized/TestSerializedStrategy.java@@ -32,7 +32,7 @@ public class TestSerializedStrategy extends StrategyTestCase {this.strategy = new SerializedDVStrategy(ctx, "serialized");}- public void testBasicOperaions() throws IOException {+ public void testBasicOperations() throws IOException {getAddAndVerifyIndexedDocuments(DATA_SIMPLE_BBOX);executeQueries(SpatialMatchConcern.EXACT, QTEST_Simple_Queries_BBox);diff --git a/lucene/spatial-test-fixtures/src/java/org/apache/lucene/spatial3d/tests/RandomGeo3dShapeGenerator.java b/lucene/spatial-test-fixtures/src/java/org/apache/lucene/spatial3d/tests/RandomGeo3dShapeGenerator.javaindex 26c286520d3..08745c2777b 100644--- a/lucene/spatial-test-fixtures/src/java/org/apache/lucene/spatial3d/tests/RandomGeo3dShapeGenerator.java+++ b/lucene/spatial-test-fixtures/src/java/org/apache/lucene/spatial3d/tests/RandomGeo3dShapeGenerator.java@@ -73,7 +73,7 @@ public final class RandomGeo3dShapeGenerator {public static final int LINE = 10;public static final int EXACT_CIRCLE = 11;- /* Helper shapes for generating constraints whch are just three sided polygons */+ /* Helper shapes for generating constraints which are just three sided polygons */public static final int CONVEX_SIMPLE_POLYGON = 500;public static final int CONCAVE_SIMPLE_POLYGON = 501;diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/Geo3DUtil.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/Geo3DUtil.javaindex 2bfc75a2526..fe670e37e97 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/Geo3DUtil.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/Geo3DUtil.java@@ -57,7 +57,7 @@ class Geo3DUtil {return Math.nextDown((x + 1) * planetModel.DECODE);}- /** Converts degress to radians */+ /** Converts degrees to radians */static double fromDegrees(final double degrees) {return degrees * RADIANS_PER_DEGREE;}diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.javaindex 687e14cfe5d..723fd7769ad 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java@@ -1596,7 +1596,7 @@ class GeoComplexPolygon extends GeoBasePolygon {this.plane = plane;this.abovePlane = abovePlane;this.belowPlane = belowPlane;- // We have to be sure we don't accidently create two bounds that would exclude all points.+ // We have to be sure we don't accidentally create two bounds that would exclude all points.// Not sure this can happen but...final SidedPlane bound1Plane =new SidedPlane(thePointX, thePointY, thePointZ, plane, testPoint);diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoPolygonFactory.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoPolygonFactory.javaindex b9dc110b6cc..881e8a21343 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoPolygonFactory.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoPolygonFactory.java@@ -1863,8 +1863,8 @@ public class GeoPolygonFactory {// Build the new edge// We need to know the sidedness of the new plane. The point we're going to be presenting// to it has a certain relationship with the sided plane we already have for the current- // edge. If the current edge is colinear with the new edge, then we want to maintain the- // same relationship. If the new edge is not colinear, then we can use the new point's+ // edge. If the current edge is collinear with the new edge, then we want to maintain the+ // same relationship. If the new edge is not collinear, then we can use the new point's// relationship with the current edge as our guide.final boolean isNewPointWithin = currentEdge.plane.isWithin(newPoint);diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoWideLongitudeSlice.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoWideLongitudeSlice.javaindex 5c9e5d2cc61..cdf90516b77 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoWideLongitudeSlice.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoWideLongitudeSlice.java@@ -48,7 +48,7 @@ class GeoWideLongitudeSlice extends GeoBaseBBox {protected final GeoPoint[] edgePoints;/**- * Accepts only values in the following ranges: lon: {@code -PI -> PI}. Horizantal angle must be+ * Accepts only values in the following ranges: lon: {@code -PI -> PI}. Horizontal angle must be* greater than or equal to PI.** @param planetModel is the planet model.diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/SerializableObject.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/SerializableObject.javaindex f8e7d64943e..d44abfb8e09 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/SerializableObject.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/SerializableObject.java@@ -274,7 +274,7 @@ public interface SerializableObject {}/**- * Write a polgon array.+ * Write a polygon array.** @param outputStream is the output stream.* @param values is the array of points to write.diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.javaindex 7d0e5fcea87..3b085d9f3f7 100644--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java@@ -1260,7 +1260,7 @@ public class TestGeo3DPoint extends LuceneTestCase {try {poly = GeoPolygonFactory.makeGeoPolygon(pm, polyPoints, null);} catch (IllegalArgumentException e) {- // This is what happens when three adjacent points are colinear, so try again.+ // This is what happens when three adjacent points are collinear, so try again.continue;}diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/Geo3DUtil.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/Geo3DUtil.javaindex ef01eb16251..946a965c03c 100644--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/Geo3DUtil.java+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/Geo3DUtil.java@@ -24,7 +24,7 @@ class Geo3DUtil {/** How many degrees in a radian */static final double DEGREES_PER_RADIAN = 180.0 / Math.PI;- /** Converts degress to radians */+ /** Converts degrees to radians */static double fromDegrees(final double degrees) {return degrees * RADIANS_PER_DEGREE;}diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/TestCompositeGeoPolygonRelationships.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/TestCompositeGeoPolygonRelationships.javaindex d743cb73a7f..c7c97699985 100644--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/TestCompositeGeoPolygonRelationships.java+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/TestCompositeGeoPolygonRelationships.java@@ -279,7 +279,7 @@ public class TestCompositeGeoPolygonRelationships extends LuceneTestCase {// POLYGON ((19.845091 -60.452631, 20.119948 -61.655652, 23.207901 -61.453298, 22.820804// -60.257713, 21 -61,19.845091 -60.452631))- GeoPolygon originaConvexlPol =+ GeoPolygon originalConvexPol =buildGeoPolygon(19.84509,-60.452631,@@ -313,14 +313,14 @@ public class TestCompositeGeoPolygonRelationships extends LuceneTestCase {GeoPolygon polConcave = buildConcaveGeoPolygon(19, -62, 23, -62, 23, -60, 19, -60);// convex- int rel = originaConvexlPol.getRelationship(polConvex);+ int rel = originalConvexPol.getRelationship(polConvex);assertEquals(GeoArea.OVERLAPS, rel);- rel = polConvex.getRelationship(originaConvexlPol);+ rel = polConvex.getRelationship(originalConvexPol);assertEquals(GeoArea.OVERLAPS, rel);- rel = originaConvexlPol.getRelationship(polConcave);+ rel = originalConvexPol.getRelationship(polConcave);assertEquals(GeoArea.OVERLAPS, rel);- rel = polConcave.getRelationship(originaConvexlPol);+ rel = polConcave.getRelationship(originalConvexPol);assertEquals(GeoArea.OVERLAPS, rel);// concavediff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/TestSimpleGeoPolygonRelationships.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/TestSimpleGeoPolygonRelationships.javaindex cc842af86b8..8b4f0b6b74b 100644--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/TestSimpleGeoPolygonRelationships.java+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/TestSimpleGeoPolygonRelationships.java@@ -738,7 +738,7 @@ public class TestSimpleGeoPolygonRelationships extends LuceneTestCase {assertEquals(GeoArea.OVERLAPS, rel);// POLYGON((-146 -5.18, -145.854 -5.18, -145.854 -5.11, -146 -5.11, -146 -5.18))- // Case overlaping on of the shapes+ // Case overlapping on of the shapespolConvex = buildConvexGeoPolygon(-146, -5.18, -145.854, -5.18, -145.854, -5.11, -146, -5.11);polConcave = buildConcaveGeoPolygon(-146, -5.18, -145.854, -5.18, -145.854, -5.11, -146, -5.11);diff --git a/lucene/suggest/src/java/org/apache/lucene/search/spell/LuceneLevenshteinDistance.java b/lucene/suggest/src/java/org/apache/lucene/search/spell/LuceneLevenshteinDistance.javaindex a3fa15e4913..0744d90c581 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/spell/LuceneLevenshteinDistance.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/spell/LuceneLevenshteinDistance.java@@ -37,7 +37,7 @@ import org.apache.lucene.util.IntsRef;*/public final class LuceneLevenshteinDistance implements StringDistance {- /** Creates a new comparator, mimicing the behavior of Lucene's internal edit distance. */+ /** Creates a new comparator, mimicking the behavior of Lucene's internal edit distance. */public LuceneLevenshteinDistance() {}@Overridediff --git a/lucene/suggest/src/java/org/apache/lucene/search/spell/WordBreakSpellChecker.java b/lucene/suggest/src/java/org/apache/lucene/search/spell/WordBreakSpellChecker.javaindex 58d68a66bd8..8f56dd57513 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/spell/WordBreakSpellChecker.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/spell/WordBreakSpellChecker.java@@ -292,7 +292,7 @@ public class WordBreakSpellChecker {// if we are about to exceed our maxChanges *OR* we have a full list of// suggestions, we can return now.//- // (because any subsequent suggestions are garunteed to have more changes+ // (because any subsequent suggestions are guaranteed to have more changes// then anything currently in the queue, and not be competitive)final int newNumberBreaks = numberBreaks + 1;diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingInfixSuggester.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingInfixSuggester.javaindex 020f65b6db7..8a72e40a5ad 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingInfixSuggester.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingInfixSuggester.java@@ -156,7 +156,7 @@ public class AnalyzingInfixSuggester extends Lookup implements Closeable {/** Default boolean clause option for multiple terms matching (all terms required). */public static final boolean DEFAULT_ALL_TERMS_REQUIRED = true;- /** Default higlighting option. */+ /** Default highlighting option. */public static final boolean DEFAULT_HIGHLIGHT = true;/** Default option to close the IndexWriter once the index has been built. */diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggester.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggester.javaindex ee74f830c36..e3567263b0e 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggester.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggester.java@@ -509,7 +509,7 @@ public class AnalyzingSuggester extends Lookup {ByteArrayDataInput input = new ByteArrayDataInput();// Used to remove duplicate surface forms (but we- // still index the hightest-weight one). We clear+ // still index the highest-weight one). We clear// this when we see a new analyzed form, so it cannot// grow unbounded (at most 256 entries):Set<BytesRef> seenSurfaceForms = new HashSet<>();@@ -763,7 +763,7 @@ public class AnalyzingSuggester extends Lookup {// 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:for (Result<Pair<Long, BytesRef>> completion : completions) {diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/FreeTextSuggester.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/FreeTextSuggester.javaindex 619cfa1ce59..bc7a57d95d2 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/FreeTextSuggester.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/FreeTextSuggester.java@@ -479,7 +479,7 @@ public class FreeTextSuggester extends Lookup {}// Carefully fill last tokens with _ tokens;- // ShingleFilter appraently won't emit "only hole"+ // ShingleFilter apparently won't emit "only hole"// tokens:int endPosInc = posIncAtt.getPositionIncrement();diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestIndexSearcher.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestIndexSearcher.javaindex e70f8bbf3b6..3f352c36d31 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestIndexSearcher.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestIndexSearcher.java@@ -63,7 +63,7 @@ public class SuggestIndexSearcher extends IndexSearcher {*/public void suggest(CompletionQuery query, TopSuggestDocsCollector collector) throws IOException {// TODO use IndexSearcher.rewrite instead- // have to implement equals() and hashCode() in CompletionQuerys and co+ // have to implement equals() and hashCode() in CompletionQuery and coquery = (CompletionQuery) query.rewrite(this);Weight weight = query.createWeight(this, collector.scoreMode(), 1f);for (LeafReaderContext context : getIndexReader().leaves()) {diff --git a/lucene/suggest/src/test/org/apache/lucene/search/suggest/SuggestRebuildTestUtil.java b/lucene/suggest/src/test/org/apache/lucene/search/suggest/SuggestRebuildTestUtil.javaindex bde129463ab..8d04094e4f0 100644--- a/lucene/suggest/src/test/org/apache/lucene/search/suggest/SuggestRebuildTestUtil.java+++ b/lucene/suggest/src/test/org/apache/lucene/search/suggest/SuggestRebuildTestUtil.java@@ -38,7 +38,7 @@ public final class SuggestRebuildTestUtil {* @param initialData initial data to use for initial {@link Lookup#build}* @param initialChecks assertions to test after the initial build, and during the re-{@link* Lookup#build}- * @param extraData will be aded to <code>initialData</code> and used to re-<code>build()</code>+ * @param extraData will be added to <code>initialData</code> and used to re-<code>build()</code>* the suggester* @param finalChecks assertions to test after the re-<code>build()</code> completes*/@@ -106,7 +106,7 @@ public final class SuggestRebuildTestUtil {/*** An InputArrayIterator wrapper whose {@link InputIterator#next} method releases on a Semaphore,- * and then acquires from a differnet Semaphore.+ * and then acquires from a different Semaphore.*/private record DelayedInputIterator(Semaphore releaseOnNext, Semaphore acquireOnNext, InputIterator inner)diff --git a/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestAnalyzingSuggester.java b/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestAnalyzingSuggester.javaindex e70268076a4..91d59212455 100644--- a/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestAnalyzingSuggester.java+++ b/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestAnalyzingSuggester.java@@ -726,7 +726,7 @@ public class TestAnalyzingSuggester extends LuceneTestCase {int numQueries = atLeast(200);- final List<TermFreq2> slowCompletor = new ArrayList<>();+ final List<TermFreq2> slowCompleter = new ArrayList<>();final TreeSet<String> allPrefixes = new TreeSet<>();final Set<String> seen = new HashSet<>();@@ -824,13 +824,13 @@ public class TestAnalyzingSuggester extends LuceneTestCase {payload = null;}- slowCompletor.add(new TermFreq2(key, analyzedKey, weight, payload));+ slowCompleter.add(new TermFreq2(key, analyzedKey, weight, payload));}if (VERBOSE) {// Don't just sort original list, to avoid VERBOSE// altering the test:- List<TermFreq2> sorted = new ArrayList<>(slowCompletor);+ List<TermFreq2> sorted = new ArrayList<>(slowCompleter);Collections.sort(sorted);for (TermFreq2 ent : sorted) {System.out.println(@@ -922,8 +922,8 @@ public class TestAnalyzingSuggester extends LuceneTestCase {System.out.println(" analyzed: " + analyzedKey);}- // TODO: could be faster... but it's slowCompletor for a reason- for (TermFreq2 e : slowCompletor) {+ // TODO: could be faster... but it's slowCompleter for a reason+ for (TermFreq2 e : slowCompleter) {if (e.analyzedForm.startsWith(analyzedKey)) {matches.add(e);}diff --git a/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestFuzzySuggester.java b/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestFuzzySuggester.javaindex 572ae26a4e0..b7ec6432235 100644--- a/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestFuzzySuggester.java+++ b/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestFuzzySuggester.java@@ -603,7 +603,7 @@ public class TestFuzzySuggester extends LuceneTestCase {int numQueries = atLeast(20);- final List<TermFreqPayload2> slowCompletor = new ArrayList<>();+ final List<TermFreqPayload2> slowCompleter = new ArrayList<>();final TreeSet<String> allPrefixes = new TreeSet<>();final Set<String> seen = new HashSet<>();@@ -691,13 +691,13 @@ public class TestFuzzySuggester extends LuceneTestCase {int weight = random().nextInt(1 << 24);keys[i] = new Input(key, weight);- slowCompletor.add(new TermFreqPayload2(key, analyzedKey, weight));+ slowCompleter.add(new TermFreqPayload2(key, analyzedKey, weight));}if (VERBOSE) {// Don't just sort original list, to avoid VERBOSE// altering the test:- List<TermFreqPayload2> sorted = new ArrayList<>(slowCompletor);+ List<TermFreqPayload2> sorted = new ArrayList<>(slowCompleter);Collections.sort(sorted);for (TermFreqPayload2 ent : sorted) {System.out.println(@@ -801,9 +801,9 @@ public class TestFuzzySuggester extends LuceneTestCase {suggester.toLevenshteinAutomata(suggester.toLookupAutomaton(analyzedKey)));assertTrue(automaton.isDeterministic());- // TODO: could be faster... but it's slowCompletor for a reason+ // TODO: could be faster... but it's slowCompleter for a reasonBytesRefBuilder spare = new BytesRefBuilder();- for (TermFreqPayload2 e : slowCompletor) {+ for (TermFreqPayload2 e : slowCompleter) {spare.copyChars(e.analyzedForm);FiniteStringsIterator finiteStrings =new FiniteStringsIterator(suggester.toAutomaton(spare.get(), tokenStreamToAutomaton));diff --git a/lucene/suggest/src/test/org/apache/lucene/search/suggest/fst/TestWFSTCompletion.java b/lucene/suggest/src/test/org/apache/lucene/search/suggest/fst/TestWFSTCompletion.javaindex 780906d21c6..ef4216a1d0f 100644--- a/lucene/suggest/src/test/org/apache/lucene/search/suggest/fst/TestWFSTCompletion.java+++ b/lucene/suggest/src/test/org/apache/lucene/search/suggest/fst/TestWFSTCompletion.java@@ -181,7 +181,7 @@ public class TestWFSTCompletion extends LuceneTestCase {public void testRandom() throws Exception {int numWords = atLeast(1000);- final TreeMap<String, Long> slowCompletor = new TreeMap<>();+ final TreeMap<String, Long> slowCompleter = new TreeMap<>();final TreeSet<String> allPrefixes = new TreeSet<>();Input[] keys = new Input[numWords];@@ -189,10 +189,10 @@ public class TestWFSTCompletion extends LuceneTestCase {for (int i = 0; i < numWords; i++) {String s;while (true) {- // TODO: would be nice to fix this slowCompletor/comparator to+ // TODO: would be nice to fix this slowCompleter/comparator to// use full range, but we might lose some coverage too...s = TestUtil.randomSimpleString(random());- if (!slowCompletor.containsKey(s)) {+ if (!slowCompleter.containsKey(s)) {break;}}@@ -202,7 +202,7 @@ public class TestWFSTCompletion extends LuceneTestCase {}// we can probably do Integer.MAX_VALUE here, but why worry.int weight = random().nextInt(1 << 24);- slowCompletor.put(s, (long) weight);+ slowCompleter.put(s, (long) weight);keys[i] = new Input(s, weight);}@@ -217,11 +217,11 @@ public class TestWFSTCompletion extends LuceneTestCase {List<LookupResult> r =suggester.lookup(TestUtil.stringToCharSequence(prefix, random), false, topN);- // 2. go thru whole treemap (slowCompletor) and check it's actually the best suggestion+ // 2. go thru whole treemap (slowCompleter) and check it's actually the best suggestionfinal List<LookupResult> matches = new ArrayList<>();- // TODO: could be faster... but it's slowCompletor for a reason- for (Map.Entry<String, Long> e : slowCompletor.entrySet()) {+ // TODO: could be faster... but it's slowCompleter for a reason+ for (Map.Entry<String, Long> e : slowCompleter.entrySet()) {if (e.getKey().startsWith(prefix)) {matches.add(new LookupResult(e.getKey(), e.getValue().longValue()));}diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/analysis/BaseTokenStreamTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/analysis/BaseTokenStreamTestCase.javaindex 235fc736056..b3df6f480f1 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/analysis/BaseTokenStreamTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/analysis/BaseTokenStreamTestCase.java@@ -1296,7 +1296,7 @@ public abstract class BaseTokenStreamTestCase extends LuceneTestCase {ts.end();ts.close();- // verify reusing is "reproducable" and also get the normal tokenstream sanity checks+ // verify reusing is "reproducible" and also get the normal tokenstream sanity checksif (!tokens.isEmpty()) {// KWTokenizer (for example) can produce a tokendiff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneFixedGap.java b/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneFixedGap.javaindex 70e24119da4..93694b785ef 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneFixedGap.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneFixedGap.java@@ -74,7 +74,7 @@ public final class LuceneFixedGap extends PostingsFormat {success = false;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/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneVarGapDocFreqInterval.java b/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneVarGapDocFreqInterval.javaindex 719e698eda8..7b49cdfd637 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneVarGapDocFreqInterval.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneVarGapDocFreqInterval.java@@ -83,7 +83,7 @@ public final class LuceneVarGapDocFreqInterval extends PostingsFormat {success = false;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/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneVarGapFixedInterval.java b/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneVarGapFixedInterval.javaindex 9de1e12c427..b04d9458872 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneVarGapFixedInterval.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/codecs/blockterms/LuceneVarGapFixedInterval.java@@ -78,7 +78,7 @@ public final class LuceneVarGapFixedInterval extends PostingsFormat {success = false;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/lucene/test-framework/src/java/org/apache/lucene/tests/geo/GeoTestUtil.java b/lucene/test-framework/src/java/org/apache/lucene/tests/geo/GeoTestUtil.javaindex e697d6f67d9..71e45fca763 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/geo/GeoTestUtil.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/geo/GeoTestUtil.java@@ -763,22 +763,22 @@ public class GeoTestUtil {boolean c = false;int i, j;int nvert = polyLats.length;- double[] verty = polyLats;- double[] vertx = polyLons;+ double[] vertY = polyLats;+ double[] vertX = polyLons;double testy = latitude;double testx = longitude;for (i = 0, j = 1; j < nvert; ++i, ++j) {- if (testy == verty[j] && testy == verty[i]- || ((testy <= verty[j] && testy >= verty[i])- != (testy >= verty[j] && testy <= verty[i]))) {- if ((testx == vertx[j] && testx == vertx[i])- || ((testx <= vertx[j] && testx >= vertx[i]) != (testx >= vertx[j] && testx <= vertx[i])- && GeoUtils.orient(vertx[i], verty[i], vertx[j], verty[j], testx, testy) == 0)) {+ if (testy == vertY[j] && testy == vertY[i]+ || ((testy <= vertY[j] && testy >= vertY[i])+ != (testy >= vertY[j] && testy <= vertY[i]))) {+ if ((testx == vertX[j] && testx == vertX[i])+ || ((testx <= vertX[j] && testx >= vertX[i]) != (testx >= vertX[j] && testx <= vertX[i])+ && GeoUtils.orient(vertX[i], vertY[i], vertX[j], vertY[j], testx, testy) == 0)) {// return true if point is on boundaryreturn true;- } else if (((verty[i] > testy) != (verty[j] > testy))+ } else if (((vertY[i] > testy) != (vertY[j] > testy))&& (testx- < (vertx[j] - vertx[i]) * (testy - verty[i]) / (verty[j] - verty[i]) + vertx[i])) {+ < (vertX[j] - vertX[i]) * (testy - vertY[i]) / (vertY[j] - vertY[i]) + vertX[i])) {c = !c;}}diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/geo/ShapeTestUtil.java b/lucene/test-framework/src/java/org/apache/lucene/tests/geo/ShapeTestUtil.javaindex 29f5a83e73f..649ea419bff 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/geo/ShapeTestUtil.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/geo/ShapeTestUtil.java@@ -294,22 +294,22 @@ public class ShapeTestUtil {boolean c = false;int i, j;int nvert = polyYs.length;- double[] verty = polyYs;- double[] vertx = polyXs;+ double[] vertY = polyYs;+ double[] vertX = polyXs;double testy = y;double testx = x;for (i = 0, j = 1; j < nvert; ++i, ++j) {- if (testy == verty[j] && testy == verty[i]- || ((testy <= verty[j] && testy >= verty[i])- != (testy >= verty[j] && testy <= verty[i]))) {- if ((testx == vertx[j] && testx == vertx[i])- || ((testx <= vertx[j] && testx >= vertx[i]) != (testx >= vertx[j] && testx <= vertx[i])- && GeoUtils.orient(vertx[i], verty[i], vertx[j], verty[j], testx, testy) == 0)) {+ if (testy == vertY[j] && testy == vertY[i]+ || ((testy <= vertY[j] && testy >= vertY[i])+ != (testy >= vertY[j] && testy <= vertY[i]))) {+ if ((testx == vertX[j] && testx == vertX[i])+ || ((testx <= vertX[j] && testx >= vertX[i]) != (testx >= vertX[j] && testx <= vertX[i])+ && GeoUtils.orient(vertX[i], vertY[i], vertX[j], vertY[j], testx, testy) == 0)) {// return true if point is on boundaryreturn true;- } else if (((verty[i] > testy) != (verty[j] > testy))+ } else if (((vertY[i] > testy) != (vertY[j] > testy))&& (testx- < (vertx[j] - vertx[i]) * (testy - verty[i]) / (verty[j] - verty[i]) + vertx[i])) {+ < (vertX[j] - vertX[i]) * (testy - vertY[i]) / (vertY[j] - vertY[i]) + vertX[i])) {c = !c;}}diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.javaindex a7f3532d992..106e3f320be 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java@@ -1212,7 +1212,7 @@ public abstract class BaseKnnVectorsFormatTestCase extends BaseIndexFileFormatTe}/**- * This method is overrideable since old codec versions only support {@link+ * This method is overridable since old codec versions only support {@link* VectorEncoding#FLOAT32}.*/protected VectorEncoding randomVectorEncoding() {diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseNormsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseNormsFormatTestCase.javaindex a0d6c624ef4..0fa0aa47f44 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseNormsFormatTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseNormsFormatTestCase.java@@ -809,7 +809,7 @@ public abstract class BaseNormsFormatTestCase extends BaseIndexFileFormatTestCasdir.close();}- public void testIndependantIterators() throws IOException {+ public void testIndependentIterators() throws IOException {Directory dir = newDirectory();IndexWriterConfig conf = newIndexWriterConfig().setMergePolicy(newLogMergePolicy());CannedNormSimilarity sim = new CannedNormSimilarity(new long[] {42, 10, 20});@@ -842,7 +842,7 @@ public abstract class BaseNormsFormatTestCase extends BaseIndexFileFormatTestCasIOUtils.close(r, writer, dir);}- public void testIndependantSparseIterators() throws IOException {+ public void testIndependentSparseIterators() throws IOException {Directory dir = newDirectory();IndexWriterConfig conf = newIndexWriterConfig().setMergePolicy(newLogMergePolicy());CannedNormSimilarity sim = new CannedNormSimilarity(new long[] {42, 10, 20});diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePointsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePointsFormatTestCase.javaindex 084d8d7c5a2..0c4d7e1d775 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePointsFormatTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePointsFormatTestCase.java@@ -1153,7 +1153,7 @@ public abstract class BasePointsFormatTestCase extends BaseIndexFileFormatTestCaw.addDocument(doc);w.close();- // Different field number assigments:+ // Different field number assignments:Directory dir2 = newDirectory();w = new RandomIndexWriter(random(), dir2);doc = new Document();diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.javaindex 385a52b193e..d519a4403da 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java@@ -567,7 +567,7 @@ public abstract class BasePostingsFormatTestCase extends BaseIndexFileFormatTestassert isMerge || Thread.currentThread() == mainThread;// We iterate the provided TermsEnum- // twice, so we excercise this new freedom+ // twice, so we exercise this new freedom// with the inverted API; if// addOnSecondPass is true, we add up// term stats on the 2nd iteration:diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseTermVectorsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseTermVectorsFormatTestCase.javaindex a0adbfbb43b..9f9273dc467 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseTermVectorsFormatTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseTermVectorsFormatTestCase.java@@ -386,16 +386,16 @@ public abstract class BaseTermVectorsFormatTestCase extends BaseIndexFileFormatTprivate final String[] terms;private final BytesRef[] termBytes;- protected RandomDocumentFactory(int distinctFieldNames, int disctinctTerms) {+ protected RandomDocumentFactory(int distinctFieldNames, int distinctTerms) {final Set<String> fieldNames = new HashSet<>();while (fieldNames.size() < distinctFieldNames) {fieldNames.add(TestUtil.randomSimpleString(random()));fieldNames.remove("id");}this.fieldNames = fieldNames.toArray(String[]::new);- terms = new String[disctinctTerms];- termBytes = new BytesRef[disctinctTerms];- for (int i = 0; i < disctinctTerms; ++i) {+ terms = new String[distinctTerms];+ termBytes = new BytesRef[distinctTerms];+ for (int i = 0; i < distinctTerms; ++i) {terms[i] = TestUtil.randomRealisticUnicodeString(random());termBytes[i] = newBytesRef(terms[i]);}diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/FieldFilterLeafReader.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/FieldFilterLeafReader.javaindex c6e911cd377..1e4b447a5ab 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/FieldFilterLeafReader.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/FieldFilterLeafReader.java@@ -80,7 +80,7 @@ public final class FieldFilterLeafReader extends FilterLeafReader {return null;}f = new FieldFilterFields(f);- // we need to check for emptyness, so we can return+ // we need to check for emptiness, so we can return// null:return f.iterator().hasNext() ? f : null;}diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomCodec.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomCodec.javaindex 8e65a825407..d9f312bd74b 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomCodec.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomCodec.java@@ -68,7 +68,7 @@ import org.apache.lucene.util.quantization.QuantizedByteVectorValues;** <p>The same field/format assignment will happen regardless of order, a hash is computed up front* that determines the mapping. This means fields can be put into things like HashSets and added to- * documents in different orders and the test will still be deterministic and reproducable.+ * documents in different orders and the test will still be deterministic and reproducible.*/public class RandomCodec extends AssertingCodec {/** Shuffled list of postings formats to use for new mappings */@@ -222,7 +222,7 @@ public class RandomCodec extends AssertingCodec {public RandomCodec(Random random, Set<String> avoidCodecs) {this.perFieldSeed = random.nextInt();this.avoidCodecs = avoidCodecs;- // TODO: make it possible to specify min/max iterms per+ // TODO: make it possible to specify min/max terms per// block via CL:int minItemsPerBlock = TestUtil.nextInt(random, 2, 100);int maxItemsPerBlock = 2 * (Math.max(2, minItemsPerBlock - 1)) + random.nextInt(100);diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomPostingsTester.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomPostingsTester.javaindex d1b4c3e6214..2b365143304 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomPostingsTester.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomPostingsTester.java@@ -1627,7 +1627,7 @@ public class RandomPostingsTester {termsEnum.seekExact(fieldAndTerm.term, termState);}- // check we really seeked to the right place+ // check we really seek()ed to the right placeassertEquals(fieldAndTerm.term, termsEnum.term());long termOrd;diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/ThreadedIndexingAndSearchingTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/ThreadedIndexingAndSearchingTestCase.javaindex 9f13fd2a863..7d50e26af74 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/ThreadedIndexingAndSearchingTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/ThreadedIndexingAndSearchingTestCase.java@@ -152,7 +152,7 @@ public abstract class ThreadedIndexingAndSearchingTestCase extends LuceneTestCas@Overridepublic void run() {// TODO: would be better if this were cross thread, so that we make sure one thread- // deleting anothers added docs works:+ // deleting another added docs works:final List<String> toDeleteIDs = new ArrayList<>();final List<SubDocs> toDeleteSubDocs = new ArrayList<>();int iterations = 0;diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/search/CheckHits.java b/lucene/test-framework/src/java/org/apache/lucene/tests/search/CheckHits.javaindex 97b83562ed2..5fb954b2d85 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/search/CheckHits.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/search/CheckHits.java@@ -174,7 +174,7 @@ public class CheckHits {** @param query the query to test* @param searcher the searcher to test the query against- * @param defaultFieldName used for displaing the query in assertion messages+ * @param defaultFieldName used for displaying the query in assertion messages* @param results a list of documentIds that must match the query* @see #checkHitCollector*/@@ -310,7 +310,7 @@ public class CheckHits {** @param query the query to test* @param searcher the searcher to test the query against- * @param defaultFieldName used for displaing the query in assertion messages+ * @param defaultFieldName used for displaying the query in assertion messages* @see ExplanationAsserter* @see #checkExplanations(Query, String, IndexSearcher, boolean) for a "deep" testing of the* explanation details.@@ -326,7 +326,7 @@ public class CheckHits {** @param query the query to test* @param searcher the searcher to test the query against- * @param defaultFieldName used for displaing the query in assertion messages+ * @param defaultFieldName used for displaying the query in assertion messages* @param deep indicates whether a deep comparison of sub-Explanation details should be executed* @see ExplanationAsserter*/diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/search/ShardSearchingTestBase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/search/ShardSearchingTestBase.javaindex 585cb715664..491fa3c41d4 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/search/ShardSearchingTestBase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/search/ShardSearchingTestBase.java@@ -339,7 +339,7 @@ public abstract class ShardSearchingTestBase extends LuceneTestCase {for (int nodeID = 0; nodeID < nodeVersions.length; nodeID++) {if (nodeID == myNodeID) {// My node; run using local shard searcher we- // already aquired:+ // already acquired:shardHits[nodeID] = localSearch(query, numHits);} else {shardHits[nodeID] = searchNode(nodeID, nodeVersions, query, null, numHits, null);@@ -398,7 +398,7 @@ public abstract class ShardSearchingTestBase extends LuceneTestCase {}if (nodeID == myNodeID) {// My node; run using local shard searcher we- // already aquired:+ // already acquired:shardHits[nodeID] = localSearchAfter(shardAfter, query, numHits);} else {shardHits[nodeID] = searchNode(nodeID, nodeVersions, query, null, numHits, shardAfter);@@ -425,7 +425,7 @@ public abstract class ShardSearchingTestBase extends LuceneTestCase {for (int nodeID = 0; nodeID < nodeVersions.length; nodeID++) {if (nodeID == myNodeID) {// My node; run using local shard searcher we- // already aquired:+ // already acquired:shardHits[nodeID] = localSearch(query, numHits, sort);} else {shardHits[nodeID] =diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/store/CorruptingIndexOutput.java b/lucene/test-framework/src/java/org/apache/lucene/tests/store/CorruptingIndexOutput.javaindex c3c3ebf4313..a46d24aa2ba 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/store/CorruptingIndexOutput.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/store/CorruptingIndexOutput.java@@ -54,7 +54,7 @@ public class CorruptingIndexOutput extends FilterIndexOutput {}protected void corruptFile() throws IOException {- // Now corrupt the specfied byte:+ // Now corrupt the specified byte:String newTempName;try (IndexOutput tmpOut = dir.createTempOutput("tmp", "tmp", IOContext.DEFAULT);IndexInput in = dir.openInput(out.getName(), IOContext.DEFAULT)) {diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/util/LineFileDocs.java b/lucene/test-framework/src/java/org/apache/lucene/tests/util/LineFileDocs.javaindex 91b897ffb70..7b52e46c9ca 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/util/LineFileDocs.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/util/LineFileDocs.java@@ -148,7 +148,8 @@ public class LineFileDocs implements Closeable {// read until newline char, otherwise we may hit "java.nio.charset.MalformedInputException:// Input length = 1"- // exception in readline() below, because we seeked part way through a multi-byte (in UTF-8)+ // exception in readline() below, because we seek()ed part way through a multi-byte (in+ // UTF-8)// encoded// unicode character:if (seekTo > 0L) {diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.javaindex a8f51bf0511..18bbecd1725 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java@@ -376,13 +376,13 @@ public abstract non-sealed class LuceneTestCase extends LuceneTestCaseParent {supplier = () -> new MaxCallCountRandom(finalizedSupplier.get(), maxCalls);}- int maxAquires =+ int maxAcquires =Integer.parseInt(System.getProperty(SYSPROP_RANDOM_MAXACQUIRES, "0"));- if (maxAquires > 0) {+ if (maxAcquires > 0) {var finalizedSupplier = supplier;supplier =() -> {- if (randomCalls.incrementAndGet() > maxAquires) {+ if (randomCalls.incrementAndGet() > maxAcquires) {throw new RuntimeException("Too many random() calls. Consider using LuceneTestCase.nonAssertingRandom for"+ " large loops or data generation.");diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/util/TemporaryFilesSupplier.java b/lucene/test-framework/src/java/org/apache/lucene/tests/util/TemporaryFilesSupplier.javaindex 32669aa3ed4..c5bd3077f8c 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/util/TemporaryFilesSupplier.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/util/TemporaryFilesSupplier.java@@ -56,7 +56,7 @@ final class TemporaryFilesSupplier implements BeforeAfterCallback {/** Retry to create temporary file name this many times. */private static final int TEMP_NAME_RETRY_THRESHOLD = 9999;- /** Writeable temporary base folder. */+ /** Writable temporary base folder. */private Path javaTempDir;/** Per-test class temporary folder. */diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/util/TestRuleSetupTeardownChained.java b/lucene/test-framework/src/java/org/apache/lucene/tests/util/TestRuleSetupTeardownChained.javaindex 19d1e21b517..0c864f7de49 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/util/TestRuleSetupTeardownChained.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/util/TestRuleSetupTeardownChained.java@@ -23,9 +23,9 @@ import org.junit.runners.model.Statement;/*** Make sure {@link LuceneTestCase#setUp()} and {@link LuceneTestCase#tearDown()} were invoked even- * if they have been overriden. We assume nobody will call these out of non-overriden 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.+ * if they 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.*/class TestRuleSetupTeardownChained implements TestRule {/**diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/util/fst/FSTTester.java b/lucene/test-framework/src/java/org/apache/lucene/tests/util/fst/FSTTester.javaindex cbd2ac3f762..a4a9e8b0ea6 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/util/fst/FSTTester.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/util/fst/FSTTester.java@@ -477,7 +477,7 @@ public class FSTTester<T> {seekResult.input);assertTrue(outputsEqual(pairs.get(pos).output, seekResult.output));} else {- // seeked before start or beyond end+ // seek()ed before start or beyond end// System.out.println("seek=" + seekTerm);assertNull("expected null but got "diff --git a/lucene/test-framework/src/test/org/apache/lucene/tests/util/TestExpectThrows.java b/lucene/test-framework/src/test/org/apache/lucene/tests/util/TestExpectThrows.javaindex d6f646c098a..2b2693b18b6 100644--- a/lucene/test-framework/src/test/org/apache/lucene/tests/util/TestExpectThrows.java+++ b/lucene/test-framework/src/test/org/apache/lucene/tests/util/TestExpectThrows.java@@ -71,7 +71,7 @@ public class TestExpectThrows extends LuceneTestCase {/*** Tests that {@link #expectThrows} behaves correctly when the Runnable contains an assertion that- * does not pass: by allowing that assertion to propogate and <code>FAIL</code> the test.+ * does not pass: by allowing that assertion to propagate and <code>FAIL</code> the test.*/public void testNestedFail() {final AtomicBoolean ran = new AtomicBoolean(false);@@ -81,7 +81,7 @@ public class TestExpectThrows extends LuceneTestCase {IOException.class,() -> {ran.getAndSet(true);- fail("this failure should propogate");+ fail("this failure should propagate");});fail("must not complete"); // NOTE: we don't use expectThrows to test expectThrows} catch (AssertionError ae) {@@ -89,12 +89,12 @@ public class TestExpectThrows extends LuceneTestCase {}assertTrue(ran.get());assertNotNull(caught);- assertEquals("this failure should propogate", caught.getMessage());+ assertEquals("this failure should propagate", caught.getMessage());}/*** Tests that {@link #expectThrows} behaves correctly when the Runnable contains an assumption- * that does not pass: by allowing that assumption to propogate and cause the test to <code>SKIP+ * that does not pass: by allowing that assumption to propagate and cause the test to <code>SKIP* </code>.*/public void testNestedAssume() {@@ -105,7 +105,7 @@ public class TestExpectThrows extends LuceneTestCase {IOException.class,() -> {ran.getAndSet(true);- assumeTrue("this assumption should propogate", false);+ assumeTrue("this assumption should propagate", false);});fail("must not complete"); // NOTE: we don't use expectThrows to test expectThrows} catch (AssumptionViolatedException ave) {@@ -113,7 +113,7 @@ public class TestExpectThrows extends LuceneTestCase {}assertTrue(ran.get());assertNotNull(caught);- assertEquals("this assumption should propogate", caught.getMessage());+ assertEquals("this assumption should propagate", caught.getMessage());}/**@@ -130,14 +130,14 @@ public class TestExpectThrows extends LuceneTestCase {AssertionError.class,() -> {ran.getAndSet(true);- fail("this failure should be returned, not propogated");+ fail("this failure should be returned, not propagated");});} catch (AssertionError caught) { // NOTE: we don't use expectThrows to test expectThrowsassertNull("An exception should not have been thrown", caught);}assertTrue(ran.get());assertNotNull(returned);- assertEquals("this failure should be returned, not propogated", returned.getMessage());+ assertEquals("this failure should be returned, not propagated", returned.getMessage());}/**@@ -154,7 +154,7 @@ public class TestExpectThrows extends LuceneTestCase {AssumptionViolatedException.class,() -> {ran.getAndSet(true);- assumeTrue("this assumption should be returned, not propogated", false);+ assumeTrue("this assumption should be returned, not propagated", false);});} catch (AssumptionViolatedException@@ -163,6 +163,6 @@ public class TestExpectThrows extends LuceneTestCase {}assertTrue(ran.get());assertNotNull(returned);- assertEquals("this assumption should be returned, not propogated", returned.getMessage());+ assertEquals("this assumption should be returned, not propagated", returned.getMessage());}}diff --git a/lucene/test-framework/src/test/org/apache/lucene/tests/util/TestTestObjectInputFilterFactory.java b/lucene/test-framework/src/test/org/apache/lucene/tests/util/TestTestObjectInputFilterFactory.javaindex 2d9da257bdb..c3547277a26 100644--- a/lucene/test-framework/src/test/org/apache/lucene/tests/util/TestTestObjectInputFilterFactory.java+++ b/lucene/test-framework/src/test/org/apache/lucene/tests/util/TestTestObjectInputFilterFactory.java@@ -42,38 +42,38 @@ public final class TestTestObjectInputFilterFactory extends LuceneTestCase {private InputStream openStream() throws IOException {var out = new ByteArrayOutputStream();- try (var oout = new ObjectOutputStream(out)) {- oout.writeObject(new HashMap<>());+ try (var stream = new ObjectOutputStream(out)) {+ stream.writeObject(new HashMap<>());}return new ByteArrayInputStream(out.toByteArray());}public void testDeserializationWithoutFilter() throws Exception {- try (var oin = new ObjectInputStream(openStream())) {+ try (var stream = new ObjectInputStream(openStream())) {// no filter set!- var ex = assertThrows(InvalidClassException.class, () -> oin.readObject());+ var ex = assertThrows(InvalidClassException.class, () -> stream.readObject());assertTrue(ex.getMessage().contains("REJECTED"));}}public void testDeserializationWithAllowFilter() throws Exception {- try (var oin = new ObjectInputStream(openStream())) {- oin.setObjectInputFilter(createFilter("java.util.HashMap;!*"));- oin.readObject();+ try (var stream = new ObjectInputStream(openStream())) {+ stream.setObjectInputFilter(createFilter("java.util.HashMap;!*"));+ stream.readObject();}}public void testDeserializationWithDenyFilter() throws Exception {- try (var oin = new ObjectInputStream(openStream())) {- oin.setObjectInputFilter(createFilter("!*"));- var ex = assertThrows(InvalidClassException.class, () -> oin.readObject());+ try (var stream = new ObjectInputStream(openStream())) {+ stream.setObjectInputFilter(createFilter("!*"));+ var ex = assertThrows(InvalidClassException.class, () -> stream.readObject());assertTrue(ex.getMessage().contains("REJECTED"));}}public void testBadCodeJustSettingNullFilter() throws Exception {- try (var oin = new ObjectInputStream(openStream())) {- assertThrows(IllegalStateException.class, () -> oin.setObjectInputFilter(null));+ try (var stream = new ObjectInputStream(openStream())) {+ assertThrows(IllegalStateException.class, () -> stream.setObjectInputFilter(null));}}}