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 f4602509a8a..c5189f4f94f 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 @@ -65,7 +65,7 @@ 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); + Query joinQuery = JoinUtil.createJoinQuery(fromField, multipleValuesPerDocument, toField, fromQuery, fromSearcher); TopDocs topDocs = toSearcher.search(joinQuery, 10); // Note: toSearcher can be the same as the fromSearcher // Render topDocs...