[ 
https://issues.apache.org/jira/browse/SOLR-11834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16552490#comment-16552490
 ] 

Munendra S N commented on SOLR-11834:
-------------------------------------

[~mkhludnev]
I think this issue is not restricted to only Subuqery docTransformer.  Any 
DocTransformer which supports querying would have this issue in case of 
multi-sharded. I think that is why the childDocTransformer response is handled 
like 
[this|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/response/JSONWriter.java#L118]
Should there be a JIRA to track this??


For now, It is better to revert Documentation changes. Should the changes 
mention the issue is related only to multi-sharded??
{noformat}
To appear in subquery document list, a field should be specified both fl 
parameters, in main one fl (despite the main result documents have no this 
field) and in subquery's one e.g., `foo.fl`. Of course, you can use wildcard in 
any or both of these parameters. For example, if field title should appear in 
categories subquery, it can be done via one of these ways.
{noformat}
This was the previous documentation. Here, it should be made clear that 
subquery's fl must be subset of main query's fl parameter. (if not already)


> [Ref-Guide] Wrong documentation for subquery transformer
> --------------------------------------------------------
>
>                 Key: SOLR-11834
>                 URL: https://issues.apache.org/jira/browse/SOLR-11834
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: documentation
>            Reporter: Munendra S N
>            Priority: Major
>             Fix For: 7.3, master (8.0)
>
>         Attachments: SOLR-11834.patch, SOLR-11834.png
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Documentation for subquery transformation mentioned that to retrieve the 
> field, it should be specified in both fl parameter
> https://lucene.apache.org/solr/guide/7_2/transforming-result-documents.html#subquery-result-fields
> But there is no such restriction in code.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to