Skip to content

Apache Lucene open-source search software

LUCENE-3602: Fixed some typos.

Martijn van Groningenac8befe5c38a
diff --git a/modules/join/src/java/org/apache/lucene/search/join/package.html b/modules/join/src/java/org/apache/lucene/search/join/package.html
index 0cd5cd86a64..f4602509a8a 100644
--- a/modules/join/src/java/org/apache/lucene/search/join/package.html
+++ b/modules/join/src/java/org/apache/lucene/search/join/package.html
@@ -42,7 +42,7 @@
<h2>Search-time joins</h2>
<p>
- The query time joining is terms based and implemented as two pass search. The first pass collects all the terms from a fromField
+ The query time joining is index term based and implemented as two pass search. The first pass collects all the terms from a fromField
that match the fromQuery. The second pass returns all documents that have matching terms in a toField to the terms
collected in the first pass.
</p>
@@ -62,7 +62,7 @@
<pre class="prettyprint">
String fromField = "from"; // Name of the from field
boolean multipleValuesPerDocument = false; // Set only yo true in the case when your fromField has multiple values per document in your index
- String fromField = "to"; // Name of the to field
+ String toField = "to"; // Name of the to field
Query fromQuery = new TermQuery(new Term("content", searchTerm)); // Query executed to collect from values to join to the to values
MultiTermQuery joinQuery = JoinUtil.createJoinQuery(fromField, multipleValuesPerDocument, toField, fromQuery, fromSearcher);