Skip to content

Apache Lucene open-source search software

Fix two 'against' typos.

Christine Poerschkebf9a7e26264f
diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/package-info.java b/lucene/monitor/src/java/org/apache/lucene/monitor/package-info.java
index 8919592908f..695007648e3 100644
--- a/lucene/monitor/src/java/org/apache/lucene/monitor/package-info.java
+++ b/lucene/monitor/src/java/org/apache/lucene/monitor/package-info.java
@@ -73,7 +73,7 @@
*
* For query sets that contain many conjunctions, it can be useful to extract and index different
* minimal term combinations. For example, a phrase query on 'the quick brown fox' could index
- * both 'quick' and 'brown', and avoid being run againt documents that contain only one of these
+ * both 'quick' and 'brown', and avoid being run against documents that contain only one of these
* terms. The {@link org.apache.lucene.monitor.MultipassTermFilteredPresearcher} allows this sort
* of indexing, taking a minimum term weight so that very common terms such as 'the' can be avoided.
*
diff --git a/solr/core/src/test/org/apache/solr/handler/component/StatsComponentTest.java b/solr/core/src/test/org/apache/solr/handler/component/StatsComponentTest.java
index d4bf06905f5..1049ec12469 100644
--- a/solr/core/src/test/org/apache/solr/handler/component/StatsComponentTest.java
+++ b/solr/core/src/test/org/apache/solr/handler/component/StatsComponentTest.java
@@ -1682,7 +1682,7 @@ public class StatsComponentTest extends SolrTestCaseJ4 {
assertNull(HllOptions.parseHllOptions(params(), field_l));
assertNull(HllOptions.parseHllOptions(params("cardinality","false"), field_l));
- // sanity check, future proof againts the HLL library changing stuff on us
+ // sanity check, future proof against the HLL library changing stuff on us
assertEquals("HLL Changed definition min for log2m, " +
"need to note in upgrade instructions and maybe adjust accuracy hueristic",
4, HLL.MINIMUM_LOG2M_PARAM);