LUCENE-3602: Fixed some typos.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1233918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Martijn van Groningen 2012-01-20 14:15:42 +00:00
parent 53270bdb9c
commit ac8befe5c3
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
<h2>Search-time joins</h2> <h2>Search-time joins</h2>
<p> <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 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. collected in the first pass.
</p> </p>
@ -62,7 +62,7 @@
<pre class="prettyprint"> <pre class="prettyprint">
String fromField = "from"; // Name of the from field 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 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 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); MultiTermQuery joinQuery = JoinUtil.createJoinQuery(fromField, multipleValuesPerDocument, toField, fromQuery, fromSearcher);