From 7f460faffb58c9f4139d2f0265dc547fa4777d6d Mon Sep 17 00:00:00 2001 From: Munendra S N Date: Mon, 23 Mar 2020 19:57:46 +0530 Subject: [PATCH] fix typos in subquery doc transformer --- .../response/transform/SubQueryAugmenterFactory.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java b/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java index e44aefef9d2..8784a5578d5 100644 --- a/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java +++ b/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java @@ -64,7 +64,7 @@ import org.apache.solr.search.TermsQParserPlugin; * It's necessary to pass some document field value as a parameter for subquery. It's supported via * implicit row.fieldname parameters, and can be (but might not only) referred via * Local Parameters syntax.
- * q=namne:john&fl=name,id,depts:[subquery]&depts.q={!terms f=id v=$row.dept_id}&depts.rows=10 + * q=name:john&fl=name,id,depts:[subquery]&depts.q={!terms f=id v=$row.dept_id}&depts.rows=10 * Here departments are retrieved per every employee in search result. We can say that it's like SQL * join ON emp.dept_id=dept.id
* Note, when document field has multiple values they are concatenated with comma by default, it can be changed by @@ -79,11 +79,11 @@ import org.apache.solr.search.TermsQParserPlugin; *

When used in Real Time Get

*

* When used in the context of a Real Time Get, the values from each document that are used - * in the qubquery are the "real time" values (possibly from the transaction log), but the query + * in the subquery are the "real time" values (possibly from the transaction log), but the query * itself is still executed against the currently open searcher. Note that this means if a * document is updated but not yet committed, an RTG request for that document that uses * [subquery] could include the older (committed) version of that document, - * with differnet field values, in the subquery results. + * with different field values, in the subquery results. *

*/ public class SubQueryAugmenterFactory extends TransformerFactory{ @@ -93,7 +93,7 @@ public class SubQueryAugmenterFactory extends TransformerFactory{ if (field.contains("[") || field.contains("]")) { throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, - "please give an exlicit name for [subquery] column ie fl=relation:[subquery ..]"); + "please give an explicit name for [subquery] column ie fl=relation:[subquery ..]"); } checkThereIsNoDupe(field, req.getContext()); @@ -313,7 +313,7 @@ class SubQueryAugmenter extends DocTransformer { } /** - * Returns false -- this transformer does use an IndexSearcher, but it does not (neccessarily) need + * Returns false -- this transformer does use an IndexSearcher, but it does not (necessarily) need * the searcher from the ResultContext of the document being returned. Instead we use the current * "live" searcher for the specified core. */