mirror of https://github.com/apache/lucene.git
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:
parent
19f8d0f623
commit
5644c6aa18
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue