LUCENE-3602: Fixed documentation error.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1236143 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Martijn van Groningen 2012-01-26 11:21:26 +00:00
parent 19f8d0f623
commit 5644c6aa18
1 changed files with 1 additions and 1 deletions

View File

@ -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...
</pre>