[
https://issues.apache.org/jira/browse/SOLR-11834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16318608#comment-16318608
]
Munendra S N commented on SOLR-11834:
-------------------------------------
[~mkhludnev]
I did test this.
On my local setup,
Solr in stand alone mode (with master branch)
{code:java}
http://localhost:8983/solr/blockjoin70001-1492010056/select?q=*&fl=type_s,uniqueId,children:[subquery]&children.q=*&children.fl=review_dt,uniqueId&children.logParamsList=q,fl,rows&rows=2
{code}
response for the above request
{code:json}
{
"responseHeader": {
"status": 0,
"QTime": 2,
"params": {
"q": "*",
"children.logParamsList": "q,fl,rows",
"children.fl": "review_dt,uniqueId",
"fl": "type_s,uniqueId,children:[subquery]",
"children.q": "*",
"rows": "2"
}
},
"response": {
"numFound": 12,
"start": 0,
"docs": [
{
"uniqueId": "book2_c1",
"type_s": "review",
"children": {
"numFound": 12,
"start": 0,
"docs": [
{
"uniqueId": "book2_c1",
"review_dt": "2015-01-03T14:30:00Z"
},
{
"uniqueId": "book2_c2",
"review_dt": "2015-04-10T09:00:00Z"
},
{
"uniqueId": "book2"
},
{
"uniqueId": "book1_c1",
"review_dt": "2015-01-03T14:30:00Z"
},
{
"uniqueId": "book1_c2",
"review_dt": "2014-03-15T12:00:00Z"
},
{
"uniqueId": "book1"
},
{
"uniqueId": "book4"
},
{
"uniqueId": "book4"
},
{
"uniqueId": "book4"
},
{
"uniqueId": "book4_c1",
"review_dt": "2015-01-03T14:30:00Z"
}
]
}
},
{
"uniqueId": "book2_c2",
"type_s": "review",
"children": {
"numFound": 12,
"start": 0,
"docs": [
{
"uniqueId": "book2_c1",
"review_dt": "2015-01-03T14:30:00Z"
},
{
"uniqueId": "book2_c2",
"review_dt": "2015-04-10T09:00:00Z"
},
{
"uniqueId": "book2"
},
{
"uniqueId": "book1_c1",
"review_dt": "2015-01-03T14:30:00Z"
},
{
"uniqueId": "book1_c2",
"review_dt": "2014-03-15T12:00:00Z"
},
{
"uniqueId": "book1"
},
{
"uniqueId": "book4"
},
{
"uniqueId": "book4"
},
{
"uniqueId": "book4"
},
{
"uniqueId": "book4_c1",
"review_dt": "2015-01-03T14:30:00Z"
}
]
}
}
]
}
}
{code}
I also tested with solrColud(Solr version 6.6.2.) The collection had single
shard with 3/4 replicas. It is working as expected.
I have also verified the XML response
> [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
> Attachments: SOLR-11834.patch
>
> 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
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]